/* SwiftWorksheets Tools Hub V1.6.5.0-RC1. Isolated from Worksheet Editor. */
:root{color-scheme:light;--hub-ink:#17243d;--hub-muted:#62718b;--hub-blue:#2659dc;--hub-border:#e2e8f3;--hub-bg:#f7f9fd;--hub-white:#fff;--hub-radius:19px;--hub-shadow:0 14px 50px rgba(24,57,110,.065)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--hub-bg);color:var(--hub-ink);font-family:Inter,"Noto Sans Thai",Sarabun,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #82b4ff;outline-offset:3px}
.hub-wrap{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.hub-header{position:relative;z-index:5;background:rgba(255,255,255,.97);border-bottom:1px solid var(--hub-border)}
.hub-nav{min-height:78px;display:flex;align-items:center;gap:24px}
.hub-brand{display:flex;align-items:center;gap:11px;white-space:nowrap;font-size:21px;letter-spacing:-.8px;font-weight:800}
.hub-brand img{width:40px;height:40px;object-fit:contain}
.hub-brand strong{font-weight:800}
.hub-brand span span{font-weight:550;color:#68778e}
.hub-main-nav{display:flex;gap:6px;align-items:center;margin-left:auto}
.hub-main-nav a{border-radius:9px;padding:9px 13px;color:#52627d;font-size:14px;font-weight:650}
.hub-main-nav a[aria-current="page"]{color:#2455d7;background:#eef3ff}
.hub-main-nav a:hover{background:#f1f5fd}
.hub-nav-actions{display:flex;align-items:center;gap:9px}
.hub-lang{color:#415677;font-size:13px;font-weight:700;border:1px solid var(--hub-border);padding:9px 12px;border-radius:10px;white-space:nowrap}
.hub-nav-cta,.hub-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--hub-blue);color:white;border-radius:11px;font-weight:750;box-shadow:0 6px 16px rgba(38,89,220,.15)}
.hub-nav-cta{font-size:13px;padding:11px 16px;min-height:44px}
.hub-primary{font-size:14px;padding:13px 20px;min-height:48px}
.hub-primary:hover,.hub-nav-cta:hover{background:#1548c7}
.hub-secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8e1f2;background:#fff;border-radius:11px;padding:12px 18px;font-size:14px;font-weight:750;min-height:48px}
.hub-secondary:hover{border-color:#9eb9f5;color:#2254cf}
.hub-hero{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(320px,.76fr);align-items:center;gap:36px;padding:68px 0 60px}
.hub-kicker{display:inline-flex;align-items:center;gap:8px;color:#2856c8;background:#ebf2ff;border:1px solid #d9e8ff;padding:7px 11px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.hub-kicker-dot{width:7px;height:7px;border-radius:50%;background:#4487fb;display:inline-block}
.hub-hero h1{font-size:clamp(33px,4vw,56px);letter-spacing:-.055em;line-height:1.19;margin:19px 0 16px;font-weight:850;max-width:680px}
.hub-hero h1 em{color:var(--hub-blue);font-style:normal}
.hub-hero p{font-size:16px;color:var(--hub-muted);line-height:1.8;margin:0;max-width:530px}
.hub-search{display:flex;align-items:center;gap:12px;background:white;border:1.5px solid #dce5f5;box-shadow:0 10px 34px #18396e0b;border-radius:15px;padding:7px 8px 7px 17px;margin-top:28px;max-width:565px;min-height:60px}
.hub-search:focus-within{border-color:#6d9df1;box-shadow:0 0 0 3px #dbeafe}
.hub-search svg{flex:none;color:#7b8ba6}
.hub-search input{min-width:0;flex:1;width:100%;border:0;outline:0;font-size:15px;background:transparent;color:var(--hub-ink)}
.hub-search input::placeholder{color:#92a0b4}
.hub-clear{flex:none;border:0;background:#edf2fa;border-radius:8px;color:#61728f;font-size:18px;width:34px;height:34px;line-height:1;display:grid;place-items:center}
.hub-clear[hidden]{display:none}
.hub-search-go{background:var(--hub-blue);color:#fff;border:0;border-radius:10px;padding:0 17px;height:44px;font-size:13px;font-weight:750}
.hub-search-go:hover{background:#174ac8}
.hub-promises{display:flex;flex-wrap:wrap;align-items:center;gap:9px 20px;margin-top:20px;color:#63728a;font-size:12px;font-weight:600}
.hub-promises span{display:inline-flex;align-items:center;gap:7px}
.hub-promises svg{color:#34947c}
.hub-visual{min-width:0;display:flex;align-items:center;justify-content:center;position:relative;padding:18px 6px 18px 22px;min-height:335px}
.hub-visual:before{content:"";position:absolute;inset:17px 3px 5px 16px;border-radius:48%;background:radial-gradient(circle at 56% 48%,#dceaff 0%,#f0f5ff 63%,transparent 72%)}
.hub-preview{width:min(348px,100%);position:relative;z-index:1;background:#fff;border:1px solid #dfebfa;border-radius:18px;padding:18px;box-shadow:0 25px 75px #40619d24;transform:rotate(2deg)}
.hub-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:10px;color:#7b8aa1;font-weight:700}
.hub-preview-dots{display:flex;gap:5px}
.hub-preview-dots i{width:7px;height:7px;background:#d6dfed;border-radius:50%}
.hub-sheet{background:#fff;border:1px solid #e1e8f3;border-radius:8px;padding:16px 15px 13px;box-shadow:0 3px 15px #14264d0b}
.hub-sheet-title{width:62%;height:12px;background:#243a65;border-radius:3px;margin-bottom:6px}
.hub-sheet-sub{width:89%;height:5px;background:#d4dfed;border-radius:3px;margin-bottom:15px}
.hub-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hub-sheet-q{padding:8px;border:1px solid #dfe6f1;border-radius:6px;min-height:49px}
.hub-sheet-q b{display:block;height:6px;width:70%;background:#b5c7e5;border-radius:3px;margin-bottom:9px}
.hub-sheet-q i{display:block;height:4px;width:87%;background:#e3eaf4;border-radius:3px}
.hub-float{position:absolute;z-index:2;background:#fff;border:1px solid #e0e8f4;box-shadow:0 14px 38px #264c8730;border-radius:13px;display:flex;align-items:center;gap:10px;padding:11px 15px;font-size:12px;font-weight:750}
.hub-float .bubble{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#e9f2ff;color:#2855cf;font-size:18px}
.hub-float.math{bottom:14px;right:-5px;transform:rotate(-5deg)}
.hub-float.word{top:22px;left:0;transform:rotate(-7deg)}
.hub-section{padding-bottom:74px}
.hub-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px}
.hub-section-eyebrow{color:#2a64dc;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.1em}
.hub-section h2{font-size:clamp(24px,2.3vw,31px);letter-spacing:-.035em;margin:4px 0 0;font-weight:820}
.hub-result-count{font-size:13px;color:var(--hub-muted);white-space:nowrap}
.hub-filters{display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;padding:3px 2px 14px;margin-bottom:9px}
.hub-filters::-webkit-scrollbar{display:none}
.hub-filter{flex:none;border:1px solid #dbe3ef;background:white;color:#53647e;font-size:13px;font-weight:700;padding:10px 16px;border-radius:99px;min-height:42px}
.hub-filter:hover{border-color:#aac4fa}
.hub-filter[aria-pressed="true"]{background:#2359d6;color:white;border-color:#2359d6}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.hub-card{position:relative;display:flex;flex-direction:column;gap:13px;background:var(--hub-white);border:1px solid var(--hub-border);border-radius:var(--hub-radius);padding:23px;min-width:0;min-height:217px;box-shadow:0 4px 23px #1c3c6b07;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.hub-card:hover{transform:translateY(-3px);box-shadow:var(--hub-shadow);border-color:#b8cbf0}
.hub-card[hidden]{display:none!important}
.hub-icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;font-size:24px;background:#eef3ff;color:#2e59ce;flex:none}
.hub-icon svg{width:26px;height:26px}
.hub-icon.green{background:#e9f8f2;color:#21846a}
.hub-icon.purple{background:#f0eefd;color:#7655c9}
.hub-icon.orange{background:#fff3e6;color:#b87323}
.hub-icon.teal{background:#e8f8fa;color:#16808d}
.hub-card h3{font-size:18px;letter-spacing:-.025em;font-weight:760;margin:0}
.hub-card p{font-size:13px;color:var(--hub-muted);line-height:1.6;margin:5px 0 0}
.hub-card-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:800;color:#2555c9;gap:12px}
.hub-tag{display:inline-flex;border:1px solid #dce8ff;border-radius:99px;background:#f3f7ff;color:#4265a3;font-size:10px;font-weight:780;padding:4px 8px}
.hub-card.featured{grid-column:span 2;background:linear-gradient(122deg,#244ec5,#2c70e8);border-color:transparent;min-height:236px;display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:17px;color:white;overflow:hidden}
.hub-card.featured:before{content:"";position:absolute;right:-115px;bottom:-175px;width:380px;height:380px;border-radius:50%;border:52px solid #ffffff13;pointer-events:none}
.hub-card.featured .hub-icon{background:#ffffff24;color:white}
.hub-card.featured h3{font-size:23px}
.hub-card.featured p{color:#ebf1ff}
.hub-card.featured .hub-card-bottom{color:#fff}
.hub-card.featured .hub-tag{background:#ffffff21;color:#f7faff;border-color:#ffffff4b}
.hub-card.featured .hub-feature-body{display:flex;flex-direction:column;gap:10px;position:relative;z-index:1}
.hub-card.featured .hub-feature-art{align-self:center;background:#fff;transform:rotate(5deg);width:142px;height:168px;border-radius:8px;padding:15px 12px;box-shadow:0 15px 35px #10265b46}
.hub-feature-art i{display:block;width:80px;height:8px;background:#264778;border-radius:2px;margin-bottom:11px}
.hub-feature-art .art-lines{display:grid;gap:7px}
.hub-feature-art .art-lines span{display:block;height:16px;border:1px solid #dde7f6;border-radius:3px;background:linear-gradient(90deg,#e9eef7 0 30%,transparent 30% 100%)}
.hub-empty{background:#fff;border:1px dashed #c8d6eb;border-radius:18px;padding:36px 24px;text-align:center}
.hub-empty[hidden]{display:none}
.hub-empty h3{font-size:18px;margin:0 0 7px}
.hub-empty p{color:var(--hub-muted);margin:0 0 19px;font-size:14px}
.hub-empty button{border:0;background:#eef4ff;color:#2456cd;font-weight:800;padding:11px 19px;border-radius:10px}
.hub-next{display:flex;gap:19px;align-items:center;justify-content:space-between;background:#eef3fc;border:1px solid #e0e9f8;padding:23px 26px;border-radius:18px;margin-top:29px}
.hub-next .hub-next-text{display:flex;align-items:center;gap:14px}
.hub-next .hub-icon{background:#ddeaff}
.hub-next strong{font-size:14px}
.hub-next p{margin:3px 0 0;color:var(--hub-muted);font-size:12px}
.hub-next-badge{white-space:nowrap;border-radius:99px;padding:6px 11px;background:#fff;color:#587094;border:1px solid #d3e0f1;font-weight:700;font-size:11px}
.hub-footer{background:#fff;border-top:1px solid var(--hub-border);padding:32px 0 25px}
.hub-footer-row{display:flex;align-items:flex-start;justify-content:space-between;gap:25px}
.hub-footer strong{font-size:15px}
.hub-footer p{font-size:12px;color:#71819b;margin:5px 0}
.hub-footer-links{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.hub-footer-links a{color:#566985;font-size:12px;font-weight:650}
.hub-footer-links a:hover{color:#2254ce}
.hub-release{font-size:11px;color:#8b9ab0;margin-top:21px;padding-top:16px;border-top:1px solid #edf1f7;display:flex;justify-content:space-between;gap:12px}
@media(min-width:1350px){.hub-hero{padding-top:82px}}
@media(max-width:1050px){.hub-wrap{width:min(100% - 38px,990px)}.hub-nav{gap:12px}.hub-main-nav a{padding:8px 9px}.hub-hero{gap:12px;grid-template-columns:minmax(0,1fr) 290px;padding:56px 0}.hub-visual{min-height:305px}.hub-float.word{left:-6px}}
@media(max-width:760px){.hub-nav{min-height:67px;flex-wrap:wrap;row-gap:0}.hub-brand{font-size:18px}.hub-brand img{width:35px;height:35px}.hub-main-nav{order:3;flex:0 0 100%;margin-left:0;overflow-x:auto;border-top:1px solid #edf1f7;padding:5px 0}.hub-nav-actions{margin-left:auto}.hub-main-nav a{font-size:12px;padding:7px 10px;white-space:nowrap}.hub-nav-cta{padding:8px 12px;font-size:12px}.hub-hero{grid-template-columns:1fr;padding:43px 0 35px}.hub-visual{display:none}.hub-hero p{max-width:680px}.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.hub-card.featured{grid-column:span 2}.hub-card{min-height:209px;padding:19px}.hub-section{padding-bottom:50px}}
@media(max-width:510px){.hub-wrap{width:calc(100% - 32px)}.hub-brand{font-size:16px;gap:7px}.hub-brand img{width:31px;height:31px}.hub-nav-actions{gap:6px}.hub-lang{font-size:12px;padding:8px}.hub-nav-cta{min-height:39px;font-size:11px;padding:8px 10px}.hub-hero h1{font-size:35px;line-height:1.18;letter-spacing:-.045em}.hub-hero p{font-size:14px}.hub-hero{padding:35px 0}.hub-search{margin-top:24px;padding:6px 6px 6px 12px;min-height:56px}.hub-search input{font-size:13px}.hub-search-go{height:42px;padding:0 12px;font-size:12px}.hub-promises{gap:8px 13px;font-size:11px}.hub-section-head{align-items:start}.hub-section h2{font-size:25px}.hub-result-count{font-size:11px;margin-top:8px}.hub-grid{display:flex;flex-direction:column}.hub-card{min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px 13px;padding:16px}.hub-card:not(.featured) .hub-icon{grid-row:1/span 2;width:47px;height:47px}.hub-card:not(.featured) .hub-card-bottom{grid-column:2;margin-top:0;padding-top:2px}.hub-card h3{font-size:15px}.hub-card p{font-size:12px;margin:2px 0 0}.hub-card.featured{display:flex;gap:13px;min-height:0;padding:19px}.hub-card.featured .hub-feature-art{display:none}.hub-card.featured .hub-feature-body{gap:9px}.hub-card.featured h3{font-size:20px}.hub-card.featured .hub-icon{width:47px;height:47px}.hub-next{padding:18px;gap:12px}.hub-next .hub-next-text{align-items:flex-start}.hub-next .hub-icon{width:42px;height:42px;flex-shrink:0}.hub-next-badge{align-self:flex-start}.hub-footer-row{flex-direction:column;gap:15px}.hub-footer-links{justify-content:flex-start}.hub-release{flex-wrap:wrap}}
@media(max-width:355px){.hub-brand span{letter-spacing:-1.1px}.hub-nav-cta{font-size:0;gap:0;min-width:38px}.hub-nav-cta svg{width:18px;height:18px}.hub-lang{padding:7px}.hub-search-go{padding:0 8px}.hub-next{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Icon sizing for accessible inline navigation; avoid intrinsic SVG dimensions. */
.hub-nav-cta svg{width:16px;height:16px;flex:none}
.hub-card-bottom svg{width:15px;height:15px;flex:none}
.hub-card-bottom span:last-child{display:inline-flex;align-items:center;gap:5px}


/* RC2 registry-driven tool cards */
.sw1650-tool-card{display:flex;align-items:flex-start;gap:16px;min-height:174px;padding:24px;text-decoration:none!important;transition:transform .16s ease,border-color .16s ease;}
.sw1650-tool-card:not(.sw1650-soon):hover{transform:translateY(-2px);border-color:#9bbaf5}
.sw1650-icon{display:grid;flex:0 0 49px;width:49px;height:49px;place-items:center;background:#eff6ff;border:1px solid #dceafa;border-radius:13px;color:#285ec5;font-size:25px;font-weight:700}
.sw1650-card-text{min-width:0;display:flex;flex-direction:column;gap:9px;flex:1;align-self:stretch}
.sw1650-card-text h3{margin:0;color:#1e293b;font-size:18px;line-height:1.3}
.sw1650-card-text p{margin:0;color:#66778d;font-size:13px;line-height:1.6;flex:1}
.sw1650-card-meta{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:11px;color:#7a8ba3;flex-wrap:wrap}
.sw1650-card-meta>span{border-radius:100px;padding:5px 9px;background:#f1f5f9;font-weight:700}
.sw1650-card-meta>strong{font-weight:800;color:#2864c7}
.sw1650-soon{background:#fafbfd;cursor:default;opacity:.84}
.sw1650-soon .sw1650-card-meta>strong{color:#7a8ba3}
.sw1650-feature-card .sw1650-icon{background:#deecff;color:#1d4ed8}
.sw1650-tool-card:focus-visible{outline:3px solid #3b82f6;outline-offset:2px}
@media(max-width:700px){.sw1650-tool-card{min-height:96px;padding:16px;gap:12px}.sw1650-icon{width:43px;height:43px;flex-basis:43px;font-size:23px}.sw1650-card-text h3{font-size:15px}.sw1650-card-text p{font-size:12px}}

.hub-noscript{margin:18px 0;padding:16px;border:1px solid #dbe4f0;border-radius:12px;color:#51627b}
