/* Fylcora Phase D1 – additive global polish; existing component rules remain intact. */
html{scroll-padding-top:90px}body{min-width:0}main{min-width:0;min-height:30vh}
.wrap,.header-row,.header-actions,.footer-grid,.footer-grid>div,.work-grid,.work-panel,.work-side{min-width:0}
.brand{max-width:100%;min-width:0}.brand strong{overflow:hidden;text-overflow:ellipsis}.brand-custom-logo{object-fit:contain;max-width:140px;height:auto}
.desktop-nav a,.footer-grid a,.footer-grid button,.header-actions a{transition:color .16s ease,background-color .16s ease,border-color .16s ease}
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:3px solid #7d6bff;outline-offset:3px}
:where(.work-panel,.side-box,.tool-card,.category-card,.directory-item) :where(input,select,textarea){max-width:100%}
:where(.work-panel,.side-box,.footer-grid,.article-body) :where(p,a,li,strong){overflow-wrap:anywhere}
:where(.work-panel,.side-box) img{max-width:100%;height:auto}
.footer-grid>div{min-width:0}.footer-grid>div>a:not(.brand){width:fit-content;max-width:100%}
.site-footer{margin-top:clamp(32px,5vw,64px)}.footer-bottom{gap:12px;flex-wrap:wrap}
@media(max-width:1170px) and (min-width:901px){.header-row{gap:14px}.desktop-nav{gap:10px}.desktop-nav a{font-size:12px}.brand{font-size:20px}}
@media(max-width:900px){
 .site-header{isolation:isolate}.header-row{position:relative;gap:12px}
 .desktop-nav{top:100%;left:0;right:0;max-height:calc(100dvh - 70px);overflow-y:auto;overscroll-behavior:contain;padding:12px 20px 18px;flex-direction:column;align-items:stretch;gap:3px;z-index:25}
 .desktop-nav a{display:block;padding:12px 14px;border-radius:10px;white-space:normal;font-size:14px;line-height:1.4}
 .desktop-nav a:hover,.desktop-nav a:focus-visible{background:var(--tint)}
 .desktop-nav:not(.open){display:none}.desktop-nav.open{display:flex}
 .menu-toggle{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .theme-toggle{min-height:44px}
 .footer-grid{gap:24px}
}
@media(max-width:620px){
 .header-row{min-height:65px}.desktop-nav{top:100%}.header-actions{gap:6px}
 .brand{font-size:clamp(16px,4.6vw,20px);gap:7px}.brand-mark{width:34px;height:34px;flex:none}
 .brand-custom-logo{max-width:96px;max-height:38px}.theme-toggle{padding:8px}.menu-toggle{padding:8px}
 .actions,.tool-heading,.work-panel-head{flex-wrap:wrap}.actions .btn{max-width:100%}
 .tool-heading h1{overflow-wrap:anywhere}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
 .footer-grid>div:first-child{grid-column:1/-1}.footer-grid>div{min-width:0}.footer-bottom span{overflow-wrap:anywhere}
 .work-panel-body{min-width:0}.field-grid>*{min-width:0}.drop-area{min-height:190px}
}
@media(max-width:360px){.wrap{width:calc(100% - 22px)}.brand{font-size:16px}.header-actions{gap:4px}.footer-grid{grid-template-columns:1fr}.footer-grid>div:first-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
