@font-face {
  font-family: "Inter";
  src: url("https://login.tailscale.com/admin/assets/Inter.var.latin-BOdmb5fF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://login.tailscale.com/admin/assets/Inter.var.italic.latin-4waNPkyx.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --bg: rgb(242 246 251);
  --surface: rgb(255 255 255);
  --surface-soft: rgb(250 249 248);
  --surface-muted: rgb(249 247 246);
  --text: rgb(35 34 34);
  --text-muted: rgb(112 110 109);
  --text-light: rgb(175 172 171);
  --border: rgb(238 235 234);
  --border-strong: rgb(218 214 213);
  --border-hover: rgb(175 172 171);
  --blue: rgb(75 112 204);
  --blue-hover: rgb(63 93 179);
  --blue-soft: rgb(240 245 255);
  --green: rgb(14 98 69);
  --green-soft: rgb(239 255 237);
  --gray-badge: rgb(247 245 244);
  --gray-text: rgb(68 67 66);
  --red: rgb(148 8 33);
  --red-soft: rgb(255 246 244);
  --yellow-soft: rgb(252 249 233);
  --shadow-soft: 0 4px 12px 0 rgba(0, 0, 0, 0.03);
  --shadow-button: 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-dialog: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% -8%, rgba(75, 112, 204, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 6%, rgba(14, 98, 69, 0.08), transparent 28rem),
    linear-gradient(180deg, rgb(247 250 253), var(--bg) 34rem);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgb(255 255 255);
  color: rgb(35 34 34);
  padding: 31px 24px 32px;
}

.login-card {
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: rgb(35 34 34);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-brand-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.login-email-form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.login-email-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgb(32 33 36 / 0.25);
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: rgb(35 34 34);
  font-size: 16px;
  outline: none;
}

.login-email-input:focus {
  border-color: rgb(26 115 232);
  box-shadow: 0 0 0 1px rgb(26 115 232);
}

.login-primary-button {
  height: 42px;
  border: 1px solid rgb(73 70 69);
  border-radius: 4px;
  background: rgb(73 70 69);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}

.login-primary-button:hover {
  background: rgb(55 53 52);
}

.login-divider {
  margin: 24px 0 17px;
  color: rgb(112 110 109);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

.login-provider-button {
  position: relative;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgb(218 214 213);
  border-radius: 4px;
  background: #fff;
  color: rgb(35 34 34);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.login-provider-button:hover {
  background: rgb(250 249 248);
  border-color: rgb(196 191 190);
}

.provider-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.provider-google {
  color: #4285f4;
  font-family: Arial, sans-serif;
}

.provider-image-icon {
  object-fit: contain;
}

.provider-microsoft {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
}

.provider-microsoft span {
  display: block;
  width: 8px;
  height: 8px;
}

.provider-microsoft span:nth-child(1) { background: #f25022; }
.provider-microsoft span:nth-child(2) { background: #7fba00; }
.provider-microsoft span:nth-child(3) { background: #00a4ef; }
.provider-microsoft span:nth-child(4) { background: #ffb900; }

.provider-github,
.provider-apple,
.provider-passkey {
  color: #111;
  font-size: 18px;
}

.login-first-time {
  margin: 47px 0 0;
  color: rgb(72 70 69);
  text-align: center;
  font-size: 13px;
}

.login-first-time a,
.login-legal a {
  color: rgb(93 91 90);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-legal {
  margin: 48px -56px 0;
  color: rgb(112 110 109);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .login-page {
    padding-top: 24px;
  }

  .login-legal {
    margin-left: 0;
    margin-right: 0;
  }
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(75, 112, 204, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 112, 204, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.site-header {
  width: 100%;
  background: rgba(247, 250, 253, 0.88);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner,
.top-nav-row,
.page-shell {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell-wide {
  width: calc(100% - 32px);
  max-width: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.support-chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.support-chip {
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
}

.support-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #9aa9c0;
  border-radius: 999px;
  color: #67758b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.user-chip {
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.support-chip:hover,
.user-chip:hover {
  border-color: var(--border-hover);
  background: var(--surface-soft);
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.avatar-initials {
  background: linear-gradient(135deg, rgb(47 111 237), rgb(14 98 69));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-nav-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 2px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.top-nav-item:hover {
  color: var(--blue-hover);
}

.top-nav-item.active {
  color: var(--blue);
}

.top-nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
}

.top-nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 16px;
}

.top-nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell {
  padding: 28px 0 64px;
}

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

.page-title {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.panel,
.card,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-panel {
  position: relative;
  padding: 22px 22px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(circle at 84% 24%, rgba(75, 112, 204, 0.05), transparent 18%),
    radial-gradient(circle at 90% 78%, rgba(75, 112, 204, 0.035), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(249,247,246,0.8));
}

.insights-shell {
  margin-top: 14px;
}

.insights-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.insights-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insights-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

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

.hero-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.hero-action-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-action-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-action strong {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-action p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.hero-action span:last-child {
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

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

.toolbar-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--shadow-button);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--surface-muted);
  border-color: var(--border-hover);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: #93b4f7;
  border-color: #93b4f7;
  color: white;
}

.btn-danger {
  background: var(--surface);
  color: var(--red);
  border-color: rgb(255 211 207);
}

.btn-success {
  background: #0f9d68;
  border-color: #0f9d68;
  color: white;
}

.btn-success:hover {
  background: #0c8659;
  border-color: #0c8659;
}

.publish-success-url {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 8px 8px 14px;
  text-align: left;
}

.publish-success-url span {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}

.publish-live-card {
  display: flex;
  justify-content: center;
  padding: 44px 24px;
}

.publish-live-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.publish-live-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #e8f7f0;
  color: #0f9d68;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}

.publish-live-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.publish-live-title-row h2 {
  margin: 0;
  font-size: 24px;
}

.publish-live-sub {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.publish-live-stats {
  width: 100%;
  margin: 0;
}

.publish-live-actions {
  width: 100%;
  justify-content: center;
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.text-input,
.textarea,
.select-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.5 8 10l4-3.5' stroke='%236f7c90' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: right 10px center;
}

.text-input,
.select-input {
  height: 38px;
}

.text-input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.text-input:focus,
.textarea:focus,
.select-input:focus {
  border-color: rgb(173 199 252);
  box-shadow: 0 0 0 3px rgba(173, 199, 252, 0.4);
}

.publish-url-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.publish-url-control .btn {
  min-height: 38px;
  white-space: nowrap;
}

.readonly-field {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.search-input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-input-wrap::before {
  content: "⌕";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
}

.search-input-wrap .text-input {
  padding-left: 34px;
}

.table-card {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table-card > .toolbar,
.table-card > .empty-state {
  padding: 18px 18px 0;
}

.table-card > .empty-state {
  padding-bottom: 18px;
}

.table-scroll {
  overflow-x: auto;
}

.publish-assets-table {
  min-width: 0;
  table-layout: fixed;
}

.publish-assets-table th:nth-child(1),
.publish-assets-table td:nth-child(1) {
  width: 16%;
}

.publish-assets-table th:nth-child(3),
.publish-assets-table td:nth-child(3) {
  width: 18%;
}

.publish-assets-table th,
.publish-assets-table td {
  padding: 12px 14px;
  font-size: 14px;
}

.publish-assets-table .badge {
  white-space: nowrap;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
}

thead th {
  text-align: left;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 15px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.clickable-row {
  cursor: pointer;
}

tbody tr.clickable-row:hover {
  background: var(--surface-soft);
}

.name-link {
  color: var(--text);
  font-weight: 600;
}

.muted {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
}

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

.badge-gray {
  background: var(--gray-badge);
  color: var(--gray-text);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

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

.badge-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
}

.tabbar,
.subtabbar,
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tabbar {
  margin-bottom: 20px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.tab:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.tab.active {
  background: var(--blue-soft);
  border-color: rgb(206 222 253);
  color: var(--blue);
}

.tab-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.tab-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

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

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

.card {
  padding: 18px;
  overflow: hidden;
}

.card h3,
.card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card-button {
  width: 100%;
  cursor: pointer;
}

.option-card h4 {
  margin: 0;
}

.option-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.option-card-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: var(--text-muted);
}

.option-card-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-card-list {
  margin-top: 0;
}

.settings-section-intro {
  margin-bottom: 22px;
}

.option-card:hover {
  background: var(--surface-soft);
  border-color: var(--border-hover);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(255 255 255), rgb(249 247 246));
}

.kpi-label {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.analytics-charts {
  align-items: stretch;
}

.chart-card {
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,252,0.96));
  box-shadow: var(--shadow-soft);
}

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

.chart-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.chart-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.chart-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid-line {
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1;
}

.chart-axis-label {
  fill: #6b7280;
  font-size: 11px;
}

.chart-value-label {
  fill: #374151;
  font-size: 11px;
  font-weight: 600;
}

.chart-point {
  stroke: #fff;
  stroke-width: 1.5;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.btn-small {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 13px;
}

.analytics-detail-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,252,0.96));
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,252,0.94));
  box-shadow: var(--shadow-soft);
}

.integration-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.integration-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
}

.integration-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.integration-category {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.integration-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.integration-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.integration-footer {
  margin-top: auto;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.detail-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.88);
}

.detail-item-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.detail-item-primary {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.create-stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.create-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.create-step:hover {
  border-color: rgba(47, 111, 237, 0.25);
  background: #fbfcff;
}

.create-step:disabled,
.create-step.disabled-step {
  opacity: 0.5;
  cursor: not-allowed;
}

.create-step:disabled:hover,
.create-step.disabled-step:hover {
  border-color: var(--border);
  background: var(--surface);
}

.create-step.active {
  border-color: rgba(47, 111, 237, 0.45);
  background: rgba(240, 245, 255, 0.8);
  color: var(--text);
}

.create-step.completed {
  color: var(--text);
}

.create-step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f8;
  color: #546173;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.create-step.active .create-step-index {
  background: #2f6fed;
  color: #ffffff;
}

.create-step.completed .create-step-index {
  background: #0f9d68;
  color: #ffffff;
}

.create-step-label {
  white-space: nowrap;
}

.wizard-footer-nav {
  flex-wrap: wrap;
  gap: 12px;
}

.wizard-highlight-card {
  border: 1px solid rgba(47, 111, 237, 0.12);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95) 0%, rgba(255,255,255,0.95) 100%);
}

.compact-card-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.selected-option-card {
  border-color: rgba(47, 111, 237, 0.28);
  background: rgba(240, 245, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.1);
}

.playground-shell {
  display: grid;
  gap: 16px;
}

.playground-empty-state {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.playground-execution-state {
  min-height: 220px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.playground-execution-state h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.playground-execution-state p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.playground-execution-state pre {
  margin: 0;
  white-space: pre-wrap;
}

.facet-behavior-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(255,255,255,0.98) 100%);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

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

.facet-mode-card {
  min-height: 168px;
}

.facet-mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.facet-mode-example {
  margin-top: auto;
  padding-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.facet-behavior-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.filter-label-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.filter-label-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,253,0.96) 100%);
  box-shadow: var(--shadow-soft);
}

.filter-label-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.filter-label-card-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.filter-label-card-subtitle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.filter-label-field {
  display: grid;
  gap: 6px;
}

.filter-label-field-group {
  display: grid;
  gap: 12px;
}

.filter-label-field span {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.filter-label-mapping-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.filter-label-mapping-note strong,
.filter-label-mapping-note code {
  color: var(--text);
}

.filter-label-mapping-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.filter-label-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.embedded-search-app {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.embedded-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
}

.embedded-search-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.embedded-search-url {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.embedded-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.embedded-search-toolbar-plain {
  justify-content: flex-start;
}

.embedded-search-input {
  flex: 1 1 auto;
  max-width: none;
}

.embedded-search-input::before {
  left: 14px;
  font-size: 18px;
  color: #94a3b8;
}

.embedded-search-input .text-input {
  height: 46px;
  padding-left: 42px;
  padding-right: 42px;
}

.review-search-input-wrap {
  max-width: 720px;
}

.clear-review-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.clear-review-search:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.review-autocomplete-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.review-autocomplete-item {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.review-autocomplete-item + .review-autocomplete-item {
  border-top: 1px solid var(--border);
}

.review-autocomplete-item:hover {
  background: #f8fafc;
}

.embedded-search-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  background: #fcfcfd;
}

.embedded-search-filters {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.72);
  display: grid;
  gap: 16px;
}

.review-filter-row {
  cursor: pointer;
}

.review-filter-row.is-selected {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(239, 246, 255, 0.86);
}

.embedded-panel-block {
  display: grid;
  gap: 10px;
}

.embedded-panel-block h3,
.embedded-panel-block h4 {
  margin: 0;
  color: var(--text);
}

.embedded-panel-block h3 {
  font-size: 17px;
  line-height: 1.35;
}

.embedded-panel-block h4 {
  font-size: 13px;
}

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

.embedded-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.embedded-search-results {
  padding: 20px;
  display: grid;
  gap: 14px;
  background: #ffffff;
}

.embedded-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.embedded-results-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

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

.review-metric-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.review-metric-card strong {
  font-size: 15px;
  color: var(--text);
}

.review-metric-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.embedded-result-card {
  gap: 12px;
}

.embedded-result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}

.embedded-empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 28px;
  background: #fbfdff;
}

.embedded-empty-state strong {
  display: block;
  margin-bottom: 8px;
}

.embedded-result-drawer {
  padding: 20px;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
  display: grid;
  align-content: start;
  gap: 14px;
}

.embedded-drawer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.drawer-kv {
  display: grid;
  gap: 4px;
}

.drawer-kv strong {
  font-size: 12px;
  color: var(--text);
}

.drawer-kv span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.embedded-note-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.embedded-note-list li + li {
  margin-top: 6px;
}

.facet-count {
  color: var(--text-muted);
  font-size: 12px;
}

.search-result-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.search-result-card p {
  margin: 0;
  color: var(--text-muted);
}

.search-result-card mark {
  background: rgba(191, 219, 254, 0.65);
  color: #0f172a;
  padding: 0 2px;
  border-radius: 4px;
}

.field-config-table {
  min-width: 1080px;
  table-layout: fixed;
}

.field-config-table th,
.field-config-table td {
  padding: 10px;
  font-size: 13px;
}

.field-config-table th:nth-child(1),
.field-config-table td:nth-child(1) { width: 11%; }

.field-config-table th:nth-child(2),
.field-config-table td:nth-child(2) { width: 12%; }

.field-config-table th:nth-child(3),
.field-config-table td:nth-child(3) { width: 14%; }

.field-config-table th:nth-child(4),
.field-config-table td:nth-child(4) { width: 12%; }

.field-config-table th:nth-child(5),
.field-config-table td:nth-child(5) { width: 13%; }

.field-config-table th:nth-child(6),
.field-config-table td:nth-child(6) { width: 13%; }

.field-config-table th:nth-child(7),
.field-config-table td:nth-child(7) { width: 15%; }

.field-config-table th:nth-child(8),
.field-config-table td:nth-child(8) { width: 10%; }

.field-config-table td {
  vertical-align: top;
}

.field-inline-select {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 7px 28px 7px 10px;
  font-size: 12px;
}

.field-settings-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-row-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.compact-empty-state {
  padding: 18px;
  min-height: auto;
}

.compact-toggle {
  font-size: 12px;
  color: var(--text);
}

.field-config-table .toggle-row {
  gap: 6px;
  white-space: normal;
}

.field-config-table .btn-small {
  padding: 6px 9px;
  font-size: 12px;
}

.compact-toggle input {
  margin-top: 0;
}

.field-rules-card {
  border: 1px solid rgba(47, 111, 237, 0.08);
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.96) 0%, rgba(255,255,255,0.96) 100%);
}

.meta-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.meta-item-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-item-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.inspector {
  background: linear-gradient(180deg, rgb(255 255 255), rgb(249 247 246));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.publish-actions-panel {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.publish-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.publish-actions-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.publish-actions-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.publish-readiness-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.publish-readiness-list span {
  position: relative;
  min-height: 32px;
  padding: 8px 9px 8px 24px;
  border: 1px solid rgba(14, 98, 69, 0.16);
  border-radius: 9px;
  background: rgba(239, 255, 237, 0.58);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.publish-readiness-list span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  width: 7px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.publish-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-bottom: 12px;
}

.publish-actions-row .btn {
  width: 100%;
}

.btn-publish-primary {
  min-height: 42px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.22), var(--shadow-button);
}

.publish-summary-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(250 250 249);
}

.publish-summary-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.publish-summary-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.publish-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-summary-list span {
  position: relative;
  padding-left: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.publish-summary-list span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.publish-url-preview {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.publish-url-preview span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.publish-url-preview strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.inspector pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: rgb(46 45 45);
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.result-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.label-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mini-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.mini-badge strong {
  color: var(--text);
}

.document-preview {
  margin: 6px 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 520px;
}

.document-id {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 11px;
}

.document-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.publish-main-panel {
  align-content: start;
  align-self: start;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.field-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.selection-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.selection-card-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 245, 255, 0.95);
  border: 1px solid rgba(47, 111, 237, 0.16);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.morphology-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.morphology-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.morphology-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.morphology-chip span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.morphology-chip.is-selected {
  border-color: rgba(47, 111, 237, 0.28);
  background: rgba(240, 245, 255, 0.98);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.08);
}

.morphology-chip:has(input:disabled):not(.is-selected) {
  opacity: 0.48;
  cursor: not-allowed;
}

.selection-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.selection-card input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.selection-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.selection-card span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.access-mode-card {
  align-items: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.access-mode-card.is-selected {
  border-color: rgba(47, 111, 237, 0.32);
  background: rgba(246, 249, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.1);
}

.private-invite-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 111, 237, 0.16);
  border-radius: 14px;
  background: rgba(246, 249, 255, 0.72);
}

.private-invite-panel h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.private-invite-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.private-invite-row {
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.private-invite-row.is-selected {
  border-color: rgba(47, 111, 237, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.08);
}

.private-invite-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 111, 237, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.private-invite-user {
  min-width: 0;
}

.private-invite-user strong,
.private-invite-user span {
  display: block;
}

.private-invite-user strong {
  color: var(--text);
  font-size: 14px;
}

.private-invite-user span {
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-selection-card {
  padding: 12px 14px;
}

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

.reorder-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.reorder-item.is-enabled {
  border-color: rgba(47, 111, 237, 0.22);
  background: rgba(246, 249, 255, 0.92);
}

.reorder-item.is-dragging {
  opacity: 0.55;
}

.reorder-item.is-drop-target {
  border-color: rgba(47, 111, 237, 0.42);
  box-shadow: 0 0 0 3px rgba(173, 199, 252, 0.32);
}

.drag-handle {
  width: 28px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: grab;
  user-select: none;
  font-size: 16px;
  line-height: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

.reorder-selection-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.reorder-actions {
  display: inline-flex;
  gap: 8px;
}

.app-config-grid,
.app-settings-grid {
  align-items: start;
}

.settings-metadata-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  gap: 4px;
  cursor: pointer;
}

.review-chip-selected {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(239, 246, 255, 0.92);
  color: var(--blue);
}

.token-pill strong {
  font-size: 12px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.upload-dropzone {
  padding: 28px;
  border: 1px dashed rgb(173 199 252);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 1));
  text-align: center;
}

.upload-dropzone h3 {
  margin: 0 0 8px;
}

.upload-dropzone p {
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--text-muted);
}

.upload-dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(173, 199, 252, 0.9);
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
}

.inline-upload-browser {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.compact-source-header {
  gap: 16px;
}

.compact-source-badges {
  justify-content: flex-end;
  flex: 0 1 auto;
}

.inline-upload-browser-header h3 {
  margin: 0 0 6px;
}

.inline-upload-browser-header p {
  margin: 0;
  color: var(--text-muted);
}

.inline-upload-browser-shell {
  gap: 8px;
}

.inline-upload-browser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.inline-upload-browser .upload-dialog-breadcrumbs {
  font-size: 14px;
}

.inline-upload-browser .upload-dialog-meta-row {
  font-size: 13px;
}

.inline-upload-browser .file-picker-table-wrap {
  border-radius: 10px;
}

.inline-upload-browser .browser-upload-table thead th {
  padding: 10px 12px;
  font-size: 10px;
}

.inline-upload-browser .browser-upload-table tbody td {
  padding: 10px 12px;
}

.inline-upload-browser .table-primary-cell {
  gap: 0;
}

.inline-upload-browser .picker-folder-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.inline-upload-browser .picker-folder-icon svg {
  width: 18px;
  height: 18px;
}

.upload-accordion-list {
  display: grid;
  gap: 12px;
}

.upload-accordion-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.upload-accordion-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
}

.upload-accordion-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.upload-accordion-chevron {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.upload-accordion-chevron svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-accordion-item[open] .upload-accordion-chevron {
  transform: rotate(180deg);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.24);
}

.upload-accordion-summary::-webkit-details-marker {
  display: none;
}

.upload-accordion-summary h3 {
  margin: 0 0 6px;
}

.upload-accordion-summary p {
  margin: 0;
  color: var(--text-muted);
}

.upload-accordion-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 14px;
}

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

.prototype-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.prototype-list li + li {
  margin-top: 10px;
}

.code-block {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  color: rgb(46 45 45);
  font-size: 12px;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 16, 0.26);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  z-index: 40;
}

.modal {
  width: min(700px, 100%);
  max-height: calc(100vh - 40px);
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.modal-body {
  padding: 20px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.connection-success-backdrop {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  align-items: flex-start;
  padding-top: 34px;
}

.connection-success-modal {
  width: min(560px, calc(100vw - 40px));
  max-height: none;
  margin: 0 auto;
  border: 1px solid rgba(216, 224, 234, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.12);
  padding: 24px 28px 30px;
  color: #222222;
}

.connection-success-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 58px;
}

.connection-success-brand,
.connection-success-account {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.connection-success-brand {
  gap: 9px;
  color: #242424;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.connection-success-brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.connection-success-account {
  gap: 10px;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 450;
}

.connection-success-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-success-account img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  display: block;
  object-fit: cover;
}

.connection-success-body {
  width: min(390px, 100%);
  margin: 0 auto;
  text-align: center;
}

.connection-success-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 22px;
  color: #20c77a;
}

.connection-success-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection-success-body h2 {
  margin: 0 0 18px;
  color: #222222;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.connection-success-body p {
  margin: 0 auto 18px;
  color: #2d2d2d;
  font-size: 16px;
  line-height: 1.48;
}

.connection-success-body p:last-child {
  margin-bottom: 0;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #222222;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--blue);
}

.connection-success-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.connection-success-actions .btn {
  min-width: 132px;
}

@media (max-width: 640px) {
  .connection-success-modal {
    padding: 20px;
  }

  .connection-success-topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 38px;
  }
}

