:root{color:#1b2430;background:#f6f8fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}a{color:#0d5f8f;text-decoration:none}a:hover{text-decoration:underline}button,select,textarea{font:inherit}button{min-height:2.5rem;border:1px solid #c8d2df;border-radius:6px;background:#fff;color:#1b2430;cursor:pointer;padding:.55rem .85rem}button:hover:not(:disabled){border-color:#0d5f8f}button:disabled{cursor:not-allowed;opacity:.55}button.primary{background:#0d5f8f;border-color:#0d5f8f;color:#fff}.app-shell{min-height:100vh;display:flex;flex-direction:column;padding-bottom:5.25rem}.site-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1rem;padding:.85rem clamp(1rem,4vw,3rem);background:#fffffff5;border-bottom:1px solid #dce3eb}.brand{color:#17202c;font-weight:760;white-space:nowrap}.site-nav{display:flex;align-items:center;gap:.85rem;flex:1;overflow-x:auto}.site-nav a{color:#465568;white-space:nowrap}.site-nav a.router-link-active{color:#0d5f8f;font-weight:650}.header-actions{display:flex;align-items:center;gap:.45rem}.header-button{min-height:2.15rem;display:inline-flex;align-items:center;border:1px solid #c8d2df;border-radius:6px;padding:.38rem .62rem;color:#344256;background:#fff;white-space:nowrap;font-size:.92rem}.header-button:hover,.header-button.router-link-active{border-color:#0d5f8f;color:#0d5f8f;text-decoration:none}.language-switcher select{border:1px solid #c8d2df;border-radius:6px;padding:.45rem .65rem;background:#fff}main{flex:1}.page{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:1.25rem 0 3rem}.page.narrow{width:min(940px,calc(100% - 2rem))}.hero-tool,.content-block,.tool-shell,.matrix-grid{background:#fff;border:1px solid #dce3eb;border-radius:8px}.hero-tool{padding:clamp(1rem,3vw,1.5rem)}.page-heading{margin-bottom:1rem}.page-heading h1{margin:.35rem 0 .45rem;font-size:clamp(1.8rem,3vw,2.75rem);line-height:1.15;letter-spacing:0}.page-heading p{max-width:820px;color:#516174;margin:0}.badge{display:inline-flex;align-items:center;min-height:1.75rem;padding:.2rem .55rem;border-radius:999px;background:#e7f3ef;color:#17634f;font-size:.88rem;font-weight:650}.mode-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.mode-tabs button.active{background:#e8f3fb;border-color:#0d5f8f;color:#0d5f8f;font-weight:650}.tool-shell{padding:1rem}.regex-layout{display:grid;grid-template-columns:minmax(280px,.92fr) minmax(0,1.08fr);gap:1rem}.control-stack{display:grid;gap:.8rem}.tool-toolbar{display:flex;flex-wrap:wrap;gap:.55rem}.tool-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.editor-panel{min-width:0;display:flex;flex-direction:column;gap:.45rem}.editor-panel>span{font-weight:700;color:#2c3745}textarea,pre,.tree-panel,.empty-result{width:100%;min-height:390px;border:1px solid #cbd5e1;border-radius:6px;background:#fbfcfe;padding:.85rem;overflow:auto}textarea{resize:vertical;color:#17202c}.pattern-input{min-height:118px}.text-input{min-height:2.55rem;border:1px solid #cbd5e1;border-radius:6px;background:#fbfcfe;padding:.65rem .75rem;color:#17202c}.flag-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.flag-row>span{font-weight:700;color:#2c3745;margin-right:.25rem}.flag-row label{min-height:2.25rem;display:inline-flex;align-items:center;gap:.35rem;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:.35rem .55rem}.flag-row input{margin:0}.template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.template-list button{min-height:2.35rem;text-align:left}.template-list button.active{background:#e8f3fb;border-color:#0d5f8f;color:#0d5f8f;font-weight:650}pre,.tree-panel{margin:0;white-space:pre-wrap;word-break:break-word;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.9rem}.empty-result{color:#7a8795}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem}.status-card{min-height:88px;padding:.75rem;border:1px solid #dce3eb;border-radius:8px;background:#fbfcfe}.status-card strong,.status-card span{display:block}.status-card span{margin-top:.25rem;color:#516174;word-break:break-word}.status-card.success{border-color:#94d3b6;background:#f0faf5}.status-card.error{border-color:#f2b8b5;background:#fff5f4}.result-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin-top:1rem}.highlight-panel mark{border-radius:4px;background:#ffe08a;color:#17202c;padding:0 .05rem}.groups-panel{margin-top:1rem;border:1px solid #dce3eb;border-radius:8px;background:#fbfcfe;padding:.9rem}.groups-panel h2{margin:0 0 .7rem;font-size:1.05rem;letter-spacing:0}.groups-panel p{margin:0;color:#516174}.match-table{display:grid;gap:.35rem}.match-row{display:grid;grid-template-columns:3rem 6.5rem minmax(0,1fr) minmax(0,1.3fr);gap:.6rem;align-items:start;border:1px solid #dce3eb;border-radius:6px;background:#fff;padding:.55rem;color:#344256}.match-row span{min-width:0;overflow-wrap:anywhere}.match-head{background:#eef4f8;color:#17202c;font-weight:700}.privacy-note{margin:1rem 0 0;color:#516174;font-size:.94rem}.seo-content{display:grid;gap:1rem;margin-top:1rem}.content-block{padding:1.1rem}.content-block h2,.matrix-grid h2{margin:0 0 .65rem;font-size:1.2rem;letter-spacing:0}.content-block p,.content-block li{color:#516174}.content-block ol,.plain-list{margin:0;padding-left:1.25rem}details{border-top:1px solid #e5ebf2;padding:.8rem 0}details:first-of-type{border-top:0}summary{cursor:pointer;font-weight:700}.matrix-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:1.1rem;margin:1rem 0}.directory-panel{background:#fff;border:1px solid #dce3eb;border-radius:8px;padding:1.1rem}.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.directory-toolbar,.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.directory-toolbar{margin-bottom:.85rem}.directory-toolbar label{flex:1 1 auto}.directory-toolbar input{width:100%;min-height:2.4rem;border:1px solid #c8d2df;border-radius:6px;padding:.5rem .7rem;color:#17202c;background:#fff;font:inherit}.pagination-bar{margin-top:.9rem}.pagination-bar span{color:#516174;white-space:nowrap}.directory-card{display:flex;align-items:flex-start;gap:.75rem;min-height:96px;border:1px solid #dce3eb;border-radius:8px;padding:.85rem;color:#17202c;background:#fbfcfe}.directory-card img{width:56px;height:56px;flex:0 0 auto;border-radius:8px}.directory-card-copy{min-width:0}.directory-card span,.directory-status{display:block;margin:.2rem 0 0;color:#516174}.directory-card small{display:block;margin-top:.08rem;color:#344256;font-weight:650}.link-grid{display:grid;gap:.65rem}.link-grid a{display:block;border:1px solid #dce3eb;border-radius:8px;padding:.75rem;color:#17202c;background:#fbfcfe}.link-grid span{display:block;color:#516174;font-size:.92rem;margin-top:.15rem}.contact-line{font-weight:700;color:#17202c}.terms-page{padding-top:clamp(2.5rem,6vw,4.5rem)}.terms-layout{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);gap:clamp(2rem,6vw,4.5rem);align-items:start}.terms-copy h1{margin:0 0 1.4rem;color:#17202c;font-size:clamp(2.5rem,5vw,3.6rem);line-height:1.08;letter-spacing:0}.terms-copy p{max-width:34rem;margin:0;color:#344256;font-size:clamp(1.05rem,2vw,1.25rem);line-height:1.8}.terms-copy span{display:block;margin-top:1.6rem;color:#516174}.terms-list{display:grid;gap:1.1rem;list-style:none;margin:0;padding:0}.terms-list li{border-left:3px solid #0d5f8f;padding-left:1.15rem}.terms-list strong{display:block;margin-bottom:.35rem;color:#17202c;font-size:1.08rem}.terms-list span{display:block;color:#344256;font-size:1rem;line-height:1.75}.site-footer{position:fixed;left:0;right:0;bottom:0;z-index:20;width:100%;border-top:1px solid #dce3eb;background:#fffffff5;box-shadow:0 -10px 28px #17202c1a;padding:.55rem clamp(1rem,4vw,3rem);color:#516174}.footer-links{display:flex;align-items:center;justify-content:flex-start;gap:.25rem;max-width:1180px;margin:0 auto;overflow-x:auto}.footer-links a{flex:0 0 auto;min-height:2.25rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.35rem .7rem;color:#344256;white-space:nowrap;font-size:.94rem}.footer-links a:hover,.footer-links a.router-link-active{background:#e8f3fb;color:#0d5f8f;text-decoration:none}.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}@media(max-width:820px){.site-header{align-items:flex-start;flex-wrap:wrap}.site-nav{order:3;width:100%}.header-actions{order:2;width:100%;overflow-x:auto}.tool-grid,.regex-layout,.result-grid,.status-grid,.matrix-grid,.directory-grid{grid-template-columns:1fr}.directory-toolbar,.pagination-bar{align-items:stretch;flex-wrap:wrap}.terms-layout{grid-template-columns:1fr}textarea,pre,.tree-panel,.empty-result{min-height:280px}.match-row{grid-template-columns:2.4rem minmax(4.5rem,.4fr) minmax(0,1fr)}.match-row span:last-child{grid-column:1 / -1}}@media(max-width:520px){.page{width:min(100% - 1rem,1180px)}.tool-toolbar button,.mode-tabs button,.template-list button{flex:1 1 140px}.template-list{grid-template-columns:1fr}}
