/* =========================================================
   Universal UI kit — shared by every tool page & content page.
   Buttons live in theme.css (.btn-primary / .btn-secondary).
   ========================================================= */

/* ----- Form fields ----- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field__hint {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.input,
.select,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-secondary);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-primary) 12%, transparent);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----- Range slider ----- */
.range {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  appearance: none;
  outline: none;
}

.range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}

.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}

/* ----- Buttons: extra variants ----- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-icon:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-icon--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.btn-icon.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background);
}

.btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-icon:disabled:hover {
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-input-copy {
  width: 20px;
  height: 20px;
  background: transparent;
  border:none;
}
/* ----- Tags / badges ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
}

.tag--solid {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background);
}

.tag--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ----- Cards ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.card__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__dots {
  display: inline-flex;
  gap: 5px;
}

.card__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.card__title {
  font-family: var(--font-geist-mono, monospace);
  font-size: 12px;
  color: var(--text-secondary);
}

.card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.card__body {
  padding: 22px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ----- Section heading (tool page hero) ----- */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.section-heading__eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
}

.section-heading__title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-heading__desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
  font-size: 13px;
}

.breadcrumb__path {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  overflow: hidden;
}

.breadcrumb__path a:hover {
  color: var(--text-primary);
}

.breadcrumb__path span[aria-current] {
  color: var(--text-primary);
  font-weight: 700;
}

.breadcrumb__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.breadcrumb__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.breadcrumb__meta-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16a34a;
}

@media (max-width: 640px) {
  .breadcrumb__meta {
    display: none;
  }
}

/* ----- Meta / feature dot list ----- */
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.meta-list__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.meta-list__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-primary);
}

/* ----- Callout / tip box ----- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.callout__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.callout strong {
  color: var(--text-primary);
}

.callout--warning {
  background: #fef6e6;
  border-color: #f6dfa8;
  color: #7a5a05;
}

.callout--warning .callout__icon {
  background: #fdecc8;
  border-color: #f6dfa8;
  color: #92660a;
}

:root[data-theme="dark"] .callout--warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

:root[data-theme="dark"] .callout--warning .callout__icon {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

/* ----- Copy button ----- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.copy-btn.is-copied {
  border-color: #16a34a;
  color: #16a34a;
}

/* ----- Stat grid (results, summaries) ----- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.stat-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-card__value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.stat-card__value--success {
  color: #16a34a;
}

.stat-card__value--accent {
  color: var(--accent);
}

.stat-card__label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

@media (min-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Generic collapsible panel (embed code, extra details, etc.) ----- */
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.collapse.is-open {
  grid-template-rows: 1fr;
}

.collapse__inner {
  min-height: 0;
  overflow: hidden;
}

/* ----- Share / embed card ----- */
.tool-share-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.embed-code {
  margin-top: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-geist-mono, monospace);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  word-break: break-all;
}

.tool-embed-copy {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* ----- Custom tooltip (CSS-only, no native title attr) ----- */
.tooltip {
  position: relative;
}

.tooltip::after,
.tooltip::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translate(-50%, 3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.tooltip::after {
  content: attr(data-tooltip);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
}

[data-theme="dark"] .tooltip::after {
  background: #ededed;
  color: #0a0a0b;
}

.tooltip::before {
  content: "";
  bottom: calc(100% + 3px);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}

[data-theme="dark"] .tooltip::before {
  border-top-color: #ededed;
}

.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus-visible::after,
.tooltip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----- Field row, multi-up variants ----- */
@media (min-width: 720px) {
  .field-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .field-row--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----- Inline option row (checkbox / separator controls) ----- */
.option-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  position: relative;
  flex-shrink: 0;
  width: 55px;
  height: 27px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  appearance: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.checkbox-row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.checkbox-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 11px;
  width: 4px;
  height: 8px;
  border: solid var(--text-primary);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.checkbox-row input[type="checkbox"]:checked {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.checkbox-row input[type="checkbox"]:checked::before {
  background: var(--background);
  transform: translateX(18px);
  left: 10px;
}

.checkbox-row input[type="checkbox"]:checked::after {
  left: 36px;
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.checkbox-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-primary) 20%, transparent);
}

.checkbox-row__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.pill-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-group__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-right: 2px;
}

.pill-select {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pill-select:hover {
  border-color: var(--text-secondary);
}

.pill-select.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background);
}

