:root{color-scheme:light;--ink:#171a22;--muted:#6d7280;--soft:#989eaa;--paper:#fff;--ground:#f4f5f8;--line:#e4e6eb;--blue:#1a3f8a;--blue-dark:#14346f;--blue-pale:#edf2fa;--green:#218260;--scroll:#c7ccd7;--scroll-hover:#aeb5c2;--shadow:0 25px 65px rgba(25,32,56,.08),0 2px 8px rgba(25,32,56,.04)}
[data-theme="dark"]{color-scheme:dark;--ink:#f1f3f7;--muted:#a9b0bc;--soft:#7f8897;--paper:#171a20;--ground:#0f1116;--line:#2b303a;--blue:#1a3f8a;--blue-dark:#1a3f8a;--blue-pale:#172541;--green:#58c99b;--scroll:#454c58;--scroll-hover:#626b79;--shadow:0 28px 70px rgba(0,0,0,.34),0 2px 8px rgba(0,0,0,.2)}
*{box-sizing:border-box}html{min-width:320px;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}body{margin:0;min-height:100vh;color:var(--ink);background:var(--ground);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;transition:background .2s,color .2s}button,textarea{font:inherit}button{color:inherit}[hidden]{display:none!important}
html::-webkit-scrollbar,.activity-list::-webkit-scrollbar{width:9px;height:9px}html::-webkit-scrollbar-track,.activity-list::-webkit-scrollbar-track{background:transparent}html::-webkit-scrollbar-thumb,.activity-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:var(--scroll);background-clip:padding-box}html::-webkit-scrollbar-thumb:hover,.activity-list::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover);background-clip:padding-box}
.site-header{width:min(1200px,calc(100% - 48px));height:82px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}.header-left{display:flex;align-items:center;gap:14px}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:.95rem;font-weight:720;letter-spacing:-.02em}.brand-symbol{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#171a22;color:#fff;font-family:Georgia,serif;font-style:italic;font-size:1rem}.theme-toggle{position:relative;width:47px;height:27px;padding:0;border:1px solid #d6dae2;border-radius:999px;background:#eef0f4;color:#707786;cursor:pointer;box-shadow:inset 0 1px 2px rgba(23,26,34,.06);transition:.2s}.theme-toggle svg{position:absolute;top:7px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-sun{left:7px}.theme-moon{right:7px}.theme-thumb{position:absolute;z-index:1;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(23,26,34,.22);transition:transform .22s cubic-bezier(.2,.75,.25,1)}.theme-toggle[aria-checked="true"]{border-color:#3a4150;background:#252a33;color:#c6cbd5}.theme-toggle[aria-checked="true"] .theme-thumb{transform:translateX(20px);background:#f1f3f7}.privacy-badge{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.78rem}.privacy-badge span{width:7px;height:7px;border-radius:50%;background:#36a77c;box-shadow:0 0 0 4px rgba(54,167,124,.11)}
main{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:clamp(43px,7vh,78px) 0 70px}.page-heading{max-width:690px;margin-bottom:32px}.overline{margin:0 0 8px;color:var(--blue);font-size:.72rem;font-weight:780;letter-spacing:.12em;text-transform:uppercase}h1{margin:0;font-size:clamp(2.5rem,5vw,4rem);line-height:1.04;letter-spacing:-.06em;font-weight:760}.page-heading>p:last-child{margin:15px 0 0;color:var(--muted);font-size:1rem;line-height:1.55}
.heading-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.heading-row h1{min-width:0}.heading-row .theme-toggle{flex:0 0 auto}
.tool{display:grid;grid-template-columns:minmax(0,.9fr) minmax(460px,1.1fr);min-height:560px;overflow:hidden;border:1px solid #dfe2e9;border-radius:22px;background:var(--paper);box-shadow:var(--shadow)}.input-side{display:flex;flex-direction:column;min-width:0;padding:21px 24px 20px;border-right:1px solid var(--line)}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:#f0f1f4}.tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;font-size:.86rem;font-weight:680;transition:.18s}.tab svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tab:hover{color:var(--ink)}.tab.active{background:#fff;color:var(--ink);box-shadow:0 2px 7px rgba(25,32,56,.08)}.tab:focus-visible,button:focus-visible,textarea:focus-visible{outline:3px solid rgba(61,94,234,.2);outline-offset:2px}
.panel-wrap{position:relative;flex:1;min-height:0;margin-top:21px}.tab-panel{height:100%}.text-state{display:flex;flex-direction:column}.panel-label{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.panel-label label{font-size:.82rem;font-weight:720}.text-panel-tools{display:flex;align-items:center;gap:11px}#textStats{color:var(--soft);font-size:.72rem;font-variant-numeric:tabular-nums}.text-privacy-toggle{display:flex;align-items:center;gap:5px;min-height:27px;padding:3px 5px 3px 7px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);cursor:pointer;font-size:.66rem;font-weight:700;transition:.18s}.text-privacy-toggle:hover{border-color:#bfc5d0;color:var(--ink)}.text-privacy-toggle svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.privacy-eye-off{display:none}.mini-switch{position:relative;width:24px;height:15px;border-radius:99px;background:#d9dde5;transition:.18s}.mini-switch:after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(23,26,34,.22);transition:transform .18s}.text-privacy-toggle[aria-checked="true"]{border-color:#cfd6f8;background:var(--blue-pale);color:var(--blue-dark)}.text-privacy-toggle[aria-checked="true"] .privacy-eye{display:none}.text-privacy-toggle[aria-checked="true"] .privacy-eye-off{display:block}.text-privacy-toggle[aria-checked="true"] .mini-switch{background:var(--blue)}.text-privacy-toggle[aria-checked="true"] .mini-switch:after{transform:translateX(9px)}textarea{width:100%;flex:1;min-height:315px;resize:none;padding:18px;border:1px solid var(--line);border-radius:13px;outline:none;background:#fbfbfc;color:var(--ink);font-size:1rem;line-height:1.65;transition:.18s}textarea.is-concealed{-webkit-text-security:disc;text-security:disc;letter-spacing:.08em}textarea:hover{border-color:#d4d7df}textarea:focus{border-color:#8d96a8;background:#fff;box-shadow:none}textarea::placeholder{color:#a9aeba}.input-help{margin:10px 2px 0;color:var(--soft);font-size:.72rem}
.file-panel{position:relative;min-height:380px}.file-empty{height:100%;min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;border:1.5px dashed #d5d9e3;border-radius:15px;background:#fbfbfc;text-align:center}.upload-icon{display:grid;place-items:center;width:53px;height:53px;margin-bottom:16px;border-radius:16px;background:var(--blue-pale);color:var(--blue)}.upload-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.file-empty strong{font-size:.98rem}.file-empty p{margin:7px 0 20px;color:var(--muted);font-size:.78rem}.choose-button{padding:10px 15px;border:1px solid #d7dae3;border-radius:10px;background:#fff;cursor:pointer;font-size:.8rem;font-weight:680;box-shadow:0 2px 6px rgba(25,32,56,.04)}.choose-button:hover{border-color:#bfc6db;transform:translateY(-1px)}.file-state{min-height:380px;padding:30px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-content:center;align-items:center;gap:17px;border:1px solid var(--line);border-radius:15px;background:#fbfbfc}.file-icon{position:relative;width:52px;height:62px;border:1px solid #dbe2fc;border-radius:12px;background:var(--blue-pale)}.file-icon:after{content:"";position:absolute;left:13px;bottom:17px;width:25px;height:2px;border-radius:2px;background:var(--blue);box-shadow:0 7px 0 #9eb0ef}.file-info{min-width:0}.file-name{margin:0 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:720}.file-meta{margin:0;color:var(--muted);font-size:.72rem;line-height:1.6}.remove-file{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;font-size:1.35rem}.remove-file:hover{background:#eceef3;color:var(--ink)}.progress-wrap{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:12px;color:var(--soft);font-size:.7rem}.progress-line{height:4px;overflow:hidden;border-radius:99px;background:#e4e7ee}.progress-line span{display:block;width:0;height:100%;background:var(--blue);transition:width .12s linear}.drag-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1.5px dashed #8298eb;border-radius:15px;background:rgba(239,243,255,.97);opacity:0;visibility:hidden;transform:scale(.985);transition:.18s}.drag-overlay strong{font-size:1rem}.drag-overlay span{margin-top:6px;color:var(--muted);font-size:.76rem}body.is-dragging .file-panel .drag-overlay{opacity:1;visibility:visible;transform:scale(1)}.local-note{display:flex;align-items:center;gap:7px;margin-top:15px;color:var(--muted);font-size:.72rem}.local-note svg{width:15px;height:15px;fill:none;stroke:var(--green);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.results{display:flex;flex-direction:column;min-width:0;padding:27px 29px 24px;background:#fcfcfd}.results-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--line)}h2{margin:0;font-size:1.22rem;letter-spacing:-.035em}.reset-button{padding:8px 9px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;font-size:.72rem;font-weight:650}.reset-button:hover{background:#f0f1f5;color:var(--ink)}.hash-list{flex:1}.hash-row{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr) 35px;align-items:center;gap:12px;min-height:67px;border-bottom:1px solid var(--line);animation:rise .28s ease both}.hash-row.primary{margin:5px -10px;padding:0 10px;border:1px solid #dfe5ff;border-radius:12px;background:var(--blue-pale)}.hash-name{color:var(--muted);font-size:.68rem;font-weight:780;letter-spacing:.055em}.primary .hash-name{color:var(--blue-dark)}.hash-value{min-width:0;overflow-wrap:anywhere;color:#3d4350;font:500 .7rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.012em}.primary .hash-value{color:#202947;font-weight:650}.copy-button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:#7b8190;cursor:pointer;transition:.18s}.copy-button:hover{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(25,32,56,.08);transform:translateY(-1px)}.copy-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.copy-button.copied{background:#e5f6ef;color:var(--green)}.lookup{margin-top:20px}.check-button{width:100%;min-height:49px;padding:0 15px 0 18px;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:12px;background:var(--ink);color:#fff;cursor:pointer;font-size:.84rem;font-weight:720;box-shadow:0 8px 18px rgba(23,26,34,.15);transition:.18s}.check-button:hover{background:#252a38;transform:translateY(-1px);box-shadow:0 10px 24px rgba(23,26,34,.2)}.check-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.lookup-status{margin-top:9px;padding:13px;display:grid;grid-template-columns:auto 1fr;gap:10px;border:1px solid #e0e3ea;border-radius:11px;background:#fff;animation:rise .22s ease both}.status-dot{width:8px;height:8px;margin-top:4px;border-radius:50%;background:#e3a62f;box-shadow:0 0 0 4px #fff3dc}.lookup-status strong{display:block;font-size:.75rem}.lookup-status p{margin:4px 0 0;color:var(--muted);font-size:.68rem;line-height:1.45}.hash-note{margin:13px 0 0;color:var(--soft);text-align:center;font-size:.65rem}footer{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:0 0 30px;display:flex;justify-content:space-between;color:var(--soft);font-size:.7rem}
@keyframes rise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.tool{grid-template-columns:1fr}.input-side{border-right:0;border-bottom:1px solid var(--line)}textarea,.file-empty,.file-state{min-height:260px}.file-panel{min-height:260px}.hash-row{min-height:63px}}
@media(max-width:560px){.site-header,main,footer{width:calc(100% - 28px)}.site-header{height:68px}.privacy-badge{font-size:0}main{padding-top:37px}.page-heading{margin-bottom:24px}h1{font-size:2.65rem}.tool{border-radius:17px}.input-side,.results{padding:17px}.panel-label{align-items:flex-start;flex-direction:column;gap:5px}.hash-row{grid-template-columns:61px minmax(0,1fr) 31px;gap:7px}.hash-value{font-size:.62rem}footer{gap:14px}footer span:last-child{text-align:right}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

footer a{color:inherit;text-decoration-color:#c3c7d0;text-underline-offset:2px}footer a:hover{color:var(--muted)}

/* Hash selection and server lookup states */
.hash-row.selectable{cursor:pointer;border-radius:10px;transition:background .18s,border-color .18s,box-shadow .18s}.hash-row.selectable:hover{background:#f7f8fb}.hash-row.selected{box-shadow:inset 3px 0 0 var(--blue)}.hash-row.primary.selected{box-shadow:inset 3px 0 0 var(--blue),0 0 0 2px rgba(61,94,234,.08)}.check-button:disabled{cursor:wait;opacity:.68;transform:none;box-shadow:none}.lookup-status{display:block;padding:0;overflow:hidden}.lookup-summary{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:14px}.lookup-summary .status-dot{margin-top:4px}.lookup-new .status-dot{background:#218260;box-shadow:0 0 0 4px #e5f6ef}.lookup-seen .status-dot{background:var(--blue);box-shadow:0 0 0 4px var(--blue-pale)}.lookup-error .status-dot{background:#c95353;box-shadow:0 0 0 4px #fdeaea}.lookup-loading .status-dot{animation:pulse 1s ease-in-out infinite}.lookup-summary strong{display:block;font-size:.82rem}.lookup-summary p{margin:4px 0 0;color:var(--muted);font-size:.72rem;line-height:1.5}.history-head{display:flex;justify-content:space-between;padding:10px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f7f8fa;color:var(--muted);font-size:.67rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.history-list{max-height:260px;margin:0;padding:0;overflow:auto;list-style:none}.history-item{display:grid;grid-template-columns:25px 1fr;gap:9px;padding:12px 14px;border-bottom:1px solid var(--line)}.history-item:last-child{border-bottom:0}.history-flag{padding-top:1px;font-size:1rem}.history-item strong,.history-item time,.history-item div>span{display:block}.history-item strong{font-size:.75rem}.history-item time{margin-top:3px;color:#666d7b;font-size:.68rem}.history-item div>span{margin-top:2px;color:var(--soft);font-size:.65rem}@keyframes pulse{50%{opacity:.35;transform:scale(.8)}}

/* Compact desktop workspace */
@media (min-width:901px){
  .site-header{height:60px}
  main{padding:16px 0 22px}
  .page-heading{max-width:none;margin-bottom:16px}
  .page-heading .overline{margin-bottom:5px}
  h1{font-size:clamp(2rem,3vw,2.7rem);line-height:1}
  .page-heading>p:last-child{margin-top:8px;font-size:.9rem;line-height:1.4}
  .tool{height:min(650px,calc(100vh - 230px));min-height:520px;border-radius:18px}
  .input-side{padding:17px 20px 16px}
  .panel-wrap{margin-top:14px}
  textarea{min-height:0;padding:15px;line-height:1.5}
  .file-panel,.file-empty,.file-state{min-height:0}
  .results{padding:18px 22px 16px}
  .results-heading{padding-bottom:11px}
  .results-heading .overline{margin-bottom:4px}
  .hash-row{min-height:49px}
  .hash-row.primary{margin:3px -8px;padding:0 8px}
  .lookup{margin-top:11px}
  .check-button{min-height:44px}
  .lookup-summary{padding:10px 13px}
  .history-head{padding:7px 13px}
  .history-list{max-height:124px}
  .history-item{padding:8px 13px}
  .hash-note{margin-top:8px}
  footer{padding-bottom:14px}
}
.check-button.is-reset{background:var(--blue-pale);color:var(--blue-dark);box-shadow:none}
.check-button.is-reset:hover{background:#e3e8ff;box-shadow:none}

/* Centered action and recent activity rail */
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:16px;align-items:stretch}
.results.is-idle .hash-list{display:none}
.results.is-idle .lookup{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:20px}
.results.is-idle .check-button{width:min(100%,220px);min-height:50px;padding:0 15px 0 18px;border:0;border-radius:12px;background:var(--ink);font-size:.84rem;box-shadow:0 7px 16px rgba(23,26,34,.13)}
.results.is-idle .check-button:hover{background:#252a38;box-shadow:0 9px 20px rgba(23,26,34,.17);transform:translateY(-1px)}
.results.is-idle .check-button svg{width:18px;height:18px;padding:0;border-radius:0;background:transparent}
.results.is-idle .check-button:disabled{cursor:not-allowed;opacity:.38;box-shadow:none;transform:none}
.results.is-idle .lookup-status{width:min(100%,340px);margin-top:14px}
.results.is-idle .hash-note{margin-top:auto}
.activity-rail{height:min(650px,calc(100vh - 230px));min-height:520px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe2e9;border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 18px 50px rgba(25,32,56,.07);backdrop-filter:blur(16px)}
.activity-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:19px 19px 15px;border-bottom:1px solid var(--line)}
.activity-heading .overline{margin-bottom:4px}.activity-heading h2{font-size:1.05rem}
.live-dot{width:8px;height:8px;margin-top:8px;border-radius:50%;background:#31a476;box-shadow:0 0 0 5px rgba(49,164,118,.12)}
.activity-list{flex:1;min-height:0;margin:0;padding:7px 0;overflow:auto;list-style:none;scrollbar-width:thin;scrollbar-color:#c7ccd7 transparent}
.activity-item{display:block;padding:12px 17px;border-bottom:1px solid #eceef2}
.activity-item:last-child{border-bottom:0}
.activity-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.activity-place{min-width:0;display:flex;align-items:center;gap:7px}.activity-flag{flex:0 0 auto;width:17px;height:12px;border-radius:2px;background-size:cover;box-shadow:0 0 0 1px rgba(23,26,34,.12)}
.activity-unknown{display:grid;place-items:center;background:transparent;color:var(--muted);box-shadow:none;font-size:.82rem;line-height:1}
.activity-details{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-top:6px;color:var(--ink);font-size:.68rem}.activity-meta{display:flex;flex:0 0 auto;align-items:center;gap:4px}.activity-format,.activity-bytes{font-weight:400;white-space:nowrap}.activity-hash{min-width:0;overflow:hidden;color:inherit;font:400 .68rem/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.activity-country{min-width:0;overflow:hidden;color:var(--muted);font-size:.72rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.activity-time{flex:0 0 auto;color:var(--soft);font-size:.68rem;white-space:nowrap}
.activity-empty{padding:30px 18px;color:var(--soft);text-align:center;font-size:.76rem;line-height:1.5}
.activity-footer{padding:11px 15px 12px;border-top:1px solid var(--line);background:linear-gradient(180deg,#fafbfc,#f4f5f7)}.activity-stats-head,.activity-stats-row{display:grid;grid-template-columns:44px repeat(3,minmax(0,1fr));align-items:center;column-gap:5px}.activity-stats-head{padding-bottom:5px;color:var(--soft);font-size:.57rem;font-weight:750;letter-spacing:.04em;text-align:right;text-transform:uppercase}.activity-stats-row{min-height:21px;color:var(--ink);font-size:.64rem;font-variant-numeric:tabular-nums}.activity-stats-row+ .activity-stats-row{border-top:1px solid rgba(225,228,233,.72)}.activity-stats-row strong{font-size:.66rem;text-align:left}.activity-stats-row span{text-align:right;white-space:nowrap}

@media (min-width:901px){.site-header,main,footer{width:min(1480px,calc(100% - 48px))}.tool{grid-template-columns:minmax(0,.88fr) minmax(430px,1.12fr)}}
@media (max-width:1120px){.workspace{grid-template-columns:1fr}.activity-rail{height:320px;min-height:0}.activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.activity-item:nth-child(odd){border-right:1px solid #eceef2}}
@media (max-width:620px){.activity-list{display:block}.activity-item:nth-child(odd){border-right:0}.results.is-idle .lookup{padding:12px}.results.is-idle .check-button{width:100%}}
textarea:focus-visible{outline:none}

/* System-aware dark theme */
[data-theme="dark"] .brand-symbol{background:#f1f3f7;color:#151820}
[data-theme="dark"] .tool,[data-theme="dark"] .activity-rail{border-color:#303641}
[data-theme="dark"] .tabs{background:#20242b}
[data-theme="dark"] .tab.active{background:#303640;box-shadow:0 2px 8px rgba(0,0,0,.28)}
[data-theme="dark"] textarea,[data-theme="dark"] .file-empty,[data-theme="dark"] .file-state{background:#12151a}
[data-theme="dark"] textarea:hover,[data-theme="dark"] .text-privacy-toggle:hover{border-color:#505866}
[data-theme="dark"] textarea:focus{border-color:#697487;background:#181c23}
[data-theme="dark"] textarea::placeholder{color:#646d7b}
[data-theme="dark"] .file-empty{border-color:#3a404b}
[data-theme="dark"] .choose-button{border-color:#3b424e;background:#242932;box-shadow:0 2px 7px rgba(0,0,0,.2)}
[data-theme="dark"] .choose-button:hover{border-color:#5d6878}
[data-theme="dark"] .file-state{border-color:#323844}
[data-theme="dark"] .file-icon{border-color:#34416e}
[data-theme="dark"] .remove-file:hover,[data-theme="dark"] .reset-button:hover{background:#272c35}
[data-theme="dark"] .progress-line{background:#2d333e}
[data-theme="dark"] .drag-overlay{border-color:#7389e8;background:rgba(28,34,54,.97)}
[data-theme="dark"] .results{background:#15181e}
[data-theme="dark"] .hash-row.primary{border-color:#34416e}
[data-theme="dark"] .hash-value{color:#c5cbd5}
[data-theme="dark"] .primary .hash-value{color:#e3e7ff}
[data-theme="dark"] .copy-button{color:#929baa}
[data-theme="dark"] .copy-button:hover{background:#252a33;box-shadow:0 2px 8px rgba(0,0,0,.28)}
[data-theme="dark"] .copy-button.copied{background:#163b30}
[data-theme="dark"] .check-button,[data-theme="dark"] .results.is-idle .check-button{background:#eef1f6;color:#171a22;box-shadow:0 8px 20px rgba(0,0,0,.28)}
[data-theme="dark"] .check-button:hover,[data-theme="dark"] .results.is-idle .check-button:hover{background:#fff;color:#101218;box-shadow:0 10px 24px rgba(0,0,0,.34)}
[data-theme="dark"] .check-button.is-reset{background:var(--blue-pale);color:var(--blue-dark);box-shadow:none}
[data-theme="dark"] .check-button.is-reset:hover{background:#2a365d;box-shadow:none}
[data-theme="dark"] .lookup-status{border-color:#323844;background:#1b1f26}
[data-theme="dark"] .lookup-new .status-dot{box-shadow:0 0 0 4px #173a30}
[data-theme="dark"] .lookup-seen .status-dot{box-shadow:0 0 0 4px #242e50}
[data-theme="dark"] .lookup-error .status-dot{box-shadow:0 0 0 4px #422527}
[data-theme="dark"] .history-head{background:#20242b}
[data-theme="dark"] .history-item time{color:#a0a8b5}
[data-theme="dark"] .hash-row.selectable:hover{background:#1c2027}
[data-theme="dark"] .activity-rail{background:rgba(23,26,32,.88);box-shadow:0 20px 55px rgba(0,0,0,.28)}
[data-theme="dark"] .activity-item{border-color:#292e37}
[data-theme="dark"] .activity-item:nth-child(odd){border-right-color:#292e37}
[data-theme="dark"] .activity-flag{box-shadow:0 0 0 1px rgba(255,255,255,.16)}
[data-theme="dark"] .activity-unknown{box-shadow:none}
[data-theme="dark"] .activity-footer{background:linear-gradient(180deg,#1b1f26,#171a20)}
[data-theme="dark"] .activity-stats-row+ .activity-stats-row{border-color:#2b3039}
[data-theme="dark"] .text-privacy-toggle{background:#1c2027}
[data-theme="dark"] .text-privacy-toggle[aria-checked="true"]{border-color:#3e4d82;background:var(--blue-pale)}
[data-theme="dark"] .mini-switch{background:#414854}
[data-theme="dark"] footer a{text-decoration-color:#596170}
@media(max-width:560px){.text-panel-tools{width:100%;justify-content:space-between}}

/* Keep the workspace fixed while result content scrolls independently. */
.input-side,.results{min-height:0;overflow:hidden}
.local-note{flex:0 0 auto}
.results-heading{flex:0 0 auto}
.results-scroll{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
.results-scroll .hash-list{flex:0 0 auto}
.results-scroll .lookup{display:flex;flex:1;min-height:0;flex-direction:column}
.results-scroll .check-button{flex:0 0 auto}
.results-scroll .lookup-status{display:flex;flex:1;min-height:0;flex-direction:column;gap:0;overflow:hidden}
.results-scroll .lookup-status::-webkit-scrollbar,.results-scroll .history-list::-webkit-scrollbar{width:9px;height:9px}
.results-scroll .lookup-status::-webkit-scrollbar-track,.results-scroll .history-list::-webkit-scrollbar-track{background:transparent}
.results-scroll .lookup-status::-webkit-scrollbar-thumb,.results-scroll .history-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:var(--scroll);background-clip:padding-box}
.results-scroll .lookup-status::-webkit-scrollbar-thumb:hover,.results-scroll .history-list::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover);background-clip:padding-box}
.results.is-idle .lookup{min-height:0}
.results-scroll .history-head{flex:0 0 auto}
.results-scroll .history-list{flex:1;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
.seen-locations span{display:block}
.seen-locations span+span{margin-top:2px}

/* Every fingerprint has equal visual weight. */
.hash-row.primary{margin:0;padding:0;border-width:0 0 1px;border-radius:0;background:transparent}
.primary .hash-name{color:var(--muted)}
.primary .hash-value{color:#3d4350;font-weight:500}

/* Country history uses the same reliable flag-icon sprites as live activity. */
.history-flag{display:block;width:18px;height:13px;margin-top:2px;padding:0;border-radius:2px;background-size:cover;box-shadow:0 0 0 1px rgba(23,26,34,.12);font-size:0}
.history-unknown{display:grid;place-items:center;width:18px;height:13px;background:transparent;color:var(--muted);box-shadow:none;font-size:.8rem;line-height:1}
[data-theme="dark"] .primary .hash-value{color:#c5cbd5}
[data-theme="dark"] .history-flag{box-shadow:0 0 0 1px rgba(255,255,255,.16)}
[data-theme="dark"] .history-unknown{box-shadow:none}

@media(max-width:900px){.results:not(.is-idle) .lookup-status{max-height:min(420px,55vh)}}

/* The primary action belongs to the input it acts on. */
.input-action{flex:0 0 auto;margin-top:15px}
.input-action .check-button{min-height:44px}
.check-shortcut{margin-left:auto;padding:3px 7px;border:1px solid rgba(255,255,255,.22);border-radius:6px;background:rgba(255,255,255,.09);color:inherit;font:600 .58rem/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap;opacity:.72}.check-button.is-reset .check-shortcut{border-color:rgba(61,94,234,.2);background:rgba(61,94,234,.08)}.check-button:disabled .check-shortcut{opacity:.55}
.input-action .check-button:disabled{cursor:not-allowed;opacity:.38}
.results-scroll .lookup{margin-top:11px}
.results.is-idle .lookup{padding:0}

/* Compact local-processing reassurance and attribution in the page footer. */
.footer-privacy{display:flex;align-items:center;justify-content:flex-end;gap:6px;text-align:right}
.footer-privacy svg{flex:0 0 auto;width:15px;height:15px;fill:none;stroke:var(--green);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:560px){.footer-privacy{flex-wrap:wrap;justify-content:flex-end}}

/* Compact country history: exactly one row per country. */
.history-head,.history-item{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.15fr) minmax(0,.8fr);align-items:center;gap:clamp(6px,1vw,12px);min-width:0}
.history-head{justify-content:initial}
.history-country{display:flex!important;min-width:0;align-items:center;gap:8px;white-space:nowrap}
.history-country strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;font-weight:700}
.history-item>.history-first{margin:0;overflow:hidden;color:var(--muted);font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.history-item>.history-last{margin:0;overflow:hidden;color:var(--soft);font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.history-flag{width:17px;height:12px;margin-top:0}
.history-unknown{width:17px;height:12px;font-size:.72rem}

/* Unboxed checking state. */
.lookup-status.lookup-loading{display:grid;place-items:center;border:0;background:transparent;box-shadow:none;overflow:hidden}
.lookup-busy{display:flex;align-items:center;gap:13px;color:var(--muted);font-size:.76rem;font-weight:700}
.busy-pulse{position:relative;width:12px;height:12px;border-radius:50%;background:var(--blue);box-shadow:0 0 12px rgba(61,94,234,.32)}
.busy-pulse:before{content:"";position:absolute;inset:-7px;border-radius:50%;background:rgba(61,94,234,.18);animation:busy-pulse 1.25s ease-out infinite}
@keyframes busy-pulse{0%{opacity:.9;transform:scale(.35)}70%,100%{opacity:0;transform:scale(1.35)}}
[data-theme="dark"] .lookup-status.lookup-loading{background:transparent}

/* Centred, compact waiting and error states. */
.results.is-idle .lookup-status.lookup-loading,.results.is-idle .lookup-status.lookup-error{flex:0 0 auto;min-height:0;margin:0}
.lookup-status.lookup-loading{width:auto!important;padding:28px!important}
.lookup-busy{flex-direction:column;gap:18px;color:var(--muted);font-size:.78rem;letter-spacing:.01em}
.busy-pulse{width:16px;height:16px;background:var(--blue);box-shadow:0 0 18px rgba(61,94,234,.35)}
.busy-pulse:before,.busy-pulse:after{content:"";position:absolute;border:2px solid rgba(61,94,234,.32);border-radius:50%;background:transparent;animation:busy-ring 1.35s cubic-bezier(.2,.65,.35,1) infinite}
.busy-pulse:before{inset:-11px}
.busy-pulse:after{inset:-11px;animation-delay:.45s}
@keyframes busy-ring{0%{opacity:0;transform:scale(.45)}25%{opacity:1}100%{opacity:0;transform:scale(1.35)}}
.results.is-idle .lookup-status.lookup-error{width:min(100%,360px);border:0;background:transparent;box-shadow:none;overflow:visible}
.results.is-idle .lookup-error .lookup-summary{display:flex;flex-direction:column;align-items:center;gap:11px;padding:0;text-align:center}
.results.is-idle .lookup-error .lookup-summary .status-dot{width:11px;height:11px;margin:0;box-shadow:0 0 0 6px #fdeaea}
[data-theme="dark"] .results.is-idle .lookup-status.lookup-error{background:transparent}

/* Matching single-line panel titles. */
.results-heading .panel-title,.activity-heading .panel-title{margin:0;color:var(--ink);font-size:1.05rem;font-weight:720;line-height:1.2;letter-spacing:-.025em;text-transform:none}
.results-heading,.activity-heading{align-items:center}

/* Calm primary action with no positional hover movement. */
.input-action .check-button{min-height:44px;border:1px solid #3452d2;border-radius:11px;background:linear-gradient(135deg,#4967e9,#3452d2);color:#fff;box-shadow:0 5px 14px rgba(52,82,210,.2);transition:background .18s,border-color .18s,box-shadow .18s,filter .18s,opacity .18s}
.input-action .check-button:hover{transform:none;background:linear-gradient(135deg,#5572ed,#3c59d8);box-shadow:0 6px 18px rgba(52,82,210,.27);filter:saturate(1.04)}
.input-action .check-button:active{transform:none;box-shadow:0 2px 8px rgba(52,82,210,.2);filter:brightness(.98)}
.input-action .check-button:disabled{cursor:not-allowed;opacity:.48;transform:none;box-shadow:none;filter:saturate(.65)}
.input-action .check-button.is-reset{border-color:var(--line);background:#f3f5fa;color:var(--ink);box-shadow:none}
.input-action .check-button.is-reset:hover{border-color:#cfd5e1;background:#eaedf4;color:var(--ink);box-shadow:none;filter:none}
[data-theme="dark"] .input-action .check-button{border-color:#6f86ee;background:linear-gradient(135deg,#7087ee,#546dd9);color:#fff}
[data-theme="dark"] .input-action .check-button.is-reset{border-color:#343a45;background:#20242b;color:var(--ink)}
[data-theme="dark"] .input-action .check-button.is-reset:hover{border-color:#48505d;background:#282d35}

/* Keep every fingerprint compact while retaining its full copy value. */
.hash-value{overflow:hidden;overflow-wrap:normal;text-overflow:ellipsis;white-space:nowrap}

/* Rate limiting and brief server interruptions are neutral wait states. */
.results.is-idle .lookup-status.lookup-wait{flex:0 0 auto;width:min(100%,380px);min-height:0;margin:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.lookup-wait-content{display:flex;flex-direction:column;align-items:center;gap:13px;padding:0;text-align:center}
.lookup-wait-content strong{font-size:.82rem}
.lookup-wait-content p{max-width:340px;margin:5px 0 0;color:var(--muted);font-size:.72rem;line-height:1.5}
.wait-pulse{width:11px;height:11px;border-radius:50%;background:#d49a2f;box-shadow:0 0 0 6px rgba(212,154,47,.13);animation:wait-pulse 1.6s ease-in-out infinite}
@keyframes wait-pulse{50%{box-shadow:0 0 0 10px rgba(212,154,47,0)}}
[data-theme="dark"] .results.is-idle .lookup-status.lookup-wait{background:transparent}

/* Explicit UTF-8 line-ending selection for text fingerprints. */
.text-format-control{display:flex;align-items:center;gap:5px;min-height:27px;padding:3px 5px 3px 7px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font-size:.62rem;font-weight:700;white-space:nowrap}
.text-format-control select{max-width:52px;padding:0 2px;border:0;outline:0;background:transparent;color:var(--ink);font-family:inherit;font-size:.64rem;font-weight:700;line-height:1.2;cursor:pointer}
.text-format-control:focus-within{border-color:#bfc5d0;box-shadow:0 0 0 3px rgba(61,94,234,.1)}
#textStats{white-space:nowrap}
[data-theme="dark"] .text-format-control{background:#1c2027}
[data-theme="dark"] .text-format-control:focus-within{border-color:#505866}

/* Match both text controls to the 47 × 27px theme switch. */
.text-format-control{width:47px;height:27px;min-height:27px;padding:0 4px;justify-content:center;gap:0}
.text-format-control>span{display:none}
.text-format-control select{width:100%;max-width:none;padding:0 1px;text-align:center;text-align-last:center}
.text-format-control:focus-within,[data-theme="dark"] .text-format-control:focus-within{border-color:var(--line);box-shadow:none}
.text-privacy-toggle{width:47px;height:27px;min-height:27px;padding:3px 4px;justify-content:space-between;gap:3px}
.text-privacy-label{display:none}
.text-privacy-toggle svg{flex:0 0 auto;width:13px;height:13px}
.mini-switch{flex:0 0 auto;width:21px}
.text-privacy-toggle[aria-checked="true"] .mini-switch:after{transform:translateX(6px)}

/* Keep the activity scrollbar clear of the rail's rounded corner. */
.activity-list{margin:0 4px 8px 0;overflow-x:hidden;overflow-y:auto;border-bottom-right-radius:10px}
.activity-list::-webkit-scrollbar-corner{background:transparent}
.footer-privacy{justify-content:flex-start;text-align:left}

/* Match the Results header geometry to the full-width Live Activity header. */
.results-heading{margin:-27px -29px 0;padding:19px 29px 15px}
@media(min-width:901px){.results-heading{margin:-18px -22px 0;padding:19px 22px 15px}}
@media(max-width:560px){.results-heading{margin:-17px -17px 0;padding:19px 17px 15px}}

/* Refined interface typography; hashes retain their dedicated monospace face. */
body,button,textarea,select{font-family:Manrope,Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1{letter-spacing:-.05em}

/* Fill the desktop viewport now that the separate site header is gone. */
@media (min-width:1121px){
  body{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
  main{display:flex;flex:1;flex-direction:column;min-height:0}
  .workspace{flex:1;min-height:0}
  .tool,.activity-rail{height:auto;min-height:0}
  footer{flex:0 0 auto}
}

/* Keep the compact mobile footer orderly instead of squeezing two columns. */
@media (max-width:560px){
  main{padding-bottom:20px}
  footer{flex-direction:column;align-items:center;gap:8px;padding-bottom:18px;text-align:center}
  footer>span:last-child{text-align:center}
  .footer-privacy{flex-wrap:nowrap;justify-content:center;text-align:center;white-space:nowrap}
}

/* Sortable country-history columns. */
.history-sort{display:flex;min-width:0;align-items:center;justify-content:flex-start;gap:6px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit;cursor:pointer}
.history-sort>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-sort:hover,.history-sort.active{color:var(--ink)}
.history-sort:focus-visible{border-radius:4px;outline:2px solid rgba(61,94,234,.28);outline-offset:3px}
.sort-arrow{flex:0 0 auto;color:var(--soft);font-size:.72rem;line-height:1}
.history-sort.active .sort-arrow{color:var(--blue)}

/* Prevent accidental UI selection while preserving user-controlled content. */
body{-webkit-user-select:none;user-select:none}
textarea,.hash-value,.activity-hash{-webkit-user-select:text;user-select:text}
textarea::selection,.hash-value::selection,.activity-hash::selection{background:#cbd5ff;color:#141b36}
[data-theme="dark"] textarea::selection,[data-theme="dark"] .hash-value::selection,[data-theme="dark"] .activity-hash::selection{background:#526bd3;color:#fff}

/* About entry point and dialog. */
.footer-legal{display:flex;align-items:center;justify-content:flex-end;gap:7px;text-align:right}
.footer-link{padding:0;border:0;background:transparent;color:inherit;font-size:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:#c3c7d0;text-underline-offset:2px}
.footer-link:hover{color:var(--muted)}
.footer-link:focus-visible{border-radius:3px;outline:2px solid rgba(61,94,234,.3);outline-offset:3px}
.about-dialog{width:min(560px,calc(100% - 32px));max-height:min(680px,calc(100dvh - 32px));padding:27px;border:1px solid var(--line);border-radius:20px;overflow:auto;background:var(--paper);color:var(--ink);box-shadow:0 30px 90px rgba(18,24,45,.24)}
.about-dialog::backdrop{background:rgba(15,18,27,.48);backdrop-filter:blur(5px)}
.about-dialog[open]{animation:about-enter .2s cubic-bezier(.2,.75,.25,1)}
@keyframes about-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.about-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.about-kicker{display:block;margin-bottom:5px;color:var(--blue);font-size:.66rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.about-heading h2{font-size:1.45rem}
.about-close{display:grid;flex:0 0 auto;place-items:center;width:34px;height:34px;margin:-4px -4px 0 0;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}
.about-close:hover{background:var(--ground);color:var(--ink)}
.about-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.about-intro{margin:13px 42px 0 0;color:var(--muted);font-size:.86rem;line-height:1.6}
.about-steps{display:grid;gap:0;margin:23px 0 0;padding:0;list-style:none}
.about-steps li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;padding:15px 0;border-top:1px solid var(--line)}
.about-step-number{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--blue-pale);color:var(--blue-dark);font-size:.7rem;font-weight:800}
.about-steps strong,.about-privacy strong{display:block;font-size:.8rem}
.about-steps p,.about-privacy p{margin:4px 0 0;color:var(--muted);font-size:.74rem;line-height:1.55}
.about-privacy{padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:var(--ground)}
body.modal-open{overflow:hidden}
[data-theme="dark"] .about-dialog{box-shadow:0 32px 100px rgba(0,0,0,.58)}
[data-theme="dark"] .footer-link{text-decoration-color:#596170}
@media(max-width:560px){
  .footer-legal{justify-content:center;flex-wrap:wrap;text-align:center}
  .footer-legal>span:last-child{text-align:center}
  .about-dialog{padding:20px;border-radius:17px}
  .about-intro{margin-right:20px}
}

/* Contact form inside the shared modal surface. */
.contact-form{margin:0}
.contact-fields{display:grid;gap:15px;margin-top:22px}
.contact-fields label{display:grid;gap:7px;color:var(--ink);font-size:.73rem;font-weight:750}
.contact-fields input,.contact-fields textarea{width:100%;border:1px solid var(--line);border-radius:11px;outline:none;background:#fbfbfc;color:var(--ink);font:500 .86rem/1.5 Manrope,Inter,sans-serif;transition:border-color .18s,background .18s}
.contact-fields input{height:43px;padding:0 13px}
.contact-fields textarea{flex:none;min-height:130px;padding:11px 13px;resize:vertical}
.contact-fields input:hover,.contact-fields textarea:hover{border-color:#c9ced8}
.contact-fields input:focus,.contact-fields textarea:focus{border-color:#8793bd;background:var(--paper);box-shadow:none}
.contact-status{margin-top:14px;padding:10px 12px;border-radius:10px;font-size:.72rem;line-height:1.45}
.contact-status.is-success{background:#e7f6ef;color:#17684d}
.contact-status.is-error{background:#fdecec;color:#a13f3f}
.contact-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.contact-cancel,.contact-submit{min-height:40px;padding:0 15px;border-radius:10px;cursor:pointer;font-size:.76rem;font-weight:750}
.contact-cancel{border:1px solid var(--line);background:transparent;color:var(--muted)}
.contact-cancel:hover{background:var(--ground);color:var(--ink)}
.contact-submit{border:1px solid #3452d2;background:linear-gradient(135deg,#4967e9,#3452d2);color:#fff;box-shadow:0 4px 12px rgba(52,82,210,.18)}
.contact-submit:hover{filter:brightness(1.04)}
.contact-submit:disabled{cursor:wait;opacity:.58;filter:none}
.contact-form input,.contact-form textarea{-webkit-user-select:text;user-select:text}
.contact-form input::selection,.contact-form textarea::selection{background:#cbd5ff;color:#141b36}
[data-theme="dark"] .contact-fields input,[data-theme="dark"] .contact-fields textarea{background:#1c2027}
[data-theme="dark"] .contact-fields input:focus,[data-theme="dark"] .contact-fields textarea:focus{background:#20252d}
[data-theme="dark"] .contact-status.is-success{background:#173a30;color:#8de0bd}
[data-theme="dark"] .contact-status.is-error{background:#422527;color:#ffb3b3}
[data-theme="dark"] .contact-form input::selection,[data-theme="dark"] .contact-form textarea::selection{background:#526bd3;color:#fff}

/* One visual voice for the page question, result state, activity, and primary action. */
:root{--signature-blue:#1a3f8a;--signature-blue-hover:#14346f;--signature-blue-shadow:rgba(26,63,138,.24)}
#pageTitle,#resultsTitle,#activityTitle{color:var(--signature-blue)}
.check-button,.results.is-idle .check-button,.check-button.is-reset{border-color:var(--signature-blue);background:var(--signature-blue);color:#fff;box-shadow:0 8px 20px var(--signature-blue-shadow)}
.check-button:hover,.results.is-idle .check-button:hover,.check-button.is-reset:hover{background:var(--signature-blue-hover);color:#fff;box-shadow:0 10px 25px rgba(20,52,111,.3)}
.check-button:disabled,.results.is-idle .check-button:disabled{background:var(--signature-blue);color:#fff}
.input-action .check-button,.input-action .check-button.is-reset{border-color:var(--signature-blue);background:var(--signature-blue);background-image:none;color:#fff;opacity:1;filter:none;box-shadow:0 8px 20px var(--signature-blue-shadow);transition:background-color .18s,border-color .18s,box-shadow .18s}
.input-action .check-button:hover,.input-action .check-button.is-reset:hover{border-color:var(--signature-blue-hover);background:var(--signature-blue-hover);background-image:none;color:#fff;opacity:1;filter:none;box-shadow:0 10px 25px rgba(20,52,111,.3)}
.input-action .check-button:active,.input-action .check-button.is-reset:active{background:var(--signature-blue-hover);background-image:none;opacity:1;filter:none}
.input-action .check-button:disabled,.input-action .check-button.is-reset:disabled{border-color:#858d9a;background:#858d9a;background-image:none;color:#fff;opacity:1;filter:none;box-shadow:none}
.input-action .check-button:disabled>span,.input-action .check-button:disabled>kbd,.input-action .check-button:disabled>svg{opacity:1}
.check-button.is-reset .check-shortcut{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.1)}
[data-theme="dark"] #pageTitle,[data-theme="dark"] #resultsTitle,[data-theme="dark"] #activityTitle{color:var(--signature-blue)}
[data-theme="dark"] .check-button,[data-theme="dark"] .results.is-idle .check-button,[data-theme="dark"] .check-button.is-reset{border-color:var(--signature-blue);background:var(--signature-blue);color:#fff;box-shadow:0 8px 22px rgba(26,63,138,.32)}
[data-theme="dark"] .check-button:hover,[data-theme="dark"] .results.is-idle .check-button:hover,[data-theme="dark"] .check-button.is-reset:hover{background:var(--signature-blue-hover);color:#fff;box-shadow:0 10px 27px rgba(26,63,138,.4)}
[data-theme="dark"] .input-action .check-button,[data-theme="dark"] .input-action .check-button.is-reset{border-color:var(--signature-blue);background:var(--signature-blue);background-image:none;color:#fff;opacity:1;filter:none}
[data-theme="dark"] .input-action .check-button:hover,[data-theme="dark"] .input-action .check-button.is-reset:hover{border-color:var(--signature-blue-hover);background:var(--signature-blue-hover);background-image:none;color:#fff;filter:none}
[data-theme="dark"] .input-action .check-button:disabled,[data-theme="dark"] .input-action .check-button.is-reset:disabled{border-color:#858d9a;background:#858d9a;background-image:none;color:#fff;opacity:1;filter:none;box-shadow:none}

/* Final alignment pass: one table edge, equal page edges, and matched primary actions. */
.lookup-status>.history-head:first-child{border-top:0}
.contact-view{padding-bottom:0}
.contact-view .contact-actions{margin-top:15px}
.contact-view .contact-submit{width:100%;min-height:44px;border-radius:11px}

@media(min-width:901px){
  main{padding-top:24px}
  footer{padding-bottom:24px}
}
@media(max-width:900px){
  main{padding-top:32px}
  footer{padding-bottom:32px}
}
@media(max-width:560px){
  main{padding-top:24px}
  footer{padding-bottom:24px}
}

/* Contact confirmation. */
.success-dialog{width:min(380px,calc(100% - 32px));padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);text-align:center;box-shadow:0 28px 90px rgba(18,24,45,.28)}
.success-dialog::backdrop{background:rgba(15,18,27,.5);backdrop-filter:blur(6px)}
.success-dialog[open]{animation:success-enter .25s cubic-bezier(.22,.75,.2,1)}
@keyframes success-enter{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.success-mark{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 17px;border-radius:50%;background:#e4f5ed;color:#1f8b65;box-shadow:0 0 0 8px rgba(31,139,101,.08)}
.success-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.success-dialog h2{color:var(--signature-blue);font-size:1.24rem}
.success-dialog p{margin:9px 0 22px;color:var(--muted);font-size:.8rem;line-height:1.55}
.success-dialog button{width:100%;min-height:43px;border:1px solid var(--signature-blue);border-radius:10px;background:var(--signature-blue);color:#fff;cursor:pointer;font-size:.8rem;font-weight:760}
.success-dialog button:hover{background:var(--signature-blue-hover)}
[data-theme="dark"] .success-dialog{box-shadow:0 32px 100px rgba(0,0,0,.58)}
[data-theme="dark"] .success-mark{background:#173a30;color:#8de0bd;box-shadow:0 0 0 8px rgba(88,201,155,.08)}

@media(max-width:900px){.results{min-height:520px}}

/* Turn the results column into a persistent, animated information workspace. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.results-heading{align-items:center;min-height:55px;padding-top:0;padding-bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0))}
.results-nav{display:flex;align-items:stretch;gap:22px;width:100%;min-height:55px}
.results-nav-item{position:relative;min-height:55px;padding:2px 2px 0;border:0;background:transparent;color:var(--soft);cursor:pointer;font-size:.78rem;font-weight:720;letter-spacing:-.01em;transition:color .2s}
.results-nav-item:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:3px;border-radius:3px 3px 0 0;background:var(--signature-blue);box-shadow:0 -3px 10px rgba(26,63,138,.2);transform:scaleX(0);transform-origin:center;transition:transform .32s cubic-bezier(.22,.75,.2,1)}
.results-nav-item:hover{color:var(--ink)}
.results-nav-item.active{color:var(--signature-blue)}
.results-nav-item.active:after{transform:scaleX(1)}
.results-nav-item:not([hidden]):first-child{animation:nav-item-enter .32s cubic-bezier(.22,.75,.2,1) both}
@keyframes nav-item-enter{from{opacity:0;transform:translateX(-9px)}to{opacity:1;transform:translateX(0)}}
.results-nav-item[hidden]{display:none!important}
.results-viewport{position:relative;flex:1;min-height:0;overflow:hidden}
.panel-view{position:absolute;inset:0;min-width:0;padding:22px 2px 2px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent;will-change:transform,opacity}
.panel-view::-webkit-scrollbar{width:9px}.panel-view::-webkit-scrollbar-track{background:transparent}.panel-view::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:var(--scroll);background-clip:padding-box}
.panel-view:not(.is-active){pointer-events:none}
.panel-view .about-intro{max-width:520px;margin:0;font-size:.8rem;line-height:1.6}
.panel-view .about-steps{margin-top:20px}
.panel-view .about-steps li{padding:13px 0}
.panel-view .about-steps strong,.panel-view .about-privacy strong,.api-note strong{font-size:.78rem}
.panel-view .about-steps p,.panel-view .about-privacy p,.api-note p{font-size:.72rem;line-height:1.52}
.panel-view .about-privacy{margin-top:2px}
.contact-view{padding-right:5px;overflow:hidden}
.api-view{display:flex;padding-right:5px;flex-direction:column}
.contact-view .contact-form{display:flex;height:100%;min-height:0;flex-direction:column}
.contact-view .contact-fields{display:flex;flex:1;min-height:0;flex-direction:column;gap:12px;margin-top:16px}
.contact-view .contact-fields label{flex:0 0 auto}
.contact-view .contact-fields label:last-child{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr)}
.contact-view .contact-fields textarea{height:100%;min-height:0;resize:none;overflow-y:auto}
.contact-view .contact-actions{flex:0 0 auto;margin-top:14px}
.api-form{display:grid;grid-template-columns:1fr;margin-top:17px}
.api-form label{display:grid;min-width:0;gap:7px;color:var(--ink);font-size:.73rem;font-weight:750}
.api-form input{width:100%;height:42px;min-width:0;padding:0 12px;border:1px solid var(--line);border-radius:10px;outline:none;background:#fbfbfc;color:var(--ink);font:500 .7rem/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;transition:border-color .18s,background .18s;user-select:text}
.api-form input:hover{border-color:#c9ced8}.api-form input:focus{border-color:rgba(26,63,138,.55);background:var(--paper)}
.api-direct-link{display:flex;align-items:center;gap:10px;margin-top:11px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--ground);color:var(--muted);text-decoration:none;transition:border-color .18s,background .18s,color .18s}
.api-direct-link:hover{border-color:#c8ced9;background:var(--paper);color:var(--ink)}
.api-direct-link.is-disabled{pointer-events:none;opacity:.55}
.api-direct-link .api-method{flex:0 0 auto;padding:4px 7px;border-radius:6px;background:#e4f3ec;color:#17684d;font-size:.6rem;font-weight:800;letter-spacing:.07em}
.api-direct-link code{display:flex;min-width:0;flex:1;font:500 .65rem/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.api-direct-link code span{flex:0 0 auto}.api-direct-link code b{min-width:0;overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.api-direct-link svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.api-response{display:flex;flex:1;min-height:0;flex-direction:column;margin-top:12px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f8f9fb}
.api-response-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:10px 13px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.68rem;font-weight:750}
.api-response-heading span:nth-child(2){font-size:.64rem;font-variant-numeric:tabular-nums;text-align:center}.api-response-heading span:last-child{font-size:.64rem;font-variant-numeric:tabular-nums;text-align:right}.api-response-heading .is-success{color:#1f805f}.api-response-heading .is-error{color:#b54848}
.api-response pre{flex:1;min-height:0;margin:0;padding:13px 15px;overflow:auto;color:#566071;font:500 .68rem/1.58 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;tab-size:2;user-select:text;transition:opacity .18s}
.api-response pre.is-loading{opacity:.45}
.api-actions{display:flex;justify-content:flex-start;margin-top:12px}
.api-actions button{width:108px;padding:0 12px;cursor:pointer;white-space:nowrap}
.json-key{color:#1a3f8a}.json-string{color:#1f805f}.json-boolean{color:#8b4bc2}.json-null{color:#8b919e}.json-number{color:#b15d23}
.results-view{padding:0}
.results-view .results-scroll{height:100%}

[data-theme="dark"] .results-heading{background:linear-gradient(180deg,rgba(28,32,39,.7),rgba(28,32,39,0))}
[data-theme="dark"] .api-form input{background:#12151a}[data-theme="dark"] .api-form input:focus{background:#181c23}
[data-theme="dark"] .api-direct-link:hover{border-color:#49515f;background:#1b1f26}
[data-theme="dark"] .api-direct-link .api-method{background:#173a30;color:#8de0bd}
[data-theme="dark"] .api-response{background:#12151a}
[data-theme="dark"] .api-response pre{color:#bec5d0}
[data-theme="dark"] .json-key{color:#8ba5d5}[data-theme="dark"] .json-string{color:#8de0bd}[data-theme="dark"] .json-boolean{color:#d1a0f4}[data-theme="dark"] .json-null{color:#929baa}[data-theme="dark"] .json-number{color:#e4a06c}

@media(max-width:560px){
  .results-heading{min-height:53px}
  .results-nav{overflow-x:auto;scrollbar-width:none}
  .results-nav::-webkit-scrollbar{display:none}
  .results-nav-item{flex:0 0 auto;padding:0 12px}
  .panel-view{padding-top:18px}
  .results-nav{gap:19px}
  .api-form{grid-template-columns:1fr}
  .api-actions button{width:108px}
  .api-direct-link code span{display:none}
}

/* Site-wide accent and control system. */
.upload-icon{background:rgba(26,63,138,.1);color:#1a3f8a}.file-icon{border-color:rgba(26,63,138,.22);background:rgba(26,63,138,.1)}.file-icon:after{background:#1a3f8a;box-shadow:0 7px 0 rgba(26,63,138,.48)}
.progress-line span{background:#1a3f8a}.drag-overlay{border-color:rgba(26,63,138,.65);background:rgba(237,242,250,.97)}
.text-privacy-toggle[aria-checked="true"]{border-color:rgba(26,63,138,.28);background:rgba(26,63,138,.09);color:#1a3f8a}.text-privacy-toggle[aria-checked="true"] .mini-switch{background:#1a3f8a}
.hash-row.primary{border-color:rgba(26,63,138,.2);background:rgba(26,63,138,.07)}.primary .hash-name,.copy-button:hover,.history-sort.active .sort-arrow,.about-kicker{color:#1a3f8a}.hash-row.selected,.hash-row.primary.selected{box-shadow:inset 3px 0 0 #1a3f8a}
.tab:focus-visible,button:focus-visible,textarea:focus-visible,.footer-link:focus-visible{outline-color:rgba(26,63,138,.3)}.contact-fields input:focus,.contact-fields textarea:focus{border-color:rgba(26,63,138,.55)}
.about-heading h2{color:#1a3f8a}.about-step-number{background:rgba(26,63,138,.09);color:#1a3f8a}
.contact-cancel,.contact-submit{min-height:40px;padding:0 15px;border-radius:9px;font-size:.76rem;font-weight:750}.contact-cancel{border:1px solid var(--line);background:transparent;color:var(--muted);box-shadow:none}.contact-cancel:hover{border-color:#c4c9d2;background:var(--ground);color:var(--ink)}.contact-submit{border:1px solid #1a3f8a;background:#1a3f8a;background-image:none;color:#fff;box-shadow:none;filter:none}.contact-submit:hover,.contact-submit:active{border-color:#1a3f8a;background:#1a3f8a;background-image:none;color:#fff;box-shadow:none;filter:none;transform:none}
textarea::selection,.hash-value::selection,.activity-hash::selection,.contact-form input::selection,.contact-form textarea::selection{background:rgba(26,63,138,.22);color:var(--ink)}
[data-theme="dark"] .upload-icon{background:rgba(26,63,138,.3);color:#1a3f8a}[data-theme="dark"] .text-privacy-toggle[aria-checked="true"]{border-color:rgba(26,63,138,.55);background:rgba(26,63,138,.3);color:#1a3f8a}[data-theme="dark"] .text-privacy-toggle[aria-checked="true"] .mini-switch{background:#1a3f8a}[data-theme="dark"] .about-heading h2,[data-theme="dark"] .about-kicker{color:#1a3f8a}[data-theme="dark"] .contact-submit,[data-theme="dark"] .contact-submit:hover{border-color:#1a3f8a;background:#1a3f8a;color:#fff}
.busy-pulse{background:#1a3f8a;box-shadow:0 0 18px rgba(26,63,138,.35)}.busy-pulse:before,.busy-pulse:after{border-color:rgba(26,63,138,.32)}.history-sort:focus-visible{outline-color:rgba(26,63,138,.3)}
.text-format-control:focus-within{border-color:rgba(26,63,138,.38);box-shadow:0 0 0 3px rgba(26,63,138,.1)}
[data-theme="dark"] .file-icon{border-color:rgba(139,165,213,.25);background:rgba(26,63,138,.3)}[data-theme="dark"] .hash-row.primary{border-color:rgba(139,165,213,.24);background:rgba(26,63,138,.22)}[data-theme="dark"] textarea::selection,[data-theme="dark"] .hash-value::selection,[data-theme="dark"] .activity-hash::selection,[data-theme="dark"] .contact-form input::selection,[data-theme="dark"] .contact-form textarea::selection{background:rgba(26,63,138,.65);color:#fff}
[data-theme="dark"] .drag-overlay{border-color:rgba(139,165,213,.55);background:rgba(16,25,43,.97)}

/* Align the live status with its heading and keep its pulse understated. */
.activity-heading .live-dot{position:relative;align-self:center;margin-top:0;box-shadow:0 0 0 4px rgba(49,164,118,.16)}
.activity-heading .live-dot:after{content:"";position:absolute;inset:-3px;border:2px solid rgba(49,164,118,.48);border-radius:50%;animation:live-status-pulse 1.8s ease-out infinite}
@keyframes live-status-pulse{0%{opacity:.9;transform:scale(.65)}70%,100%{opacity:0;transform:scale(2)}}

/* Final primary-action treatment: centred label, fixed shortcut, and no hover motion. */
.input-action .check-button,.input-action .check-button.is-reset{position:relative;justify-content:center;border-color:var(--signature-blue);background:var(--signature-blue);background-image:none;color:#fff;opacity:1;filter:none;box-shadow:none;transform:none}
.input-action .check-button:hover,.input-action .check-button.is-reset:hover,.input-action .check-button:active,.input-action .check-button.is-reset:active{border-color:var(--signature-blue);background:var(--signature-blue);background-image:none;color:#fff;opacity:1;filter:none;box-shadow:none;transform:none}
.input-action .check-button:disabled,.input-action .check-button.is-reset:disabled{border-color:#858d9a;background:#858d9a;background-image:none;color:#fff;opacity:1;filter:none;box-shadow:none;transform:none}
.input-action .check-shortcut{position:absolute;right:12px;margin:0}
[data-theme="dark"] .input-action .check-button,[data-theme="dark"] .input-action .check-button.is-reset,[data-theme="dark"] .input-action .check-button:hover,[data-theme="dark"] .input-action .check-button.is-reset:hover{border-color:var(--signature-blue);background:var(--signature-blue);background-image:none;color:#fff;filter:none;box-shadow:none;transform:none}
[data-theme="dark"] .input-action .check-button:disabled,[data-theme="dark"] .input-action .check-button.is-reset:disabled{border-color:#858d9a;background:#858d9a;background-image:none;color:#fff;opacity:1;filter:none;box-shadow:none}

/* Unified spacing, scrolling, and Tailwind-like actions. */
:root{--panel-gutter:20px;--action-height:43px;--action-width:172px;--action-hover:#1a3f8a}
[data-theme="dark"]{--action-hover:#8ba5d5}

*{scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:var(--scroll);background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover);background-clip:padding-box}
*::-webkit-scrollbar-corner{background:transparent}

button,button:hover,button:active{transform:none!important}
*:focus,*:focus-visible{outline:none!important;box-shadow:none!important}

@media(min-width:901px){
  .input-side,.results{padding:18px var(--panel-gutter) 16px}
  .results-heading{margin:-18px calc(var(--panel-gutter) * -1) 0;padding:0 var(--panel-gutter)}
}
.panel-view{padding:20px 0 0}
.contact-view,.api-view{padding-right:0}
.results-view{padding:0}

.input-action{display:flex;justify-content:flex-start;margin-top:15px}
.input-action .check-button,
.contact-actions .contact-reset,
.contact-actions .contact-submit,
.api-actions button,
.success-dialog button{
  min-height:var(--action-height);
  height:var(--action-height);
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#fff;
  background-image:none;
  color:#374151;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  filter:none;
  font-size:.76rem;
  font-weight:700;
  transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s;
}
.input-action .check-button:hover,
.contact-actions .contact-reset:hover,
.contact-actions .contact-submit:hover,
.api-actions button:hover,
.success-dialog button:hover{
  border-color:#c5cfdf;
  background:#f8fafc;
  color:var(--action-hover);
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  filter:none;
}
.input-action .check-button:active,
.contact-actions .contact-reset:active,
.contact-actions .contact-submit:active,
.api-actions button:active,
.success-dialog button:active{border-color:#c5cfdf;background:#f1f5f9;color:var(--action-hover);box-shadow:none}
.input-action .check-button:disabled,
.contact-actions button:disabled,
.api-actions button:disabled{
  border-color:#e5e7eb;
  background:#f3f4f6;
  color:#9ca3af;
  opacity:1;
  box-shadow:none;
  cursor:not-allowed;
}
.input-action .check-button{width:var(--action-width);padding:0 86px 0 14px;justify-content:flex-start}
.input-action .check-shortcut{right:8px;border-color:#d7dce5;background:#f3f4f6;color:#6b7280}
.contact-view .contact-actions{display:flex;justify-content:flex-start;gap:8px;margin-top:15px}
.contact-actions .contact-reset,.contact-actions .contact-submit{width:88px;padding:0 12px}

#textInput,.contact-fields input,.contact-fields textarea,.api-form input{
  background:#fff!important;
  color:#171a22!important;
  box-shadow:none!important;
}
#textInput:hover,.contact-fields input:hover,.contact-fields textarea:hover,.api-form input:hover{background:#fff!important}
#textInput:focus,.contact-fields input:focus,.contact-fields textarea:focus,.api-form input:focus{border-color:var(--signature-blue)!important;background:#fff!important;box-shadow:none!important}
.contact-fields input,.api-form input{height:var(--action-height)}
.text-format-control,[data-theme="dark"] .text-format-control{background:#fff;color:#171a22;box-shadow:none}
.text-format-control:focus-within,[data-theme="dark"] .text-format-control:focus-within{border-color:var(--signature-blue);outline:none;box-shadow:none}
.text-format-control select,[data-theme="dark"] .text-format-control select{background:transparent;color:#171a22;outline:none;box-shadow:none}

[data-theme="dark"] .input-action .check-button,
[data-theme="dark"] .contact-actions .contact-reset,
[data-theme="dark"] .contact-actions .contact-submit,
[data-theme="dark"] .api-actions button,
[data-theme="dark"] .success-dialog button{border-color:#3b424e;background:#1c2027;color:#d8dde6;box-shadow:0 1px 2px rgba(0,0,0,.18)}
[data-theme="dark"] .input-action .check-button:hover,
[data-theme="dark"] .contact-actions .contact-reset:hover,
[data-theme="dark"] .contact-actions .contact-submit:hover,
[data-theme="dark"] .api-actions button:hover,
[data-theme="dark"] .success-dialog button:hover{border-color:#536174;background:#222831;color:var(--action-hover)}
[data-theme="dark"] .input-action .check-button:disabled,
[data-theme="dark"] .contact-actions button:disabled,
[data-theme="dark"] .api-actions button:disabled{border-color:#303640;background:#20242b;color:#697281;box-shadow:none}
[data-theme="dark"] .input-action .check-shortcut{border-color:#3b424e;background:#252b34;color:#929baa}

@media(max-width:560px){
  :root{--panel-gutter:17px}
  .input-side,.results{padding-right:var(--panel-gutter);padding-left:var(--panel-gutter)}
  .results-heading{margin-right:calc(var(--panel-gutter) * -1);margin-left:calc(var(--panel-gutter) * -1);padding-right:var(--panel-gutter);padding-left:var(--panel-gutter)}
}

.choose-button{transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.choose-button:hover{border-color:#c5cfdf;background:#f8fafc;color:var(--action-hover);box-shadow:0 1px 2px rgba(15,23,42,.06);filter:none}
.choose-button:active{border-color:#c5cfdf;background:#f1f5f9;color:var(--action-hover);box-shadow:none}
[data-theme="dark"] .choose-button:hover{border-color:#536174;background:#222831;color:var(--action-hover);box-shadow:0 1px 2px rgba(0,0,0,.18)}
[data-theme="dark"] .choose-button:active{border-color:#536174;background:#1c2027;color:var(--action-hover);box-shadow:none}

/* Text actions share one bottom row; privacy mirrors the theme switch. */
.input-action{align-items:center;justify-content:space-between}
.input-action .check-button{width:88px;padding:0 12px;justify-content:center}
.input-controls{display:flex;align-items:center;gap:8px}
.privacy-toggle .privacy-eye{left:7px;display:block}
.privacy-toggle .privacy-eye-off{right:7px;display:block}
.privacy-toggle svg{width:12px;height:12px}
textarea.is-concealed{-webkit-text-security:disc;text-security:disc;letter-spacing:normal}
.privacy-toggle,.privacy-toggle[aria-checked="true"]{border-color:#d6dae2;background:#eef0f4;color:#707786;box-shadow:none}
[data-theme="dark"] .privacy-toggle,[data-theme="dark"] .privacy-toggle[aria-checked="true"]{border-color:#3a4150;background:#252a33;color:#c6cbd5;box-shadow:none}

[data-theme="dark"] #textInput,
[data-theme="dark"] .contact-fields input,
[data-theme="dark"] .contact-fields textarea,
[data-theme="dark"] .api-form input{background:#12151a!important;color:var(--ink)!important}
[data-theme="dark"] #textInput:hover,
[data-theme="dark"] .contact-fields input:hover,
[data-theme="dark"] .contact-fields textarea:hover,
[data-theme="dark"] .api-form input:hover{background:#12151a!important}
[data-theme="dark"] #textInput:focus,
[data-theme="dark"] .contact-fields input:focus,
[data-theme="dark"] .contact-fields textarea:focus,
[data-theme="dark"] .api-form input:focus{border-color:var(--signature-blue)!important;background:#12151a!important;box-shadow:none!important}
[data-theme="dark"] .text-format-control{background:#1c2027;color:var(--ink)}
[data-theme="dark"] .text-format-control select{background:transparent;color:var(--ink)}

/* Unified 10px corner system; only status indicators stay circular. */
.tool,
.activity-rail,
.tabs,
.tab,
textarea,
.file-empty,
.file-state,
.drag-overlay,
.upload-icon,
.file-icon,
.choose-button,
.remove-file,
.hash-row,
.copy-button,
.lookup-status,
.about-privacy,
.about-step-number,
.contact-fields input,
.contact-fields textarea,
.contact-status,
.contact-actions button,
.api-form input,
.api-direct-link,
.api-method,
.api-response,
.api-actions button,
.input-action .check-button,
.success-dialog,
.success-dialog button,
.text-format-control,
.theme-toggle,
.mini-switch{border-radius:10px!important}
.theme-thumb,
.mini-switch:after{border-radius:7px!important}
.remove-file{border-radius:50%!important}
[data-theme="dark"] .theme-toggle .theme-thumb,
[data-theme="dark"] .theme-toggle[aria-checked="true"] .theme-thumb{border:1px solid #4a5260;background:#0f1116;box-shadow:0 1px 3px rgba(0,0,0,.45)}
[data-theme="dark"]{--signature-blue:#4f74bd;--signature-blue-hover:#6286cb;--blue:#4f74bd;--blue-dark:#6f91d0}

/* One thumb treatment for every switch and scrollable surface. */
:root{--control-thumb:#b8bec9;--control-thumb-hover:#9fa7b4;--control-thumb-border:#aab1bd}
[data-theme="dark"]{--control-thumb:#4a5260;--control-thumb-hover:#626b79;--control-thumb-border:#5a6372}
.theme-thumb,
.mini-switch:after,
[data-theme="dark"] .theme-toggle .theme-thumb,
[data-theme="dark"] .theme-toggle[aria-checked="true"] .theme-thumb{background:var(--control-thumb)!important;border:1px solid var(--control-thumb-border)!important}
*{scrollbar-color:var(--control-thumb) transparent!important}
*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
.activity-list::-webkit-scrollbar-thumb,
.panel-view::-webkit-scrollbar-thumb,
.results-scroll .lookup-status::-webkit-scrollbar-thumb,
.results-scroll .history-list::-webkit-scrollbar-thumb{border:1px solid var(--control-thumb-border)!important;background:var(--control-thumb)!important;background-clip:padding-box!important}
*::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
.activity-list::-webkit-scrollbar-thumb:hover,
.panel-view::-webkit-scrollbar-thumb:hover,
.results-scroll .lookup-status::-webkit-scrollbar-thumb:hover,
.results-scroll .history-list::-webkit-scrollbar-thumb:hover{background:var(--control-thumb-hover)!important;background-clip:padding-box!important}
