:root {
  --blue: #2467ff;
  --blue-soft: #edf2ff;
  --ink: #12264b;
  --muted: #78859a;
  --line: #e7ebf2;
  --bg: #f4f7fc;
  --nav: #15243c;
  --green: #16866a;
  --red: #c34e55;
  --orange: #b67c22;
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
button svg {
  width: 16px;
  height: 16px;
}
.layout {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--nav);
  color: #b2bfd2;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  height: 83px;
  padding: 24px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: #fff;
}
.brandmark {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #416bed;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 23px;
}
.brand strong {
  font-size: 21px;
  letter-spacing: 1px;
}
.brand small {
  font-size: 10px;
  display: block;
  color: #8c9eb9;
  letter-spacing: 2px;
  margin-top: 3px;
}
.nav {
  overflow-y: auto;
  padding: 0 8px 20px;
  scrollbar-width: thin;
  scrollbar-color: #3d4b61 transparent;
  flex: 1;
}
.nav-label {
  padding: 19px 9px 8px;
  font-size: 10px;
  color: #71839f;
  letter-spacing: 1px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
  margin: 3px 0;
  border-radius: 7px;
  font-size: 12px;
}
.nav a:hover {
  background: #22344f;
  color: #fff;
}
.nav a.active {
  background: #315bdb;
  color: #fff;
  box-shadow: 0 3px 10px #0c18394d;
}
.sidebar-foot {
  padding: 14px 24px;
  border-top: 1px solid #2b3b52;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: #8e9db3;
}
.online-dot {
  display: inline-block;
  background: #42bd99;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-right: 6px;
}
.main-shell {
  margin-left: 232px;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: #43516a;
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.switcher {
  display: flex;
  padding: 3px;
  background: #f0f3f8;
  border-radius: 7px;
  font-size: 11px;
}
.switcher a {
  padding: 7px 11px;
  border-radius: 5px;
}
.switcher .selected {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px #20305012;
}
.icon-btn {
  border: 0;
  background: none;
  color: #738098;
  padding: 6px;
  border-radius: 5px;
}
.avatar {
  height: 31px;
  width: 31px;
  background: #eaf0ff;
  color: var(--blue);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.identity {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.identity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.preview-bar {
  padding: 8px 32px;
  background: #fffcf3;
  border-bottom: 1px solid #f0e7cf;
  color: #96763e;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.preview-bar svg {
  width: 14px;
  height: 14px;
}
main {
  padding: 28px 32px 35px;
  max-width: 1700px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 8px;
}
h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0.3px;
}
h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  line-height: 1.8;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 0;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #dfe5ef;
  padding: 9px 14px;
  border-radius: 6px;
  background: #fff;
  color: #4b5870;
  font-size: 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  border-color: #98afe9;
  color: var(--blue);
  background: #fafbff;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 7px #315bdb18;
}
.btn.primary:hover {
  background: #244dcb;
}
.btn.danger {
  color: var(--red);
}
.btn.small {
  padding: 6px 9px;
  font-size: 11px;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
  padding: 5px;
}
.link-btn.danger {
  color: var(--red);
}
.grid {
  display: grid;
  gap: 18px;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}
.stat,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 5px #26375602;
}
.stat {
  padding: 20px;
  position: relative;
}
.stat-label {
  font-size: 12px;
  color: #69778d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-icon {
  color: #6888d8;
  background: #f0f4ff;
  border-radius: 7px;
  padding: 8px;
  display: flex;
}
.stat-number {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 10px 0 9px;
}
.stat-number span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
  letter-spacing: 0;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
}
.stat-note strong {
  color: var(--green);
  font-weight: 500;
}
.progress {
  height: 4px;
  background: #edf1f7;
  border-radius: 3px;
  margin: 13px 0 9px;
  overflow: hidden;
}
.progress progress {
  appearance: none;
  border: 0;
  height: 4px;
  width: 100%;
  display: block;
}
.progress progress::-webkit-progress-bar {
  background: #edf1f7;
}
.progress progress::-webkit-progress-value {
  background: #577be4;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f2f6;
}
.panel-head small {
  color: var(--muted);
  font-size: 11px;
}
.panel-body {
  padding: 22px;
}
.dashboard-main {
  grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
  margin-bottom: 20px;
}
.welcome {
  border: 1px solid #dfe7f9;
  background: linear-gradient(110deg, #f0f4ff, #f9fbff);
  border-radius: 10px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.welcome p {
  margin: 7px 0 0;
  font-size: 12px;
  color: #7182a5;
}
.welcome-icon {
  color: #8aa3e2;
  background: #e1e9ff;
  border: 8px solid #eff3ff;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.welcome-icon svg {
  width: 30px;
  height: 30px;
}
.chart {
  padding: 20px 22px 10px;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 6px;
}
.legend-dot.mint {
  background: #66bda9;
}
.chart svg {
  width: 100%;
  height: 170px;
  margin-top: 10px;
}
.chart-days {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 13px 28px;
  color: #9aa5b5;
  font-size: 10px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick {
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.quick:hover {
  border-color: #a9bceb;
  background: #f9fbff;
}
.quick svg {
  color: var(--blue);
  margin-bottom: 10px;
}
.quick strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.quick small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.notice {
  padding: 11px 14px;
  background: #f7f9fd;
  border-radius: 7px;
  color: #78859b;
  font-size: 11px;
  line-height: 1.8;
}
.notice.warning {
  background: #fff9ee;
  color: #9c792f;
}
.notice.success {
  background: #edf8f4;
  color: var(--green);
}
.notice.danger {
  background: #fff1f1;
  color: var(--red);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #fafbfd;
  font-size: 11px;
  color: #8590a2;
  font-weight: 500;
  white-space: nowrap;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f6;
  color: #556279;
  line-height: 1.7;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcff;
}
td strong {
  font-weight: 500;
  color: #34435d;
}
td .secondary {
  font-size: 10px;
  color: #95a0b0;
  margin-top: 3px;
}
.title-cell {
  min-width: 220px;
  max-width: 370px;
  white-space: normal;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  background: #f0f3f8;
  color: #718097;
}
.tag.green {
  color: #198c70;
  background: #eaf7f1;
}
.tag.blue {
  color: #456ccc;
  background: #edf2ff;
}
.tag.orange {
  color: #b4822e;
  background: #fff7e7;
}
.tag.red {
  color: #c65c61;
  background: #fff0f0;
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.search {
  position: relative;
  max-width: 330px;
  flex: 1;
  min-width: 180px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: #96a0b2;
}
.search input {
  padding-left: 35px;
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #fff;
  color: #44516a;
  padding: 10px 11px;
  font-size: 12px;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #dce6ff;
  border-color: #8da6e7;
}
input[type='checkbox'] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  padding: 0;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.8;
}
.toolbar select {
  max-width: 175px;
}
.toolbar .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.table-foot {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
.tab {
  border: none;
  background: none;
  padding: 16px 0 13px;
  color: #7e8b9f;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #52607a;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.field input,
.field textarea,
.field select {
  width: 100%;
}
.field .check-option input {
  width: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 20px;
}
.step {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
}
.step-num {
  background: #edf2ff;
  color: var(--blue);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  flex-shrink: 0;
}
.step p {
  font-size: 12px;
  margin: 2px 0;
  color: var(--muted);
}
.step strong {
  font-size: 12px;
}
.check-list {
  display: grid;
  gap: 9px;
  max-height: 240px;
  overflow: auto;
  padding: 2px;
}
.check-option {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px;
  font-size: 12px;
}
.check-option:has(input:checked) {
  border-color: #8fa9eb;
  background: #f5f8ff;
}
.check-option small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.check-option.disabled {
  opacity: 0.55;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin: 13px 0;
  color: #7c899c;
}
.summary-row strong {
  color: var(--ink);
}
.summary-row.total {
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.day-name {
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.day {
  min-height: 115px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.muted {
  background: #fafbfd;
  color: #c2c9d3;
}
.day.today {
  background: #f4f7ff;
}
.day-number {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 5px;
}
.today .day-number {
  background: var(--blue);
  color: #fff;
}
.calendar-event {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #edf2ff;
  color: #4b6bb5;
  border: 0;
  border-left: 2px solid #6281d2;
  text-align: left;
  font-size: 10px;
  border-radius: 3px;
  padding: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.asset {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
}
.asset-image {
  height: 160px;
  background: #e6ecfb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.asset-image svg {
  height: 52px;
  width: 52px;
  color: #90a6d8;
}
.asset-image.mint {
  background: #e1f0eb;
}
.asset-image.mint svg {
  color: #83b3a4;
}
.asset-image.sand {
  background: #f3ecde;
}
.asset-image.sand svg {
  color: #c7b78f;
}
.asset-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-caption {
  padding: 16px;
}
.asset-caption p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.empty {
  text-align: center;
  padding: 50px 22px;
  color: var(--muted);
}
.empty svg {
  width: 40px;
  height: 40px;
  color: #a2b2cc;
  margin-bottom: 16px;
}
.empty h3 {
  color: #536581;
}
.empty p {
  font-size: 12px;
  max-width: 510px;
  margin: 10px auto 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-item {
  padding: 13px;
  background: #f8fafc;
  border-radius: 7px;
  overflow-wrap: anywhere;
}
.detail-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-item strong {
  font-size: 13px;
  font-weight: 500;
}
.article-body {
  white-space: pre-wrap;
  line-height: 2;
  font-size: 13px;
  color: #526077;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  border-left: 1px solid #dce5f2;
  padding: 0 0 18px 18px;
  position: relative;
  font-size: 12px;
  color: #748199;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  background: #7693d8;
  border-radius: 50%;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.space-top {
  margin-top: 20px;
}
.spaced {
  margin-bottom: 20px;
}
.muted-text {
  color: var(--muted);
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
}
.permission-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 0;
}
.permission-list label {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
}
.login-hero {
  background: #15243c;
  color: #fff;
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-hero h1 {
  font-size: 40px;
  line-height: 1.55;
}
.login-hero p {
  color: #91a5c6;
  font-size: 14px;
}
.login-hero .brand {
  padding: 0;
  margin-bottom: 70px;
}
.login-form {
  max-width: 430px;
  width: 100%;
  margin: auto;
  padding: 30px;
}
.login-form h1 {
  font-size: 25px;
  margin-bottom: 15px;
}
.login-form .field {
  margin: 20px 0;
}
.login-form .btn {
  width: 100%;
  margin-top: 10px;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(730px, 94vw);
  max-height: 90vh;
  box-shadow: 0 24px 90px #12223840;
  color: var(--ink);
}
dialog::backdrop {
  background: #10213b14;
  backdrop-filter: none;
}
.modal-head {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-body {
  padding: 24px;
  overflow-wrap: anywhere;
}
.modal-body .stats {
  grid-template-columns: 1fr 1fr;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #20324d;
  color: #fff;
  border-radius: 8px;
  padding: 13px 22px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: 90vw;
  font-size: 13px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #aa4248;
}
.skip-link {
  position: fixed;
  top: -60px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 5px;
}
.mobile-menu {
  display: none;
}
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  color: #a1abba;
  font-size: 10px;
}
.inline-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
}
.hide {
  display: none !important;
}
.wide-text {
  min-width: 160px;
  max-width: 300px;
}
.settings-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
.badge-number {
  border-radius: 4px;
  background: #edf2ff;
  color: var(--blue);
  padding: 2px 6px;
  font-size: 10px;
}
.audit-note {
  max-width: 270px;
  overflow-wrap: anywhere;
}
.money {
  font-variant-numeric: tabular-nums;
}
.member-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.member-banner .avatar {
  height: 48px;
  width: 48px;
  font-size: 20px;
}
.member-banner h2 {
  margin-bottom: 6px;
}
.page-head .actions select {
  max-width: 190px;
}
@media (min-width: 1500px) {
  .sidebar {
    width: 246px;
  }
  .main-shell {
    margin-left: 246px;
  }
  .nav a {
    padding: 11px 9px;
    font-size: 13px;
  }
  .nav-label {
    font-size: 11px;
  }
  .stat {
    padding: 23px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .preview-bar {
    padding: 8px 20px;
  }
  .sidebar {
    width: 208px;
  }
  .main-shell {
    margin-left: 208px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 15px;
  }
  .stat-number {
    font-size: 26px;
  }
  .dashboard-main {
    grid-template-columns: 1.5fr 1fr;
  }
  .identity span {
    display: none;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 230px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #11203866;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
    gap: 5px;
  }
  .top-actions {
    gap: 5px;
  }
  .breadcrumb {
    display: none;
  }
  .preview-bar {
    padding: 8px 15px;
    font-size: 10px;
  }
  .preview-bar span {
    line-height: 1.6;
  }
  main {
    padding: 22px 15px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 22px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-main,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .welcome {
    padding: 18px;
  }
  .welcome-icon {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .asset-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .asset-image {
    height: 120px;
  }
  .panel-body {
    padding: 18px;
  }
  .panel-head {
    padding: 17px;
  }
  .day {
    min-height: 80px;
    padding: 4px;
  }
  .calendar-event {
    font-size: 9px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-hero {
    display: none;
  }
  .login-form {
    margin: 12vh auto;
  }
  .tabs {
    gap: 18px;
    overflow: auto;
  }
  .tab {
    white-space: nowrap;
  }
  .footer {
    gap: 12px;
    line-height: 1.7;
  }
  .table-foot {
    gap: 8px;
  }
  .switcher a {
    padding: 7px 8px;
  }
  .page-head .actions {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.cm-image-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}
.asset-image.cm-gallery-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
}
.cm-gallery-image img {
  position: absolute;
  inset: 0;
  object-position: center;
}
.cm-record-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cm-record-name input,
.cm-patterns input {
  width: auto;
}
.cm-chips,
.cm-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}
.cm-six {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cm-six textarea {
  min-height: 120px;
}
.field.actions {
  flex-direction: row;
  justify-content: flex-start;
}
.field[hidden] {
  display: none;
}
.cm-patterns {
  padding: 12px 0;
}
.cm-patterns label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f3f6fc;
  border-radius: 8px;
}
.cm-original {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: auto;
  object-fit: contain;
}
dialog.cm-wide {
  width: min(1120px, 94vw);
  max-width: 94vw;
}
dialog.cm-fullscreen {
  width: 98vw;
  max-width: 98vw;
  height: 96vh;
  max-height: 96vh;
}
.asset-caption h3 a {
  color: inherit;
  text-decoration: none;
}
.asset-caption .actions {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .cm-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .cm-six {
    grid-template-columns: 1fr;
  }
}
.member-diagnosis {
  padding: 28px;
}
.member-diagnosis-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 30px;
}
.member-diagnosis-platforms label {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe5f7;
  border-radius: 9px;
  padding: 12px 18px;
  cursor: pointer;
}
.member-diagnosis-platforms label:has(input:checked) {
  background: #edf4ff;
  border-color: #2d68ff;
  color: #2460eb;
}
.member-diagnosis-fields {
  display: grid;
  gap: 26px;
}
.member-diagnosis-fields textarea {
  min-height: 150px;
}
.member-diagnosis-fields fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.member-diagnosis-fields legend {
  font-weight: 600;
  margin-bottom: 16px;
}
.member-diagnosis-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.member-diagnosis-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid #dbe5f7;
  border-radius: 9px;
  cursor: pointer;
}
.member-diagnosis-options label:has(input:checked) {
  background: #edf4ff;
  border-color: #2d68ff;
  color: #2460eb;
}
.member-diagnosis input[type='checkbox'],
.member-diagnosis input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: #2864ff;
}

/* Member self-registration uses the existing login visual language. */
#member-register-form .field { margin: 0; font-size: 14px; }
#member-register-form .form-grid { gap: 16px; }
#member-register-form input { min-width: 0; }
#member-register-form .inline-error { margin: 12px 0; }
