:root {
  --bg: #ffffff;
  --ink: #1f2330;
  --muted: #5f6571;
  --faint: #8a909c;
  --line: #e8eaed;
  --line-soft: #f1f3f4;
  --accent: #4f7cff;
  --accent-2: #18b8a6;
  --accent-ink: #2b53d6;
  --good: #1aa260;
  --warn: #e8a417;
  --bad: #e5484d;
  --shadow-1: 0 1px 6px rgba(32, 33, 36, .12);
  --shadow-2: 0 2px 18px rgba(32, 33, 36, .14);
  --shadow-3: 0 12px 40px rgba(32, 33, 36, .18);
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* The `hidden` attribute must win over class display rules (e.g. .drawer's
   display:flex), otherwise toggling el.hidden never hides the element. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 540px at 50% -8%, rgba(79,124,255,.06), transparent 60%),
    radial-gradient(900px 480px at 92% 6%, rgba(24,184,166,.05), transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  backdrop-filter: saturate(150%) blur(6px);
}
.brand-mini {
  font-weight: 700; font-size: 19px; letter-spacing: -.3px;
  opacity: 0; transform: translateY(-4px); transition: .28s ease;
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.searched .brand-mini { opacity: 1; transform: none; }
.catalog-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: .18s ease; box-shadow: var(--shadow-1);
}
.catalog-btn:hover { color: var(--ink); border-color: #d6d9de; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.conn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  cursor: pointer; box-shadow: var(--shadow-1); transition: .16s ease; max-width: 240px;
}
.conn-pill:hover { border-color: #cdd8ff; box-shadow: var(--shadow-2); }
.conn-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; box-shadow: 0 0 0 3px rgba(26,162,96,.15); }

