/* Copied from austen.lol Debrief Daddy. Asset paths rewritten for this site. */

  .fb-btn{border:0;border-radius:6px;font-weight:bold;font-size:14px;padding:8px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background .15s;}
  a.fb-btn{color:inherit;}
  a.fb-btn:hover{text-decoration:none;}
  .fb-btn-blue{background:#4267B2;color:#fff;}
  .fb-btn-blue:hover{background:#365899;}
  .fb-btn-gray{background:#e4e6eb;color:#1d2129;}
  .fb-btn-gray:hover{background:#d8dade;}
  .fb-btn-ico{font-size:1.4em;line-height:1;}

  .fb-toast-wrap{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;}
  .fb-toast{background:#1d2129;color:#fff;padding:10px 16px;border-radius:8px;font-size:14px;box-shadow:0 4px 16px rgba(0,0,0,.3);opacity:0;transform:translateY(10px);transition:opacity .25s,transform .25s;max-width:92vw;text-align:center;}
  .fb-toast.show{opacity:1;transform:translateY(0);}

  /* ===== Debrief Daddy tool (its own page at /#/debrief-daddy,
     launched from a software card) ===== */
  /* the page wrapper reuses the modal card, sitting in the page flow */
  .if-page{display:flex;justify-content:center;padding:4px 0 28px;min-width:0;}
  .if-page .if-modal{max-height:none;height:auto;border-radius:20px;box-shadow:0 2px 12px rgba(0,0,0,.15);}
  .if-toolcard{border:0;background:#fff;width:100%;font:inherit;cursor:pointer;text-align:left;}
  .fb-photo-img.if-toolthumb{background:#0b0618;}
  html[data-theme="dark"] .fb-photo-img.if-toolthumb{background:#0b0618;}
  .if-toolthumb img{object-position:46% 38%;}
  .if-modal{
    --ia-size-lg: 22px;
    --ia-size-base: 15px;
    --ia-size-sm: 13.5px;
    --ia-fg: #1d2129;
    --ia-muted: rgba(29,33,41,.60);
    --ia-hair: rgba(29,33,41,.12);
    --ia-accent: #e11d48;
    position:relative;background:#fff;border-radius:20px;width:100%;max-width:760px;min-width:0;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 70px rgba(20,20,40,.4);
    color: var(--ia-fg);
    font-size: var(--ia-size-base);
    line-height: 1.55;
    font-weight: 400;
  }
  .if-x{position:absolute;top:15px;right:15px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:var(--ia-size-base);cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;}
  .if-x:hover{background:rgba(255,255,255,.34);}
  /* Felt red + gold wordmark, sampled from the title lockup. */
  .if-head{display:flex;align-items:flex-start;gap:12px;padding:16px 24px 14px;min-width:0;background:#760b0e url("/tools/debrief-daddy/debrief-daddy-felt.jpg") center/cover no-repeat;color:#fff;}
  .if-headbadge{width:46px;height:46px;border-radius:50%;overflow:hidden;background:#5c080a;display:flex;align-items:center;justify-content:center;font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;letter-spacing:.08em;flex:0 0 auto;}
  .if-headbadge img{width:82%;height:82%;object-fit:contain;object-position:center;display:block;flex:none;min-width:0;min-height:0;}
  .if-headstamp{width:52px;height:52px;flex:0 0 auto;display:block;object-fit:contain;}
  .if-headtext{min-width:0;flex:1;padding-right:40px;}
  .if-headtitle{margin:0;font-size:var(--ia-size-lg);line-height:1.25;font-weight:600;letter-spacing:0;min-width:0;}
  .if-headtitle img{height:52px;width:auto;max-width:240px;}
  .if-headsub{margin:8px 0 0;font-size:var(--ia-size-sm);line-height:1.4;font-weight:400;color:rgba(255,255,255,.88);}
  .if-tabs{display:flex;gap:8px;padding:16px 24px 0;}
  .if-tab[disabled]{opacity:.5;cursor:not-allowed;}
  .if-alt{text-align:center;font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-muted);margin:0 auto;max-width:68ch;}
  .if-alt button{background:none;border:0;padding:0;color:var(--ia-fg);font:inherit;font-size:var(--ia-size-sm);font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px;}
  .if-alt button:hover{color:var(--ia-accent);}
  .if-body{padding:24px;overflow:auto;}
  .if-panel{display:flex;flex-direction:column;gap:16px;}
  .if-drop{border:1px dashed var(--ia-hair);border-radius:0;padding:28px 18px;text-align:center;cursor:pointer;transition:border-color .15s;background:transparent;}
  .if-drop:hover,.if-drop.drag{border-color:var(--ia-muted);background:transparent;}
  .if-drop-ic{display:none;}
  .if-drop-t{font-size:var(--ia-size-base);line-height:1.55;font-weight:600;margin:0;color:var(--ia-fg);}
  .if-drop-s{font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-muted);margin:6px auto 0;max-width:68ch;}
  .if-audiofile{font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;color:var(--ia-fg);text-align:center;}
  .if-spklist{display:flex;flex-direction:column;gap:8px;}
  .if-spk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
  .if-spk-id{font-weight:600;font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-fg);min-width:92px;}
  .if-spk-n{font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-muted);}
  .if-spk .if-key{max-width:240px;}
  .if-fileerr{display:none;color:var(--ia-accent);font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;}
  .if-ta{width:100%;min-height:220px;resize:vertical;border:1px solid var(--ia-hair);border-radius:0;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--ia-size-base);line-height:1.55;color:var(--ia-fg);background:transparent;outline:0;}
  .if-ta:focus{border-color:var(--ia-muted);}
  .if-ta::placeholder{color:var(--ia-muted);}
  .if-keyrow{display:flex;flex-direction:column;gap:6px;}
  .if-keylbl{font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ia-muted);margin:20px 0 6px;}
  .if-key{width:100%;border:1px solid var(--ia-hair);border-radius:0;padding:11px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--ia-size-base);line-height:1.55;color:var(--ia-fg);background:transparent;outline:0;}
  .if-key:focus{border-color:var(--ia-muted);}
  .if-key::placeholder{color:var(--ia-muted);}
  .if-keyhint{font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-muted);margin:0;max-width:68ch;}
  .if-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-muted);}
  .if-detectchip{font-weight:600;font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-fg);}
  .if-detectchip.ok{color:var(--ia-fg);}
  .if-detectchip.warn{color:var(--ia-accent);}
  .if-warn{border:1px solid var(--ia-hair);background:transparent;border-radius:0;padding:14px 0;}
  .if-warn-t{font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ia-accent);margin-bottom:4px;}
  .if-warn-p{font-size:var(--ia-size-sm);line-height:1.4;color:var(--ia-fg);margin:0 0 12px;max-width:68ch;}
  .if-warn-btns{display:flex;gap:8px;flex-wrap:wrap;}
  .if-btn-rose{background:#e11d48;color:#fff;}
  .if-btn-rose:hover{background:#be123c;}
  .if-actions{display:flex;gap:8px;}
  .if-progresswrap{padding:24px 8px;align-items:center;}
  .if-progress{width:100%;max-width:440px;height:10px;border-radius:6px;background:#e4e6eb;overflow:hidden;}
  .if-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#e11d48,#9f1239);border-radius:6px;transition:width .9s ease;}
  .if-progress-fill.indeterminate{width:35%;transition:none;animation:ifslide 1.4s ease-in-out infinite;}
  @keyframes ifslide{0%{transform:translateX(-120%);}100%{transform:translateX(320%);}}
  .if-eta{font-size:var(--ia-size-base);font-weight:600;color:var(--ia-fg);}
  .if-steps{display:flex;align-items:center;justify-content:center;margin:6px 0 18px;}
  .if-step{display:flex;flex-direction:column;align-items:center;gap:8px;}
  .if-dot{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:var(--ia-size-base);background:#e4e6eb;color:#8a8d91;transition:background .3s,color .3s;}
  .if-step.active .if-dot{background:linear-gradient(135deg,#e11d48,#9f1239);color:#fff;animation:ifpulse 1.4s ease-in-out infinite;}
  .if-step.done .if-dot{background:#15803d;color:#fff;}
  .if-steplbl{font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;color:var(--ia-muted);}
  .if-step.active .if-steplbl{color:#e11d48;}
  .if-stepbar{flex:0 0 90px;height:3px;border-radius:2px;background:#e4e6eb;margin:0 12px 22px;position:relative;overflow:hidden;}
  .if-stepbar::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:40%;background:linear-gradient(90deg,transparent,#e11d48,transparent);animation:ifbar 1.3s linear infinite;}
  @keyframes ifpulse{0%,100%{box-shadow:0 0 0 6px rgba(225,29,72,.14);}50%{box-shadow:0 0 0 11px rgba(225,29,72,.04);}}
  @keyframes ifbar{0%{left:-40%;}100%{left:100%;}}
  .if-note{text-align:center;color:var(--ia-muted);font-size:var(--ia-size-sm);line-height:1.4;max-width:68ch;margin:0 auto;}
  .if-banner{position:sticky;top:0;z-index:1;background:transparent;border:0;border-bottom:1px solid var(--ia-hair);color:var(--ia-fg);font-weight:400;font-size:var(--ia-size-sm);line-height:1.4;padding:10px 0;border-radius:0;margin-bottom:6px;}
  .if-banner-cut{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  .if-resulthead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;}
  .if-resulthead-sp{flex:1;}
  .if-error{border:1px solid var(--ia-hair);background:transparent;border-radius:0;padding:16px 0;}
  .if-error-t{font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ia-accent);margin-bottom:4px;}
  .if-error p{margin:0;color:var(--ia-fg);font-size:var(--ia-size-base);line-height:1.55;white-space:pre-wrap;max-width:68ch;}
  .if-soon{text-align:center;padding:34px 20px;}
  .if-soon-ic{display:none;}
  .if-soon-t{margin:36px 0 12px;font-size:var(--ia-size-lg);line-height:1.25;font-weight:600;color:var(--ia-fg);}
  .if-soon-p{margin:0 auto;max-width:68ch;color:var(--ia-muted);font-size:var(--ia-size-base);line-height:1.55;}
  .if-md{color:#1d2129;font-size:14.5px;line-height:1.65;}
  .if-md .if-h{line-height:1.25;font-weight:800;margin:22px 0 8px;color:#1d2129;}
  .if-md .if-h1{font-size:22px;border-bottom:2px solid #f0f2f5;padding-bottom:6px;}
  .if-md .if-h2{font-size:18px;color:#9f1239;}
  .if-md .if-h3{font-size:15.5px;}
  .if-md p{margin:0 0 12px;}
  .if-md ul,.if-md ol{margin:0 0 12px;padding-left:22px;}
  .if-md li{margin:0 0 4px;}
  .if-md strong{font-weight:800;color:#111;}
  .if-md code{background:#f0f2f5;padding:1px 5px;border-radius:4px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;}
  .if-md blockquote{margin:12px 0;padding:8px 14px;border-left:3px solid #e11d48;background:#fff5f6;color:#7f1d1d;}
  .if-md hr{border:0;border-top:1px solid #e5e6eb;margin:18px 0;}
  .if-md .if-tablewrap{overflow-x:auto;margin:0 0 14px;border:1px solid #e5e6eb;border-radius:10px;}
  .if-md .if-table{border-collapse:collapse;width:100%;font-size:13.5px;}
  .if-md .if-table th{background:#f7f8fa;text-align:left;font-weight:800;padding:9px 12px;border-bottom:2px solid #e5e6eb;color:#1d2129;}
  .if-md .if-table td{padding:9px 12px;border-bottom:1px solid #eef0f3;vertical-align:top;}
  .if-md .if-table tr:last-child td{border-bottom:0;}
  /* Infield report: three sizes, one accent, hairline rules, timestamp gutter */
  .if-report{
    --ia-size-lg: 22px;
    --ia-size-base: 15px;
    --ia-size-sm: 13.5px;
    --ia-fg: #1d2129;
    --ia-muted: rgba(29,33,41,.60);
    --ia-hair: rgba(29,33,41,.12);
    --ia-quote-rule: rgba(29,33,41,.18);
    --ia-accent: #e11d48;
    color: var(--ia-fg);
    font-size: var(--ia-size-base);
    line-height: 1.55;
    font-weight: 400;
    max-width: 68ch;
  }
  .if-report .ia-h{
    font-size: var(--ia-size-lg);
    line-height: 1.25;
    font-weight: 600;
    margin: 56px 0 14px;
    color: var(--ia-fg);
    letter-spacing: 0;
  }
  .if-report .ia-h-first,.if-report .ia-meta .ia-h{margin-top: 0;}
  .if-report .ia-sub{
    font-size: var(--ia-size-base);
    line-height: 1.55;
    font-weight: 600;
    margin: 36px 0 12px;
    color: var(--ia-fg);
  }
  .if-report .ia-label{
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ia-muted);
    margin: 20px 0 6px;
  }
  .if-report .ia-p{
    font-size: var(--ia-size-base);
    line-height: 1.55;
    font-weight: 400;
    margin: 0 0 8px;
    max-width: 68ch;
  }
  .if-report .ia-kicker{
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    color: var(--ia-muted);
    margin: 0 0 8px;
  }
  /* The one-sentence verdict: same size as the kicker, but bold and full
     contrast so it reads as the summary of everything below it. */
  .if-report .ia-lead{
    font-size: var(--ia-size-sm);
    line-height: 1.45;
    font-weight: 600;
    color: var(--ia-fg);
    margin: 0 0 8px;
    max-width: 68ch;
  }
  /* Fixed-order header segments. The outcome carries the weight because the
     contact result is the fact people scan for. */
  .if-report .ia-m{white-space: nowrap;}
  .if-report .ia-m-end{white-space: normal;}
  .if-report .ia-m-out{font-weight: 600; color: var(--ia-fg);}
  .if-report .ia-pin{
    width: .9em;
    height: .9em;
    fill: currentColor;
    vertical-align: -.14em;
    margin-right: .3em;
  }
  /* A field the recording never established: a placeholder rule, not words. */
  .if-report .ia-na{
    display: inline-block;
    width: 1.75rem;
    height: 0;
    border-top: 1px solid currentColor;
    opacity: .55;
    vertical-align: .32em;
  }
  .if-report .ia-statusn{
    font-variant-numeric: tabular-nums;
    opacity: .75;
  }
  .if-report .ia-sec{
    border-top: 1px solid var(--ia-hair);
    padding-top: 0;
  }
  .if-report .ia-sec:first-of-type{border-top: 0;}
  .if-report .ia-row{
    display: grid;
    grid-template-columns: 4.5rem minmax(0,1fr);
    column-gap: 12px;
    margin: 0 0 12px;
    align-items: start;
  }
  .if-report .ia-ts{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    color: var(--ia-muted);
    padding-top: 2px;
  }
  .if-report .ia-quote{
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
    border-left: 2px solid var(--ia-quote-rule);
    padding-left: 16px;
    margin: 6px 0 8px;
  }
  .if-report .ia-status{
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ia-accent);
    display: block;
    margin: 0 0 4px;
  }
  .if-report .ia-tablewrap{
    overflow-x: auto;
    margin: 0 0 14px;
    max-width: 100%;
  }
  .if-report .ia-table{
    border-collapse: collapse;
    width: 100%;
    font-size: var(--ia-size-base);
    line-height: 1.55;
  }
  .if-report .ia-table th{
    width: 11rem;
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ia-muted);
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--ia-hair);
    vertical-align: top;
  }
  .if-report .ia-table td{
    font-size: var(--ia-size-base);
    font-weight: 400;
    padding: 10px 14px;
    border: 1px solid var(--ia-hair);
    vertical-align: top;
  }
  .if-report .ia-muted{color: var(--ia-muted);}
  .if-report .ia-ref{
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    color: var(--ia-muted);
    margin: 0 0 8px;
  }
  .if-report .ia-subline{
    font-size: var(--ia-size-base);
    font-weight: 600;
    margin: 16px 0 6px;
  }
  .if-report .ia-pass{
    font-size: var(--ia-size-sm);
    line-height: 1.4;
    color: var(--ia-muted);
    margin: 0 0 10px;
  }
  @media (max-width: 640px){
    .if-report .ia-row{display:block;}
    .if-report .ia-ts{display:inline; padding: 0; margin: 0 8px 0 0;}
    .if-report .ia-ts::after{content:"";}
    .if-report .ia-table th{width: 7.5rem;}
  }
  html[data-theme="dark"] .if-report{
    --ia-fg: #e4e6eb;
    --ia-muted: rgba(228,230,235,.60);
    --ia-hair: rgba(228,230,235,.12);
    --ia-quote-rule: rgba(228,230,235,.18);
    --ia-accent: #e11d48;
  }
  .if-report.ia-legacy .if-h2{font-size:var(--ia-size-lg);line-height:1.25;font-weight:600;margin:56px 0 14px;color:var(--ia-fg);}
  .if-report.ia-legacy .if-h3{font-size:var(--ia-size-base);line-height:1.55;font-weight:600;margin:36px 0 12px;}
  .if-report.ia-legacy p,.if-report.ia-legacy li{font-size:var(--ia-size-base);line-height:1.55;max-width:68ch;}
  .if-report.ia-legacy strong{font-size:var(--ia-size-sm);line-height:1.4;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ia-muted);}
  .if-report.ia-legacy em{font-style:normal;}
  .if-report.ia-legacy blockquote{font-size:var(--ia-size-sm);line-height:1.4;font-style:normal;border-left:2px solid var(--ia-quote-rule);padding-left:16px;margin:6px 0 8px;background:transparent;color:inherit;}
  /* code gate */
  .if-gate{text-align:center;padding:30px 20px;}
  .if-gate-ic{display:none;}
  .if-gate-t{margin:36px 0 12px;font-size:var(--ia-size-lg);line-height:1.25;font-weight:600;color:var(--ia-fg);}
  .if-gate-p{margin:0 auto 16px;max-width:68ch;color:var(--ia-muted);font-size:var(--ia-size-base);line-height:1.55;}
  .if-gate-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;}
  .if-code{width:220px;padding:10px 12px;border:1px solid var(--ia-hair);border-radius:0;background:transparent;color:var(--ia-fg);font-size:var(--ia-size-base);letter-spacing:.08em;text-transform:uppercase;font-family:ui-monospace,Menlo,Consolas,monospace;text-align:center;font-variant-numeric:tabular-nums;}
  .if-code:focus{outline:none;border-color:var(--ia-muted);}
  .if-gate-err{margin:10px 0 0;color:var(--ia-accent);font-size:var(--ia-size-sm);min-height:18px;}
  /* quota chip */
  .if-chip{display:inline-block;padding:0;border-radius:0;background:transparent;color:var(--ia-muted);font-size:var(--ia-size-sm);line-height:1.4;font-weight:400;}
  .if-chip.warn{background:transparent;color:var(--ia-accent);font-weight:600;}
  .if-chip.ok{background:transparent;color:var(--ia-muted);}
  /* live girl counter on the progress view */
  .if-girls{color:var(--ia-muted);font-size:var(--ia-size-sm);}
  .if-girls b{color:var(--ia-fg);font-weight:600;}
  /* past sets + girl search */
  .if-hist{border-top:1px solid var(--ia-hair);padding-top:0;}
  .if-hist-t{font-weight:600;color:var(--ia-fg);margin:56px 0 14px;font-size:var(--ia-size-lg);line-height:1.25;}
  .if-hist-search{width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--ia-hair);border-radius:0;font-size:var(--ia-size-base);line-height:1.55;margin-bottom:8px;background:transparent;color:var(--ia-fg);}
  .if-hist-search:focus{outline:none;border-bottom-color:var(--ia-muted);}
  .if-hist-search::placeholder{color:var(--ia-muted);}
  .if-hist-list{display:flex;flex-direction:column;gap:0;}
  .if-hist-row{display:flex;align-items:baseline;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--ia-hair);border-radius:0;padding:10px 0;cursor:pointer;font:inherit;}
  .if-hist-row:hover{background:transparent;}
  .if-hist-date{color:var(--ia-muted);font-size:var(--ia-size-sm);line-height:1.4;white-space:nowrap;font-family:ui-monospace,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;}
  .if-hist-names{flex:1;color:var(--ia-fg);font-size:var(--ia-size-base);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .if-hist-st{font-size:var(--ia-size-sm);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--ia-muted);}
  .if-hist-st.done{color:var(--ia-accent);}
  .if-hist-st.partial{color:var(--ia-muted);}
  .if-hist-empty{color:var(--ia-muted);font-size:var(--ia-size-sm);line-height:1.4;}
  .if-hist-foot{margin-top:12px;display:flex;justify-content:flex-end;}
  .if-wipe{background:none;border:0;color:var(--ia-muted);font-size:var(--ia-size-sm);cursor:pointer;text-decoration:underline;padding:0;}
  .if-wipe:hover{color:var(--ia-accent);}
  /* feedback panel */
  .if-fb{border:0;border-top:1px solid var(--ia-hair);border-radius:0;padding:0;background:transparent;}
  .if-fb-t{font-weight:600;color:var(--ia-fg);margin:36px 0 12px;font-size:var(--ia-size-base);line-height:1.55;}
  .if-fb-scores{display:flex;gap:6px;margin-bottom:10px;}
  .if-fb-n{width:38px;height:34px;border:1px solid var(--ia-hair);border-radius:0;background:transparent;font-weight:600;cursor:pointer;font-size:var(--ia-size-sm);color:var(--ia-fg);}
  .if-fb-n.on{background:transparent;border-color:var(--ia-accent);color:var(--ia-accent);}
  .if-fb-in{width:100%;padding:8px 10px;border:1px solid var(--ia-hair);border-radius:0;font-size:var(--ia-size-base);line-height:1.55;margin-bottom:8px;font:inherit;color:var(--ia-fg);background:transparent;}
  .if-fb-done{color:var(--ia-muted);font-size:var(--ia-size-sm);font-weight:400;}
  /* admin + wiki views */
  .if-adm-sec{border:1px solid #e5e6eb;border-radius:12px;padding:16px;margin-bottom:14px;background:#fff;}
  .if-adm-t{font-weight:800;font-size:16px;color:#1d2129;margin:0 0 10px;}
  .if-adm-table{width:100%;border-collapse:collapse;font-size:13px;}
  .if-adm-table th{text-align:left;padding:7px 8px;border-bottom:2px solid #e5e6eb;color:#606770;font-size:12px;text-transform:uppercase;letter-spacing:.4px;}
  .if-adm-table td{padding:7px 8px;border-bottom:1px solid #eef0f3;vertical-align:top;color:#1d2129;}
  .if-adm-tablewrap{overflow-x:auto;}
  .if-adm-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px;}
  .if-adm-in{padding:8px 10px;border:1px solid #ccd0d5;border-radius:8px;font-size:13.5px;font:inherit;}
  .if-adm-kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;}
  .if-adm-kv .k{color:#606770;font-size:12px;text-transform:uppercase;letter-spacing:.4px;}
  .if-adm-kv .v{color:#1d2129;font-size:17px;font-weight:800;margin-top:2px;}
  .if-adm-kv .s{color:#8a8d91;font-size:12px;}
  .if-gap{border:1px solid #e5e6eb;border-radius:12px;padding:14px;margin-bottom:10px;background:#f7f8fa;}
  .if-gap-q{color:#1d2129;font-size:14px;line-height:1.55;margin:0 0 8px;}
  .if-gap-ev{color:#7f1d1d;background:#fff5f6;border-left:3px solid #e11d48;padding:6px 10px;margin:0 0 10px;font-size:13px;}
  .if-gap-meta{color:#8a8d91;font-size:12px;margin-bottom:8px;}
  .if-gap-form textarea{width:100%;min-height:64px;padding:8px 10px;border:1px solid #ccd0d5;border-radius:8px;font:inherit;font-size:13.5px;margin-bottom:8px;resize:vertical;}
  .if-adm-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;}
  .if-adm-note{color:#8a8d91;font-size:12.5px;margin:8px 0 0;}
  .if-digest{width:100%;min-height:220px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;padding:10px;border:1px solid #ccd0d5;border-radius:8px;margin-top:10px;}
  @media (max-width:640px){
    .if-modal{max-width:none;width:100%;height:100%;max-height:100%;border-radius:0;}
    .if-body{flex:1;}
  }
  html[data-theme="dark"] .if-modal{
    background:#242526;box-shadow:0 24px 70px rgba(0,0,0,.7);
    --ia-fg: #e4e6eb;
    --ia-muted: rgba(228,230,235,.60);
    --ia-hair: rgba(228,230,235,.12);
    --ia-accent: #e11d48;
  }
  html[data-theme="dark"] .if-drop{background:transparent;border-color:var(--ia-hair);}
  html[data-theme="dark"] .if-drop:hover,html[data-theme="dark"] .if-drop.drag{border-color:var(--ia-muted);background:transparent;}
  html[data-theme="dark"] .if-drop-t{color:var(--ia-fg);}
  html[data-theme="dark"] .if-audiofile,html[data-theme="dark"] .if-spk-id{color:var(--ia-fg);}
  html[data-theme="dark"] .if-drop-s,html[data-theme="dark"] .if-meta,html[data-theme="dark"] .if-note,html[data-theme="dark"] .if-soon-p,html[data-theme="dark"] .if-alt{color:var(--ia-muted);}
  html[data-theme="dark"] .if-alt button{color:var(--ia-fg);}
  html[data-theme="dark"] .if-alt button:hover{color:var(--ia-accent);}
  html[data-theme="dark"] .if-ta{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  html[data-theme="dark"] .if-ta:focus{border-color:var(--ia-muted);box-shadow:none;}
  html[data-theme="dark"] .if-ta::placeholder{color:var(--ia-muted);}
  html[data-theme="dark"] .if-keylbl{color:var(--ia-muted);}
  html[data-theme="dark"] .if-key{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  html[data-theme="dark"] .if-key:focus{border-color:var(--ia-muted);box-shadow:none;}
  html[data-theme="dark"] .if-key::placeholder{color:var(--ia-muted);}
  html[data-theme="dark"] .if-warn,html[data-theme="dark"] .if-error,html[data-theme="dark"] .if-banner{background:transparent;border-color:var(--ia-hair);}
  html[data-theme="dark"] .if-banner-cut{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  html[data-theme="dark"] .if-warn-t,html[data-theme="dark"] .if-error-t,html[data-theme="dark"] .if-detectchip.warn,html[data-theme="dark"] .if-fileerr{color:var(--ia-accent);}
  html[data-theme="dark"] .if-banner{color:var(--ia-fg);}
  html[data-theme="dark"] .if-warn-p,html[data-theme="dark"] .if-error p{color:var(--ia-fg);}
  html[data-theme="dark"] .if-detectchip.ok{color:var(--ia-fg);}
  html[data-theme="dark"] .if-gate-t,html[data-theme="dark"] .if-hist-t,html[data-theme="dark"] .if-fb-t,html[data-theme="dark"] .if-adm-t,html[data-theme="dark"] .if-girls b{color:var(--ia-fg);}
  html[data-theme="dark"] .if-code{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  html[data-theme="dark"] .if-hist-search{background:transparent;color:var(--ia-fg);}
  html[data-theme="dark"] .if-hist-search::placeholder{color:var(--ia-muted);}
  html[data-theme="dark"] .if-fb-in{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  html[data-theme="dark"] .if-adm-in,html[data-theme="dark"] .if-gap-form textarea,html[data-theme="dark"] .if-digest{background:#18191a;border-color:#3e4042;color:#e4e6eb;}
  html[data-theme="dark"] .if-chip{background:transparent;color:var(--ia-muted);}
  html[data-theme="dark"] .if-chip.warn{background:transparent;color:var(--ia-accent);}
  html[data-theme="dark"] .if-hist{border-color:var(--ia-hair);}
  html[data-theme="dark"] .if-hist-row{background:transparent;border-color:var(--ia-hair);}
  html[data-theme="dark"] .if-hist-row:hover{background:transparent;}
  html[data-theme="dark"] .if-hist-names,html[data-theme="dark"] .if-adm-table td,html[data-theme="dark"] .if-gap-q,html[data-theme="dark"] .if-adm-kv .v{color:var(--ia-fg);}
  html[data-theme="dark"] .if-fb{background:transparent;border-color:var(--ia-hair);}
  html[data-theme="dark"] .if-adm-sec,html[data-theme="dark"] .if-gap{background:#242526;border-color:#3e4042;}
  html[data-theme="dark"] .if-fb-n{background:transparent;border-color:var(--ia-hair);color:var(--ia-fg);}
  html[data-theme="dark"] .if-fb-n.on{background:transparent;border-color:var(--ia-accent);color:var(--ia-accent);}
  html[data-theme="dark"] .if-gap-ev{background:#3a1f28;color:#f0c3cb;}
  html[data-theme="dark"] .if-progress{background:#3a3b3c;}
  html[data-theme="dark"] .if-eta{color:var(--ia-fg);}
  html[data-theme="dark"] .if-dot{background:#3a3b3c;color:#8a8d91;}
  html[data-theme="dark"] .if-steplbl{color:var(--ia-muted);}
  html[data-theme="dark"] .if-stepbar{background:#3a3b3c;}
  html[data-theme="dark"] .if-md{color:#e4e6eb;}
  html[data-theme="dark"] .if-md .if-h,html[data-theme="dark"] .if-md strong{color:#e4e6eb;}
  html[data-theme="dark"] .if-md .if-h1{border-bottom-color:#3e4042;}
  html[data-theme="dark"] .if-md .if-h2{color:#fda4c0;}
  html[data-theme="dark"] .if-md code{background:#18191a;}
  html[data-theme="dark"] .if-md blockquote{background:#2a1a1e;border-left-color:#fb7185;color:#f0c3cb;}
  html[data-theme="dark"] .if-md hr{border-top-color:#3e4042;}
  html[data-theme="dark"] .if-md .if-tablewrap{border-color:#3e4042;}
  html[data-theme="dark"] .if-md .if-table th{background:#2f3031;border-bottom-color:#4a4b4c;color:#e4e6eb;}
  html[data-theme="dark"] .if-md .if-table td{border-bottom-color:#3a3b3c;}
  html[data-theme="dark"] .if-soon-t{color:var(--ia-fg);}
  html[data-theme="dark"] .if-toolcard{background:#242526;}
@media (max-width:560px){
    .if-head{padding:14px 16px 12px;gap:10px;}
    .if-headbadge{width:38px;height:38px;}
    .if-headstamp{width:36px;height:36px;}
    .if-headtext{padding-right:36px;}
    .if-headtitle img{height:36px;max-width:168px;}
    .if-x{top:10px;right:10px;}
}

/* Cool Tools grid — same 3-up cards as the austen.lol software tab. */
.fb-photo{display:block;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12);transition:transform .12s,box-shadow .12s;color:inherit;text-decoration:none;}
.fb-photo:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.16);text-decoration:none;}
.fb-photo .fb-photo-img{display:block;height:160px;overflow:hidden;background:#e4e6eb;}
.fb-photo .fb-photo-img img{width:100%;height:100%;object-fit:cover;display:block;}
.fb-photo .fb-photo-t{display:block;padding:9px 12px 2px;font-weight:bold;color:#1d2129;font-size:15px;}
.fb-photo .fb-photo-s{display:block;padding:0 12px 3px;color:#616770;font-size:13px;}
.fb-photo .fb-photo-d{display:block;padding:0 12px 12px;color:#90949c;font-size:12px;}
html[data-theme="dark"] .fb-photo,html.dark .fb-photo{background:#242526;box-shadow:0 1px 2px rgba(0,0,0,.5);}
html[data-theme="dark"] .fb-photo:hover,html.dark .fb-photo:hover{box-shadow:0 4px 14px rgba(0,0,0,.7);}
html[data-theme="dark"] .fb-photo .fb-photo-t,html.dark .fb-photo .fb-photo-t{color:#e4e6eb;}
html[data-theme="dark"] .fb-photo .fb-photo-s,html.dark .fb-photo .fb-photo-s{color:#b0b3b8;}
html[data-theme="dark"] .fb-photo .fb-photo-d,html.dark .fb-photo .fb-photo-d{color:#8a8d91;}
.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
@media (max-width:1000px){.tools-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.tools-grid{grid-template-columns:1fr;}}
.tools-page .if-page{padding:0;}
.tools-page .if-modal{max-width:760px;margin:0 auto;}
