@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Source+Code+Pro:wght@400;500;600&display=swap');

:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --ink-900: #111827;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --line: #e5e7eb;
  --line-strong: #dbe1ea;
  --indigo: #6366f1;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: "Nunito", system-ui, sans-serif;
  padding: 24px;
}

.shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 24px;
}

.auth-panel {
  max-width: 520px;
  margin: 0 auto;
}

.wizard-panel {
  max-width: 760px;
  margin: 0 auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.lk-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 28px;
}

.hidden {
  display: none !important;
}

.wizard-header {
  text-align: center;
  margin: 0 auto 20px;
}

.brand-mark,
.link-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: #ef4444;
}

.link-mark {
  color: var(--indigo);
  font-size: 36px;
}

h1,
h2,
h3 {
  margin: 0;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 700;
}

h3 {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
}

.subtitle {
  margin: 8px 0 0;
  text-align: center;
  color: var(--ink-500);
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.3;
}

.step {
  width: 100%;
}

.stage-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
}

.provider-card,
.model-card,
.check-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  text-align: left;
}

.provider-card,
.model-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.provider-card {
  cursor: pointer;
}

.provider-card:hover,
.model-card:hover {
  border-color: #c7ced8;
}

.provider-card.active,
.model-card.active {
  border-color: var(--ink-900);
  box-shadow: inset 0 0 0 1px var(--ink-900);
}

.provider-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f9fafb;
}

.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.provider-title,
.model-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.provider-sub,
.model-sub {
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 0.95rem;
  line-height: 1.35;
}

.badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge.muted {
  background: #f3f4f6;
  color: #9aa3b2;
}

.provider-actions {
  margin: 22px auto 8px;
  width: 100%;
  max-width: 672px;
  display: flex;
  justify-content: center;
}

.provider-actions .primary {
  min-width: 280px;
}

.callback-box {
  text-align: center;
}

.callback-box .hint {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.callback-box label {
  max-width: 672px;
  margin: 0 auto;
}

.callback-input {
  font-family: "Source Code Pro", ui-monospace, monospace;
}

.hint-list {
  margin: 0 auto;
  padding-left: 18px;
  max-width: 672px;
  color: var(--ink-500);
  line-height: 1.45;
  text-align: left;
}

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

.auth-switch {
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
}

.tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-500);
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.auth-block {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--ink-500);
  text-align: left;
}

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

input,
textarea,
select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink-900);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-400);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.primary,
.ghost {
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background-color 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

.primary:hover {
  filter: brightness(1.05);
}

.primary:disabled,
.ghost:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.primary:active,
.ghost:active {
  transform: translateY(1px);
}

.ghost {
  background: #f3f4f6;
  color: var(--ink-500);
}

.callback-box .ghost,
#cancelOpenaiCallbackBtn {
  background: transparent;
  color: var(--ink-400);
  padding-left: 14px;
  padding-right: 14px;
}

.callback-box .ghost:hover,
#cancelOpenaiCallbackBtn:hover {
  color: var(--ink-900);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--indigo);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.text-link:hover {
  color: #4f46e5;
}

.stack {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

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

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

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

.center-row {
  justify-content: center;
}

.centered {
  text-align: center;
}

.hint {
  margin: 0;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.45;
}

.manual-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.lk-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

.lk-header-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.lk-alert-b24 {
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.lk-alert-b24 p {
  margin: 0;
  color: #991b1b;
  font-weight: 700;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
}

.status-tag.ok {
  color: #166534;
  background: #dcfce7;
}

.status-tag.bad {
  color: #991b1b;
  background: #fee2e2;
}

.lk-logout-mini {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
}

.lk-logout-mini:hover {
  background: #fecaca;
  filter: none;
}

.lk-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.lk-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-500);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.lk-tab.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.lk-tab-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.lk-panel > .stack {
  gap: 18px;
  margin-top: 14px;
}

.lk-panel h2 {
  margin-top: 2px;
}

.lk-panel .subtitle {
  margin-top: 10px;
}

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

.lk-kpi-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #fafcff);
}

.lk-kpi-label {
  margin: 0;
  color: var(--ink-400);
  font-size: 0.8rem;
  font-weight: 700;
}

.lk-kpi-value {
  margin: 6px 0 0;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink-900);
}

