/* ── tools.css — shared styles for all SEOKit tools ── */

/* Layout */
.tool-page  { padding: 32px 0 80px; }
.tool-hero  { margin-bottom: 28px; }
.tool-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.tool-hero p  { font-size: 13px; color: var(--muted); max-width: 560px; line-height: 1.6; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card-label {
  font-size: 10px; font-family: var(--mono); color: var(--muted);
  letter-spacing: 1px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.card-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Form controls */
label {
  display: block;
  font-size: 10px; font-family: var(--mono); color: var(--muted);
  letter-spacing: .5px; margin-bottom: 6px;
}
.field       { flex: 1; min-width: 160px; }
.field-sm    { flex: 0 0 auto; min-width: 140px; }
.controls-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

select, input[type="text"], input[type="number"], textarea {
  width: 100%;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text); font-family: var(--mono); font-size: 13px;
  outline: none; transition: border-color .18s;
  appearance: none;
}
select:hover, select:focus,
input:hover, input:focus,
textarea:hover, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--surface2); position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent); background: rgba(124,58,237,.07);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.upload-zone-icon  { font-size: 24px; margin-bottom: 8px; }
.upload-zone-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.upload-zone-hint  { font-size: 12px; font-family: var(--mono); color: var(--muted); }

/* Auth success bar */
.auth-success {
  display: none; align-items: center; justify-content: space-between;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--green); font-size: 13px; font-family: var(--mono);
  margin-bottom: 12px;
}
.auth-success-left { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text);
  transition: all .18s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover    { border-color: var(--accent); color: var(--accent2); }
.btn-primary  {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  border-color: transparent; color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(124,58,237,.45); color: white; }
.btn-danger   { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); color: var(--red); }
.btn-danger:hover   { background: rgba(239,68,68,.2); }
.btn-ghost    { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover    { background: var(--surface2); color: var(--text); }
.btn-sm       { padding: 4px 10px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Badges / pills */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; font-family: var(--mono); white-space: nowrap;
}
.badge-critical { background: rgba(239,68,68,.14);  color: var(--red); }
.badge-warning  { background: rgba(245,158,11,.14); color: var(--yellow); }
.badge-success  { background: rgba(16,185,129,.14); color: var(--green); }
.badge-info     { background: rgba(59,130,246,.14);  color: var(--blue); }
.badge-muted    { background: var(--surface2);       color: var(--muted); }
.badge-accent   { background: rgba(124,58,237,.14);  color: var(--accent2); }

/* Delta chips */
.delta {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 4px;
  font-size: 11px; font-family: var(--mono); font-weight: 600; white-space: nowrap;
}
.delta.up      { background: rgba(16,185,129,.14);  color: var(--green); }
.delta.down    { background: rgba(239,68,68,.14);   color: var(--red); }
.delta.neutral { background: rgba(100,116,139,.1);  color: var(--muted); }

/* Error box */
.error-box {
  display: none;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--red); font-size: 13px; font-family: var(--mono);
  margin-bottom: 14px;
}

/* Loading spinner */
.loading {
  display: none; text-align: center; padding: 60px 20px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* Summary cards grid */
.summary-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.sum-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  position: relative; overflow: hidden;
}
.sum-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.sum-card.green::before  { background: var(--green); }
.sum-card.yellow::before { background: var(--yellow); }
.sum-card.red::before    { background: var(--red); }
.sum-card.blue::before   { background: var(--blue); }
.sum-label { font-size: 10px; font-family: var(--mono); color: var(--muted); letter-spacing: .5px; margin-bottom: 6px; }
.sum-value { font-size: 22px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.sum-delta { font-size: 12px; font-family: var(--mono); font-weight: 600; }
.sum-prev  { font-size: 11px; font-family: var(--mono); color: var(--muted); margin-top: 2px; }

/* Filter bar */
.filter-bar {
  display: none; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center;
}
.filter-btn {
  padding: 5px 12px; border-radius: 5px;
  font-size: 12px; font-family: var(--mono);
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  transition: all .15s;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent2); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.search-input-wrap { flex: 1; min-width: 180px; }
.search-input-wrap input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 12px;
  color: var(--text); font-family: var(--mono); font-size: 12px;
  outline: none; transition: border-color .18s;
}
.search-input-wrap input:focus { border-color: var(--accent); }

