:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --fg: #1f2329;
  --muted: #646a73;
  --line: #e6e8ee;
  --soft: #f2f4f8;
  --accent: #2162b4;
  --accent-soft: #e2f3fd;
  --accent-fg: #ffffff;
  --danger: #d4380d;
  --ok: #1677ff;
  --sidebar: 248px;
  --outline: 196px;
  --top: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--outline);
  grid-template-rows: var(--top) 1fr;
  grid-template-areas:
    "top top top"
    "side main outline";
  min-height: 100vh;
}
body.no-outline .shell {
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "side main";
}

.topbar {
  grid-area: top;
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--top);
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; display: block; flex: none; }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a {
  color: var(--fg);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.topnav a:hover { background: var(--soft); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.brand-tag { margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; }

.sidebar {
  grid-area: side;
  position: sticky;
  top: var(--top);
  height: calc(100vh - var(--top));
  overflow: auto;
  padding: 16px 12px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.side-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 10px 6px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}
.side-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sidebar > .side-label:first-child { margin-top: 4px; }
.side-app, .side-link, .side-sub a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--fg);
  font-size: 14px;
}
.side-app:hover, .side-link:hover, .side-sub a:hover { background: var(--soft); text-decoration: none; }
.side-app[aria-current="true"] { color: var(--accent); font-weight: 700; }
.side-link[aria-current="page"], .side-sub a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.side-link[aria-current="page"]:hover, .side-sub a[aria-current="page"]:hover { color: #fff; }
.side-soon {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #9aa1ad;
  font-size: 14px;
}
.side-sub { margin: 2px 0 8px 10px; padding-left: 8px; border-left: 1px solid var(--line); }
.side-sub a { color: var(--muted); font-size: 13px; }

.doc {
  grid-area: main;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 36px 48px;
}
.outline {
  grid-area: outline;
  position: sticky;
  top: var(--top);
  height: calc(100vh - var(--top));
  overflow: auto;
  padding: 18px 14px 28px 0;
}
.outline[hidden] { display: none; }
#outline { display: flex; flex-direction: column; gap: 2px; }
#outline a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
}
#outline a:hover { color: var(--accent); text-decoration: none; }