.lk-kpi-hint {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.lk-grid-two {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  align-items: start;
}

.lk-side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lk-widget {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.lk-widget h3 {
  text-align: left;
  font-size: 1.15rem;
}

.lk-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lk-workspace-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lk-workspace-actions .primary,
.lk-workspace-actions .ghost {
  width: 100%;
}

.lk-danger-btn {
  color: #991b1b;
  background: #fee2e2;
}

.lk-danger-btn:hover {
  background: #fecaca;
  filter: none;
}

#workspaceStartBtn.is-running,
#workspaceStartBtn.is-running:disabled {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #f0fdf4;
  opacity: 1;
  cursor: not-allowed;
}

#workspaceStartBtn.is-busy,
#workspaceStartBtn.is-busy:disabled {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  color: #dbeafe;
  opacity: 1;
}

.lk-action-out {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink-500);
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.lk-action-out.bad {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.lk-token-grid {
  display: grid;
  gap: 8px;
}

.lk-token-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
}

.lk-integration-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  align-items: center;
}

.lk-integration-main {
  min-width: 0;
}

.lk-integration-edit {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.lk-integration-edit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.lk-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.lk-dot.ok {
  background: #16a34a;
}

.lk-dot.bad {
  background: #ef4444;
}

.lk-token-title {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.lk-token-value {
  margin: 3px 0 0;
  color: var(--ink-900);
  font-size: 0.95rem;
  font-weight: 700;
}

.lk-activity-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 88px;
}

.lk-activity-col {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.lk-activity-num {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.lk-activity-track {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  background: #eef2f7;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.lk-activity-fill {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #1d4ed8, #111827);
  transition: height 0.25s ease;
}

#lkActivityWidget {
  align-self: start;
}

.lk-activity-day {
  font-size: 0.74rem;
  color: var(--ink-400);
}

.lk-activity-meta {
  color: var(--ink-500);
  font-size: 0.9rem;
}

.lk-instances-table {
  overflow: auto;
}

.lk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.lk-table th,
.lk-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.88rem;
}

.lk-table th {
  color: var(--ink-500);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lk-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.lk-row-btn {
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 700;
}

.lk-row-danger {
  color: #991b1b;
  background: #fee2e2;
}

.lk-row-danger:hover {
  background: #fecaca;
  filter: none;
}

.lk-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.lk-status.ok {
  color: #166534;
  background: #dcfce7;
}

.lk-status.warn {
  color: #854d0e;
  background: #fef9c3;
}

.lk-status.bad {
  color: #991b1b;
  background: #fee2e2;
}

.lk-status.muted {
  color: #475569;
  background: #e2e8f0;
}

.lk-roadmap-list {
  display: grid;
  gap: 8px;
}

.lk-roadmap-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.lk-roadmap-item p {
  margin: 0;
  color: var(--ink-900);
  line-height: 1.4;
}

.lk-knowledge-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.lk-knowledge-item:hover {
  border-color: #cfd6e2;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.lk-knowledge-item:active {
  transform: translateY(1px);
}

.lk-knowledge-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lk-knowledge-type {
  color: var(--ink-500);
  font-size: 0.83rem;
  font-weight: 700;
}

.lk-knowledge-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 800;
}

.lk-knowledge-snippet {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lk-knowledge-meta {
  margin: 0;
  color: var(--ink-400);
  font-size: 0.82rem;
}

.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.lk-modal-card {
  position: relative;
  width: min(820px, calc(100vw - 26px));
  max-height: min(78vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.3);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.lk-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.lk-modal-head h3 {
  margin: 0;
  text-align: left;
  font-size: 1.2rem;
}

.lk-modal-close {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.lk-modal-meta {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.lk-modal-link {
  color: #4f46e5;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
}

.lk-modal-link:hover {
  text-decoration: underline;
}

.lk-modal-body {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  color: var(--ink-900);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.manual-block summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-500);
  list-style: none;
}

.manual-block summary::-webkit-details-marker {
  display: none;
}

.manual-block[open] summary {
  margin-bottom: 10px;
}

#b24ConnectBlock h4 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

#b24ConnectStatus {
  min-height: 1.4em;
}

.launch-stage {
  max-width: 672px;
  margin: 0 auto;
}

.launch-checklist {
  display: grid;
  gap: 10px;
}

.launch-check-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.launch-check-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.launch-check-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #c4cbd6;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.launch-check-content {
  display: grid;
  gap: 3px;
}

.launch-check-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}

.launch-check-detail {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.4;
}

.launch-check-status {
  color: var(--ink-400);
  font-size: 0.82rem;
  font-weight: 700;
  align-self: center;
}

.launch-check-item.done {
  border-color: #b9e7ca;
  background: #f4fdf8;
}

.launch-check-item.done .launch-check-icon {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.launch-check-item.done .launch-check-status {
  color: #15803d;
}

.launch-check-item.failed {
  border-color: #fecaca;
  background: #fff8f8;
}

.launch-check-item.failed .launch-check-icon {
  border-color: #ef4444;
  color: #ef4444;
}

.launch-check-item.failed .launch-check-status {
  color: #b91c1c;
}

.launch-start-btn {
  min-width: 240px;
}

.launch-progress {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.launch-progress[data-status="running"] {
  border-color: #c7d2fe;
  background: #f7f8ff;
}

.launch-progress[data-status="success"] {
  border-color: #b9e7ca;
  background: #f4fdf8;
}

.launch-progress[data-status="error"] {
  border-color: #fecaca;
  background: #fff8f8;
}

.launch-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-500);
}

#launchProgressText {
  color: var(--ink-900);
  font-weight: 700;
}