.quick-publish-modal {
  width: min(620px, 100%);
}

.quick-publish-loading {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
}

.quick-publish-loading h3 {
  margin: 6px 0 0;
  color: var(--text);
}

.quick-publish-loading p {
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
}

.quick-publish-spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 4px solid #dbeafe;
  border-top-color: var(--blue);
  animation: quickPublishSpin 0.8s linear infinite;
}

@keyframes quickPublishSpin {
  to { transform: rotate(360deg); }
}

.quick-publish-defaults .settings-list-item {
  align-items: flex-start;
}

.modal-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modal-option-card {
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
}

.modal-option-card:hover {
  box-shadow: 0 18px 40px rgba(21, 31, 54, 0.08);
}

.modal-option-illustration {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  border: 1px solid #e4ebf5;
}

.modal-option-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.modal-option-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-option-copy h4 {
  margin: 0;
}

.modal-option-copy p {
  margin: 0;
}

.instance-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.instance-option-card {
  gap: 12px;
}

.instance-option-card.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.instance-option-card.is-disabled:hover {
  background: var(--surface);
  border-color: var(--border);
}

.instance-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.instance-option-header h4 {
  margin: 0;
}

.instance-option-footnote {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.instance-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.instance-selection-summary strong {
  display: block;
  margin-top: 2px;
}

.instance-selection-summary span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.instance-selection-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.modal-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.modal-wide {
  width: min(980px, 100%);
}

.modal-upload-dialog {
  width: min(860px, 100%);
  border-radius: 18px;
  border-color: rgba(209, 214, 223, 0.9);
  box-shadow: 0 28px 80px rgba(30, 36, 50, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,251,253,0.98) 100%);
}

