:root {
  --bg: #f7f9fb;
  --shell: #ffffff;
  --panel: #ffffff;
  --line: #edf1f4;
  --line-strong: #e4eaee;
  --text: #22313f;
  --muted: #8b98a7;
  --accent: #34b28a;
  --accent-soft: #e6f6f0;
  --sand: #fbf2de;
  --lilac: #efebff;
  --coral: #fff0ea;
  --mint: #e5f7f1;
  --danger: #eb6572;
  --shadow: 0 18px 45px rgba(32, 57, 76, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(225, 245, 239, 0.85), transparent 22%),
    radial-gradient(circle at bottom left, rgba(255, 243, 231, 0.85), transparent 18%),
    var(--bg);
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 252, 250, 0.9) 42%, rgba(217, 248, 240, 0.78) 100%),
    radial-gradient(circle at 80% 18%, rgba(204, 246, 236, 0.9), transparent 26%),
    radial-gradient(circle at 16% 28%, rgba(237, 248, 248, 0.95), transparent 26%),
    #f7fbfa;
  overflow: hidden;
}

.login-stage {
  width: min(1180px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  align-items: center;
  gap: 92px;
}

.login-stage::after {
  content: "";
  position: fixed;
  right: -80px;
  bottom: -110px;
  width: 760px;
  height: 420px;
  border-top: 1px solid rgba(128, 221, 205, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.login-card,
.panel,
.stat-card,
.quick-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(232, 237, 241, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.login-card {
  width: 100%;
  padding: 54px 42px 40px;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(52, 88, 99, 0.12);
}

.login-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.login-brand .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 25px;
}

.login-brand h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.1;
  color: #142328;
}

.login-form {
  display: grid;
  gap: 20px;
}

.login-form label {
  gap: 10px;
  font-size: 15px;
  color: #6f7c84;
}

.login-input {
  position: relative;
}

.login-input input {
  height: 56px;
  padding-left: 54px;
  border-radius: 16px;
  border-color: #dfe8ea;
  font-size: 16px;
  color: #243238;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 1;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid #a8b8bf;
  border-radius: 7px;
  color: #50636b;
  font-size: 11px;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border-radius: 16px;
  font-size: 16px;
}

.login-visual {
  min-height: 480px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.login-visual img {
  width: min(520px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 38px 70px rgba(63, 203, 180, 0.16));
}

.brand-row,
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3bbb96, #2a9878);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(52, 178, 138, 0.28);
}

.brand-row h1,
.logo-block strong {
  margin: 0;
}

.brand-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  gap: 0;
}

.sidebar {
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.logo-block {
  padding: 8px 8px 18px;
  flex-wrap: nowrap;
  min-width: 0;
}

.logo-block small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.logo-block strong {
  display: block;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.15;
}

.menu {
  display: grid;
  gap: 6px;
}

.menu button,
.ghost-btn,
.primary-btn,
.quick-card {
  border: 0;
  cursor: pointer;
  transition: 0.18s ease;
}

.menu button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  color: #5c6c7c;
  font-size: 14px;
  font-weight: 500;
}

.menu button.active,
.menu button:hover {
  color: #2a9677;
  background: var(--accent-soft);
}

.main-panel {
  padding: 20px 24px 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 2px 10px;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-chip,
#current-user {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #6b7886;
  font-size: 13px;
}

.section { display: none; }
.section.active { display: block; }

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-height: 136px;
  padding: 18px 20px;
}

.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-head h3,
.panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #607181;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: #78889a;
  font-size: 15px;
}

.stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-card span {
  color: #8d9aab;
  font-size: 13px;
}

