:root {
  --bg: #f2f0e8;
  --surface: #fffef8;
  --surface-2: #f6f3eb;
  --ink: #090909;
  --muted: #656871;
  --line: #d8d2c5;
  --accent: #f219b7;
  --accent-2: #00897e;
  --acid: #caff2c;
  --blue: #315bba;
  --danger: #b42318;
  --ok: #146c43;
  --shadow: 0 18px 48px rgba(0, 0, 0, .14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
a[aria-disabled="true"] {
  cursor: default;
  opacity: .48;
}

a {
  color: var(--accent-2);
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.btn-outline {
  border-color: var(--line);
}

.login-page {
  min-height: 100svh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .68) 48%, rgba(0, 0, 0, .20) 100%),
    url("/static/brand/hq-color-field.jpg") center / cover no-repeat,
    #050505;
}

.login-shell {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.login-panel {
  width: min(520px, 100%);
  background: rgba(5, 5, 5, .78);
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  padding: clamp(26px, 4vw, 46px);
  backdrop-filter: blur(18px);
}

.login-mark,
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  letter-spacing: 0;
}

.login-brand-stack {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-bottom: 42px;
}

.login-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.login-logo-ns {
  width: min(320px, 82vw);
  max-width: 100%;
}

.login-logo-hq {
  width: min(320px, 82vw);
  max-width: 100%;
}

.login-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  letter-spacing: 0;
}

.login-panel p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .68);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label,
.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.login-form label {
  color: rgba(255, 255, 255, .72);
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, .46);
}

.login-form input,
.field input,
.field select,
.field textarea,
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
}

.login-form input {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.login-form input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.search input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 137, 126, .14);
}

.login-form button,
.primary-button {
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 750;
}

.login-form button {
  background: #fff;
  color: #000;
}

.login-error {
  border: 1px solid rgba(180, 35, 24, .22);
  background: rgba(180, 35, 24, .08);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin: 0 0 16px;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #181818;
  background: #050505;
  color: #fff;
  padding: 18px 14px;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: auto -120px -140px -80px;
  height: 420px;
  background: url("/static/brand/hq-light-mark.jpg") center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  padding: 4px 6px 28px;
  text-align: left;
}

.brand:hover .brand-caption,
.brand:focus-visible .brand-caption {
  color: rgba(255, 255, 255, .72);
}

.brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .34);
  outline-offset: 3px;
}

.brand-lockup {
  display: grid;
  gap: 10px;
  align-items: start;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-ns {
  width: 176px;
  max-width: 100%;
}

.brand-logo-hq {
  width: 176px;
  max-width: 100%;
}

.brand-caption {
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .26) transparent;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
}

.nav-section {
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 10px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  text-align: left;
}

.nav-section:hover,
.nav-section.active {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.nav-section.active {
  background: #fff;
  color: #050505;
}

.nav-count {
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
}

.nav-section.active .nav-count {
  color: var(--accent-2);
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 18px;
}

.ghost-button,
.secondary-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 650;
}

.sidebar .ghost-button {
  width: 100%;
  color: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .18);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 232, .92);
  backdrop-filter: blur(16px);
}

.search input {
  min-height: 42px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.user-badge strong {
  color: var(--ink);
}

.role-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 248, .88);
  color: var(--ink);
  padding: 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.role-pill span,
.status-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  width: min(1280px, 100%);
  padding: 26px 24px 48px;
}