.modal-upload-dialog .modal-header {
  background: linear-gradient(180deg, rgba(248, 249, 252, 0.95) 0%, rgba(244, 246, 249, 0.92) 100%);
}

.modal-header-compact {
  padding-bottom: 14px;
}

.modal-upload-dialog .modal-title {
  font-size: 22px;
  letter-spacing: -0.025em;
}

.modal-upload-dialog .modal-subtitle {
  color: #697487;
}

.modal-footer-between {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.upload-dialog-shell {
  display: grid;
  gap: 16px;
}

.upload-dialog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid rgba(223, 227, 234, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
}

.upload-dialog-path-block {
  display: grid;
  gap: 4px;
}

.upload-dialog-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a8393;
}

.upload-dialog-path {
  font-size: 13px;
  color: #303646;
  word-break: break-all;
}

.upload-dialog-topbar-browser {
  align-items: flex-start;
}

.upload-dialog-nav-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-dialog-path-browser-block {
  flex: 1 1 320px;
}

.upload-dialog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.upload-dialog-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upload-dialog-breadcrumb-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #2f6fed;
  cursor: pointer;
}

.upload-dialog-breadcrumb-button.is-current {
  color: #303646;
  font-weight: 600;
  cursor: default;
}

.upload-dialog-breadcrumb-separator {
  color: #9aa5b5;
}

