/* Odeo Agency — alət interfeysləri
 * Host səhifə təyin edir: --bg --fg --muted --line --card --accent --accent-ink --radius --font-body --font-mono --font-display
 */
.ot {
  --ot-ok: #2f7d55;
  --ot-warn: #b5741c;
  --ot-bad: #c0392b;
  --ot-r: var(--radius, 14px);
  --ot-r-sm: calc(var(--ot-r) * .6);
  --ot-field: color-mix(in srgb, var(--card) 70%, var(--bg));
  --ot-focus: color-mix(in srgb, var(--accent) 45%, transparent);
  font-family: var(--font-body, system-ui, sans-serif);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.ot *, .ot *::before, .ot *::after { box-sizing: border-box; }
.ot [hidden] { display: none !important; }

/* Tor */
.ot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.ot-grid--wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
.ot-in, .ot-out { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ot-out {
  position: sticky; top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--ot-r) * 1.4);
  padding: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 860px) {
  .ot-grid, .ot-grid--wide { grid-template-columns: minmax(0, 1fr); }
  .ot-out { position: static; }
}
.ot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: start; }

/* Sahələr */
.ot-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.ot-fieldset { border: 0; padding: 0; }
.ot-label, .ot-sub {
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--fg); margin: 0; padding: 0;
}
.ot-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; }
.ot-field > label:empty { display: none; }
.ot-field > label:has(.ot-label-row) { display: flex; }
.ot-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.ot-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.ot-input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  font: inherit; font-size: 16px; color: var(--fg);
  background: var(--ot-field);
  border: 1px solid var(--line);
  border-radius: var(--ot-r-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.ot-input::placeholder { color: var(--muted); opacity: .7; }
.ot-input:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.ot-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ot-focus); background: var(--card); }
.ot-input[aria-invalid="true"] { border-color: var(--ot-bad); }
.ot-input--num { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 500; }
.ot-input--mono { font-family: var(--font-mono, monospace); text-transform: uppercase; }
.ot-area { min-height: 96px; resize: vertical; line-height: 1.5; }
.ot-select {
  padding-right: 42px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.ot-file { font: inherit; font-size: 14px; color: var(--muted); }
.ot-file::file-selector-button {
  font: inherit; font-weight: 600; font-size: 14px; color: var(--fg);
  background: var(--ot-field); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; margin-right: 12px; cursor: pointer;
}

/* Checkbox */
.ot-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; position: relative; padding: 2px 0; }
.ot-check-in { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.ot-check-box {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid color-mix(in srgb, var(--fg) 35%, var(--line));
  background: var(--ot-field); position: relative; transition: background .15s, border-color .15s;
}
.ot-check-box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--accent-ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); transition: transform .15s;
}
.ot-check-in:checked + .ot-check-box { background: var(--accent); border-color: var(--accent); }
.ot-check-in:checked + .ot-check-box::after { transform: rotate(45deg) scale(1); }
.ot-check-in:focus-visible + .ot-check-box { box-shadow: 0 0 0 4px var(--ot-focus); }
.ot-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.ot-fieldset > .ot-check + .ot-check { margin-top: 6px; }
.ot-fieldset > legend + .ot-check { margin-top: 8px; }

/* Seqment */
.ot-seg {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--ot-field); border: 1px solid var(--line); border-radius: calc(var(--ot-r-sm) + 4px);
  margin-top: 7px;
}
.ot-seg-in { position: absolute; opacity: 0; pointer-events: none; }
.ot-seg-btn {
  flex: 1 1 auto; text-align: center; padding: 10px 14px; border-radius: var(--ot-r-sm);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: pre; transition: background .15s, color .15s;
}
.ot-seg-btn:hover { color: var(--fg); }
.ot-seg-in:checked + .ot-seg-btn { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06); }
.ot-seg-in:focus-visible + .ot-seg-btn { box-shadow: 0 0 0 3px var(--ot-focus); }