h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
h2 { font-size: 20px; margin: 32px 0 8px; scroll-margin-top: 72px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.lead { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.prose { max-width: 720px; }
.prose h1 { font-size: 28px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }

.note {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: #1a4e86;
  border-left: 4px solid var(--accent);
}

.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 14px;
}
.doc-card h2 { margin: 0 0 6px; font-size: 20px; }
.doc-card h2 a { color: var(--fg); }
.doc-card h2 a:hover { color: var(--accent); }
.doc-card p { margin: 0 0 8px; color: var(--muted); }
.links { display: flex; gap: 14px; }
.links a { font-weight: 600; }

.catalog {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.catalog-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px 18px; padding: 14px 16px; }
.catalog-row + .catalog-row { border-top: 1px solid var(--line); }
.catalog-row h2 { margin: 2px 0 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.catalog-row h3 { margin: 2px 0 0; font-size: 15px; color: var(--fg); }
.catalog-row h3 a { color: var(--fg); }
.catalog-row h3 a:hover { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 13px; }

.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.glance article {
  background: var(--accent-soft);
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
}
.glance h3 { color: var(--accent); }
.glance p { margin: 0; color: var(--muted); font-size: 13px; }

.button, .button-quiet {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.button { background: var(--accent); color: #fff; border: 0; }
.button:hover { text-decoration: none; filter: brightness(0.95); }
.button-quiet { color: var(--accent); background: var(--surface); border: 1px solid #b9d4ef; }

.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.panel {
  max-width: 680px;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px 20px;
}
.form { display: grid; gap: 6px; }
.form label { font-weight: 650; font-size: 14px; margin-top: 12px; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  padding: 10px 12px;
}
.form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23646a73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid #8eb4dc;
  border-color: var(--accent);
}
.form textarea { resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form .check span { min-width: 0; }
.form .button { justify-self: start; margin-top: 16px; }
.field-error { color: var(--danger); font-size: 14px; margin: 0; }
.alert { color: var(--danger); border: 1px solid var(--danger); border-radius: 8px; padding: 10px 12px; }
.notice { color: var(--ok); font-weight: 650; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.message { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 0; padding: 14px 16px; overflow-wrap: anywhere; }
.message.reply { border-left: 3px solid var(--accent); }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.status-open { color: #ad6800; background: #fff4d6; }
.status-overdue { color: #cf1322; background: #ffe8e6; }
.status-in_progress { color: #137333; background: #e5f6ea; }
.status-closed { color: #646a73; background: #eef0f3; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subnav a { color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; }
.subnav a:hover { color: var(--accent); text-decoration: none; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 120px; color: var(--fg); }
.stat:hover { text-decoration: none; }
.stat-value { display: block; font-size: 24px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 650; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.filters a { color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.filters a:hover { color: var(--accent); text-decoration: none; }
.filters a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.table-wrap { overflow-x: auto; }
.ticket-table { display: table; table-layout: auto; width: 100%; }
.ticket-table .col-id,
.ticket-table .col-time,
.ticket-table .col-app,
.ticket-table .col-device,
.ticket-table .col-topic,
.ticket-table .col-email,
.ticket-table .col-status { width: 1%; white-space: nowrap; }
.ticket-table .col-message { width: 99%; }
.ticket-table .col-message a { color: var(--fg); white-space: normal; overflow-wrap: anywhere; }
code { font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

.doc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.doc-foot p { margin: 0; }
.doc-foot a { color: var(--muted); }

@media (max-width: 900px) {
  .shell, body.no-outline .shell {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    grid-template-areas: "top top" "side main";
  }
  .outline { display: none; }
  .doc-cards, .glance { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
  }
  .shell, body.no-outline .shell {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "side" "main";
  }
  .sidebar { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  body:has(#nav-toggle:checked) .sidebar { display: block; }
  .topnav { display: none; }
  .doc { padding: 20px 16px 36px; }
  .form .row, .catalog-row { grid-template-columns: 1fr; }
}

/* Admin login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(120% 90% at 20% 0%, #1d2a52 0%, #141d3b 55%, #0f1630 100%);
}
.login-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 44px 48px 32px;
  box-shadow: 0 30px 80px rgba(3, 8, 28, 0.45);
}
.login-brand { display: flex; align-items: center; justify-content: center; gap: 14px; }
.login-logo { width: 80px; height: 80px; flex: none; }
.login-wordmark { display: flex; flex-direction: column; line-height: 1.25; }
.login-wordmark strong { color: #0b1f4d; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; }
.login-en { color: #0b1f4d; font-size: 14px; font-weight: 650; margin-top: 2px; }
.login-cn { color: #6b7280; font-size: 13px; letter-spacing: 3px; }
.login-hint { text-align: center; color: #8a8f99; margin: 18px 0 22px; }
.login-error {
  margin: -6px 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 14px;
}
.login-form { display: grid; gap: 8px; }
.login-form label { font-weight: 650; color: #4b5563; font-size: 15px; margin-top: 6px; }
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  color: var(--fg);
  background: #f5f7fb;
  border: 2px solid #a9b8cc;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-form input::placeholder { color: #9aa7ba; font-style: italic; }
.login-form input:focus { border-color: #1890ff; background: #fff; box-shadow: 0 0 0 3px rgba(24, 144, 255, .15); }
.login-captcha { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 4px; }
.captcha-img { display: block; height: 46px; border: 1px solid #c9d2df; border-radius: 6px; overflow: hidden; cursor: pointer; }
.captcha-img img { display: block; width: 100%; height: 100%; object-fit: fill; }
.login-form button {
  margin-top: 18px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: #1890ff;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background .15s;
}
.login-form button:hover { background: #0d7fe8; }
.login-form button:active { background: #096dd9; }
.login-foot { text-align: center; color: #8a8f99; font-size: 14px; margin: 20px 0 0; }
@media (max-width: 480px) {
  .login-card { padding: 32px 22px 24px; }
  .login-wordmark strong { font-size: 21px; }
  .login-logo { width: 62px; height: 62px; }
}

/* Admin layout: full-width content, admin menu in the sidebar */
.admin .doc { max-width: none; margin: 0; padding: 28px 40px 48px; }
.user-menu { position: relative; margin-left: auto; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::marker { content: ""; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.user-menu summary:hover .avatar,
.user-menu[open] .avatar { background: #cfe6f8; }
.user-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 30, 60, 0.14);
}
.user-name {
  margin: 6px 10px 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.user-pop button {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.user-pop button:hover { background: #fff2f0; }
@media (max-width: 760px) { .admin .doc { padding: 20px 16px 40px; } }
@media (min-width: 901px) { .admin .table { display: table; } }

.feedback-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.feedback-row {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.feedback-row:hover { text-decoration: none; border-color: #b9d4ee; box-shadow: 0 8px 24px rgba(33, 98, 180, 0.08); }
.feedback-body { padding: 16px 22px 14px; }
.feedback-meta { display: flex; align-items: center; gap: 12px; }
.feedback-app { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.feedback-time { color: var(--muted); font-size: 13px; }
.feedback-meta .status { margin-left: auto; }
.feedback-row h2 { margin: 8px 0 4px; font-size: 18px; }
.feedback-message { margin: 0; color: var(--fg); }
.feedback-reply {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  padding: 12px 22px;
  background: var(--accent-soft);
  border-top: 1px solid #d4ebf8;
}
.feedback-reply strong { flex: none; color: var(--accent); font-size: 13px; }
.feedback-reply.waiting { background: var(--soft); border-top-color: var(--line); }
.feedback-reply.waiting strong, .feedback-reply.waiting span { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .feedback-meta { flex-wrap: wrap; }
  .feedback-reply { flex-direction: column; gap: 2px; }
}

.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ticket-head h1 { margin-bottom: 4px; }
.ticket-head .status { margin-top: 8px; font-size: 13px; }
.ticket-saved { margin: 0 0 14px; padding: 8px 12px; border-radius: 8px; background: #eef8f1; color: #137333; font-weight: 650; }
.ticket-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 4px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ticket-facts div { flex: 0 0 auto; padding: 12px 18px; border-right: 1px solid var(--line); }
.ticket-facts div:last-child { border-right: 0; }
.ticket-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ticket-facts dd { margin: 3px 0 0; font-weight: 650; white-space: nowrap; }
.ticket-stack { display: flex; flex-direction: column; gap: 16px; }
.ticket-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ticket-card-head h2 { margin: 0; }
.ticket-card-head + .message, .ticket-card-head + .muted { margin-top: 0; }
.ticket-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; }
.ticket-card > h2 { margin-top: 0; }
.ticket-card > h2 ~ h2 { margin-top: 22px; }
.ticket-card .message { background: var(--soft); border: 0; }
.ticket-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ticket-link span { flex: none; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ticket-link code { padding: 0; background: transparent; font-size: 13px; overflow-wrap: anywhere; }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.ticket-card.form > label:first-of-type { margin-top: 0; }
.ticket-actions { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.ticket-actions > div { flex: 1; min-width: 0; }
.ticket-actions .button { margin-top: 0; height: 42px; padding: 0 22px; }
@media (max-width: 900px) {
  .ticket-link { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) {
  .ticket-facts div { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .ticket-facts div:last-child { border-bottom: 0; }
  .ticket-facts dd { white-space: normal; }
}

.top-mail { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.top-mail:hover { color: var(--accent); }
.work { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 4px; }
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
}
.work-card h3 { margin: 0 0 4px; font-size: 17px; }
.work-card h3 a { color: var(--fg); }
.work-card h3 a:hover { color: var(--accent); text-decoration: none; }
.work-card .tagline { margin: 0 0 12px; color: var(--muted); }
.work-card .links { margin: 12px 0 0; }

body.profile { --outline: 220px; }
body.profile .sidebar { display: none; }
body.profile .shell {
  grid-template-columns: 1fr minmax(0, 680px) var(--outline) 1fr;
  grid-template-areas:
    "top top top top"
    ". main outline .";
}
body.profile .doc { max-width: none; width: auto; margin: 0; padding: 40px 12px 64px 0; }
body.profile .outline { padding: 40px 0 28px 16px; }

body.docs { --sidebar: 220px; --outline: 230px; }
body.docs .doc { margin: 0; max-width: 760px; padding: 36px 40px 64px; }
body.docs .outline { padding-top: 28px; }

@media (max-width: 1100px) {
  body.profile .shell {
    grid-template-columns: minmax(0, 1fr) var(--outline);
    grid-template-areas: "top top" "main outline";
  }
  body.profile .doc { padding: 32px 28px 56px; }
}

@media (max-width: 900px) {
  body.profile .shell {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "main";
  }
  body.docs .doc { max-width: none; padding: 28px 28px 48px; }
}

@media (max-width: 760px) {
  body.profile .menu-btn,
  body.profile .top-mail { display: none; }
  body.profile .shell {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "main";
  }
  body.profile .doc,
  body.docs .doc { padding: 20px 16px 36px; }
}