#launchProgressPct {
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}

.launch-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

#launchProgressFill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f172a, #1d4ed8);
  transition: width 0.35s ease;
}

.launch-progress[data-status="success"] #launchProgressFill {
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.launch-progress[data-status="error"] #launchProgressFill {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.launch-start-btn[data-ready="false"] {
  background: #e5e7eb;
  color: #6b7280;
}

.launch-start-btn[data-ready="checking"] {
  opacity: 0.85;
}

.launch-start-btn:disabled {
  cursor: wait;
  filter: none;
}

.wizard-progress {
  width: 100%;
  max-width: 672px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.wizard-progress span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-300);
  transition: all 0.3s ease;
}

.wizard-progress span.active {
  width: 24px;
  height: 8px;
  background: var(--ink-900);
}

.error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.check-card input {
  width: 20px;
  height: 20px;
  margin: 0;
}

pre {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #252a3a;
  background: #10141e;
  color: #d8f5e0;
  padding: 14px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  body {
    padding: 16px;
  }

  .shell {
    width: 100%;
  }

  .wizard-panel {
    max-width: 720px;
  }

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

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

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

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

  .lk-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .panel {
    border-radius: 18px;
    padding: 16px;
  }

  .lk-panel {
    padding: 22px 16px;
  }

  .wizard-header {
    margin-bottom: 14px;
  }

  h2 {
    font-size: clamp(22px, 7vw, 34px);
  }

  h3 {
    font-size: clamp(20px, 6.4vw, 30px);
  }

  .subtitle {
    font-size: 16px;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary,
  .ghost,
  .provider-actions .primary {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .callback-box .ghost,
  #cancelOpenaiCallbackBtn {
    background: #f3f4f6;
    color: var(--ink-500);
  }

  .lk-modal {
    padding: 10px;
  }

  .lk-modal-card {
    width: calc(100vw - 20px);
    max-height: 86vh;
    padding: 14px;
  }

  .lk-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .lk-modal-close {
    width: 100%;
  }

  .lk-integration-item {
    grid-template-columns: 10px 1fr;
    gap: 10px;
  }

  .lk-integration-edit {
    grid-column: 2;
    justify-self: start;
    width: max-content;
  }

  .lk-toolbar {
    flex-direction: column;
  }

  .lk-workspace-actions {
    grid-template-columns: 1fr;
  }

  .lk-header-tags {
    justify-content: stretch;
  }

  .status-tag {
    justify-content: center;
    width: 100%;
  }

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

  .lk-table {
    min-width: 620px;
  }

  .launch-check-item {
    grid-template-columns: 24px 1fr;
  }

  .launch-check-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .brand-mark,
  .link-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 46px;
  }

  label,
  .hint {
    font-size: 0.95rem;
  }

  .provider-card,
  .model-card,
  .check-card {
    padding: 14px;
  }
}