/* Düymələr */
.ot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  color: var(--fg); background: var(--ot-field);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.ot-btn:hover { border-color: color-mix(in srgb, var(--fg) 35%, var(--line)); }
.ot-btn:active { transform: scale(.98); }
.ot-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ot-focus); }
.ot-btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ot-btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); border-color: transparent; }
.ot-btn--ghost { background: transparent; }
.ot-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.ot-btn.is-done { background: var(--ot-ok); border-color: var(--ot-ok); color: #fff; }
.ot-btn svg { flex: none; }
.ot-in > .ot-btn { align-self: flex-start; }
.ot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-chip { min-height: 38px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.ot-chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nəticələr */
.ot-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ot-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ot-stat {
  padding: 14px 16px; border-radius: var(--ot-r);
  background: var(--bg); border: 1px solid var(--line); min-width: 0;
}
.ot-stat-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.ot-stat-v {
  font-family: var(--font-display, var(--font-body)); font-size: 22px; font-weight: 600; line-height: 1.2;
  margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.ot-stat-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ot-stat-s:empty { display: none; }
.ot-stat--big { grid-column: 1 / -1; padding: 20px 22px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ot-stat--big .ot-stat-l, .ot-stat--big .ot-stat-s { color: inherit; opacity: .8; }
.ot-stat--big .ot-stat-v { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; white-space: nowrap; }
.ot-stat[data-tone="ok"] .ot-stat-v { color: var(--ot-ok); }
.ot-stat[data-tone="bad"] .ot-stat-v { color: var(--ot-bad); }

.ot-verdict { margin: 0; padding: 12px 16px; border-radius: var(--ot-r-sm); background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.ot-verdict.is-ok { border-color: color-mix(in srgb, var(--ot-ok) 50%, var(--line)); background: color-mix(in srgb, var(--ot-ok) 9%, var(--bg)); }
.ot-verdict.is-bad { border-color: color-mix(in srgb, var(--ot-bad) 50%, var(--line)); background: color-mix(in srgb, var(--ot-bad) 8%, var(--bg)); }
.ot-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.ot-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ot-msg { position: relative; padding: 9px 12px 9px 32px; font-size: 14px; border-radius: var(--ot-r-sm); background: var(--bg); }
.ot-msg::before { content: ""; position: absolute; left: 13px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ot-msg--ok::before { background: var(--ot-ok); }
.ot-msg--warn::before { background: var(--ot-warn); }
.ot-msg--err { color: var(--ot-bad); }
.ot-msg--err::before { background: var(--ot-bad); }

.ot-result-url {
  display: block; padding: 16px; border-radius: var(--ot-r-sm); background: var(--bg); border: 1px solid var(--line);
  font-family: var(--font-mono, monospace); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-all;
}
.ot-result-url.is-empty { color: var(--muted); }

/* Kod */
.ot-codebox { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ot-codebox-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ot-codebox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ot-code {
  margin: 0; padding: 16px 18px; max-height: 520px; overflow: auto;
  background: #14211C; color: #EBD9B9;
  border-radius: var(--ot-r-sm);
  font-family: var(--font-mono, monospace); font-size: 13px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; tab-size: 2;
}
.ot-code:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ot-focus); }
.ot-inline-code { font-family: var(--font-mono, monospace); font-size: 12px; word-break: break-all; color: var(--muted); }
.ot-payload { display: flex; flex-direction: column; gap: 4px; }

/* Ölçü zolağı */
.ot-meters { display: flex; flex-direction: column; gap: 6px; }
.ot-meter-info { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
.ot-meter { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.ot-meter-bar { height: 100%; width: 0; border-radius: inherit; background: var(--ot-ok); transition: width .2s, background .2s; }
.ot-meter[data-tone="warn"] .ot-meter-bar { background: var(--ot-warn); }
.ot-meter[data-tone="bad"] .ot-meter-bar { background: var(--ot-bad); }
.ot-counter { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 500; color: var(--muted); }
.ot-counter[data-tone="bad"] { color: var(--ot-bad); }

/* Simvol sayğacı */
.ot-count { font-family: var(--font-display, var(--font-body)); font-size: clamp(40px, 6vw, 56px); font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ot-count[data-tone="bad"] { color: var(--ot-bad); }
.ot-count-l { font-size: 14px; color: var(--muted); }
.ot-overflow-t { padding: 12px 14px; border-radius: var(--ot-r-sm); background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; margin-top: 6px; }
.ot-overflow-t mark { background: color-mix(in srgb, var(--ot-bad) 18%, transparent); color: var(--ot-bad); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 3px; }
.ot-table-wrap { overflow-x: auto; }
.ot-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ot-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ot-table td { padding: 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
.ot-table tr:last-child td { border-bottom: 0; }
.ot-table tr.is-bad td { color: var(--ot-bad); }
.ot-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--fg); white-space: nowrap; }
.ot-empty { color: var(--muted); font-size: 14px; }

/* Heşteqlər */
.ot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-tag-btn {
  font: inherit; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  transition: opacity .15s, background .15s;
}
.ot-tag-btn:hover { background: color-mix(in srgb, var(--accent) 20%, var(--bg)); }
.ot-tag-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ot-focus); }
.ot-tag-btn.is-off { opacity: .45; text-decoration: line-through; background: transparent; border-style: dashed; }

/* Engagement şkalası */
.ot-scale { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: 14px; }
.ot-scale span { text-align: center; font-size: 12px; font-weight: 600; padding: 8px 0; border-radius: 6px; background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--muted); }
.ot-scale span.is-on { background: var(--accent); color: var(--accent-ink); }
.ot-scale-mark { position: absolute; top: 0; width: 2px; height: 10px; background: var(--fg); transform: translateX(-1px); border-radius: 2px; transition: left .2s; }

/* SERP */
.ot-g { background: #fff; color: #202124; border-radius: var(--ot-r); padding: 20px 22px; font-family: Arial, "Liberation Sans", Helvetica, sans-serif; border: 1px solid #ebebeb; overflow: hidden; }
.ot-g-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ot-g-fav { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #4d5156; }
.ot-g-src { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ot-g-site { font-size: 14px; color: #202124; }
.ot-g-crumb { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-g-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; max-width: 600px; }
.ot-g-desc { font-size: 14px; line-height: 1.58; color: #4d5156; max-width: 600px; overflow-wrap: break-word; }
.ot-g.is-mobile { max-width: 380px; padding: 16px; border-radius: 16px; box-shadow: 0 1px 6px rgba(32,33,36,.18); border: 0; }
.ot-g.is-mobile .ot-g-title { white-space: normal; font-size: 18px; line-height: 1.33; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ot-g.is-mobile .ot-g-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .ot-g:not(.is-mobile) .ot-g-title { white-space: normal; } }

/* Sosial önizləmə */
.ot-sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .ot-sp-grid { grid-template-columns: minmax(0, 1fr); } }
.ot-sp { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ot-sp figcaption { font-size: 12px; font-weight: 600; color: var(--muted); }
.ot-sp-card { overflow: hidden; background: #fff; color: #1c1e21; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.ot-sp-img { aspect-ratio: 1.91 / 1; background: #e4e6eb; display: grid; place-items: center; overflow: hidden; }
.ot-sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ot-sp-img.is-ph { background: repeating-linear-gradient(45deg, #e8e8e8 0 10px, #f2f2f2 10px 20px); color: #8a8d91; font-size: 12px; font-family: var(--font-mono, monospace); }
.ot-sp-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ot-sp-dom { font-size: 12px; color: #65676b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-sp-t { font-size: 16px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ot-sp-d { font-size: 14px; color: #65676b; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ot-sp--fb .ot-sp-card { border: 1px solid #dadde1; }
.ot-sp--fb .ot-sp-body { background: #f0f2f5; }
.ot-sp--wa .ot-sp-bubble { background: #d9fdd3; border-radius: 10px; padding: 4px 4px 6px; max-width: 360px; align-self: flex-end; width: 100%; box-shadow: 0 1px .5px rgba(11,20,26,.13); font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.ot-sp--wa .ot-sp-card { background: #cfe9c7; border-radius: 7px; display: flex; color: #111b21; }
.ot-sp--wa .ot-sp-img.is-thumb { flex: none; width: 84px; aspect-ratio: 1; }
.ot-sp--wa .ot-sp-t { font-size: 14px; }
.ot-sp--wa .ot-sp-d { font-size: 12px; -webkit-line-clamp: 2; color: #54656f; }
.ot-sp--wa .ot-sp-dom { color: #54656f; }
.ot-sp-link { font-size: 14px; color: #027eb5; padding: 6px 6px 0; overflow-wrap: anywhere; }
.ot-sp-time { font-size: 11px; color: #667781; text-align: right; padding: 0 6px; }
.ot-sp--li .ot-sp-card { border: 1px solid #e0dfdc; border-radius: 8px; }
.ot-sp--li .ot-sp-body { background: #fff; padding: 10px 12px 12px; }
.ot-sp--li .ot-sp-t { font-size: 14px; color: rgba(0,0,0,.9); }
.ot-sp--x .ot-sp-card { background: transparent; color: #0f1419; }
.ot-sp-xwrap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #cfd9de; }
.ot-sp-xt { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(0,0,0,.77); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-sp--x .ot-sp-dom { padding: 4px 2px 0; color: var(--muted); }

/* Kontrast */
.ot-color-row { display: flex; gap: 10px; align-items: stretch; }
.ot-color-row .ot-input { flex: 1; }
.ot-color {
  flex: none; width: 56px; height: 50px; padding: 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--ot-r-sm); background: var(--ot-field);
}
.ot-color::-webkit-color-swatch-wrapper { padding: 0; }
.ot-color::-webkit-color-swatch { border: 0; border-radius: calc(var(--ot-r-sm) - 4px); }
.ot-color::-moz-color-swatch { border: 0; border-radius: calc(var(--ot-r-sm) - 4px); }
.ot-color:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ot-focus); }
.ot-ratio { font-family: var(--font-display, var(--font-body)); font-size: clamp(44px, 7vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ot-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ot-badge { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--ot-r-sm); border: 1px solid var(--line); background: var(--bg); }
.ot-badge strong { grid-row: span 2; font-family: var(--font-mono, monospace); font-size: 13px; padding: 4px 8px; border-radius: 6px; color: #fff; }
.ot-badge span { font-size: 12px; color: var(--muted); }
.ot-badge em { font-style: normal; font-size: 14px; font-weight: 600; }
.ot-badge.is-ok strong { background: var(--ot-ok); }
.ot-badge.is-ok em { color: var(--ot-ok); }
.ot-badge.is-bad strong { background: var(--ot-bad); }
.ot-badge.is-bad em { color: var(--ot-bad); }
.ot-preview { padding: 22px; border-radius: var(--ot-r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ot-preview-lg { font-size: 24px; font-weight: 700; line-height: 1.2; }
.ot-preview p { margin: 0; font-size: 16px; }
.ot-preview-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.ot-suggest { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.ot-suggest:empty { display: none; }
.ot-suggest code { font-family: var(--font-mono, monospace); }
.ot-swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }

/* QR */
.ot-qr { width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; border-radius: var(--ot-r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ot-qr svg { display: block; width: 100%; height: 100%; }
.ot-qr.is-empty { background: repeating-linear-gradient(45deg, var(--bg) 0 10px, var(--card) 10px 20px); }
.ot-qr + .ot-count-l { text-align: center; font-size: 13px; }
.ot-dyn { display: flex; flex-direction: column; gap: 18px; }
.ot-in .ot-row .ot-color { width: 100%; }

/* Təkrarlanan sətirlər */
.ot-repeat { display: flex; flex-direction: column; gap: 14px; }
.ot-repeat-row { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--ot-r); background: var(--card); }
.ot-repeat-row > .ot-btn { align-self: flex-end; }

/* Slug */
.ot-slugs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ot-slugs > li:not(.ot-empty) { padding: 14px; border-radius: var(--ot-r-sm); background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ot-slug-src { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ot-slug-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ot-slug { font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.ot-slug-full { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--muted); word-break: break-all; }

/* UTM tarixçə */
.ot-history-wrap { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ot-history-wrap > .ot-row { display: flex; justify-content: space-between; align-items: center; }
.ot-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ot-history li { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-width: 0; }
.ot-history-link { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

@media (max-width: 480px) {
  .ot-out { padding: 16px; border-radius: var(--ot-r); }
  .ot-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-stat { padding: 12px; }
  .ot-stat-v { font-size: 18px; }
  .ot-stat--big { grid-column: 1 / -1; }
  .ot-actions .ot-btn { flex: 1 1 auto; }
  .ot-seg-btn { padding: 10px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ot * { transition: none !important; }
}
