/* ── Form ── */

.dr-input-block {
  max-width: 540px;
  --dr-prefill-reserved-width: 184px;
}

.dr-input-prefill-note {
  display: block;
  width: 70%;
  min-width: 300px;
  margin: 0 0 -8px;
  padding: 9px 14px 16px;
  border-radius: 8px 8px 0 0;
  background: rgba(24, 55, 2, 0.08);
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(24, 23, 18, 0.66);
  box-sizing: border-box;
}

.dr-input-prefill-lead {
  color: #183702;
  font-weight: 600;
}

.dr-input-prefill-note--standalone {
  width: auto;
  min-width: 0;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
}

.dr-input-prefill-note--standalone a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dr-input-tabs {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-strong);
}

.dr-input-tab {
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 0 0.55rem;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.dr-input-tab:hover { color: var(--ink); }
.dr-input-tab.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--green-deep); }

.dr-input-drop {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  padding: 0.85rem 1.1rem;
  border: 2px dashed rgba(43, 58, 26, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dr-input-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.dr-input-drop-icon {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.6;
}

.dr-input-drop-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dr-input-drop-text u { text-decoration-color: rgba(43, 58, 26, 0.4); text-underline-offset: 3px; }

.dr-input-drop:hover,
.dr-input-drop.is-dragover { border-color: var(--green-deep); background: #fff; }
.dr-input-drop.has-file { border-style: solid; border-color: var(--green-deep); background: #fff; color: var(--ink); }
.dr-input-drop.has-file .dr-input-drop-icon { opacity: 0.85; }

.dr-input-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.dr-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.dr-input-field {
  flex: 1;
  border: 2px solid var(--green-deep);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dr-input-field::placeholder { color: var(--ink-muted); }
.dr-input-field:focus { box-shadow: 0 0 0 3px rgba(43, 58, 26, 0.08); }

.dr-input-btn {
  font-family: 'Graphik', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0 2rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16,24,32,0.15);
}

.dr-input-btn:hover {
  box-shadow: 0 6px 16px rgba(16,24,32,0.2);
  transform: translateY(-1px);
}
.dr-input-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.dr-input-meta {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  gap: 1.25rem;
}

.dr-input-meta > span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dr-input-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* ── "Public profiles only" tooltip ── */

.dr-meta-tip {
  position: relative;
}

.dr-meta-tip-trigger {
  border-bottom: 1px dotted var(--ink-muted);
  cursor: help;
}

.dr-meta-tip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, calc(100vw - 48px));
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease;
  z-index: 10;
}

.dr-meta-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.dr-meta-tip:hover .dr-meta-tip-bubble,
.dr-meta-tip:focus-within .dr-meta-tip-bubble {
  opacity: 1;
  visibility: visible;
}

/* ── Form error/preflight (reuses linkedin-read.js IDs) ── */

#linkedin-read-error {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #991b1b;
  display: none;
}

.dr-preflight-panel {
  display: none;
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dr-preflight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.dr-preflight-note {
  margin-top: 0.55rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.dr-preflight-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  appearance: none;
}

.dr-preflight-action:hover { background: var(--cream); }

.dr-preflight-action--secondary {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0;
  padding-right: 0;
}

.dr-preflight-action--secondary:hover {
  background: transparent;
  color: var(--green-deep);
}

@media (max-width: 768px) {
  .dr-input-prefill-note {
    width: 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .dr-input-row { flex-direction: column; }
  .dr-input-btn { padding: 0.85rem 2rem; }
}
