:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --text: #1d2735;
  --muted: #657386;
  --line: #dfe6ef;
  --line-soft: #ebf0f6;
  --primary: #1f6feb;
  --primary-weak: #e9f2ff;
  --green: #16835a;
  --green-weak: #e8f6ef;
  --amber: #9d6500;
  --amber-weak: #fff3d9;
  --red: #c3342b;
  --red-weak: #ffe9e7;
  --cyan: #007c89;
  --cyan-weak: #e3f8fb;
  --shadow: 0 12px 28px rgba(35, 49, 72, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.boot-screen {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 100vh;
  justify-content: center;
}

.boot-mark,
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #22364f;
  font-weight: 800;
  object-fit: cover;
}

.boot-mark {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.boot-screen strong,
.boot-screen span {
  display: block;
}

.boot-screen span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  padding: 20px;
  place-items: center;
  background: var(--bg);
}

.login-panel {
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.login-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-button {
  width: 100%;
  justify-content: center;
}

.login-error {
  margin-bottom: 14px;
  border-color: #ffd1cc;
  color: #9d2720;
  background: #fff5f4;
}

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-section {
  margin-top: 20px;
}

.nav-title {
  margin: 0 8px 8px;
  color: #7a8798;
  font-size: 12px;
  font-weight: 800;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  color: #3c4858;
  background: transparent;
  text-align: left;
}

.nav-item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-weak);
  font-weight: 800;
}

.nav-parent {
  cursor: pointer;
}

.nav-parent.active {
  color: #314154;
  background: #f3f6fa;
}

.nav-group {
  margin-top: 4px;
}

.subnav {
  display: grid;
  gap: 4px;
  margin: 6px 0 0 28px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.subnav-item {
  min-height: 34px;
  font-size: 13px;
}

.subnav-item svg {
  width: 16px;
  height: 16px;
}

.main {
  min-width: 0;
  padding: 22px 28px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  line-height: 1;
  border-radius: 50%;
  color: #ffffff;
  background: #31465f;
  font-size: 13px;
  font-weight: 800;
  object-fit: cover;
  text-align: center;
}

.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 30px;
}

.avatar-shell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #31465f;
}

.avatar-shell.large {
  width: 64px;
  height: 64px;
}

.avatar-shell .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avatar-shell.large .avatar {
  font-size: 30px;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  z-index: 0;
  line-height: 1;
}

.avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.avatar-image.loaded {
  opacity: 1;
}

.account > div strong {
  display: block;
  font-size: 13px;
}

.account > div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-list-header {
  align-items: center;
  flex-wrap: wrap;
}

.panel-title-group {
  flex: 1 1 220px;
  min-width: 180px;
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 999 1 620px;
  gap: 10px;
  min-width: min(100%, 620px);
}

.project-controls .search {
  flex: 1 1 260px;
  width: auto;
  min-width: 220px;
}

.project-controls .control {
  flex: 0 0 132px;
  min-width: 132px;
}

.project-controls .btn {
  flex: 0 0 auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search svg {
  width: 17px;
  height: 17px;
  color: #778498;
}

.search input {
  width: 100%;
  min-width: 120px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.control,
.input,
.textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
}

.control:disabled,
.input:disabled,
.textarea:disabled {
  color: #7a8798;
  border-color: #d9e1eb;
  background: #eef2f7;
  cursor: not-allowed;
  -webkit-text-fill-color: #7a8798;
}

.control,
.input {
  min-height: 38px;
  padding: 0 10px;
}

.input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
  background: #fff8f7;
}

.input:invalid:not(:placeholder-shown) + .form-hint {
  color: var(--red);
}

.control {
  min-width: 136px;
}

.textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.btn.secondary {
  color: #314154;
  border-color: var(--line);
  background: var(--surface);
}

.btn.ghost {
  color: var(--primary);
  border-color: transparent;
  background: var(--primary-weak);
}

.btn.danger {
  color: var(--red);
  border-color: #ffd1cc;
  background: var(--red-weak);
}