/* ----- Case converter: per-style badge ----- */
.case-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.case-badge--sc {
  background: color-mix(in srgb, #2f6fed 16%, var(--surface));
  color: #2f6fed;
}

.case-badge--lc {
  background: color-mix(in srgb, #16a34a 16%, var(--surface));
  color: #16a34a;
}

.case-badge--uc {
  background: color-mix(in srgb, #dc2626 16%, var(--surface));
  color: #dc2626;
}

.case-badge--cc {
  background: color-mix(in srgb, #9333ea 16%, var(--surface));
  color: #9333ea;
}

.case-badge--ac {
  background: color-mix(in srgb, #d97706 16%, var(--surface));
  color: #d97706;
}

.case-badge--tc {
  background: color-mix(in srgb, #0d9488 16%, var(--surface));
  color: #0d9488;
}

.case-badge--ic {
  background: color-mix(in srgb, #4f46e5 16%, var(--surface));
  color: #4f46e5;
}

/* ----- Inline action button (does not stretch in a flex column) ----- */
.btn-inline {
  align-self: flex-start;
}

/* ----- Row of action buttons (Generate / Copy / Download / Clear, etc.) ----- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

/* ----- Number chip list (one pill per generated value) ----- */
.number-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.number-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ----- Stat grid, 5-up variant ----- */
@media (min-width: 560px) {
  .stat-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 820px) {
  .stat-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* ----- Stat grid, 4-up variant (always spans full width) ----- */
@media (min-width: 520px) {
  .stat-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----- Stat grid, 6-up variant ----- */
@media (min-width: 560px) {
  .stat-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .stat-grid--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-card--active {
  border-color: var(--text-primary);
  background: color-mix(in srgb, var(--text-primary) 6%, var(--surface-muted));
}

/* ----- Two-column converter layout (from/to fields + swap) ----- */
.converter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.converter-side {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.converter-swap {
  flex-shrink: 0;
  margin-bottom: 5px;
}

/* ----- Input group: select attached to an input or result (unit converter, etc.) ----- */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-group:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-primary) 12%, transparent);
}

.input-group__select {
  flex: 0 0 128px;
  width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background-color: var(--surface-muted);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 26px 12px 14px;
  cursor: pointer;
}

.input-group__input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-primary);
}

.input-group__input:focus {
  outline: none;
}

.input-group__result {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-muted);
}

.input-group__result .btn-icon {
  flex-shrink: 0;
}

.input-group__result-value {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- Code output block (CSS vars, JSON, embed snippets, etc.) ----- */
.code-block {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
}

.code-block__title {
  font-family: var(--font-geist-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.code-block__body {
  padding: 16px;
  margin: 0;
  font-family: var(--font-geist-mono, monospace);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre;
  border-radius: 0 0 14px 14px;
}

.textarea--flush {
  border: none;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.textarea--flush:focus {
  box-shadow: none;
}

.code-block:focus-within {
  border-color: var(--text-primary);
}

/* ----- Generic split layout: live preview + controls (visual generator tools) ----- */
.tool-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 720px) {
  .tool-split {
    flex-direction: row;
    align-items: flex-start;
  }
}

.tool-split__preview-col {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 720px) {
  .tool-split__preview-col {
    flex: 0 0 60%;
    position: sticky;
    top: 92px;
  }
}

.tool-split__preview {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.tool-split__side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ----- Generic labeled control row (label + range/input + value) ----- */
.control-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.control-row__label {
  flex: 0 0 76px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.control-row__value {
  flex: 0 0 46px;
  text-align: right;
  font-family: var(--font-geist-mono, monospace);
  font-size: 12px;
  color: var(--text-secondary);
}

.control-row .range,
.control-row .color-field {
  flex: 1;
  min-width: 0;
}

/* ----- Generic dropzone (upload via drag-and-drop or click) ----- */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 24px;
  background: var(--surface-muted);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--text-secondary);
  outline: none;
}

.dropzone.is-dragging {
  border-color: var(--text-primary);
  background: color-mix(in srgb, var(--text-primary) 5%, var(--surface-muted));
}

.dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.dropzone__label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.dropzone__hint {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
