/* AI Perk Radar v0.1.8 UI styles, copied from the published repository
 * snapshot 0cd9ea26fd87b146e78a98192e3aaf1fcb7a8d0b.
 * Presentation only: no Anna runtime or remote functionality is included. */
* { box-sizing: border-box; }

    :root {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #1d211d;
      background: #f4f6f2;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at 15% 0%, rgba(170, 220, 170, .28), transparent 38%),
        #f4f6f2;
    }

    button, select, input {
      font: inherit;
    }

    .shell {
      width: min(880px, calc(100% - 32px));
      margin: 0 auto;
      padding: 42px 0 72px;
    }

    .eyebrow {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 7px 11px;
      border: 1px solid #d6ddd2;
      border-radius: 999px;
      background: rgba(255,255,255,.7);
      font-size: 12px;
      font-weight: 700;
      color: #536052;
    }

    .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #3d9b55;
    }

    h1 {
      max-width: 680px;
      margin: 17px 0 10px;
      font-size: clamp(32px, 6vw, 48px);
      line-height: 1.06;
      letter-spacing: -0.055em;
    }

    .lead {
      max-width: 620px;
      margin: 0 0 30px;
      color: #697068;
      font-size: 16px;
      line-height: 1.6;
    }

    .panel {
      padding: 24px;
      border: 1px solid #dde2da;
      border-radius: 24px;
      background: rgba(255,255,255,.88);
      box-shadow: 0 18px 45px rgba(44, 55, 43, .07);
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
    }

    .field-label,
    legend {
      display: block;
      margin-bottom: 9px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #667064;
    }

    select {
      width: 100%;
      min-height: 46px;
      padding: 0 13px;
      border: 1px solid #d5dbd2;
      border-radius: 12px;
      background: white;
      color: #20251f;
    }

    fieldset {
      min-width: 0;
      margin: 22px 0 0;
      padding: 0;
      border: 0;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .chip {
      position: relative;
    }

    .chip input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .chip span {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 0 13px;
      border: 1px solid #d7ddd4;
      border-radius: 999px;
      background: white;
      color: #626a60;
      cursor: pointer;
      transition: .15s ease;
    }

    .chip input:checked + span {
      border-color: #253326;
      background: #253326;
      color: white;
    }

    .action-row {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-top: 25px;
    }

    #find-btn {
      min-height: 50px;
      padding: 0 22px;
      border: 0;
      border-radius: 14px;
      background: #1f2a20;
      color: white;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(31,42,32,.16);
    }

    #find-btn:hover {
      transform: translateY(-1px);
    }

    #find-btn:disabled {
      opacity: .55;
      cursor: wait;
      transform: none;
    }

    #status {
      color: #7a8178;
      font-size: 13px;
    }

    .results-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      margin: 34px 2px 13px;
    }

    .results-head h2 {
      margin: 0;
      font-size: 22px;
      letter-spacing: -.025em;
    }

    #result-count {
      color: #7c847a;
      font-size: 13px;
    }

    #results {
      display: grid;
      gap: 13px;
    }

    .perk {
      padding: 20px;
      border: 1px solid #dce1d9;
      border-radius: 20px;
      background: #fff;
    }

    .perk-top {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      justify-content: space-between;
    }

    .perk h3 {
      margin: 0 0 5px;
      font-size: 20px;
      letter-spacing: -.025em;
    }

    .provider {
      color: #7a8178;
      font-size: 13px;
    }

    .score {
      flex: 0 0 auto;
      padding: 7px 10px;
      border-radius: 999px;
      background: #e9f4e8;
      color: #2a6b39;
      font-size: 12px;
      font-weight: 800;
    }

    .meta {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 9px;
      margin: 17px 0;
    }

    .meta-item {
      padding: 11px;
      border-radius: 12px;
      background: #f5f7f3;
    }

    .meta-label {
      display: block;
      margin-bottom: 4px;
      color: #858b82;
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    .meta-value {
      font-size: 13px;
      font-weight: 700;
    }

    .why {
      margin: 0 0 16px;
      color: #5e665c;
      font-size: 14px;
      line-height: 1.55;
    }

    .perk a {
      color: #203f27;
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
    }

    .empty {
      padding: 28px;
      border: 1px dashed #ccd4c9;
      border-radius: 18px;
      color: #747c72;
      text-align: center;
    }

    @media (max-width: 650px) {
      .shell { width: min(100% - 20px, 880px); padding-top: 25px; }
      .panel { padding: 18px; border-radius: 19px; }
      .form-grid { grid-template-columns: 1fr; gap: 15px; }
      .meta { grid-template-columns: 1fr; }
      .perk-top { align-items: center; }
    }
  
    .perk-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 9px;
    }

    .perk-badge {
      display: inline-flex;
      padding: 4px 7px;
      border-radius: 999px;
      background: #f0f3ee;
      color: #697267;
      font-size: 9px;
      font-weight: 900;
      letter-spacing: .07em;
    }

    .perk-badge-new {
      background: #e6f5e8;
      color: #277139;
    }

    .show-more {
      width: 100%;
      min-height: 48px;
      border: 1px solid #d5ddd2;
      border-radius: 14px;
      background: white;
      color: #344035;
      font-weight: 800;
      cursor: pointer;
    }

    .show-more:hover {
      background: #f5f7f3;
    }

  
    .limited-toggle {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-top: 24px;
      color: #596257;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .limited-toggle input {
      width: 17px;
      height: 17px;
      accent-color: #253326;
    }

  
    .result-section {
      margin-top: 30px;
    }

    .result-section:first-of-type {
      margin-top: 16px;
    }

    .section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin: 0 2px 12px;
    }

    .section-head h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -.02em;
    }

    .section-head p {
      margin: 4px 0 0;
      color: #81877e;
      font-size: 12px;
    }

    .section-head > span {
      color: #7c847a;
      font-size: 12px;
      font-weight: 800;
    }

    .section-cards {
      display: grid;
      gap: 13px;
    }

    .ai-take {
      border-color: #bed4bf;
      background:
        linear-gradient(
          135deg,
          #ffffff,
          #f3faf2
        );
    }

    .perk-badge-check {
      background: #fff2d7;
      color: #8b5b00;
    }

    .perk-badge-bundle {
      background: #ececf8;
      color: #54548b;
    }

    .parent-note {
      margin-top: 12px;
      padding: 8px 10px;
      border-radius: 10px;
      background: #f4f4f8;
      color: #686879;
      font-size: 11px;
      font-weight: 700;
    }

    .caution {
      margin: 0 0 16px;
      padding: 11px 12px;
      border: 1px solid #eadfc6;
      border-radius: 12px;
      background: #fffaf0;
      color: #73654a;
      font-size: 12px;
      line-height: 1.5;
    }

    .caution strong {
      display: block;
      margin-bottom: 3px;
      color: #695832;
    }

  
    .top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .language-btn {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 0 12px;
      border: 1px solid #d6ddd2;
      border-radius: 999px;
      background: rgba(255,255,255,.78);
      color: #536052;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .language-btn:hover {
      background: #fff;
    }

    .checked-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 15px;
      padding-top: 12px;
      border-top: 1px solid #edf0eb;
    }

    .checked-date {
      color: #858b82;
      font-size: 11px;
      font-weight: 700;
    }

    .catalog-checked {
      margin-top: -5px;
      margin-bottom: 20px;
      color: #81877e;
      font-size: 12px;
    }

    .discovery-shell { margin: 20px 0; padding: 18px; border: 1px solid #c8d7ce; border-radius: 18px; background: #f4f8f3; }
    .discovery-shell > summary { cursor: pointer; font-weight: 750; color: #345643; }
    #discovery-panel h2 { margin: 20px 0 10px; font-size: 22px; }
    .discovery-intro, .discovery-help, .discovery-status, .discovery-consent { font-size: 13px; line-height: 1.65; color: #4c5e50; }
    .discovery-help { font-size: 12px; }
    .discovery-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0 8px; }
    .discovery-controls label { font-size: 13px; font-weight: 700; }
    .discovery-controls select { width: 100%; margin-top: 6px; }
    .discovery-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
    .discovery-consent input { flex: 0 0 auto; margin-top: 5px; }
    .discovery-search { padding: 12px 16px; border: 0; border-radius: 12px; background: #345643; color: #fff; font-weight: 700; cursor: pointer; }
    .discovery-search:disabled { background: #d6e1d8; color: #536052; cursor: default; }
    .discovery-results { display: grid; gap: 14px; margin-top: 18px; }
    .discovery-card { min-width: 0; }
    .discovery-card h3 { margin: 12px 0 8px; overflow-wrap: anywhere; }
    .discovery-card p { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
    .candidate-badge { color: #765017; background: #fff1cd; padding: 5px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
    .source-excerpt { margin-top: 16px; border-top: 1px solid #d6dfd3; padding-top: 12px; }
    .source-excerpt summary, .discovery-query summary { font-size: 12px; cursor: pointer; }
    .source-excerpt pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow-y: auto; font: 12px/1.6 system-ui, sans-serif; }
    .source-warning { background: #fff1cd; padding: 10px; border-radius: 8px; }
    button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
      outline: 3px solid #5e8965; outline-offset: 3px;
    }
    .chip input:focus-visible + span { outline: 3px solid #5e8965; outline-offset: 3px; }
    .panel > summary { cursor: pointer; font-weight: 800; color: #324536; }
    .panel[open] > summary { margin-bottom: 24px; }
    #profile-summary { display: inline; font-weight: 500; font-size: 12px; margin-left: 10px; color: #667064; }
    .radar-tools { margin: 20px 0 16px; }
    .radar-views { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .view-button { border: 1px solid #d6dfd3; background: rgba(255,255,255,.8); color: #50604e; border-radius: 13px; padding: 12px; text-align: left; cursor: pointer; }
    .view-button strong { display: block; color: #263e2c; font-size: 22px; margin-bottom: 3px; }
    .view-button span { font-size: 12px; font-weight: 700; }
    .view-button[aria-pressed="true"] { background: #253b2c; border-color: #253b2c; color: white; }
    .view-button[aria-pressed="true"] strong { color: white; }
    .filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
    .search-field { flex: 1 1 200px; min-width: 0; min-height: 44px; border: 1px solid #d5dbd2; border-radius: 12px; background: white; padding: 10px 13px; }
    .filter-row select { flex: 0 1 170px; width: auto; min-width: 140px; }
    .confirmed-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #52604e; }
    .quiet-button, .save-button, .explain-button { min-height: 36px; border: 1px solid #d5ddd2; border-radius: 10px; padding: 7px 12px; background: white; color: #344d38; cursor: pointer; font-size: 12px; font-weight: 750; }
    .quiet-button:disabled, .save-button:disabled, .explain-button:disabled { opacity: .6; cursor: wait; }
    .save-button[aria-pressed="true"] { background: #edf5e9; border-color: #adc6a2; }
    .card-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
    .signal-badge { background: #e9effa; color: #405b87; }
    .deadline-badge { background: #fff0d5; color: #855c0e; }
    .saved-unavailable { border-style: dashed; background: #f9faf7; }
    .saved-unavailable p { color: #6b7367; font-size: 13px; line-height: 1.5; }
    #visit-note, #storage-notice { color: #687565; font-size: 12px; line-height: 1.6; margin: 12px 2px; }
    #storage-notice:empty { display: none; }
    .results-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .offer-empty { padding: 24px; color: #687565; text-align: center; }
    .score { white-space: nowrap; }
    @media (max-width: 480px) {
      .radar-views { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .checked-row, .results-head, .action-row { flex-wrap: wrap; align-items: flex-start; }
      .perk-top { align-items: flex-start; }
      .perk h3 { overflow-wrap: anywhere; }
      .meta { gap: 6px; }
      .filter-row select { flex-grow: 1; }
    }
    @media (prefers-reduced-motion: reduce) { * { transition: none !important; } #find-btn:hover { transform: none; } }