.btn.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.56;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.project-list-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat {
  padding: 16px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title-stack {
  min-width: 0;
}

.project-detail-header .row-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.panel-header h2 {
  margin: 0;
  font-size: 15px;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-description {
  max-width: min(720px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-body {
  padding: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: #6d7a8b;
  background: #fbfcff;
  font-size: 12px;
  font-weight: 800;
}

.th-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-search {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 128px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-search svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.mini-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.table-head-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-head-control .mini-search {
  width: 180px;
  height: 30px;
}

tr.selected {
  background: #f4f8ff;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f7fbff;
}

.clickable-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.name-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 170px;
}

.version-title,
.version-dialog-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.link-button.draft-version {
  color: var(--amber);
}

.name-stack span,
.subtext {
  color: var(--muted);
  font-size: 12px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  color: #415169;
  background: #eef2f7;
}

.badge.release {
  color: var(--primary);
  background: var(--primary-weak);
}

.badge.draft {
  color: var(--amber);
  background: var(--amber-weak);
}

.badge.ok {
  color: var(--green);
  background: var(--green-weak);
}

.badge.danger {
  color: var(--red);
  background: var(--red-weak);
}

.status.ok {
  color: var(--green);
  background: var(--green-weak);
}

.status.warn {
  color: var(--amber);
  background: var(--amber-weak);
}

.status.err {
  color: var(--red);
  background: var(--red-weak);
}

.status.info {
  color: var(--cyan);
  background: var(--cyan-weak);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.push-actions {
  margin-left: auto;
}

.summary {
  padding: 16px;
}

.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.summary h3 {
  margin: 0;
  font-size: 18px;
}

.summary p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.kv-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.kv-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kv-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.preview-card {
  overflow: hidden;
}

.preview-visual {
  min-height: 220px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.11), rgba(0, 124, 137, 0.08)), #f7fafc;
}

.browser-frame {
  height: 184px;
  border: 1px solid #c8d3e1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(42, 58, 84, 0.13);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid #e6ebf2;
  background: #f4f6fa;
}

.browser-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8c2d0;
}

.mock-page {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 156px;
}

.mock-side {
  padding: 12px;
  background: #243b5a;
}

.mock-side div {
  height: 9px;
  margin-bottom: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
}

.mock-side div:nth-child(2),
.mock-side div:nth-child(4) {
  width: 68%;
  opacity: 0.52;
}

.mock-content {
  padding: 14px;
}

.mock-title {
  width: 44%;
  height: 14px;
  margin-bottom: 13px;
  border-radius: 4px;
  background: #2f69c7;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.mock-tile {
  height: 42px;
  border-radius: 7px;
  background: #eef4fb;
}

.mock-line {
  height: 8px;
  margin-top: 8px;
  border-radius: 3px;
  background: #d8e0eb;
}

.mock-line.short {
  width: 62%;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.form-row label {
  color: #445167;
  font-size: 12px;
  font-weight: 800;
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.file-drop {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 132px;
  padding: 16px;
  border: 1px dashed #a9b8ca;
  border-radius: var(--radius);
  background: #fbfdff;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.file-drop strong svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.file-drop p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.file-name {
  display: block;
  margin-top: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.progress {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8edf4;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.2s ease;
}

.empty {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

.log-list {
  display: grid;
  gap: 0;
}

.log-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.log-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-weak);
}

.log-icon svg {
  width: 14px;
  height: 14px;
}

.log-item strong {
  display: block;
  font-size: 13px;
}

.log-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

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

.role-list {
  display: grid;
  gap: 0;
}

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.role-row:hover {
  background: #f7fbff;
}

.role-row strong,
.role-row span {
  display: block;
}

.role-row strong {
  font-size: 13px;
}

.role-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.section-caption {
  padding: 12px 16px 8px;
  color: #6d7a8b;
  font-size: 12px;
  font-weight: 800;
}

.split-panel {
  padding-bottom: 8px;
}

.role-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.meter {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.meter strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.meter small {
  color: var(--muted);
  font-size: 12px;
}

.meter-bar {
  height: 9px;
  margin: 12px 0 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6ebf2;
}

.meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.group-list {
  display: grid;
  gap: 0;
}

.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.group-item strong,
.group-item span {
  display: block;
}

.group-item strong {
  font-size: 13px;
}

.group-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.group-meta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.toast span {
  color: var(--muted);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 28, 42, 0.36);
}

.dialog {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(18, 28, 42, 0.25);
}

.wide-dialog {
  width: min(720px, 100%);
}

.dialog header,
.dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.dialog header {
  border-bottom: 1px solid var(--line);
}

.dialog footer {
  border-top: 1px solid var(--line);
}

.dialog h3 {
  margin: 0;
  font-size: 16px;
}

.dialog main {
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 16px;
}

.dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.artifact-list {
  display: grid;
  gap: 10px;
}

.artifact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.api-note {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #d7e7ff;
  border-radius: var(--radius);
  color: #2f4f7d;
  background: #f3f8ff;
  font-size: 12px;
  line-height: 1.5;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.profile-summary strong,
.profile-summary > div > span {
  display: block;
}

.profile-summary > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-title,
  .nav-item {
    width: auto;
  }

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

@media (max-width: 760px) {
  .main {
    padding: 18px 14px 26px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
  }

  .filters,
  .project-controls,
  .search,
  .control,
  .btn {
    width: 100%;
  }

  .project-controls {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .project-controls .search,
  .project-controls .control,
  .project-controls .btn {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .group-item,
  .group-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .admin-grid,
  .split-panel,
  .kv,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-description {
    max-width: 100%;
  }

  .project-detail-header .row-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .mock-page {
    grid-template-columns: 86px 1fr;
  }

  table {
    min-width: 760px;
  }
}
