/* MathSense reputation monitor styles (Framer reference: flat black, one blue-glow accent). */
  :root {
    --bg: #000;
    --panel: #0b0b0b;
    --panel-2: #141414;
    --line: rgba(255,255,255,0.08);
    --line-2: rgba(255,255,255,0.16);
    --text: #fff;
    --muted: #8f8f8f;
    --accent: #0099ff;
    --accent-soft: rgba(0,153,255,0.14);
    --red: #ff5a5f;
    --amber: #ffb340;
    --green: #30d158;
    --radius: 18px;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--bg); color: var(--text); }
  body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
  a { color: var(--accent); }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .sample-banner {
    display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
    padding: 8px 14px; margin-bottom: 28px; border-radius: 999px;
    background: rgba(255,179,64,0.1); border: 1px solid rgba(255,179,64,0.35); color: #ffd28a; font-size: 13px;
  }

  header.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
  .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 10px; }
  h1 {
    margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.55)); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .sub { color: var(--muted); margin: 12px 0 0; max-width: 560px; }
  .runbox { display: grid; gap: 6px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: 13px; min-width: 250px; }
  .runbox b { font-weight: 600; }
  .runbox .row { display: flex; justify-content: space-between; gap: 16px; }
  .runbox .row span:first-child { color: var(--muted); }
  .dots { display: flex; gap: 5px; }
  .dots i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-2); }
  .dots i.done { background: var(--accent); }

  /* ---------- Hero (Framer reference: flat black, medium-weight solid type, one blue-glow accent) ---------- */
  .hero { align-items: flex-end; }
  .hero h1 {
    font-family: Outfit, Inter, system-ui, sans-serif; font-weight: 500;
    font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em;
    background: none; color: #fff;
  }
  .hero .sub { font-size: 18px; color: rgba(255,255,255,0.6); letter-spacing: -0.01em; margin-top: 14px; }
  .kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: rgba(255,255,255,0.6); }
  .kicker b { color: #fff; font-weight: 500; }
  .live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
  .live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--green); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
  @keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

  /* Electric-blue glowing card, like Framer's hero showcase */
  .hero .runbox {
    background: linear-gradient(180deg, rgba(28,44,120,0.55), rgba(10,16,60,0.75));
    border: 1.5px solid rgba(150,185,255,0.95); border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(40,90,255,0.35), 0 0 22px rgba(30,80,255,0.75), 0 0 70px rgba(20,60,255,0.45), inset 0 0 24px rgba(60,110,255,0.35);
  }
  .hero .runbox .row span:first-child { color: rgba(210,222,255,0.65); }
  .hero .dots i { background: rgba(150,185,255,0.2); }
  .hero .dots i.done { background: #9fbcff; box-shadow: 0 0 8px rgba(90,140,255,0.9); }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
  .stat { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
  .stat .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
  .stat .l { color: var(--muted); font-size: 13px; }

  section.card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-bottom: 18px; }
  .card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
  h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
  .hint { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

  .seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
  .seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
  .seg button[aria-pressed="true"] { background: #fff; color: #000; }

  .months { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
  .month {
    position: relative; text-align: left; cursor: pointer; padding: 14px 14px 12px; min-height: 96px;
    border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2);
    transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, background .2s;
  }
  .month:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-2); }
  .month:disabled { cursor: not-allowed; opacity: 0.35; }
  .month .m { font-size: 13px; color: var(--muted); font-weight: 500; }
  .month .c { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; margin-top: 6px; line-height: 1; }
  .month .c.zero { color: #3a3a3a; }
  .month .bar { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
  .month .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8c50ff); }
  .month.l1 { background: rgba(0,153,255,0.07); }
  .month.l2 { background: rgba(0,153,255,0.13); }
  .month.l3 { background: rgba(0,153,255,0.22); }
  .month[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 40px -10px rgba(0,153,255,0.6); }
  .month.nodate { border-style: dashed; }

  .filters { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .frow { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
  .field { display: grid; gap: 6px; }
  .field label, .flabel { font-size: 12px; color: var(--muted); font-weight: 500; }
  .field input, .field select, .field textarea {
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; min-height: 40px;
  }
  .field input[type="date"] { color-scheme: dark; }
  .field.grow { flex: 1 1 220px; }
  .chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
    background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500;
    transition: all .15s;
  }
  .chip:hover { border-color: var(--line-2); color: #fff; }
  .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
  .chip .ct { opacity: 0.6; font-variant-numeric: tabular-nums; }
  .pdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

  .btn {
    border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; min-height: 40px;
    transition: background .15s, transform .15s;
  }
  .btn:hover { background: rgba(255,255,255,0.06); }
  .btn.primary { background: #fff; color: #000; border-color: #fff; }
  .btn.primary:hover { background: #e6e6e6; }
  .btn.blue { background: var(--accent); border-color: var(--accent); color: #fff; }
  .btn.blue:hover { background: #1aa5ff; }
  .btn.sm { padding: 6px 13px; min-height: 34px; font-size: 13px; }

  .active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 28px; color: var(--muted); font-size: 13px; }
  .tag { display: inline-flex; gap: 6px; align-items: center; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: #ddd; }
  .tag button { border: 0; background: rgba(255,255,255,0.08); border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }

  .list { display: grid; gap: 12px; }
  .item {
    padding: 18px 20px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr auto; gap: 8px 20px;
    animation: rise .35s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
  .meta .plat { color: #fff; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; }
  .sev { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
  .sev.Strong { background: rgba(255,90,95,0.14); color: var(--red); }
  .sev.Moderate { background: rgba(255,179,64,0.14); color: var(--amber); }
  .sev.Mild { background: rgba(255,255,255,0.08); color: #ccc; }
  .status { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
  .status.open { background: rgba(255,255,255,0.08); color: #ddd; }
  .status.done { background: rgba(48,209,88,0.14); color: var(--green); }
  .sample { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #ffd28a; border: 1px solid rgba(255,179,64,0.35); padding: 1px 7px; border-radius: 6px; }
  .text { grid-column: 1 / -1; font-size: 16px; margin: 2px 0; }
  .why { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .why b { color: #bbb; font-weight: 500; }
  .item-actions { display: flex; gap: 8px; align-items: start; grid-row: 1; grid-column: 2; }
  .history { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 13px; }
  .history summary { cursor: pointer; color: var(--muted); }
  .history ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
  .history li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
  .history .h-top { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
  .history .h-top b { color: #fff; font-weight: 600; }

  .state { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
  .state h3 { color: #fff; margin: 0 0 6px; font-size: 18px; font-weight: 600; }
  .state.error { border-color: rgba(255,90,95,0.5); }
  .skel { height: 110px; border-radius: var(--radius); background: linear-gradient(90deg, #111 0%, #1b1b1b 50%, #111 100%); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
  @keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }

  .list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .count { font-size: 14px; color: var(--muted); }
  .count b { color: #fff; }

  dialog {
    width: min(520px, calc(100vw - 32px)); padding: 0; border-radius: 24px; border: 1px solid var(--line-2);
    background: #0d0d0d; color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  }
  dialog::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); }
  dialog[open] { animation: pop .25s cubic-bezier(.2,.8,.2,1); }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
  .dlg { padding: 24px; display: grid; gap: 14px; }
  .dlg h2 { font-size: 22px; }
  .quote { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: #ccc; font-size: 14px; }
  .dlg .field textarea { min-height: 110px; resize: vertical; }
  .dlg .foot { display: flex; justify-content: flex-end; gap: 10px; }
  .err { color: var(--red); font-size: 13px; min-height: 18px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  @media (max-width: 900px) {
    .months { grid-template-columns: repeat(4, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .months { grid-template-columns: repeat(3, 1fr); }
    .item { grid-template-columns: 1fr; }
    .item-actions { grid-row: auto; grid-column: 1; }
    section.card { padding: 16px; }
  }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