.upload-dialog-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(224, 228, 235, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

.upload-dialog-dropzone-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
  border: 1px solid rgba(221, 226, 233, 0.95);
  color: #7b8494;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.upload-dialog-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #778092;
  font-size: 13px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.file-picker-shell {
  display: grid;
  gap: 18px;
}

.file-picker-table-wrap {
  border: 1px solid rgba(222, 226, 233, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.browser-upload-table-wrap {
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.upload-picker-selection-panel {
  margin-top: 18px;
  border: 1px solid rgba(222, 226, 233, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.upload-picker-selection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(232, 236, 242, 0.95);
}

.upload-picker-selection-header h3 {
  margin: 0;
  font-size: 15px;
}

.upload-picker-selection-header p {
  margin: 4px 0 0;
  color: #778092;
  font-size: 13px;
}

.upload-picker-selection-list {
  display: grid;
}

.upload-picker-selection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid rgba(238, 241, 246, 0.95);
}

.upload-picker-selection-item:first-child {
  border-top: 0;
}

.upload-picker-selection-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.upload-picker-selection-copy strong {
  font-size: 14px;
  color: #243041;
}

.upload-picker-selection-copy span {
  font-size: 13px;
  color: #778092;
}

.upload-picker-empty-selection {
  margin: 0;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: transparent;
}

.browser-upload-table thead th {
  background: linear-gradient(180deg, #fafbfc 0%, #f1f3f6 100%);
  color: #748093;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.file-picker-select-header {
  text-align: center;
  padding-left: 12px;
  padding-right: 8px;
}

.browser-upload-table tbody tr:hover {
  background: rgba(76, 130, 245, 0.045);
}

.file-picker-table tbody tr.is-selected {
  background: rgba(47, 111, 237, 0.08);
}

.file-picker-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.file-picker-toolbar-left {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1 1 420px;
}

.file-picker-nav-buttons {
  justify-content: flex-start;
}

.picker-check {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(184, 191, 202, 1);
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  cursor: pointer;
}

.picker-check.active {
  background: linear-gradient(180deg, #4f90ff 0%, #2f6fed 100%);
  border-color: #2f6fed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.picker-check.active::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(-50%, -63%) rotate(45deg);
}

.picker-check.partial {
  background: linear-gradient(180deg, #4f90ff 0%, #2f6fed 100%);
  border-color: #2f6fed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.picker-check.partial::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.header-picker-check {
  vertical-align: middle;
}

.picker-check:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.3);
  outline-offset: 2px;
}

.picker-file-trigger {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  color: inherit;
}

.picker-file-trigger:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.22);
  outline-offset: 4px;
  border-radius: 10px;
}

.picker-folder-trigger {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  color: inherit;
}

.picker-folder-trigger:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.22);
  outline-offset: 4px;
  border-radius: 10px;
}

.picker-folder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #5c6b82;
  flex: 0 0 22px;
}