/* Table */
.table-wrap { border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--border); }
table  { width: 100%; min-width: 1100px; border-collapse: collapse; }
thead  { position: static; }
th {
  background: var(--surface2); padding: 10px 12px;
  text-align: left; font-size: 10px; font-family: var(--mono);
  color: var(--muted); letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s;
}
th:hover   { color: var(--text); }
th.sorted  { color: var(--accent2); }
tbody tr   { border-bottom: 1px solid rgba(255,255,255,.025); cursor: pointer; transition: background .12s; }
tbody tr:hover  { background: rgba(124,58,237,.05); }
tbody tr.faded  { opacity: .55; }
td { padding: 9px 12px; font-size: 12px; vertical-align: middle; white-space: nowrap; }
.mono { font-family: var(--mono); }
.url-cell {
  width: 220px; min-width: 220px; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; color: var(--accent2);
}
.url-cell a { color: inherit; }
.url-cell a:hover { text-decoration: underline; }
.na { color: var(--muted); font-family: var(--mono); }

/* CTR bar */
.ctr-wrap { display: flex; align-items: center; gap: 8px; }
.ctr-bar  { width: 44px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.ctr-fill { height: 100%; border-radius: 2px; }

/* Advice cards (drawer) */
.advice-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px;
}
.advice-card.critical { border-left-color: var(--red); }
.advice-card.warning  { border-left-color: var(--yellow); }
.advice-card.success  { border-left-color: var(--green); }
.advice-card.info     { border-left-color: var(--blue); }
.advice-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.advice-text  { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Period badge */
.period-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
  font-size: 11px; font-family: var(--mono); color: var(--muted);
  margin-bottom: 14px;
}

/* Hint text */
.hint { font-size: 11px; font-family: var(--mono); color: var(--muted); margin-top: 4px; }

/* Form group */
.form-group { margin-bottom: 14px; }
.form-group label { margin-bottom: 6px; }

/* Drawer */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  z-index: 200; display: none;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 95vw);
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 201; overflow-y: auto;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 28px;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;
}
.drawer-title { font-size: 15px; font-weight: 700; }
.drawer-url   { font-family: var(--mono); font-size: 11px; color: var(--accent2); word-break: break-all; margin-top: 4px; }
.close-btn {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; width: 28px; height: 28px;
  cursor: pointer; color: var(--muted); font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s;
}
.close-btn:hover { border-color: var(--accent); color: var(--text); }