/* connection list + form */
.conn-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; transition: .15s ease;
}
.conn-item.active { border-color: #bcd0ff; background: #f6f9ff; }
.conn-item .ci-main { flex: 1; min-width: 0; }
.conn-item .ci-name { font-weight: 600; font-size: 14px; }
.conn-item .ci-meta { font-size: 12px; color: var(--faint); font-family: var(--mono); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-item .ci-badge { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--good); background: #e6f6ee; padding: 3px 8px; border-radius: 6px; }
.conn-item .ci-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--muted); transition: .15s ease; }
.conn-item .ci-btn:hover { color: var(--ink); border-color: #cfd3d9; }
.conn-item .ci-btn.del:hover { color: var(--bad); border-color: #f1c4c4; }

.add-conn { margin-top: 22px; }
.conn-form { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.fld span { font-weight: 500; }
.fld input, .fld select {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 14px;
  font-family: var(--font); color: var(--ink); background: #fff; outline: none; transition: .15s ease;
}
.fld input:focus, .fld select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,.12); }
.fld.toggle { flex-direction: row; align-items: center; gap: 9px; cursor: pointer; }
.fld.toggle input { width: auto; }
.fld.toggle em { color: var(--faint); font-style: normal; font-size: 12px; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 11px; }
.conn-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn { border-radius: 10px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); transition: .16s ease; }
.btn.ghost { background: #fff; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); border-color: #cfd3d9; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; box-shadow: 0 4px 14px rgba(79,124,255,.3); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,124,255,.4); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.test-result { font-size: 13px; padding: 10px 12px; border-radius: 9px; }
.test-result.ok { background: #e6f6ee; color: var(--good); }
.test-result.bad { background: #fdeaea; color: var(--bad); }
.field-hint { font-size: 11.5px; color: var(--faint); }

/* ---------- stage / hero ---------- */
.stage {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 64px);
  transition: min-height .4s cubic-bezier(.2,.7,.2,1);
}
body.searched .stage { min-height: 0; padding-top: 18px; }
.hero { width: min(680px, 92vw); text-align: center; }
.logo {
  font-size: clamp(56px, 11vw, 92px); font-weight: 700; letter-spacing: -3px;
  margin: 0 0 6px; line-height: 1; transition: .4s ease;
}
.logo span { display: inline-block; }
.logo .c1 { color: #4f7cff; } .logo .c2 { color: #e5484d; }
.logo .c3 { color: #e8a417; } .logo .c4 { color: #4f7cff; } .logo .c5 { color: #1aa260; }
body.searched .logo { font-size: clamp(30px, 5vw, 40px); letter-spacing: -1.5px; margin-bottom: 2px; }
.tagline { color: var(--muted); font-size: 15.5px; margin: 0 0 30px; transition: .3s ease; }
body.searched .tagline { display: none; }

/* ---------- search ---------- */
.search {
  display: flex; align-items: flex-end; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 26px; padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-1); transition: box-shadow .2s ease, border-color .2s ease;
  max-width: 680px; margin: 0 auto;
}
.search:focus-within { box-shadow: var(--shadow-3); border-color: transparent; }
.search-ico { color: var(--faint); flex: none; margin-bottom: 11px; }
.search textarea {
  flex: 1; border: none; outline: none; background: transparent; resize: none;
  font-size: 17px; color: var(--ink); padding: 11px 4px; font-family: var(--font);
  line-height: 1.45; max-height: 168px; overflow-y: auto;
}
.search textarea::placeholder { color: var(--faint); }
.search .go { margin-bottom: 2px; }

/* active clarification note shown under the search */
.refine-note {
  max-width: 680px; margin: 11px auto 0; display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--accent-ink); background: #f1f5ff;
  border: 1px solid #dbe5ff; border-radius: 11px; padding: 9px 13px; text-align: left;
}
.refine-note .rn-label { color: var(--faint); font-weight: 600; flex: none; }
.refine-note .rn-text { flex: 1; }
.refine-note .rn-x { cursor: pointer; border: none; background: none; color: var(--faint); font-size: 15px; line-height: 1; padding: 2px; }
.refine-note .rn-x:hover { color: var(--bad); }
.go {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(79,124,255,.35); transition: .18s ease;
}
.go:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 6px 20px rgba(79,124,255,.45); }
.go:active { transform: scale(.96); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
body.searched .chips { display: none; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: .16s ease; box-shadow: var(--shadow-1);
}
.chip:hover { color: var(--accent-ink); border-color: #cdd8ff; background: #f7f9ff; transform: translateY(-1px); }

/* ---------- results ---------- */
.results { width: min(820px, 92vw); margin: 6px auto 90px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); margin-bottom: 16px; overflow: hidden;
  animation: rise .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
}
.card-title { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); }
.meta { font-size: 12.5px; color: var(--faint); }

/* trace */
.trace { min-height: 26px; margin: 6px 2px 14px; display: flex; flex-direction: column; gap: 6px; }
.trace-step {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted);
  animation: rise .25s ease both;
}
.trace-step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.trace-step.done .dot { background: var(--good); }
.trace-step.active .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(79,124,255,.16); animation: pulse 1s infinite; }
.trace-step.err .dot { background: var(--bad); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* answer */
.answer-card { padding: 18px 20px 20px; }
.answer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.answer-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); font-weight: 600; }
.answer-text { font-size: 20px; line-height: 1.5; margin: 0; font-weight: 500; letter-spacing: -.2px; }
.conf { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.conf.good { background: #e6f6ee; color: var(--good); }
.conf.warn { background: #fdf3df; color: #b9810a; }
.conf.bad { background: #fdeaea; color: var(--bad); }
.assumptions { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.assumptions b { color: var(--ink); font-weight: 600; }

/* sql */
.sql { margin: 0; padding: 16px 18px; background: #0f1320; overflow-x: auto; }
.sql code { font-family: var(--mono); font-size: 13.5px; color: #d8def0; line-height: 1.6; white-space: pre; }
.copy {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 5px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer; transition: .15s ease;
}
.copy:hover { color: var(--ink); border-color: #d0d4da; }
.copy.ok { color: var(--good); border-color: #b7e3ca; }

/* result table */
.table-wrap { overflow-x: auto; max-height: 420px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
thead th {
  position: sticky; top: 0; background: #f7f8fa; color: var(--muted);
  text-align: left; font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink); white-space: nowrap; }
tbody tr:nth-child(even) { background: #fbfbfc; }
tbody tr:hover { background: #f5f8ff; }

.error-card { padding: 16px 18px; color: var(--bad); font-size: 14px; border-color: #f6cdcd; background: #fdf6f6; }

/* query diagram (tables + fields + joins) */
.diag-body { position: relative; overflow-x: auto; padding: 24px 20px 26px; }
.diag-svg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.diag-boxes { position: relative; z-index: 2; display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.diag-link { fill: none; stroke: var(--accent); stroke-width: 1.8; opacity: .5; }
.diag-table { border: 1px solid var(--line); border-radius: 11px; min-width: 148px; background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.dt-head { background: #f1f5ff; color: var(--accent-ink); font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.dt-alias { color: var(--faint); font-weight: 400; }
.dt-col { font-family: var(--mono); font-size: 12.5px; padding: 7px 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.dt-col:last-child { border-bottom: none; }
.dt-col.joined { color: var(--accent-ink); font-weight: 600; background: #f7f9ff; }
.dt-col.joined::before { content: "🔗"; font-size: 10px; margin-right: 6px; opacity: .7; }

/* hero hint */
.hero-hint { margin-top: 18px; font-size: 13px; color: var(--faint); }
body.searched .hero-hint { display: none; }
.hero-hint a { color: var(--accent-ink); cursor: pointer; font-weight: 500; }
.hero-hint a:hover { text-decoration: underline; }

/* clarify card */
.clarify-card { padding: 18px 20px 20px; border-color: #d9e3ff; background: linear-gradient(180deg,#f7f9ff,#fff); }
.clarify-head { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.clarify-q { font-size: 17px; font-weight: 500; margin: 0 0 4px; line-height: 1.45; }
.clarify-why { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.clarify-opts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.clarify-opt { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 12px 14px; cursor: pointer; transition: .15s ease; }
.clarify-opt:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.clarify-opt .o-label { font-weight: 600; font-size: 14px; }
.clarify-opt .o-interp { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.clarify-custom { display: flex; gap: 8px; }
.clarify-custom input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14px; font-family: var(--font); outline: none; }
.clarify-custom input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,.12); }
.clarify-custom button { width: 42px; border: none; border-radius: 10px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; font-size: 18px; cursor: pointer; }

/* assistant chat */
.asst-thread { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.asst-msg { max-width: 92%; font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; white-space: pre-wrap; }
.asst-msg.user { align-self: flex-end; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; border-bottom-right-radius: 4px; }
.asst-msg.bot { align-self: flex-start; background: #f3f5f8; color: var(--ink); border-bottom-left-radius: 4px; }
.asst-msg.bot.compute { background: #fff7e9; border: 1px solid #f3e2bf; }
.asst-run { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; background: var(--ink); color: #fff; padding: 8px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.asst-run:hover { background: #000; }
.asst-hint { align-self: center; color: var(--faint); font-size: 12.5px; text-align: center; padding: 8px 14px; }
.asst-examples { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; padding: 0 14px; }
.asst-ex { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: .15s ease; }
.asst-ex:hover { color: var(--accent-ink); border-color: #cdd8ff; background: #f7f9ff; }
.asst-input { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.asst-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 14px; font-family: var(--font); outline: none; }
.asst-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,.12); }
.asst-input button { width: 44px; border: none; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; font-size: 18px; cursor: pointer; }
.asst-typing { align-self: flex-start; color: var(--faint); font-size: 13px; padding: 4px 14px; }

/* ---------- 2-column layout: content (left) + docked assistant (right) ---------- */
.layout { display: flex; align-items: flex-start; }
.center { flex: 1; min-width: 0; }
.dock { background: #fff; display: flex; flex-direction: column; }
.dock-right {
  flex: 0 0 440px; align-self: stretch;
  position: sticky; top: 64px; height: calc(100vh - 64px);
  border-left: 1px solid var(--line);
}
.dock.collapsed { display: none; }
.dock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 18px 13px; border-bottom: 1px solid var(--line); flex: none; }
.dock-head h2 { margin: 0; font-size: 17px; }
.dock-head .drawer-sub { margin: 5px 0 0; }
.dock-close { display: none; border: none; background: var(--line-soft); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 14px; flex: none; }
.dock-close:hover { background: #e7e9ec; color: var(--ink); }
.dock-backdrop { position: fixed; inset: 0; background: rgba(20,22,30,.34); z-index: 35; animation: fade .2s ease; }

@media (max-width: 1024px) {
  .dock-right {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(460px, 92vw);
    z-index: 40; box-shadow: var(--shadow-3);
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .dock-right.collapsed { display: flex; transform: translateX(105%); }
  .dock-right:not(.collapsed) { transform: none; }
  .dock-close { display: block; }
}

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,22,30,.34); z-index: 30; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(520px, 94vw);
  background: #fff; z-index: 31; box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; animation: slide .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes slide { from { transform: translateX(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.drawer-close { border: none; background: var(--line-soft); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 15px; }
.drawer-close:hover { background: #e7e9ec; color: var(--ink); }
.drawer-body { overflow-y: auto; padding: 14px 18px 40px; }

.tbl-row {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  transition: .15s ease;
}
.tbl-row:hover { border-color: #d6dae0; box-shadow: var(--shadow-1); }
.tbl-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer; }
.tbl-name { font-weight: 600; font-family: var(--mono); font-size: 14px; }
.tbl-rows { font-size: 12px; color: var(--faint); margin-left: auto; }
.tbl-sum { font-size: 12.5px; color: var(--muted); padding: 0 15px 12px; margin-top: -4px; }
.tbl-detail { border-top: 1px solid var(--line-soft); padding: 12px 15px; background: #fcfcfd; display: none; }
.tbl-row.open .tbl-detail { display: block; }
.col-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.col-line:last-child { border-bottom: none; }
.col-name { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.col-name .pk { color: var(--accent); font-size: 10px; margin-left: 5px; vertical-align: super; }
.col-type { font-size: 11px; color: var(--faint); font-family: var(--mono); }
.col-desc { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.45; }
.col-vals { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.val-pill { font-size: 11px; background: #eef2ff; color: var(--accent-ink); padding: 2px 8px; border-radius: 6px; font-family: var(--mono); }
.val-pill .n { color: var(--faint); margin-left: 5px; }
.col-minmax { grid-column: 1/-1; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.detail-h { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); font-weight: 600; margin: 12px 0 6px; }
.mini-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.mini-table-wrap table { font-size: 12px; }
.mini-table-wrap th, .mini-table-wrap td { padding: 6px 10px; }

.loading { color: var(--faint); font-size: 14px; padding: 20px; text-align: center; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