.mint { background: linear-gradient(180deg, #ebfaf5 0%, #ffffff 100%); }
.sand { background: linear-gradient(180deg, #fdf6e7 0%, #ffffff 100%); }
.lilac { background: linear-gradient(180deg, #f2efff 0%, #ffffff 100%); }
.coral { background: linear-gradient(180deg, #fff1ea 0%, #ffffff 100%); }

.panel {
  padding: 18px 20px;
  margin-top: 18px;
}

.panel.narrow {
  max-width: 780px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.job-status {
  font-size: 12px;
  min-height: 18px;
}

.filter-drawer {
  margin: 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}

.filter-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #607181;
}

.filter-drawer summary::-webkit-details-marker {
  display: none;
}

.filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.panel-link {
  color: #88a1b4;
  font-size: 13px;
}

.split {
  display: grid;
  gap: 18px;
  grid-template-columns: 388px 1fr;
}

.proxy-layout {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.unified-proxy-create-form,
.unified-proxy-edit-form {
  align-items: end;
}

.unified-proxy-edit-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.unified-proxy-edit-form[hidden] {
  display: none !important;
}

.unified-proxy-create-form .button-row,
.unified-proxy-edit-form .button-row {
  min-height: 44px;
  align-items: center;
}

.unified-proxy-edit-form .button-row {
  justify-content: flex-end;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #bfe6d8;
  box-shadow: 0 0 0 4px rgba(82, 186, 149, 0.08);
}

textarea {
  resize: vertical;
}

.binding-title {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.binding-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.binding-panel {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(250, 252, 252, 0.72);
  padding: 14px;
}

.binding-panel > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.binding-panel input[type="text"] {
  height: 36px;
  border-radius: 10px;
  padding: 8px 12px 8px 34px;
  background:
    linear-gradient(transparent, transparent),
    #fff;
}

.binding-panel {
  position: relative;
}

.binding-panel::before {
  content: "⌕";
  position: absolute;
  top: 53px;
  left: 27px;
  z-index: 1;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.search-options {
  display: grid;
  gap: 8px;
  max-height: 166px;
  margin-top: 10px;
  overflow: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 134, 150, 0.45) transparent;
}

.search-options::-webkit-scrollbar {
  width: 6px;
}

.search-options::-webkit-scrollbar-track {
  background: transparent;
}

.search-options::-webkit-scrollbar-thumb {
  background: rgba(119, 134, 150, 0.35);
  border-radius: 999px;
}

.search-options:empty {
  display: none;
}

.search-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.search-option:hover,
.search-option.active {
  background: linear-gradient(135deg, rgba(226, 246, 238, 0.98), rgba(211, 241, 231, 0.88));
}

.search-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid #b9c7cf;
  border-radius: 4px;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
}

.search-option.active .search-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.search-text {
  min-width: 0;
}

.search-option strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.search-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.search-option mark {
  border-radius: 3px;
  background: #fff0a8;
  color: inherit;
  padding: 0 2px;
}

.binding-count {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.button-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.certificate-request-form {
  align-items: end;
}

.certificate-request-form .button-row {
  grid-column: 1 / 2;
  margin-top: 6px;
}

.certificate-request-form .primary-btn {
  min-width: 88px;
}

.certificate-request-log {
  min-height: 204px;
  max-height: 360px;
  overflow: auto;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.managed-hero {
  display: grid;
  gap: 18px;
}

.managed-domain-form {
  align-items: end;
}

.managed-domain-form .button-row {
  grid-column: 1 / -1;
}

.dns-provider-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfdff;
  color: #526477;
}

.dns-provider-card strong {
  color: var(--text);
}

.table-search {
  width: min(320px, 100%);
  height: 40px;
}

.request-log-row {
  display: grid;
  grid-template-columns: 10px 90px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  border-bottom: 1px dashed var(--line-strong);
  color: #425468;
  font-size: 13px;
}

.request-log-row:last-child {
  border-bottom: 0;
}

.request-log-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.request-log-row.running .request-log-dot {
  background: #42a5f5;
}

.request-log-row.failed .request-log-dot {
  background: var(--danger);
}

.request-log-time {
  color: #7890a5;
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.request-log-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.embedded-pipeline-editor {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pipeline-preview {
  min-height: 96px;
  max-height: 180px;
  margin-top: 12px !important;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.field-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.field-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.whitelist-box {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.whitelist-search {
  width: calc(100% - 28px);
  height: 36px;
  margin: 12px 14px 8px;
  border-radius: 8px;
}

.whitelist-results,
.whitelist-selected {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 4px 14px 14px;
}

.whitelist-results {
  max-height: 190px;
}

.whitelist-selected {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid #edf2f6;
  background: #fbfcfd;
  max-height: 150px;
}

.whitelist-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.whitelist-result:hover {
  background: linear-gradient(135deg, rgba(226, 246, 238, 0.98), rgba(211, 241, 231, 0.88));
}

.whitelist-result small {
  color: var(--accent);
  font-weight: 700;
}

.whitelist-result.selected {
  background: #f4f6f8;
  color: #6b7a89;
}

.whitelist-result.selected small {
  color: #96a1aa;
}

.whitelist-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  border: 1px solid #d7e8e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 7px 8px 7px 10px;
}

.whitelist-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitelist-chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #eef6f3;
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.whitelist-empty {
  padding: 8px 0 0;
}

.primary-btn,
.ghost-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
}

.primary-btn {
  background: linear-gradient(135deg, #32af89, #2d9b7a);
  color: #fff;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(50, 175, 137, 0.22);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.table-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ghost-btn {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: #6b7a89;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #f1f4f7;
  border-radius: 16px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.domain-monitor-table {
  min-width: 0;
  table-layout: fixed;
}

.domain-monitor-table th,
.domain-monitor-table td {
  word-break: break-word;
}

.sort-header {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.domain-monitor-table th:nth-child(1),
.domain-monitor-table td:nth-child(1) {
  width: 16%;
}

.domain-monitor-table th:nth-child(2),
.domain-monitor-table td:nth-child(2) {
  width: 13%;
}

.domain-monitor-table th:nth-child(3),
.domain-monitor-table td:nth-child(3) {
  width: 9%;
}

.domain-monitor-table th:nth-child(4),
.domain-monitor-table td:nth-child(4),
.domain-monitor-table th:nth-child(5),
.domain-monitor-table td:nth-child(5),
.domain-monitor-table th:nth-child(6),
.domain-monitor-table td:nth-child(6),
.domain-monitor-table th:nth-child(7),
.domain-monitor-table td:nth-child(7),
.domain-monitor-table th:nth-child(8),
.domain-monitor-table td:nth-child(8) {
  width: 8%;
}

.domain-monitor-table th:nth-child(9),
.domain-monitor-table td:nth-child(9) {
  width: 13%;
}

.domain-monitor-table th:nth-child(10),
.domain-monitor-table td:nth-child(10) {
  width: 9%;
}

.domain-monitor-table th:nth-child(11),
.domain-monitor-table td:nth-child(11) {
  width: 8%;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #f2f5f8;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  color: #8a98a8;
  background: #fbfcfd;
  font-weight: 600;
}

tbody tr:hover {
  background: #fcfefe;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(52, 178, 138, 0.1);
  color: #288d70;
}

.tag.warn {
  background: rgba(244, 183, 43, 0.14);
  color: #9a6d00;
}

.tag.danger {
  background: rgba(235, 101, 114, 0.12);
  color: #bf4452;
}

.tag.gray {
  background: rgba(118, 131, 144, 0.1);
  color: #617281;
}

.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-group button {
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(74, 115, 255, 0.08);
  color: #4a63d8;
  border: 0;
  cursor: pointer;
}

.action-group button.danger {
  background: rgba(235, 101, 114, 0.12);
  color: #c64a58;
}

.table-action {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  background: rgba(74, 115, 255, 0.08);
  color: #4a63d8;
  cursor: pointer;
}

.quick-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card {
  min-height: 112px;
  padding: 18px 20px;
  text-align: left;
  display: grid;
  gap: 8px;
  align-content: start;
}

.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: #6f7d8b;
  font-size: 16px;
}

.quick-card strong {
  font-size: 16px;
  font-weight: 700;
}

.quick-card small {
  font-size: 12px;
  color: #7f8d9c;
}

.checkbox-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #fcfdff;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-list input {
  width: auto;
}

.checkbox-list-tall {
  max-height: 240px;
}

.toast {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 20;
  max-width: min(520px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(28, 38, 48, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

pre.log-box {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.55;
  color: #304457;
  tab-size: 2;
}

.status-text {
  white-space: nowrap;
}

.mono {
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.cell-collapse {
  max-width: 100%;
}

.cell-collapse summary {
  list-style: none;
}

.cell-collapse summary::-webkit-details-marker {
  display: none;
}

.cell-summary {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.cell-detail {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fafc;
  color: #47596a;
  white-space: normal;
  word-break: break-all;
}

@media (max-width: 1180px) {
  .stats-grid,
  .quick-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .login-shell {
    padding: 22px;
  }

  .login-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-card {
    padding: 34px 24px 28px;
  }

  .login-brand {
    justify-content: flex-start;
  }

  .login-brand h1 {
    font-size: 26px;
  }

  .login-visual {
    min-height: 180px;
  }

  .login-visual img {
    width: min(360px, 88vw);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .menu button {
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .unified-proxy-edit-form .button-row {
    justify-content: flex-start;
  }

  .binding-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }
}