/* Compare grid in drawer */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cg-col       { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.cg-label     { font-size: 10px; font-family: var(--mono); color: var(--muted); letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cg-dot       { width: 6px; height: 6px; border-radius: 50%; }
.cg-row       { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 12px; }
.cg-metric    { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.cg-val       { font-family: var(--mono); font-weight: 600; }

/* Delta summary in drawer */
.delta-summary { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.ds-title { font-size: 10px; font-family: var(--mono); color: var(--muted); letter-spacing: .5px; margin-bottom: 8px; }
.ds-row   { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.ds-row:last-child { border-bottom: none; }
.ds-name  { font-size: 12px; font-family: var(--mono); color: var(--muted); }
.section-title { font-size: 10px; font-family: var(--mono); color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(5px);
  z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { font-family: var(--mono); font-size: 11px; color: var(--accent2); margin-bottom: 18px; word-break: break-all; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Rank list (Top Pages) */
.rank-list  { padding: 4px 0; }
.rank-item  {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.025);
  transition: background .12s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: rgba(124,58,237,.04); }
.rank-num   {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: var(--mono); flex-shrink: 0;
}
.rank-num.gold   { background: rgba(251,191,36,.14); color: #fbbf24; }
.rank-num.silver { background: rgba(148,163,184,.1);  color: #94a3b8; }
.rank-num.bronze { background: rgba(180,120,60,.12);  color: #b4783c; }
.rank-num.rest   { background: var(--surface2);        color: var(--muted); }
.rank-info  { flex: 1; min-width: 0; }
.rank-url   { font-family: var(--mono); font-size: 11px; color: var(--accent2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-kw    { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rank-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.pill       { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.pill-green  { background: rgba(16,185,129,.1);  color: var(--green); }
.pill-blue   { background: rgba(59,130,246,.1);  color: var(--blue); }
.pill-yellow { background: rgba(245,158,11,.1);  color: var(--yellow); }
.pill-muted  { background: var(--surface2);       color: var(--muted); }

/* Bar */
.bar-wrap { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.bar-fill { height: 100%; border-radius: 2px; }

/* ── Period Picker ───────────────────────────────── */
.pp-wrap { display: flex; flex-direction: column; gap: 6px; }

/* Preset row */
.pp-presets {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.pp-preset {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-family: var(--mono); font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface2); color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap; line-height: 1;
}
.pp-preset:hover  { border-color: var(--accent); color: var(--accent2); }
.pp-preset.is-active {
  background: var(--accent); color: white; border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(124,58,237,.35);
}
.pp-preset svg { flex-shrink: 0; }

/* Custom panel */
.pp-custom                      { display: none; }
.pp-custom[data-visible="true"] { display: block; }

/* Compare grid — two rows in a neat container */
.pp-compare-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pp-cg-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.pp-cg-block + .pp-cg-block {
  border-top: 1px solid var(--border);
}

.pp-cg-title {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: .6px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: 80px;
  flex-shrink: 0;
}
.pp-cg-curr .pp-cg-title { color: var(--accent2); }
.pp-cg-prev .pp-cg-title { color: var(--muted); }

/* Date range row */
.pp-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.pp-date {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: border-color .15s;
  color-scheme: dark;
  width: 118px;
}
.pp-date:focus, .pp-date:hover { border-color: var(--accent); }

.pp-dash {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* Single mode label */
.pp-range-label {
  font-size: 10px; font-family: var(--mono); color: var(--muted);
  padding: 3px 7px; border-radius: 4px;
  background: var(--surface2); border: 1px solid var(--border);
  white-space: nowrap;
}

/* Single mode custom panel */
.pp-custom .pp-range {
  margin-top: 6px;
}

/* Auto button */
.pp-auto {
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.pp-auto:hover { border-color: var(--accent2); color: var(--accent2); }

/* ── Export toolbar ──────────────────────────────── */
.export-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.export-label {
  font-size: 11px; font-family: var(--mono); color: var(--muted);
  margin-right: 4px; white-space: nowrap;
}
.export-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono) !important; font-size: 12px !important;
}
.export-btn:hover { color: var(--accent2) !important; border-color: var(--accent) !important; }
.export-spinner {
  display: inline-block; width: 10px; height: 10px;
  border: 2px solid var(--border); border-top-color: var(--accent2);
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* ═══════════════════════════════════════════════════
   PTB — Page Text Block (admin editable)
   ═══════════════════════════════════════════════════ */

.ptb-title {
  font-size: 20px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text); line-height: 1.3;
  margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); display: block;
}

.ptb { font-size: 15px; line-height: 1.8; color: #94a3b8; }

.ptb h1 { font-size: 26px !important; font-weight: 800 !important; color: var(--text) !important;
  margin: 0 0 18px !important; display: block !important; line-height: 1.3 !important; }

.ptb h2 { font-size: 19px !important; font-weight: 700 !important; color: var(--text) !important;
  margin: 30px 0 12px !important; padding-bottom: 9px !important;
  border-bottom: 1px solid var(--border) !important;
  display: block !important; line-height: 1.3 !important; }

.ptb h3 { font-size: 15px !important; font-weight: 700 !important; color: var(--accent2) !important;
  margin: 22px 0 8px !important; display: block !important; }

.ptb h4 { font-size: 12px !important; font-weight: 700 !important; color: var(--muted) !important;
  font-family: var(--mono) !important; letter-spacing: .7px !important;
  text-transform: uppercase !important; margin: 16px 0 6px !important; display: block !important; }

.ptb p { margin-bottom: 13px !important; color: #94a3b8 !important; display: block !important; }

.ptb ul,
.ptb ul { margin: 8px 0 18px !important; padding: 0 !important; list-style: none !important; }

.ptb ul li {
  position: relative !important; list-style: none !important;
  padding: 3px 0 3px 22px !important; margin-bottom: 5px !important;
  color: #94a3b8 !important; display: block !important;
}
.ptb ul li::before {
  content: '' !important; position: absolute !important; left: 0 !important; top: 11px !important;
  width: 7px !important; height: 7px !important; border-radius: 50% !important;
  background: var(--accent2) !important; opacity: .75 !important;
}

.ptb ol { margin: 8px 0 18px !important; padding: 0 !important;
  list-style: none !important; counter-reset: ptb-ol !important; }
.ptb ol li {
  position: relative !important; list-style: none !important;
  padding: 2px 0 2px 32px !important; margin-bottom: 6px !important;
  color: #94a3b8 !important; counter-increment: ptb-ol !important; display: block !important;
}
.ptb ol li::before {
  content: counter(ptb-ol) !important; position: absolute !important; left: 0 !important; top: 3px !important;
  width: 22px !important; height: 22px !important; border-radius: 5px !important;
  background: rgba(124,58,237,.15) !important; color: var(--accent2) !important;
  font-size: 11px !important; font-family: var(--mono) !important; font-weight: 700 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}

/* Вложенные обёртки (section, div внутри .ptb) */
.ptb section h2, .ptb div h2 {
  font-size: 19px !important; font-weight: 700 !important; color: var(--text) !important;
  margin: 30px 0 12px !important; padding-bottom: 9px !important;
  border-bottom: 1px solid var(--border) !important; display: block !important;
}
.ptb section h3, .ptb div h3 {
  font-size: 15px !important; font-weight: 700 !important; color: var(--accent2) !important;
  margin: 22px 0 8px !important; display: block !important;
}
.ptb section ul, .ptb div ul {
  margin: 8px 0 18px !important; padding: 0 !important; list-style: none !important;
}
.ptb section ul li, .ptb div ul li {
  position: relative !important; list-style: none !important;
  padding: 3px 0 3px 22px !important; margin-bottom: 5px !important;
  color: #94a3b8 !important; display: block !important;
}
.ptb section ul li::before, .ptb div ul li::before {
  content: '' !important; position: absolute !important; left: 0 !important; top: 11px !important;
  width: 7px !important; height: 7px !important; border-radius: 50% !important;
  background: var(--accent2) !important; opacity: .75 !important;
}
.ptb section p, .ptb div p {
  margin-bottom: 13px !important; color: #94a3b8 !important; display: block !important;
}

.ptb strong { color: var(--text) !important; font-weight: 700 !important; }
.ptb em     { color: var(--accent2) !important; font-style: italic !important; }
.ptb a      { color: var(--accent2) !important; text-decoration: none !important;
  border-bottom: 1px solid rgba(167,139,250,.35) !important; }
.ptb a:hover { border-bottom-color: var(--accent2) !important; }

.ptb code { font-family: var(--mono) !important; font-size: 12px !important;
  background: var(--surface2) !important; border: 1px solid var(--border) !important;
  padding: 2px 7px !important; border-radius: 4px !important; color: var(--accent2) !important; }
.ptb pre  { background: var(--surface2) !important; border: 1px solid var(--border) !important;
  border-radius: 8px !important; padding: 16px !important; overflow-x: auto !important; margin: 16px 0 !important; }
.ptb pre code { background: none !important; border: none !important; padding: 0 !important; font-size: 13px !important; }

.ptb blockquote { border-left: 3px solid var(--accent) !important;
  padding: 10px 18px !important; margin: 18px 0 !important;
  background: rgba(124,58,237,.06) !important; border-radius: 0 8px 8px 0 !important; }
.ptb blockquote p { color: #b8c7e0 !important; margin: 0 !important; }

.ptb hr { border: none !important; border-top: 1px solid var(--border) !important; margin: 26px 0 !important; }

.ptb > *:first-child { margin-top: 0 !important; }
.ptb > *:last-child  { margin-bottom: 0 !important; }


/* ── Select / Dropdown ───────────────────────────── */
select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .2s;
}
select:focus { border-color: var(--accent); }
select option {
  background: var(--surface2);
  color: var(--text);
}