.page-head {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-head h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section-tile,
.page-list-item,
.tool-panel,
.admin-panel {
  background: rgba(255, 254, 248, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-tile {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  text-align: left;
  color: var(--ink);
}

.section-tile:hover {
  border-color: rgba(242, 25, 183, .38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}

.section-tile strong {
  font-size: 17px;
}

.section-tile span {
  color: var(--muted);
  font-size: 13px;
}

.page-list {
  display: grid;
  gap: 8px;
}

.page-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.page-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 25, 183, .34);
  background: #fff;
}

.page-list-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
  font-size: 14px;
}

.page-list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.section-copy {
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.green {
  border-color: transparent;
  background: rgba(0, 137, 126, .12);
  color: var(--accent-2);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tab {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 10px;
  color: var(--muted);
  font-weight: 750;
}

.tab.active {
  border-color: #090909;
  background: #090909;
  color: #fff;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.person {
  min-height: 124px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 248, .90);
  padding: 12px;
}

.person-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person-photo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  font-weight: 850;
}

.person-main {
  min-width: 0;
}

.person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.person span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.person .tag {
  width: 100%;
  border-radius: var(--radius);
  justify-content: flex-start;
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-btn {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 8px;
  color: #202124;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.mini-btn:hover:not(:disabled),
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.btn-outline:hover {
  border-color: rgba(242, 25, 183, .42);
}

.primary-button:hover,
.login-form button:hover {
  background: var(--accent);
  color: #fff;
}

.article {
  background: rgba(255, 254, 248, .90);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: min(4vw, 34px);
  max-width: 920px;
}

.article h2,
.article h3,
.article h4,
.article h5 {
  margin: 1.45em 0 .45em;
  line-height: 1.15;
  scroll-margin-top: 86px;
}

.article h2:first-child,
.article h3:first-child {
  margin-top: 0;
}

.article p,
.article li {
  line-height: 1.66;
}

.article p {
  margin: .7em 0;
}

.article ul {
  margin: 12px 0 18px;
  padding-left: 24px;
}

.article a {
  color: var(--accent-2);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article code {
  background: var(--surface-2);
  border-radius: 5px;
  padding: 2px 5px;
}

.article pre {
  overflow: auto;
  background: #050505;
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
}

.wiki-cut {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 248, .82);
  overflow: hidden;
  scroll-margin-top: 86px;
}

.wiki-cut summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.wiki-cut summary::-webkit-details-marker {
  display: none;
}

.wiki-cut summary::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
  transition: transform .18s ease;
  flex: 0 0 auto;
}

.wiki-cut[open] summary {
  border-bottom-color: var(--line);
}

.wiki-cut[open] summary::before {
  transform: rotate(45deg);
}

.wiki-cut-body {
  padding: 12px 16px 16px;
}

.wiki-cut-body > :first-child,
.wiki-note-body > :first-child {
  margin-top: 0;
}

.wiki-cut-body > :last-child,
.wiki-note-body > :last-child {
  margin-bottom: 0;
}

.wiki-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 16px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  color: #fff;
}

.wiki-note::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.wiki-note-warning,
.wiki-note-alert {
  background: #67333a;
}

.wiki-note-info,
.wiki-note-tip {
  background: #394a7a;
}

.wiki-note-title {
  grid-column: 2;
  font-weight: 900;
}

.wiki-note-body {
  grid-column: 2;
}

.wiki-tab-list {
  margin: 18px 0;
}

.wiki-tab-heading {
  margin: 1.35em 0 .55em;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
}

.wiki-image {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  height: auto;
  margin: 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  object-fit: contain;
}

.wiki-image-wrap {
  display: inline-block;
  max-width: 100%;
}

.wiki-image-wrap .attachment-chip {
  display: none;
}

.wiki-image-wrap.image-error .wiki-image {
  display: none;
}

.wiki-image-wrap.image-error .attachment-chip {
  display: inline-flex;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 100%;
  margin: 4px 8px 4px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 12px 0 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
}

.attachment-chip:hover {
  border-color: rgba(242, 25, 183, .36);
  background: #fff;
}

.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip small {
  min-width: 44px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 137, 126, .12);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.tool-panel,
.admin-panel {
  padding: 18px;
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.signature-preview {
  display: grid;
  align-content: center;
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.sig-card {
  width: min(520px, 100%);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  line-height: 1.45;
  font-family: Arial, sans-serif;
  color: #090909;
}

.sig-name {
  font-weight: 800;
  font-size: 20px;
}

.sig-role {
  color: var(--muted);
  margin-bottom: 10px;
}

.sig-brand {
  margin-top: 12px;
  font-weight: 850;
}

.sig-links {
  margin-top: 6px;
  color: var(--accent-2);
  font-size: 13px;
}

.signature-builder {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1080px;
}

.signature-builder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 248, .90);
  padding: 18px;
}

.signature-builder-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.15;
}

.signature-builder .field small {
  color: var(--muted);
  font-weight: 650;
}

.signature-builder input[readonly] {
  background: var(--surface-2);
  color: var(--muted);
}

.signature-file-field {
  position: relative;
}

.signature-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signature-file-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

.signature-file-control strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.signature-file-control span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.signature-file-field:focus-within .signature-file-control {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 137, 126, .14);
}

.signature-photo-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 8px 0 16px;
}

.signature-builder #preview-container {
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 137, 126, .10), rgba(242, 25, 183, .08)),
    #fff;
}

.signature-builder #preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
}

.signature-zoom {
  margin: 0;
}

.signature-preview-output {
  min-height: 260px;
  overflow: auto;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.copy-notice {
  color: var(--accent-2);
  font-weight: 800;
}

.social-icon:hover {
  filter: brightness(.72);
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(0, 137, 126, .24);
  background: rgba(0, 137, 126, .08);
  border-radius: var(--radius);
  color: var(--accent-2);
  margin: 0 0 16px;
}

.error {
  border-color: rgba(180, 35, 24, .24);
  background: rgba(180, 35, 24, .08);
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: none;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 20;
    transform: translateX(-100%);
    transition: transform .18s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .topbar {
    grid-template-columns: auto 1fr;
    padding: 12px 16px;
  }

  .user-badge {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
    place-items: center;
  }

  .content {
    padding: 20px 16px;
  }

  .section-grid,
  .module-layout,
  .signature-builder {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-head h1 {
    font-size: 34px;
  }

  .page-list-item {
    grid-template-columns: 1fr;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-avatar {
    display: none;
  }

  .admin-panel {
    overflow-x: auto;
  }

  .signature-photo-row {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 24px;
  }
}