.picker-folder-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.parent-directory-row td {
  background: rgba(246, 248, 252, 0.9);
}

.picker-parent-trigger {
  gap: 12px;
}

.table-primary-cell {
  display: grid;
  gap: 4px;
}

.field-name-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(244, 246, 250, 0.95);
  border: 1px solid rgba(218, 224, 234, 0.95);
  color: #233044;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
}

.field-name-input {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.table-secondary-copy {
  color: #7a8393;
  font-size: 12px;
}

.upload-dialog-footer {
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.7) 0%, rgba(245, 246, 248, 0.9) 100%);
}

.upload-queue-card {
  padding-top: 16px;
}

.upload-queue-card .toolbar {
  margin: 0;
  padding: 0 18px 12px;
}

.upload-queue-card .table-scroll {
  padding: 0 18px;
}

.upload-queue-card .empty-state {
  margin: 0 18px 18px;
}

.upload-queue-card .upload-queue-footer {
  padding: 14px 18px 18px;
}

.upload-queue-card table {
  margin-top: 0;
}

.upload-queue-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 0;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.quick-publish-callout {
  margin: 0 18px 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(75, 112, 204, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 245, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 8px 22px rgba(75, 112, 204, 0.08);
}

.quick-publish-callout-kicker {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-publish-callout h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.quick-publish-callout p {
  margin: 0;
  max-width: 650px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-publish-callout-button,
.publish-shortcut-ready {
  box-shadow: 0 6px 16px rgba(75, 112, 204, 0.18);
  white-space: nowrap;
}

.publish-shortcut-button:disabled {
  box-shadow: none;
}

@media (max-width: 760px) {
  .quick-publish-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

.detected-field-panel {
  margin: 16px 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.json-structure-panel {
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.96) 0%, rgba(255,255,255,0.98) 100%);
}

.json-structure-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}

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

.json-structure-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

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

.json-structure-item span {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.toast-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgb(31 30 30);
  color: white;
  font-size: 14px;
  box-shadow: var(--shadow-dialog);
}

.empty-state {
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

.metadata-empty-state {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface-soft);
}

.inline-link {
  color: var(--blue);
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-header-row.compact {
  margin-bottom: 14px;
}

.section-header-row h1,
.section-header-row h3 {
  margin: 0;
}

.section-header-row p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.user-shell {
  padding: 20px;
}

.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247,248,251,0.9), rgba(255,255,255,0.96));
}

