:root {
  --lb-primary: #2563eb;
  --lb-primary-hover: #1d4ed8;
  --lb-bg-card: #ffffff;
  --lb-border: #e2e8f0;
  --lb-text-main: #0f172a;
  --lb-text-muted: #64748b;
  --lb-pill-bg: #f1f5f9;
  --lb-pill-hover: #e2e8f0;
  --lb-result-bg: #f8fafc;
  --lb-hl-bg: #eff6ff;
  --lb-hl-border: #bfdbfe;
  --lb-hl-text: #1e40af;
}

.lb-tool-container {
  max-width: 880px;
  margin: 0 auto 3rem auto;
  font-family: inherit;
  color: var(--lb-text-main);
}

.lb-editor-card {
  background: var(--lb-bg-card);
  border: 1px solid var(--lb-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lb-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lb-border);
}

.lb-presets-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--lb-text-muted);
}

.lb-pill-btn {
  background: var(--lb-pill-bg);
  border: 1px solid var(--lb-border);
  color: var(--lb-text-main);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-pill-btn:hover {
  background: var(--lb-pill-hover);
  border-color: var(--lb-primary);
}

.lb-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 750px) {
  .lb-grid-2 {
    grid-template-columns: 1fr;
  }
}

.lb-field {
  margin-bottom: 1rem;
}

.lb-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--lb-text-main);
}

.lb-req {
  color: #dc2626;
}

.lb-field input,
.lb-field textarea,
.lb-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--lb-border);
  border-radius: 8px;
  background: var(--lb-bg-card);
  color: var(--lb-text-main);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.lb-field input:focus,
.lb-field textarea:focus,
.lb-field select:focus {
  outline: none;
  border-color: var(--lb-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lb-links-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lb-border);
}

.lb-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lb-text-main);
  margin-bottom: 0.75rem;
  display: block;
}

.lb-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lb-link-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--lb-pill-bg);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--lb-border);
}

.lb-link-item input {
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid var(--lb-border);
  border-radius: 4px;
  background: var(--lb-bg-card);
  color: var(--lb-text-main);
}

.lb-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-preview-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lb-text-main);
  margin-bottom: 0.75rem;
}

/* Smartphone Mockup Frame */
.lb-phone-mockup {
  width: 260px;
  height: 480px;
  background: #0f172a;
  border: 10px solid #1e293b;
  border-radius: 36px;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
}

.lb-phone-speaker {
  width: 60px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  margin: 0 auto 0.75rem auto;
}

.lb-phone-screen {
  flex: 1;
  background: #090d16;
  border-radius: 24px;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
  color: #f8fafc;
}

.lb-screen-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.lb-screen-name {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  text-align: center;
}

.lb-screen-bio {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.lb-screen-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lb-screen-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.lb-action-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.lb-primary-btn {
  flex: 2;
  background: var(--lb-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lb-primary-btn:hover {
  background: var(--lb-primary-hover);
}

.lb-secondary-btn {
  background: var(--lb-pill-bg);
  color: var(--lb-text-main);
  border: 1px solid var(--lb-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.lb-results-card {
  background: var(--lb-result-bg);
  border: 1px solid var(--lb-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.lb-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .lb-specs-grid {
    grid-template-columns: 1fr;
  }
}

.lb-spec-item {
  background: var(--lb-bg-card);
  border: 1px solid var(--lb-border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lb-spec-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lb-text-muted);
}

.lb-spec-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lb-text-main);
}

.lb-spec-sub {
  font-size: 0.75rem;
  color: var(--lb-text-muted);
}

.lb-table-card {
  background: var(--lb-bg-card);
  border: 1px solid var(--lb-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.lb-sub-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--lb-text-main);
}

.lb-table-wrap {
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.lb-table th,
.lb-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--lb-border);
}

.lb-table th {
  background: var(--lb-pill-bg);
  font-weight: 700;
  color: var(--lb-text-muted);
}

.lb-tip-box {
  background: var(--lb-bg-card);
  border: 1px solid var(--lb-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.lb-tip-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--lb-primary);
}

.lb-tip-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lb-text-muted);
  line-height: 1.5;
}

.lb-settings-col {
  display: flex;
  flex-direction: column;
}

.lb-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Standalone Export Template Tokens */
.container,
.avatar,
.links,
.link-btn {
  box-sizing: border-box;
}

.lb-ad {
  overflow: hidden;
  min-height: 280px;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --lb-primary: #819dda;
  --lb-primary-hover: #8198da;
  --lb-bg-card: var(--tf-surface);
  --lb-border: var(--tf-surface);
  --lb-text-main: var(--tf-ink);
  --lb-text-muted: var(--tf-ink-faint);
  --lb-pill-bg: var(--tf-surface);
  --lb-pill-hover: var(--tf-surface);
  --lb-result-bg: var(--tf-surface);
  --lb-hl-bg: var(--tf-surface);
  --lb-hl-border: #81a8da;
  --lb-hl-text: #8196da;
}
