/* Clickem tools design system. Shared by every tool. No italics anywhere. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #141A25;
  --ink-2: #3A4354;
  --muted: #6B7587;
  --line: #E3E8EF;
  --line-2: #D3DAE5;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --blue: #4081EC;
  --blue-600: #2F6FDB;
  --blue-50: #EEF4FE;
  --blue-100: #DCE8FC;
  --coral: #FF6B6B;
  --green: #16A06A;
  --green-50: #E8F7F0;
  --amber: #C98A0B;
  --amber-50: #FDF5E3;
  --red: #E0484D;
  --red-50: #FDECEC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 26, 37, .04), 0 8px 24px -12px rgba(20, 26, 37, .12);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; font-style: normal;
}
em, i, cite, var, dfn, address { font-style: normal; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue-100); }

/* Page shell (standalone only; hidden when embedded) */
.ck-top { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 22px 20px 0; }
.ck-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-size: 17px; }
.ck-brand:hover { text-decoration: none; }
.ck-brand svg { width: 26px; height: 26px; }
.ck-top a.ck-all { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ck-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 20px 48px; }
.ck-head { margin: 18px 0 22px; }
.ck-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.ck-title { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 6px 0 8px; }
.ck-sub { color: var(--ink-2); margin: 0; max-width: 680px; font-size: 16px; }
.ck-foot { max-width: 1120px; margin: 0 auto; padding: 0 20px 32px; color: var(--muted); font-size: 13px; }
html.is-embed body { background: transparent; }
html.is-embed .ck-top, html.is-embed .ck-head, html.is-embed .ck-foot { display: none; }
html.is-embed .ck-wrap { padding: 2px; max-width: none; }

/* App card */
.ck-app { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ck-grid.even { grid-template-columns: 1fr 1fr; }
.ck-pane { padding: 28px; min-width: 0; }
.ck-pane + .ck-pane { border-left: 1px solid var(--line); background: #FBFCFE; }
.ck-pane-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.ck-single { padding: 28px; }
@media (max-width: 860px) {
  .ck-grid, .ck-grid.even { grid-template-columns: 1fr; }
  .ck-pane + .ck-pane { border-left: 0; border-top: 1px solid var(--line); }
  .ck-pane, .ck-single { padding: 22px 18px; }
  .ck-title { font-size: 28px; }
}

/* Tabs / segmented control */
.ck-seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.ck-seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.ck-seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20,26,37,.08), 0 0 0 1px var(--line); }

/* Fields */
.ck-field { margin: 0 0 16px; }
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .ck-row, .ck-row.three { grid-template-columns: 1fr; } }
.ck-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.ck-label .ck-hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.ck-input, .ck-select, .ck-textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.ck-textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.ck-select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7587' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ck-input:focus, .ck-select:focus, .ck-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.ck-input::placeholder, .ck-textarea::placeholder { color: #9AA3B2; }
.ck-affix { position: relative; }
.ck-affix > span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; color: var(--muted); font-weight: 600; pointer-events: none; font-size: 14px; }
.ck-affix > span.pre { left: 14px; }
.ck-affix > span.suf { right: 14px; }
.ck-affix.has-pre .ck-input { padding-left: 30px; }
.ck-affix.has-suf .ck-input { padding-right: 34px; }
.ck-help { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.ck-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; margin: 0 0 10px; }
.ck-check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.ck-range { width: 100%; accent-color: var(--blue); }

/* Buttons */
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; text-decoration: none; }
.ck-btn:hover { text-decoration: none; }
.ck-btn:active { transform: translateY(1px); }
.ck-btn-primary { background: var(--blue); color: #fff; }
.ck-btn-primary:hover { background: var(--blue-600); }
.ck-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.ck-btn-ghost:hover { border-color: var(--ink-2); }
.ck-btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.ck-btn-block { width: 100%; }
.ck-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ck-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: ck-spin .7s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }

/* Results */
.ck-hero-stat { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 22px 20px; }
.ck-hero-stat .k { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.ck-hero-stat .v { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.ck-hero-stat .d { font-size: 14px; color: rgba(255,255,255,.78); }
.ck-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.ck-stat { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; }
.ck-stat .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ck-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ck-stat .d { font-size: 12.5px; color: var(--muted); }
.ck-note { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 14px; background: var(--blue-50); color: #1F3F7A; }
.ck-note.good { background: var(--green-50); color: #0C5E3E; }
.ck-note.warn { background: var(--amber-50); color: #7A5306; }
.ck-note.bad { background: var(--red-50); color: #8F1F24; }
.ck-note strong { font-weight: 700; }
.ck-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.ck-badge.good { background: var(--green-50); color: var(--green); border-color: transparent; }
.ck-badge.warn { background: var(--amber-50); color: var(--amber); border-color: transparent; }
.ck-badge.bad { background: var(--red-50); color: var(--red); border-color: transparent; }
.ck-empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.ck-empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* Lists of generated items */
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ck-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 10px 10px 14px; }
.ck-item .t { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ck-item .n { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-item .n.over { color: var(--red); }
.ck-icon-btn { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.ck-icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.ck-icon-btn svg { width: 16px; height: 16px; }
.ck-code { font-family: var(--mono); font-size: 13.5px; background: var(--ink); color: #E8EDF5; border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; line-height: 1.6; }

/* Tables */
.ck-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ck-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ck-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #FAFBFD; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ck-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ck-table tr:last-child td { border-bottom: 0; }
.ck-table th.num, .ck-table td.num { text-align: right; }
.ck-table tr.hl td { background: var(--blue-50); font-weight: 700; }
.ck-table th button { all: unset; cursor: pointer; }

/* Bars */
.ck-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.ck-bar > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }

/* Ad previews */
.ck-serp { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-family: Arial, sans-serif; }
.ck-serp .sp { font-size: 12px; font-weight: 700; color: #202124; margin-bottom: 4px; }
.ck-serp .url { font-size: 13px; color: #202124; display: flex; align-items: center; gap: 8px; }
.ck-serp .fav { width: 26px; height: 26px; border-radius: 50%; background: #F1F3F4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #5F6368; }
.ck-serp .h { font-size: 20px; line-height: 1.3; color: #1A0DAB; margin: 6px 0 4px; }
.ck-serp .d { font-size: 14px; line-height: 1.58; color: #4D5156; }

/* Toast */
.ck-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; }
.ck-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Utilities */
.ck-mt { margin-top: 16px; } .ck-mt-sm { margin-top: 8px; } .ck-mb { margin-bottom: 16px; }
.ck-muted { color: var(--muted); } .ck-small { font-size: 13px; }
.ck-flex { display: flex; gap: 10px; align-items: center; } .ck-between { justify-content: space-between; } .ck-wrapf { flex-wrap: wrap; }
.ck-hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
