/* Free tool apps (Oct 2026): shared widget components on the gx light palette */
.ta-sec { padding: 56px 0 90px; background: var(--gx-bg); }
.ta { max-width: 1120px; margin: 0 auto; border: 1px solid var(--gx-line); border-radius: 26px; background: var(--gx-card); box-shadow: var(--gx-shadow); overflow: hidden; }
.ta-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 26px; border-bottom: 1px solid var(--gx-line); background: var(--gx-card2); }
.ta-top b { font-family: var(--font-heading); color: var(--gx-ink); font-size: 1.02rem; }
.ta-top span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gx-dim); }
.ta-body { padding: 26px; }
.ta-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.ta-split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.ta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ta-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ta-f { display: grid; gap: 7px; min-width: 0; }
.ta-f label, .ta-lab { font-size: .84rem; font-weight: 700; color: var(--gx-ink); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ta-f small, .ta-help { font-size: .8rem; color: var(--gx-dim); line-height: 1.5; font-weight: 400; }
.ta-in, .ta-sel, .ta-ta { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--gx-line); border-radius: 12px; background: var(--gx-bg); color: var(--gx-ink); font: inherit; font-size: 1rem; outline: 0; transition: border-color .15s, box-shadow .15s; }
.ta-ta { min-height: 130px; resize: vertical; line-height: 1.5; }
.ta-in:focus, .ta-sel:focus, .ta-ta:focus { border-color: var(--gx-accent); box-shadow: 0 0 0 3px rgba(25,114,138,.16); background: var(--gx-card); }
.ta-in.bad { border-color: #DC2626; }
.ta-cnt { font-family: var(--font-mono); font-size: .74rem; color: var(--gx-dim); font-weight: 500; white-space: nowrap; }
.ta-cnt.over { color: #DC2626; font-weight: 700; }
.ta-cnt.ok { color: #15803D; }
.ta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(135deg, #19728A, #34A3BC); box-shadow: 0 8px 22px rgba(25,114,138,.28); text-decoration: none; }
.ta-btn:hover { filter: brightness(1.05); }
.ta-btn:disabled { opacity: .6; cursor: wait; }
.ta-btn--line { color: var(--gx-ink); background: var(--gx-card); border: 1px solid var(--gx-line); box-shadow: none; }
.ta-btn--line:hover { border-color: var(--gx-accent); }
.ta-btn--sm { min-height: 40px; padding: 0 14px; font-size: .86rem; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gx-line); background: var(--gx-card); color: var(--gx-body); font: inherit; font-size: .88rem; cursor: pointer; }
.ta-chip input { accent-color: #19728A; width: 16px; height: 16px; }
.ta-chip.on, .ta-chip:has(input:checked) { border-color: #19728A; background: rgba(25,114,138,.07); color: var(--gx-ink); }
.ta-out { border: 1px solid var(--gx-line); border-radius: 18px; background: var(--gx-bg); padding: 20px; }
.ta-out h3 { font-family: var(--font-heading); color: var(--gx-ink); font-size: 1.05rem; margin: 0 0 12px; }
.ta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ta-stat { padding: 16px; border-radius: 14px; background: var(--gx-card); border: 1px solid var(--gx-line); }
.ta-stat b { display: block; font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.1; color: var(--gx-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ta-stat span { display: block; margin-top: 4px; font-size: .8rem; color: var(--gx-dim); line-height: 1.4; }
.ta-stat.hi b { color: #19728A; }
.ta-stat.warn b { color: #B45309; }
.ta-stat.bad b { color: #DC2626; }
.ta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.ta-pill.good { background: #DCFCE7; color: #166534; } .ta-pill.mid { background: #FEF3C7; color: #92400E; } .ta-pill.poor { background: #FEE2E2; color: #991B1B; }
.ta-table-w { overflow-x: auto; border: 1px solid var(--gx-line); border-radius: 14px; }
.ta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ta-table th, .ta-table td { padding: 10px 14px; border-bottom: 1px solid var(--gx-line); text-align: left; vertical-align: top; }
.ta-table th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gx-dim); font-weight: 500; background: var(--gx-card2); }
.ta-table tr:last-child td { border-bottom: 0; }
.ta-num { font-variant-numeric: tabular-nums; text-align: right !important; }
.ta-note { font-size: .84rem; line-height: 1.6; color: var(--gx-dim); margin: 12px 0 0; }
.ta-alert { padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.5; background: #FEF3C7; color: #78350F; }
.ta-alert.err { background: #FEE2E2; color: #7F1D1D; }
.ta-alert.ok { background: #DCFCE7; color: #14532D; }
.ta-copybox { display: flex; gap: 8px; align-items: stretch; }
.ta-copybox .ta-in { font-family: var(--font-mono); font-size: .88rem; }
.ta-pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .84rem; line-height: 1.6; background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 12px; padding: 14px; margin: 0; max-height: 320px; overflow: auto; color: var(--gx-ink); }
.ta-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ta-tab { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gx-line); background: var(--gx-card); color: var(--gx-body); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.ta-tab.on { background: var(--gx-ink); color: var(--gx-card); border-color: var(--gx-ink); }
.ta-empty { display: grid; place-items: center; text-align: center; min-height: 220px; padding: 24px; color: var(--gx-dim); font-size: .92rem; line-height: 1.6; border: 1px dashed var(--gx-line); border-radius: 18px; background: var(--gx-bg); }
.ta-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ta-rel-c { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: var(--gx-card); border: 1px solid var(--gx-line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ta-rel-c:hover { transform: translateY(-3px); box-shadow: var(--gx-shadow); }
.ta-rel-c b { font-family: var(--font-heading); color: var(--gx-ink); }
.ta-rel-c span { font-size: .88rem; color: var(--gx-body); line-height: 1.55; }
.ta-band { padding: 64px 0; background: var(--gx-card); border-top: 1px solid var(--gx-line); }
.ta-band-in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.ta-band h2 { font-family: var(--font-heading); color: var(--gx-ink); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0; text-wrap: balance; }
.ta-band p { margin: 0; max-width: 60ch; line-height: 1.65; color: var(--gx-body); }
.ta-band-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ta-btn-line { color: var(--gx-ink); background: transparent; border-color: var(--gx-line); }
.ta-btn-line:hover { border-color: var(--gx-accent); }
.ta-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .ta-split, .ta-split--wide { grid-template-columns: 1fr; } .ta-rel { grid-template-columns: 1fr; } .ta-band-in { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ta-body { padding: 18px; } .ta-grid, .ta-grid--3 { grid-template-columns: 1fr; } .ta-sec { padding: 32px 0 60px; } .ta-copybox { flex-direction: column; } .ta-band .gx-btn { width: 100%; } }
@media print { .ta-noprint, header, footer, nav, .tx-top, .gx-sec, .ta-band { display: none !important; } }
[hidden]{display:none!important}
/* Report bar */
.shr { display: grid; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; border: 1px dashed #9CC9D4; background: rgba(25,114,138,.05); }
.shr-k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gx-accent); }
.shr-b { display: flex; flex-wrap: wrap; gap: 8px; }
.shr-out { font-size: .88rem; line-height: 1.5; color: var(--gx-body); display: grid; gap: 8px; }
.shr-out.err { color: #B91C1C; } .shr-out.ok { color: #15803D; font-weight: 600; } .shr-out.warn { color: #92400E; }
.shr-f { display: flex; flex-wrap: wrap; gap: 8px; }
.shr-f .ta-in { flex: 1 1 160px; min-height: 42px; }

/* AI ad writer panel */
.aw { margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--gx-line); background: linear-gradient(180deg, rgba(25,114,138,.06), rgba(25,114,138,0)); }
.aw-h { display: flex; gap: 14px; align-items: flex-start; }
.aw-h b { font-family: var(--font-heading); font-size: 1.05rem; color: var(--gx-ink); }
.aw-h p { margin: 4px 0 0; font-size: .9rem; line-height: 1.55; color: var(--gx-body); max-width: 70ch; }
.aw-tag { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #19728A; color: #fff; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.aw-f { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.aw-f .ta-btn { min-height: 48px; white-space: nowrap; }
.aw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aw-msg { margin: 12px 0 0; font-size: .88rem; line-height: 1.55; color: var(--gx-dim); min-height: 1px; }
.aw-msg:empty { display: none; }
.aw-msg.busy { color: #19728A; font-weight: 600; }
.aw-msg.busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -1px; animation: awspin .8s linear infinite; }
.aw-msg.ok { color: #166534; }
.aw-msg.err { color: #B91C1C; }
.aw-facts { margin-top: 10px; font-size: .86rem; color: var(--gx-body); }
.aw-facts summary { cursor: pointer; font-weight: 700; color: var(--gx-ink); min-height: 32px; display: flex; align-items: center; }
.aw-facts ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.5; }
@keyframes awspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aw-msg.busy::before { animation: none; } }
@media (max-width: 1000px) { .aw-f { grid-template-columns: 1fr 1fr; } .aw-url { grid-column: 1 / -1; } .aw-f .ta-btn { grid-column: 1 / -1; } }
@media (max-width: 600px) { .aw { padding: 18px; } .aw-f { grid-template-columns: 1fr; } }

/* GBP competitor lookup */
.gl { margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--gx-line); background: linear-gradient(180deg, rgba(25,114,138,.06), rgba(25,114,138,0)); }
.gl-f { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.gl-f .ta-btn { min-height: 48px; white-space: nowrap; }
.gl-out { margin-top: 18px; display: grid; gap: 16px; }
.gl-top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gl-card { border: 1px solid var(--gx-line); border-radius: 14px; background: var(--gx-card); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.gl-card .rk { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gx-dim); }
.gl-card .nm { font-weight: 700; color: var(--gx-ink); line-height: 1.35; word-break: break-word; }
.gl-card .pc { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 700; color: #19728A; line-height: 1.3; }
.gl-card .mt { font-size: .8rem; color: var(--gx-dim); }
.gl-card .ad { font-size: .8rem; color: var(--gx-body); line-height: 1.45; }
.gl-gap { border: 1px solid var(--gx-line); border-radius: 14px; background: var(--gx-card); padding: 16px; }
.gl-gap h4 { margin: 0 0 8px; font-family: var(--font-heading); color: var(--gx-ink); font-size: 1rem; }
.gl-gap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gl-gap li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--gx-body); }
.gl-gap li i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; margin-top: 1px; }
.gl-gap .e i { background: #DC2626; } .gl-gap .w i { background: #D97706; } .gl-gap .o i { background: #16A34A; }
@media (max-width: 800px) { .gl-top3 { grid-template-columns: 1fr; } .gl-f { grid-template-columns: 1fr 1fr; } .gl-f .ta-btn { grid-column: 1 / -1; } }
@media (max-width: 600px) { .gl { padding: 18px; } .gl-f { grid-template-columns: 1fr; } }
.gl .ta-table { min-width: 600px; }