.invite-banner h3 {
  margin: 0 0 6px;
}

.invite-banner p {
  margin: 0;
  color: var(--text-muted);
}

.instance-meta-grid {
  margin-bottom: 14px;
}

.instance-note {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(243, 247, 255, 0.92));
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.compact-section-header {
  margin-bottom: 14px;
}

.instance-card-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.instance-health-list,
.instance-event-list,
.instance-log-list {
  display: grid;
  gap: 12px;
}

.instance-health-item,
.instance-log-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
}

.instance-log-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: start;
}

.instance-health-item strong,
.instance-log-item strong,
.instance-event-title-row strong {
  display: block;
  font-size: 14px;
}

.instance-health-item p,
.instance-log-item p,
.instance-event-item p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.health-full-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.instance-event-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
}

.instance-event-time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-top: 1px;
}

.instance-event-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.instance-log-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding-top: 2px;
}

.instance-log-item > div:last-child {
  min-width: 0;
}

.sql-console-meta {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.user-tabbar {
  margin-bottom: 16px;
}

.users-toolbar {
  padding: 16px 18px 10px;
  margin-bottom: 0;
}

.users-search {
  max-width: 320px;
}

.results-meta {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.align-right {
  text-align: right;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--text);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-side-nav,
.admin-main {
  padding: 20px;
}

.settings-nav-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-nav-group + .side-nav-group {
  margin-top: 16px;
}

.side-nav-label {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.side-nav-item:hover {
  background: var(--surface-soft);
  border-color: var(--border);
}

.side-nav-item.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
  color: var(--blue);
  font-weight: 600;
}

.side-nav-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.side-nav-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-section h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.settings-block {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.settings-block:first-of-type {
  border-top: 0;
}

.settings-block h4 {
  margin: 0 0 8px;
}

.settings-block-header h3 {
  margin: 0 0 6px;
}

.settings-block-header p {
  margin: 0;
  color: var(--text-muted);
}

.code-chip-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.code-chip-row code {
  font-size: 13px;
}

.settings-list {
  display: grid;
  gap: 14px;
}

.settings-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(249,247,246,0.86));
}

.settings-list-item h3 {
  margin: 0 0 6px;
}

.settings-list-item p {
  margin: 0;
  color: var(--text-muted);
}

.launch-summary-list .settings-list-item {
  align-items: flex-start;
}

.launch-summary-list .settings-list-item > div {
  min-width: 0;
  flex: 1 1 auto;
}

.launch-summary-list .settings-list-item p {
  overflow-wrap: anywhere;
}

.launch-summary-list .settings-list-item .badge {
  flex: 0 0 auto;
  margin-top: 2px;
}

.auth-settings-list {
  gap: 16px;
}

.auth-settings-item {
  align-items: stretch;
  gap: 20px;
}

.auth-settings-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.auth-illustration {
  width: 180px;
  flex: 0 0 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e4ebf5;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.auth-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-real-image {
  display: block;
  width: 72px;
  height: 72px;
  margin: 22px auto;
  object-fit: contain;
}

.auth-real-image-github {
  width: 64px;
  height: 64px;
}

.auth-real-image-shield {
  width: 76px;
  height: 76px;
}

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

.auth-settings-control {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 14px;
}

.danger-block {
  border-top-color: rgb(255 228 226);
}

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

  .span-12,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3,
  .span-2 {
    grid-column: auto;
  }

  .hero-grid,
  .form-grid,
  .admin-shell,
  .file-picker-shell,
  .json-structure-grid,
  .facet-mode-grid,
  .embedded-search-layout,
  .review-metrics-grid {
    grid-template-columns: 1fr;
  }

  .embedded-search-filters {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .embedded-search-header,
  .embedded-search-toolbar,
  .embedded-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .invite-banner,
  .settings-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-settings-main {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-illustration {
    width: min(100%, 180px);
    flex-basis: auto;
  }
}

@media (max-width: 720px) {
  .site-header-inner,
  .top-nav-row,
  .page-shell {
    width: min(var(--maxw), calc(100% - 20px));
  }

  .page-shell-wide {
    width: calc(100% - 20px);
  }

  .site-header-inner {
    padding-bottom: 8px;
  }

  .brand {
    font-size: 18px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-intro {
    flex-direction: column;
  }
}

.public-catalog-page {
  display: grid;
  gap: 16px;
}

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

.public-catalog-app {
  border: 1px solid #d9dfe7;
  border-radius: 18px;
  overflow: hidden;
  background: #eef1f5;
  box-shadow: 0 16px 40px rgba(22, 27, 45, 0.06);
  position: relative;
}

.public-catalog-demo-note {
  background: #fff4cd;
  color: #725214;
  text-align: center;
  font-size: 12px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(114, 82, 20, 0.12);
}

.public-catalog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fafbfc;
  border-bottom: 1px solid #dce3ec;
}

.public-catalog-title {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

.public-catalog-searchbox {
  flex: 1 1 auto;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.public-catalog-searchbox svg,
.public-catalog-filters h3 svg {
  width: 18px;
  height: 18px;
  stroke: #5f6b7b;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.public-catalog-searchbox input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
}

.public-catalog-share,
.public-catalog-more-btn,
.public-catalog-view-btn {
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 600;
}

.public-catalog-share {
  padding: 10px 14px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d9e1ea;
}

.public-catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.public-catalog-filters {
  background: #f7f8fb;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  padding: 16px 14px;
  align-self: start;
  position: sticky;
  top: 102px;
}

.public-catalog-filters h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 14px;
}

.public-catalog-filter-group + .public-catalog-filter-group {
  margin-top: 18px;
}

.public-catalog-filter-group h4 {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #667085;
}

.public-catalog-filter-list {
  display: grid;
  gap: 6px;
}

.public-catalog-filter-option {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1f2937;
}

.public-catalog-filter-option input {
  margin: 0;
}

.public-catalog-filter-option em {
  font-style: normal;
  color: #667085;
}

.public-catalog-results-wrap {
  display: grid;
  gap: 14px;
}

.public-catalog-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-catalog-results-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.public-catalog-sort {
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #fff;
  height: 38px;
  padding: 0 12px;
  color: #111827;
}

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

.public-catalog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  overflow: hidden;
  min-height: 100%;
}

.public-catalog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #edf2f7;
}

.public-catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  flex: 1 1 auto;
}

.public-catalog-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.public-catalog-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475467;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.public-catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #667085;
}

