.layout {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 33px 22px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 2px;
}
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 5px;
}
.sidebar .wordmark {
  padding-left: 14px;
  margin-bottom: 46px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #98a2aa;
  padding: 0 16px;
  margin: 18px 0 9px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  padding: 13px 16px;
  margin: 5px 0;
  border-radius: 7px;
  width: 100%;
  color: #657783;
  text-align: left;
}
.nav-button.active {
  background: var(--soft);
  color: #355b68;
  box-shadow: 0 5px 14px #163b5315;
}
.nav-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.side-bottom {
  margin-top: auto;
  padding: 20px 14px 0;
}
.lock-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  color: #86929b;
}
.lock-note b {
  color: var(--gold);
  font-size: 18px;
  margin-right: 5px;
}
.shell {
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffffa8;
  font-size: 12px;
}
.topbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
.topbar-left b {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.avatar-letter {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #eaf0f3;
  display: inline-grid;
  place-items: center;
  color: #426175;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 4px;
}
.workspace {
  padding: 38px 44px 50px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.page-heading h1 {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: 1px;
  margin: 5px 0 6px;
  font-weight: 600;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.date-note {
  font-size: 12px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 23px 25px;
  border-radius: 10px;
}
.stat .stat-label {
  font-size: 12px;
  color: #788994;
  display: flex;
  justify-content: space-between;
}
.stat .number {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 10px 0 7px;
  font-variant-numeric: tabular-nums;
}
.stat .stat-foot {
  font-size: 10px;
  color: #95a0a7;
}
.stat.accent {
  background: var(--soft);
  border-color: var(--soft-border);
  color: #355b68;
}
.stat.accent .stat-label,
.stat.accent .stat-foot {
  color: #69818a;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 24px;
}
.panel-pad {
  padding: 25px;
}
.stage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
}
.stage-row .stage-label {
  width: 46px;
  flex: none;
  color: #74818b;
}
.stage-track {
  height: 5px;
  background: #edf1f3;
  border-radius: 4px;
  flex: 1;
}
.stage-track progress {
  display: block;
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  background: #edf1f3;
}
progress::-webkit-progress-bar {
  background: #edf1f3;
}
progress::-webkit-progress-value {
  background: #ad9670;
  border-radius: 5px;
}
.reminder {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #e9e1d2;
  background: #faf8f3;
  border-radius: 10px;
}
.reminder .eyebrow {
  font-size: 10px;
}
.reminder h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 12px 0;
}
.reminder p {
  font-size: 12px;
  color: #8c8679;
  line-height: 1.9;
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 11px;
  color: #8a98a3;
  font-weight: 500;
  background: #fafbfc;
  padding: 13px 23px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 23px;
  font-size: 12px;
  border-bottom: 1px solid #eff2f4;
}
tr:last-child td {
  border: 0;
}
td strong {
  font-weight: 500;
  display: block;
}
td small {
  font-size: 10px;
  color: #95a0a8;
}
.table-link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  text-align: left;
}
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.filterbar input {
  max-width: 280px;
}
.filterbar select {
  width: 145px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.staff-card {
  padding: 25px;
}
.staff-card .top {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}
.staff-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.staff-card small {
  color: var(--muted);
}
.staff-card .avatar-letter {
  width: 45px;
  height: 45px;
  border-radius: 9px;
}
.staff-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 18px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-brand {
  background: var(--soft);
  color: #355b68;
  padding: 64px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  bottom: -250px;
  right: -260px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow:
    0 0 0 75px #ffffff04,
    0 0 0 150px #ffffff03;
}
.login-brand h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 47px;
  line-height: 1.65;
  letter-spacing: 5px;
  position: relative;
  z-index: 1;
}
.login-brand p {
  color: #69818a;
  font-size: 13px;
  letter-spacing: 1px;
}
.login-brand .foot {
  font-size: 11px;
  color: #69818a;
}
.login-area {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  width: 360px;
  max-width: 100%;
}
.login-box h2 {
  font-size: 28px;
  font-family: var(--serif);
  font-weight: 500;
  margin: 10px 0;
}
.login-box > p {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 13px;
}
.login-box .button {
  width: 100%;
  margin-top: 6px;
}
.login-footer {
  font-size: 11px;
  color: #9ba5ab;
  margin-top: 35px !important;
  line-height: 1.9;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #142d4355;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: min(680px, 100vw);
  height: 100%;
  overflow: auto;
  background: #f6f8f9;
  box-shadow: -10px 0 50px #132f4520;
}
.drawer-head {
  background: white;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin: 0 0 5px;
}
.drawer-body {
  padding: 25px 32px;
  display: grid;
  gap: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 13px;
}
.detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.detail-grid .wide {
  grid-column: 1/-1;
}
.detail-section {
  background: white;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.detail-section h3 {
  font-size: 14px;
  margin-bottom: 19px;
}
.timeline-item {
  border-left: 1px solid #d8e0e5;
  padding: 0 0 20px 18px;
  margin-left: 3px;
  position: relative;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8becb;
}
.timeline-item p {
  font-size: 12px;
  white-space: pre-wrap;
  margin: 6px 0;
}
.timeline-item small {
  font-size: 10px;
  color: var(--muted);
}
.cms-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
}
.cms-section {
  padding: 25px;
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.cms-section h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.image-slot {
  background: #fff;
  border: 1px solid #e2e9ed;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.wordmark .brand-lockup { width: 154px; }
.wordmark:has(.brand-lockup) small { margin-top: 12px; }
.login-brand .brand-lockup { width: 208px; }
.image-preview {
  width: 100%;
  background: #f4f8f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.image-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.image-placeholder { display: grid; justify-items: center; gap: 8px; color: #92a7b1; font-size: 11px; }
.image-placeholder svg { width: 32px; height: 32px; stroke: #8da7b3; fill: none; stroke-width: 1.3; }
.image-slot-info { padding: 16px 18px; min-width: 0; }
.image-slot-title { font-size: 13px; font-weight: 500; color: #3e5c6c; }
.image-slot .image-slot-note {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 12px;
  line-height: 1.7;
}
.image-slot-logo { display: flex; align-items: center; padding: 20px; gap: 22px; }
.image-slot-logo .image-preview { width: 112px; height: 112px; aspect-ratio: 1; flex: 0 0 112px; border: 1px solid #e7eef1; border-radius: 16px; }
.image-slot-logo .image-slot-info { padding: 0; }
.image-slot-wide { max-width: 520px; }
.image-slot-wide .image-preview { max-height: 190px; }
.image-file-hint { display: block; color: #94a2ab; font-size: 10px; margin-top: 10px; }
.image-slot .image-upload-control { position: relative; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 8px 16px; border: 1px solid #ccdee4; border-radius: 7px; color: #3c6979; background: #edf4f6; font-size: 12px; line-height: 1.5; overflow: hidden; cursor: pointer; }
.image-upload-control:hover { background: #e2eef1; border-color: #aecad5; }
.image-upload-control:focus-within { outline: 2px solid #8dafbf; outline-offset: 3px; }
.image-upload-control.is-uploading { opacity: .65; cursor: progress; }
.image-upload-control input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer;
}
.image-remove { border: 0; background: transparent; color: #8c7374; font-size: 12px; padding: 8px 12px; border-radius: 7px; }
.image-remove:hover { background: #fbf2f1; color: #a45f5f; }
.image-remove:focus-visible { outline: 2px solid #8dafbf; outline-offset: 2px; }
.image-slot .slot-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.image-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cms-images { display: grid; gap: 12px; }
.cms-images-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cms-images-heading h3 { margin: 0; font-size: 13px; font-weight: 500; }
.cms-images-heading small { font-size: 11px; color: #8a9ba5; }
@media (max-width: 1250px) and (min-width: 1101px), (max-width: 560px) { .image-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .image-slot-logo { padding: 16px; gap: 16px; align-items: flex-start; }
  .image-slot-logo .image-preview { width: 72px; height: 72px; flex-basis: 72px; border-radius: 12px; }
}
.cms-sticky {
  position: sticky;
  top: 25px;
  align-self: start;
}
.settings-row {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.settings-row b {
  font-weight: 500;
}
.qr-image {
  width: 240px;
  height: 240px;
  display: block;
  margin: 20px auto;
}
.qr-caption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.qr-link {
  word-break: break-all;
  font-size: 11px;
  background: #f3f6f8;
  padding: 10px;
  border-radius: 5px;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .workspace {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .dashboard-grid,
  .cms-grid {
    grid-template-columns: 1fr;
  }
  .cms-sticky {
    position: static;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 20px 16px;
  }
  .login-brand {
    padding: 45px;
  }
  .login-brand h1 {
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .wordmark {
    font-size: 20px;
    margin: 0;
    padding: 0;
  }
  .sidebar .wordmark small,
  .side-bottom,
  .nav-caption {
    display: none;
  }
  .nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    margin-top: 12px;
  }
  .nav-button {
    white-space: nowrap;
    padding: 10px;
    width: auto;
    gap: 6px;
  }
  .nav-button svg {
    width: 14px;
    height: 14px;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .topbar-left {
    display: none;
  }
  .topbar-right {
    width: 100%;
    justify-content: flex-end;
  }
  .workspace {
    padding: 24px 17px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat .number {
    font-size: 30px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .date-note {
    display: none;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .panel-head {
    padding: 18px;
  }
  .login-wrap {
    display: block;
  }
  .login-brand {
    padding: 25px;
  }
  .login-brand h1,
  .login-brand > p,
  .login-brand .foot {
    display: none;
  }
  .login-area {
    padding: 45px 25px;
  }
  .drawer-body,
  .drawer-head {
    padding: 22px;
  }
  .filterbar {
    padding: 17px;
  }
  .filterbar input {
    max-width: none;
  }
  .filterbar select {
    width: calc(50% - 6px);
  }
  .image-list {
    grid-template-columns: 1fr;
  }
}

.red-count {
  background: #be615a;
  color: white;
  border-radius: 20px;
  font-size: 10px;
  padding: 1px 6px;
  margin-left: auto;
}
.red-count[hidden] {
  display: none;
}
.permission-check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.permission-check input {
  width: auto;
  margin: 0;
}
details summary {
  cursor: pointer;
  color: #355b68;
}
details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.timeline-item summary {
  line-height: 1.8;
  padding: 8px 0;
}

.form-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.field-editor {
  margin-top: 18px;
}
.field-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.field-editor label {
  display: block;
  margin: 14px 0;
}
.field-editor .permission-check {
  display: flex;
}
.form-live {
  position: sticky;
  top: 24px;
  max-height: 80vh;
  overflow: auto;
}
.preview-field {
  display: block;
  margin: 18px 0;
}
.preview-field input,
.preview-field select,
.preview-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.form-bottom {
  padding: 24px 0;
  flex-wrap: wrap;
}
.field-editor [hidden] {
  display: none;
}
.page-heading {
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 1150px) {
  .form-editor-layout {
    grid-template-columns: 1fr;
  }
  .form-live {
    position: static;
    max-height: none;
  }
}
/* Admin controls share a quiet palette and enough room for labels and values. */
.sidebar {
  height: 100dvh;
  min-height: 0;
  align-self: start;
  overflow: hidden;
  padding: 28px 22px 24px;
}
.sidebar .wordmark,
.nav-caption,
.side-bottom {
  flex-shrink: 0;
}
.sidebar .nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.side-bottom {
  margin-top: 16px;
  padding-top: 0;
}
.lock-note {
  padding-top: 16px;
  line-height: 1.9;
}
.sidebar .wordmark {
  margin-bottom: 24px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  padding: 13px 16px;
  line-height: 1.6;
}
textarea {
  min-height: 112px;
}
.field-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.field-row > label {
  min-width: 0;
}
.control-help {
  display: block;
  color: #83949d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  margin-top: 8px;
}
.writing-guide {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.writing-guide summary {
  font-size: 13px;
}
.writing-guide summary span {
  color: #92a0a7;
  font-size: 11px;
  margin-left: 8px;
}
.writing-guide > p {
  margin: 12px 0;
}
.field-editor-head h3 {
  margin-bottom: 10px;
  font-size: 16px;
}
.field-editor-head {
  flex-wrap: wrap;
}
.field-editor input[type="checkbox"] {
  accent-color: #64838d;
  width: 16px;
  height: 16px;
}
.field-editor .permission-check {
  margin: 20px 0;
}
.field-editor-head .actions {
  margin-bottom: 10px;
}
.select-control {
  position: relative;
  min-width: 0;
  width: 100%;
  margin-top: 7px;
}
.select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none;
  clip-path: inset(50%);
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dce3e7;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}
.select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-trigger > svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #7c929c;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.select-trigger:hover {
  border-color: #afc8cf;
  background: #fbfdfd;
}
.select-trigger[aria-expanded="true"] {
  border-color: #9ebec8;
  background: #f6fafb;
}
.select-trigger:focus-visible {
  outline: 2px solid #b6d1d8;
  outline-offset: 2px;
}
.select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 7px;
  border: 1px solid #dce7ea;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 32px #19344a20;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1000;
  scrollbar-width: thin;
  box-sizing: border-box;
}
.select-option {
  position: relative;
  border-radius: 7px;
  padding: 11px 32px 11px 13px;
  cursor: pointer;
  line-height: 1.6;
  font-size: 13px;
}
.select-option small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: #8799a1;
  margin-top: 3px;
}
.select-option[aria-selected="true"] {
  background: #eef5f6;
  color: #365e6b;
}
.select-option[aria-selected="true"]:after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 12px;
  color: #6b919b;
}
.select-option.highlighted {
  background: #e8f1f3;
}
.select-option[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
.filterbar .select-control {
  width: 180px;
  margin-top: 0;
}
.filterbar .select-trigger {
  height: 100%;
}
.preview-field .select-control {
  margin-top: 8px;
}
#modal {
  max-height: calc(100dvh - 40px);
  overflow: auto;
  scrollbar-width: thin;
}
#modal .dialog-body {
  position: relative;
  padding: 32px;
}
#modal h2 {
  padding-right: 44px;
  margin-bottom: 18px;
  line-height: 1.5;
}
#modal .close,
.drawer-head .close {
  position: absolute;
  right: 22px;
  top: 24px;
  float: none;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
  width: 34px;
  height: 34px;
  flex: none;
}
#modal .close svg,
.drawer-head .close svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.drawer-head {
  position: relative;
  padding-right: 70px;
}
.qr-image {
  width: 220px;
  height: 220px;
  margin: 24px auto 16px;
}
.qr-caption {
  margin: 0 0 20px;
}
.qr-actions {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}
.qr-link {
  padding: 15px 18px;
  margin: 0;
  line-height: 1.8;
  text-align: center;
  background: #f6f9fa;
  border-radius: 9px;
  color: #78909b;
}
.dialog-body > .hint {
  margin-bottom: 20px;
}
@media (min-width: 761px) and (max-height: 820px) {
  .sidebar {
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .sidebar .wordmark {
    margin-bottom: 18px;
  }
  .nav-caption {
    margin-top: 6px;
  }
  .nav-button {
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 3px 0;
  }
  .side-bottom {
    margin-top: 12px;
  }
  .lock-note {
    padding-top: 12px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    height: auto;
    overflow: visible;
    padding: 18px;
  }
  .sidebar .wordmark {
    margin-bottom: 0;
  }
  .sidebar .nav {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }
  .side-bottom {
    display: block;
    margin: 8px 0 0;
    padding: 0;
  }
  .lock-note {
    padding-top: 8px;
    border-top: 0;
    font-size: 10px;
  }
  .lock-note br {
    display: none;
  }
  .filterbar .select-control {
    width: calc(50% - 6px);
  }
  #modal .dialog-body {
    padding: 26px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

.select-menu::-webkit-scrollbar{width:6px}.select-menu::-webkit-scrollbar-thumb{background:#c9dadd;border-radius:8px}.select-menu::-webkit-scrollbar-track{background:#f7fafb}
@media(max-height:750px){#modal .dialog-body:has(.qr-image){padding:26px 30px}#modal .qr-image{width:180px;height:180px;margin:16px auto 12px}#modal .qr-caption{margin-bottom:16px}#modal .qr-actions{margin-bottom:20px}#modal .qr-link{padding:12px 16px}}
.topbar-profile{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:inherit;padding:6px 10px;border-radius:12px;cursor:pointer}.topbar-profile:hover{background:#edf3f4}.topbar-profile small{color:#718a96;font-size:12px}.topbar-profile>span:nth-child(2){max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar-letter img,.personal-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.avatar-letter{overflow:hidden}.personal-profile{margin-bottom:24px}.personal-profile>p{margin-bottom:24px}.personal-profile form{max-width:620px}.profile-settings-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.personal-avatar{width:80px;height:80px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#edf3f4;color:#547782;font-size:30px;overflow:hidden}.avatar-file-label{position:relative;cursor:pointer}.avatar-file-label input{position:absolute;width:1px;height:1px;opacity:0}.avatar-file-label:focus-within{outline:2px solid #b6ced7;outline-offset:3px}.profile-settings-row>.muted{font-size:13px}.personal-profile .error-text:empty{display:none}
.staff-card small{display:block;line-height:1.8}.staff-card .top>div{min-width:0}.staff-card h3,.staff-card small{overflow-wrap:anywhere}.delete-account{color:#a76861}.staff-card .actions{row-gap:12px}

/* Horizontal brand artwork keeps its original proportions. */
.image-slot-logo .image-preview { width: 190px; height: 100px; flex: 0 0 190px; aspect-ratio: auto; padding: 14px; }
.image-slot-logo .brand-lockup { width: 100%; }
@media (max-width: 780px) { .image-slot-logo .image-preview { width: 140px; height: 80px; flex-basis: 140px; } }
/* Full lockup only in the login brand panel, compact in navigation. */
.login-brand .wordmark{width:100%;max-width:460px}
.login-brand .brand-signature{margin-bottom:24px}
@media(max-width:760px){.login-brand .brand-signature{margin-inline:auto;max-width:240px}}
