:root {
  /* Minimal spacing and grid helpers for layout only */
  --wb-site-narrow: min(760px, calc(100% - 32px));
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wb-bg, #f8fafc);
  color: var(--wb-text);
  font-family: var(--wb-font-family);
}

.page-shell {
  width: var(--wb-site-narrow);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.top-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hero-compact {
  margin-bottom: 32px;
}

.hero-compact h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
}

.hero-compact .lead {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

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

.tabs-container {
  max-width: 600px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}

.tab-link {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-link:hover {
  color: #1e293b;
}

.tab-link.active {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 2px 4px #0f172a0d;
}

.tab-content[hidden] {
  display: none;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.inline-form input {
  flex: 1;
  padding: 0 12px;
  height: 40px;
  border: 1px solid var(--wb-button-border);
  border-radius: 6px;
  background: var(--wb-panel);
  color: inherit;
  font: inherit;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #475569;
}

.separator {
  text-align: center;
  position: relative;
  margin: 8px 0;
}

.separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--wb-card-border);
}

.separator span {
  position: relative;
  background: var(--wb-panel);
  padding: 0 8px;
  font-size: 12px;
  color: #94a3b8;
}

select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--wb-button-border);
  border-radius: 6px;
  background: var(--wb-panel);
  color: inherit;
  font: inherit;
}

.button-row {
  margin-top: 8px;
}

.status-text {
  margin: 12px 0 0;
  font-size: 14px;
  min-height: 1.4em;
}

.status-text.error {
  color: #ef4444;
}

.result-box {
  margin-top: 16px;
  padding: 12px;
  background: var(--wb-icon-surface);
  border: 1px dashed var(--wb-icon-card-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-box strong {
  font-family: var(--wb-font-family-code);
  font-size: 20px;
  color: var(--wb-primary);
}

.info-card {
  margin-top: 20px;
  padding: 16px;
  background: var(--wb-icon-surface);
  border-radius: 8px;
}

.info-card p {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.info-card span {
  color: #64748b;
}

.text-preview {
  margin-top: 16px;
  padding: 12px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 6px;
  font-family: var(--wb-font-family-code);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
}

.image-preview {
  margin-top: 16px;
  max-width: 100%;
  max-height: 300px;
  border-radius: 6px;
  display: block;
}

@media (max-width: 640px) {
  .clipboard-card-grid {
    grid-template-columns: 1fr;
  }
}