.public-catalog-meta span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-catalog-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.public-catalog-score {
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.public-catalog-card-bottom .public-catalog-view-btn {
  flex: 0 0 auto;
}

.public-catalog-score-good { color: #169c42; }
.public-catalog-score-mid { color: #3f8a37; }
.public-catalog-score-bad { color: #1d9c4b; }
.public-catalog-score-unknown { color: #1d9c4b; }

.public-catalog-view-btn,
.public-catalog-more-btn {
  padding: 8px 12px;
  font-size: 12px;
}

.public-catalog-more-row {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.public-catalog-footer {
  padding: 12px 0 6px;
  text-align: center;
  font-size: 12px;
  color: #667085;
}

.public-catalog-footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #475467;
  font-weight: 600;
  text-decoration: underline;
}

.public-catalog-empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #c9d4e0;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.public-catalog-empty-state h3 {
  margin: 0 0 8px;
}

.public-catalog-empty-state p {
  margin: 0;
  color: #667085;
}

.public-catalog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.public-catalog-modal {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.public-catalog-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dce3ec;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.public-catalog-modal img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #edf2f7;
  margin-bottom: 14px;
}

.public-catalog-modal h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.public-catalog-modal p {
  margin: 0 0 10px;
  color: #475467;
}

.public-catalog-modal-score {
  margin-top: 14px;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 1120px) {
  .public-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .public-catalog-filters {
    position: static;
  }

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

@media (max-width: 640px) {
  .public-catalog-header,
  .public-catalog-results-header,
  .public-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .public-catalog-title {
    font-size: 22px;
  }

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