:root{
  --app-mobile-nav-height:68px;
  --app-mobile-nav-gap:10px;
  --app-mobile-header-height:56px;
  --app-mobile-safe-bottom:calc(var(--app-mobile-nav-height) + var(--app-mobile-nav-gap) + env(safe-area-inset-bottom) + 18px);
}
.app-shellBar{position:fixed;inset:0 0 auto;z-index:75;height:62px;color:#e2e8f0;background:rgba(15,23,42,.97);border-bottom:1px solid rgba(148,163,184,.18);box-shadow:0 8px 24px rgba(2,6,23,.18);backdrop-filter:blur(14px)}
.app-shellBar__inner{width:min(1440px,calc(100% - 28px));height:100%;margin:auto;display:flex;align-items:center;gap:18px}
.app-shellBrand{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none}.app-shellBrand__logo{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#10b981,#047857);font-weight:900}.app-shellBrand strong,.app-shellBrand small{display:block;line-height:1.1}.app-shellBrand strong{font-size:13px}.app-shellBrand small{margin-top:3px;color:#94a3b8;font-size:9px;letter-spacing:.12em}
.app-shellMobileCurrent{display:none}.app-shellCurrent{padding-left:18px;border-left:1px solid rgba(148,163,184,.24);display:grid}.app-shellCurrent small{color:#94a3b8;font-size:9px}.app-shellCurrent strong{color:#fff;font-size:13px}.app-shellSaved{display:flex;align-items:center;gap:6px;color:#a7f3d0;font-size:10px;font-weight:800}.app-shellSaved i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}
.app-shellTools{margin-left:auto;display:flex;gap:4px}.app-shellTools a{min-height:36px;padding:7px 11px;display:flex;align-items:center;border-radius:9px;color:#cbd5e1;font-size:12px;font-weight:800;text-decoration:none}.app-shellTools a:hover{color:#fff;background:rgba(255,255,255,.08)}.app-shellTools a.is-active{color:#d1fae5;background:rgba(16,185,129,.16)}
.app-shellError{position:fixed;top:72px;left:50%;z-index:70;width:min(680px,calc(100% - 300px));padding:12px 14px;display:grid;grid-template-columns:32px 1fr 32px;align-items:start;gap:10px;border:1px solid #fca5a5;border-radius:14px;color:#7f1d1d;background:#fff7f7;box-shadow:0 14px 34px rgba(127,29,29,.16);transform:translateX(-35%)}.app-shellError[hidden]{display:none}.app-shellError__icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#dc2626;font-weight:900}.app-shellError strong{font-size:12px}.app-shellError p{margin:2px 0 0;font-size:11px;line-height:1.5}.app-shellError button{width:30px;height:30px;border:0;border-radius:8px;color:#991b1b;background:#fee2e2;font-size:18px;cursor:pointer}
.app-shellBusy{position:fixed;top:72px;left:50%;z-index:72;min-width:240px;padding:11px 15px;display:flex;align-items:center;gap:11px;border:1px solid rgba(4,120,87,.24);border-radius:14px;color:#064e3b;background:#ecfdf5;box-shadow:0 14px 34px rgba(6,78,59,.17);transform:translateX(-20%)}.app-shellBusy[hidden]{display:none}.app-shellBusy strong,.app-shellBusy small{display:block}.app-shellBusy strong{font-size:12px}.app-shellBusy small{margin-top:2px;color:#047857;font-size:10px}.app-shellBusy__spinner{width:22px;height:22px;flex:0 0 auto;border:3px solid #a7f3d0;border-top-color:#047857;border-radius:50%;animation:appShellSpin .7s linear infinite}@keyframes appShellSpin{to{transform:rotate(360deg)}}.has-app-shell[data-app-busy="true"] button.is-app-busy{cursor:wait;opacity:.65}
.app-shellSide{position:fixed;top:80px;left:max(14px,calc((100vw - 1440px)/2 + 14px));bottom:18px;z-index:50;width:202px;padding:14px 10px;display:flex;flex-direction:column;gap:4px;border:1px solid rgba(15,23,42,.1);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(2,6,23,.08)}.app-shellSide__label{padding:0 10px 7px;color:#94a3b8;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.app-shellSide__item{width:100%;min-height:42px;padding:8px 10px;display:flex;align-items:center;gap:10px;border:0;border-radius:11px;color:#475569;background:transparent;font:inherit;font-size:12px;font-weight:800;text-align:left;text-decoration:none;cursor:pointer}.app-shellSide__item span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;color:#64748b;background:#f1f5f9;font-size:13px;font-weight:900}.app-shellSide__item:hover{color:#0f172a;background:#f1f5f9}.app-shellSide__item.is-active{color:#065f46;background:#ecfdf5}.app-shellSide__item.is-active span{color:#fff;background:#047857}.app-shellSide__item.is-disabled,.app-shellSide__item:disabled{color:#94a3b8;cursor:not-allowed;opacity:.58}.app-shellSide__divider{height:1px;margin:8px;background:#e2e8f0}.app-shellSide__tip{margin-top:auto;padding:11px;display:grid;gap:3px;border-radius:12px;color:#64748b;background:#f8fafc;font-size:10px;line-height:1.5}.app-shellSide__tip strong{color:#0f172a;font-size:11px}.app-shellSide__tip a{color:#047857;font-weight:900;text-decoration:underline;text-underline-offset:2px}
.has-app-shell>.tp-topbar,.has-app-shell>.lead-appBar,.has-app-shell .lead-sidebar,.has-app-shell>.lead-mobileNav{display:none}.has-app-shell .lead-shell{display:block}.has-app-shell .lead-shell__content{min-width:0}.has-app-shell main.tp-container{width:min(1190px,calc(100% - 270px));margin:0 max(14px,calc((100vw - 1440px)/2 + 14px)) 0 auto;padding-top:82px}.has-app-shell main .tp-card{box-shadow:0 6px 18px rgba(2,6,23,.06)}
.app-shellHelp{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent}.app-shellHelp::backdrop{background:rgba(15,23,42,.48);backdrop-filter:blur(2px)}.app-shellHelp__panel{width:min(520px,100vw);height:100%;margin-left:auto;background:#fff;box-shadow:-24px 0 60px rgba(2,6,23,.24)}.app-shellHelp header{padding:20px 22px 16px;display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(15,23,42,.1)}.app-shellHelp header small{color:#047857;font-size:9px;font-weight:900;letter-spacing:.14em}.app-shellHelp h2{margin:0;font-size:20px}.app-shellHelp header p{margin:4px 0 0;color:#64748b;font-size:12px}.app-shellHelp header button{width:40px;height:40px;border:1px solid rgba(15,23,42,.12);border-radius:12px;background:#f8fafc;font-size:22px;cursor:pointer}.app-shellHelp__body{padding:20px 22px}.app-shellHelp ol{margin:0;padding:0;display:grid;gap:10px;list-style:none}.app-shellHelp li{padding:12px;display:grid;grid-template-columns:32px 1fr;gap:10px;border:1px solid rgba(15,23,42,.09);border-radius:13px;background:#f8fafc}.app-shellHelp li>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#047857;font-size:12px;font-weight:900}.app-shellHelp li strong{font-size:13px}.app-shellHelp li p{margin:2px 0 0;color:#64748b;font-size:11px}.app-shellHelp__note{margin-top:14px;padding:12px;border-radius:12px;color:#475569;background:#ecfdf5;font-size:11px}
.app-shellMobile{display:none}.tp-fieldError{min-height:1.4em;margin:5px 0 0;color:#b91c1c;font-size:12px;font-weight:700;line-height:1.45}.tp-fieldError:empty{min-height:0;margin:0}.tp-fieldError.is-notice{color:#64748b;font-weight:500}.tp-input[aria-invalid="true"]{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.12)}
.tp-toolHero__meta{margin:12px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tp-toolHero__meta div{padding:9px 11px;border-radius:10px;background:#f8fafc}.tp-toolHero__meta dt{color:#64748b;font-size:10px;font-weight:800}.tp-toolHero__meta dd{margin:2px 0 0;color:#0f172a;font-size:12px;font-weight:800}.tp-toolHero__inputLink{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:900px){
  html{scroll-padding-bottom:var(--app-mobile-safe-bottom)}body.has-app-shell{padding-bottom:var(--app-mobile-safe-bottom)}
  body.has-app-shell:not([data-app-result-ready="true"]) .tp-stickySummary{display:none}
  body.has-app-shell[data-app-result-ready="true"] main .tp-stickySummary{display:block;top:calc(var(--app-mobile-header-height) + 8px)}
  .app-shellBar{height:56px}.app-shellBar__inner{width:calc(100% - 20px)}.app-shellCurrent,.app-shellSaved,.app-shellTools{display:none}.app-shellBrand{width:auto}.app-shellMobileCurrent{margin-left:auto;display:block;overflow:hidden;color:#cbd5e1;font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
  .app-shellError,.app-shellBusy{top:64px;left:10px;right:10px;width:auto;min-width:0;transform:none}.app-shellSide{display:none}.has-app-shell main.tp-container{width:calc(100% - 20px);margin:0 auto;padding-top:68px}
  .tp-toolHero{padding:16px}.tp-toolHero h1{font-size:clamp(1.25rem,5vw,1.5rem);line-height:1.4}.tp-toolHero__purpose{font-size:.9rem;line-height:1.7}.tp-toolHero__secondary{display:none}.tp-toolHero__actions{display:grid;grid-template-columns:1fr;gap:8px}.tp-toolHero__actions>*{min-height:44px;width:100%;box-sizing:border-box}.tp-toolHero__meta{grid-template-columns:1fr 1fr}
  .has-app-shell .lead-modeBar,.has-app-shell .lead-toolSection{display:none}.has-app-shell .lead-app[data-mobile-view="input"] #multiSection{display:block}.has-app-shell .app-shellScreen{display:none}body[data-app-tool="/impact/"][data-app-screen="result"] #keywords>:not(#resultSection){display:none}
  .app-shellMobile{position:fixed;left:10px;right:10px;bottom:calc(var(--app-mobile-nav-gap) + env(safe-area-inset-bottom));z-index:85;min-height:var(--app-mobile-nav-height);box-sizing:border-box;padding:6px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid rgba(148,163,184,.24);border-radius:18px;background:rgba(15,23,42,.97);box-shadow:0 16px 40px rgba(2,6,23,.32);backdrop-filter:blur(14px)}.app-shellMobile button{min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:12px;color:#cbd5e1;background:transparent;font:inherit;font-size:10px;font-weight:800}.app-shellMobile button span{font-size:16px}.app-shellMobile button.is-active{color:#d1fae5;background:rgba(16,185,129,.16)}.app-shellMobile button.is-disabled,.app-shellMobile button:disabled{color:#64748b;cursor:not-allowed;opacity:.65}
  .tp-workspaceLauncher,.tp-toast{bottom:var(--app-mobile-safe-bottom)!important}.app-shellHelp__panel{width:100%;padding-bottom:env(safe-area-inset-bottom)}[id]{scroll-margin-top:72px;scroll-margin-bottom:var(--app-mobile-safe-bottom)}.tp-tableWrap,.tp-table-scroll,.table-scroll{padding-bottom:var(--app-mobile-safe-bottom)}html.is-virtual-keyboard-open .app-shellMobile{display:none}html.is-virtual-keyboard-open body.has-app-shell{padding-bottom:18px}
}
@media(max-width:360px){.tp-toolHero__meta{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.app-shellMobile{transition:none!important}}
