/* UzmanPDR 59 — shared interface, no changes to tool logic */
:root{--up59-ink:#12334a;--up59-accent:#087b80;--up59-accent-strong:#06666b;--up59-soft:#e9f5f4;--up59-line:#d5e3e8;--up59-surface:#fff}
[data-theme="dark"]{--up59-ink:#e5f2f5;--up59-accent:#7bd5d2;--up59-accent-strong:#a4e9e5;--up59-soft:#15383d;--up59-line:#35505d;--up59-surface:#142237}
.site-header{box-shadow:0 2px 12px #173b4c0b;border-bottom:1px solid var(--up59-line)}
.site-header .brand-icon,.site-footer .brand-icon{background:#087b80;box-shadow:none;border-radius:12px}
.site-header .brand-title span,.site-footer .brand-title span{color:var(--up59-accent)}
.site-header .nav-link{font-weight:700;font-size:.85rem;padding:9px 10px;min-height:42px}
.site-header .nav-link:hover,.site-header .nav-item.is-open>.nav-link,.site-header .nav-link.active{color:var(--up59-accent-strong);background:var(--up59-soft)}
.site-header .nav-actions{gap:7px}.site-header .nav-actions button{min-height:42px}.site-header .search-trigger{color:var(--up59-ink);border-color:var(--up59-line);border-radius:10px}
.site-header .nav-item[data-menu]{position:static}.site-header .dropdown-panel{left:20px;right:20px;max-width:none;min-width:0;padding:22px 26px;max-height:min(65vh,520px);overflow:auto;border-radius:0 0 18px 18px;border-color:var(--up59-line)}
.site-header .dropdown-panel .mega-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.site-header .mega-link{background:var(--bg-page);border:1px solid var(--border-color);padding:12px;min-height:44px;border-radius:10px;font-weight:650;white-space:normal;overflow-wrap:anywhere;transform:none}
.site-header .mega-link:hover,.site-header .mega-link:focus-visible{background:var(--up59-soft);color:var(--up59-accent-strong);border-color:var(--up59-accent)}
.site-header .mega-col-header{color:var(--up59-accent-strong);font-size:.8rem;letter-spacing:.07em}
.up59-skip{position:fixed;top:8px;left:8px;z-index:4000;transform:translateY(-200%);background:var(--bg-surface);color:var(--text-primary);padding:12px 18px;border:2px solid var(--up59-accent);border-radius:8px}.up59-skip:focus{transform:none}
.site-header :focus-visible,.mobile-drawer :focus-visible,.search-modal :focus-visible,.up59-bottom :focus-visible,.up59-role :focus-visible,.up59-home :focus-visible{outline:3px solid var(--up59-accent);outline-offset:3px}
.up59-search-filter{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border-color);font-size:.8rem;color:var(--text-secondary)}.up59-search-filter select{min-width:0;max-width:55%;background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-color);border-radius:8px;padding:8px;font:inherit}.up59-search-filter output{margin-left:auto;text-align:right}
.search-modal .search-result-item{padding:12px;border-radius:9px}.search-modal .search-result-item:hover,.search-modal .is-active-result{background:var(--up59-soft)}.up59-result-desc{font-size:.76rem;color:var(--text-secondary);margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.search-modal .search-results{max-height:min(55vh,520px)}
.up59-footer-nav{display:flex;gap:10px 20px;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--border-color);margin-top:20px;color:var(--text-secondary);font-size:.84rem}.up59-footer-nav a{color:var(--up59-accent-strong);font-weight:700}.site-footer .footer-grid{gap:26px}.site-footer .footer-col h4{color:var(--up59-ink);font-weight:800}.site-footer .footer-links a{line-height:1.65}
.up59-bottom{display:none}.up59-home .hero-section{padding:clamp(24px,4vw,60px) 0;background:linear-gradient(115deg,#eef8f7,#fff 62%,#e8f1f6);border-bottom:1px solid var(--up59-line)}[data-theme="dark"] .up59-home .hero-section{background:linear-gradient(115deg,#112d36,#142237)}.up59-home .hero-pill{background:var(--up59-soft);color:var(--up59-accent-strong);border:1px solid var(--up59-line);font-size:.78rem}.up59-home .hero-title{color:var(--up59-ink);font-size:clamp(2rem,3.6vw,3.6rem);line-height:1.08;letter-spacing:-.045em}.up59-home .hero-title span{color:var(--up59-accent)}.up59-home .hero-desc{font-size:1.04rem;line-height:1.65;max-width:630px}.up59-home .hero-search-bar{border:1px solid var(--up59-line);box-shadow:0 8px 22px #12334a0c;border-radius:14px}.up59-home .hero-search-btn{background:#087b80;min-height:44px}.up59-home .up49-hero-photo{border-radius:22px;aspect-ratio:5/4;box-shadow:0 16px 32px #12334a15}.up59-home .up49-hero-caption{background:#12334aeb}.up59-home .quick-tag{min-height:37px;display:inline-flex;align-items:center}.up59-home .v47-role-section{padding:36px 0 18px}.up59-home .v47-role-card{border-radius:18px;box-shadow:0 6px 20px #12334a08}.up59-home .v47-role-main-link{color:var(--up59-accent-strong);min-height:44px}.up59-home .v47-section-heading h2{color:var(--up59-ink)}
.up59-shortcuts{padding:16px 0 30px}.up59-shortcuts h2{font-size:1.25rem;color:var(--up59-ink);margin:0 0 12px}.up59-tilegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.up59-tile{display:flex;gap:13px;align-items:flex-start;padding:18px;background:var(--bg-surface);border:1px solid var(--up59-line);border-radius:14px;min-width:0;transition:border-color .15s,transform .15s}.up59-tile:hover{border-color:var(--up59-accent);transform:translateY(-2px)}.up59-tile b{display:block;font-size:1rem;color:var(--up59-ink);margin-bottom:5px}.up59-tile p{font-size:.84rem;color:var(--text-secondary);line-height:1.55}.up59-tile .up59-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:11px;background:var(--up59-soft);color:var(--up59-accent-strong)}.up59-tile .up59-icon svg{width:21px;height:21px}.up59-role{padding:32px 0 64px;flex:1}.up59-role-head{border:1px solid var(--up59-line);background:var(--bg-surface);border-radius:22px;padding:clamp(20px,4vw,44px);display:grid;grid-template-columns:1.25fr .75fr;gap:24px;align-items:center;margin-bottom:30px}.up59-role-head img{width:100%;border-radius:15px;object-fit:cover;max-height:280px}.up59-role-head h1{font-size:clamp(1.9rem,4vw,3.1rem);line-height:1.13;color:var(--up59-ink);margin:8px 0 16px}.up59-role-head p{color:var(--text-secondary);max-width:62ch}.up59-kicker{font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--up59-accent-strong)}.up59-role h2{font-size:1.25rem;color:var(--up59-ink);margin:24px 0 12px}.up59-role .up59-note{font-size:.86rem;color:var(--text-secondary);margin:24px 0}.up59-breadcrumb{margin-bottom:14px;color:var(--text-secondary);font-size:.85rem}.up59-breadcrumb a{color:var(--up59-accent-strong);text-decoration:underline}
@media(max-width:1180px){.site-header .desktop-nav{display:none}.site-header .mobile-toggle{display:flex}.site-header .search-kbd{display:none}}
@media(max-width:760px){.up59-tilegrid{grid-template-columns:repeat(2,minmax(0,1fr))}.up59-role-head{grid-template-columns:1fr}.up59-role-head img{max-height:200px}.up59-home .up49-hero-photo{aspect-ratio:16/9}.up59-home .hero-title{font-size:clamp(1.85rem,7vw,2.6rem)}.up59-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:970;padding:5px 4px max(5px,env(safe-area-inset-bottom));border-top:1px solid var(--up59-line);background:var(--bg-surface);box-shadow:0 -3px 16px #12334a12}.up59-bottom a,.up59-bottom button{color:var(--text-secondary);font:inherit;font-size:.69rem;font-weight:700;min-height:51px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border-radius:8px}.up59-bottom svg{width:22px;height:22px}.up59-bottom [aria-current=page]{color:var(--up59-accent-strong);background:var(--up59-soft)}body:has(.up59-bottom){padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}body.mobile-nav-open .up59-bottom,body:has(.search-modal-backdrop.is-open) .up59-bottom,body:has(.consent-banner.is-open) .up59-bottom,body:has(.consent-modal-backdrop.is-open) .up59-bottom{display:none}body:has(.up59-bottom) .back-to-top{bottom:82px}.up59-home .hero-section>.container{gap:18px}.up59-home .v47-role-section{padding-top:24px}.up59-search-filter{flex-wrap:wrap}.up59-search-filter output{margin-left:0}.up59-search-filter select{max-width:100%}}
@media(max-width:480px){.up59-tilegrid{grid-template-columns:1fr}.site-header .brand-sub{display:none}.site-header .brand-title{font-size:1.12rem}.site-header .nav-container{padding:0 12px;gap:8px}.site-header .nav-actions{gap:5px}.site-header .search-trigger span{display:none}.site-header .search-trigger{padding:8px}.site-header .brand{gap:7px}.site-header .brand-icon{width:34px;height:34px}.up59-home .hero-search-bar input{font-size:.86rem}.up59-role{padding-top:18px}}
@media(prefers-reduced-motion:reduce){.up59-tile,.site-header .mega-panel,.site-header .dropdown-panel,.up59-home .home-slides-track{transition:none!important}.up59-tile:hover{transform:none}}
@media print{.up59-bottom,.up59-skip,.up59-footer-nav{display:none!important}body:has(.up59-bottom){padding-bottom:0}}

/* v59.1 – compact homepage and local quick access */
.up59-home .hero-section{padding:clamp(20px,3vw,40px) 0}.up59-home .hero-title{font-size:clamp(1.9rem,3.3vw,3.1rem)}.up59-home .up49-hero-photo{aspect-ratio:16/11}.up59-home .hero-desc{margin-bottom:18px}.up59-home .hero-search-bar{margin-bottom:14px}.up59-home .quick-tags{margin-top:12px}.up59-home .v47-role-section{padding:28px 0 12px}.up59-home .v47-role-card .up49-role-photo{max-height:116px;overflow:hidden}.up59-home .v47-role-card .up49-role-photo img{height:116px;width:100%;object-fit:cover}.up59-home .v47-role-card .v47-role-links{display:none}.up59-home .v47-role-card p{min-height:0}.up591-personal{padding:18px 0}.up591-personal .v47-personal-grid{gap:14px}.up591-personal .v47-personal-box{padding:18px;border:1px solid var(--up59-line);background:var(--bg-surface);border-radius:16px}.up591-personal .v47-personal-head{flex-wrap:wrap;gap:8px}.up591-personal .v47-chip-list{display:flex;flex-wrap:wrap;gap:8px}.up591-chip{display:inline-flex;align-items:center;max-width:100%;border-radius:9px;border:1px solid var(--up59-line);background:var(--bg-page)}.up591-chip a{border:0!important;min-width:0;overflow-wrap:anywhere;padding:8px 10px!important;background:transparent!important}.up591-chip button{min-width:35px;min-height:39px;font-size:1.2rem;color:var(--text-secondary);border-left:1px solid var(--up59-line)}.up591-chip button:hover{background:var(--up59-soft);color:var(--up59-accent-strong)}.up591-personal-note{font-size:.8rem;color:var(--text-secondary);line-height:1.55;margin:10px 0 0}.up591-personal-note a{color:var(--up59-accent-strong);text-decoration:underline}.up591-toggle{display:inline-flex;gap:7px;align-items:center;font-size:.78rem;color:var(--text-secondary);min-height:36px}.up591-toggle input{width:18px;height:18px;accent-color:#087b80}.up591-status{font-size:.83rem;color:var(--up59-accent-strong);min-height:1.4em;margin-top:8px}.up591-catalog{padding:18px 0 26px}.up591-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.up591-heading h2{font-size:1.35rem;color:var(--up59-ink);margin:0}.up591-heading a{font-weight:700;color:var(--up59-accent-strong)}.up591-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.up591-tool{display:flex;position:relative;align-items:stretch;min-width:0;border:1px solid var(--up59-line);border-radius:14px;background:var(--bg-surface);overflow:hidden}.up591-tool:hover{border-color:var(--up59-accent)}.up591-tool>a{flex:1;min-width:0;padding:15px 5px 14px 15px;display:flex;flex-direction:column;gap:5px;color:var(--up59-ink)}.up591-tool b{font-size:.95rem;line-height:1.35}.up591-tool small{font-size:.78rem;line-height:1.45;color:var(--text-secondary);overflow-wrap:anywhere}.up591-tool .up591-type{font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;color:var(--up59-accent-strong);font-weight:800}.up591-tool button{width:43px;min-width:43px;min-height:44px;align-self:flex-start;font-size:1.5rem;color:var(--up59-accent-strong);border-radius:8px;margin:5px 4px 0 0}.up591-tool button:hover,.up591-tool button[aria-pressed=true]{background:var(--up59-soft)}.up591-tool :focus-visible,.up591-personal :focus-visible,.up591-archive summary:focus-visible{outline:3px solid var(--up59-accent);outline-offset:-3px}.up591-archive{padding:10px 0 30px}.up591-archive details{border:1px solid var(--up59-line);border-radius:14px;background:var(--bg-surface);margin:10px 0;overflow:hidden}.up591-archive summary{font-weight:800;color:var(--up59-ink);padding:16px 20px;cursor:pointer;min-height:50px}.up591-archive summary small{font-weight:400;font-size:.8rem;color:var(--text-secondary);margin-left:10px}.up591-archive details[open]>summary{border-bottom:1px solid var(--up59-line);background:var(--up59-soft)}.up591-archive .section-block,.up591-archive .home-slider-section,.up591-archive .home-cd-section,.up591-archive .blog-library-home,.up591-archive .up-scale-home{padding:18px 0}.site-header .dropdown-panel .mega-links{gap:9px}.site-header .dropdown-panel .mega-link{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}.up591-menu-desc{font-size:.72rem;font-weight:400;color:var(--text-secondary);line-height:1.35}.site-header .mega-link:hover .up591-menu-desc{color:var(--text-secondary)}
@media(max-width:1000px){.up591-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.up591-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.up591-tool>a{padding:12px 2px 12px 10px}.up591-tool button{width:38px;min-width:38px;margin-right:2px}.up591-tool b{font-size:.9rem}.up591-personal .v47-personal-grid{grid-template-columns:1fr}.up591-archive summary small{display:block;margin:5px 0 0}.up59-home .up49-hero-photo{aspect-ratio:16/8}.up59-home .v47-role-card .up49-role-photo,.up59-home .v47-role-card .up49-role-photo img{max-height:88px}}
@media(max-width:350px){.up591-catalog-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.up591-tool,.up591-tool *{transition:none!important}}@media print{.up591-personal,.up591-tool button{display:none!important}}

.up59-home .v47-role-card .up591-role-links[open] .v47-role-links{display:flex}.up591-role-links summary{cursor:pointer;color:var(--up59-accent-strong);font-size:.82rem;padding:5px 0}

/* v59.6 — screen-only touch and keyboard consistency; print layout unchanged */
@media screen{
 :where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #087b80;outline-offset:3px}
 :where(input,select,textarea,button){max-inline-size:100%}
 :where(h1,h2,h3,p,li,dd,label){overflow-wrap:break-word}
}
@media screen and (max-width:900px){
 :where(button,.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),textarea){min-inline-size:0}
 :where(.table-wrap,.tablewrap,.table-scroll,.preview-wrapper){max-inline-size:100%;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
}
@media screen and (max-width:760px){
 :where(button,.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color])){min-block-size:44px}
 :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),textarea,select){font-size:16px}
 :where(.opt-chip,.q-opts label){min-block-size:44px;max-inline-size:100%;overflow-wrap:anywhere}
}
@media screen and (prefers-reduced-motion:reduce){:where(button,a,input,select,textarea,summary){transition:none!important;animation:none!important}}

@media screen{
 [data-theme="dark"] :where(.site-header,.mobile-drawer,.search-modal,.up59-bottom) :focus-visible{outline-color:#a4e9e5}
 .up596-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:8px;scrollbar-width:thin}
 .up596-scroll:focus-visible{outline:3px solid var(--up59-accent,#087b80);outline-offset:2px}
 .up596-scroll-note{font-size:.8rem;color:var(--text-secondary);margin:0 0 8px;display:none}
 .site-header .nav-actions{min-width:0}
 .up59-bottom a,.up59-bottom button{min-width:0;overflow-wrap:anywhere;text-align:center}
}
@media screen and (max-width:900px){.up596-scroll-note{display:block}.up596-scroll>.net-table{min-width:510px}.site-footer .up59-footer-nav{overflow-wrap:anywhere}.mobile-drawer .nav-link,.mobile-drawer a{min-height:44px}.mobile-drawer{overscroll-behavior:contain}}
@media screen and (max-width:760px){
 .site-header .nav-actions>button{min-height:44px;min-width:44px}
 .site-header .search-trigger{min-width:44px}
 .up591-chip button{min-width:44px;min-height:44px}
 .up591-tool button{min-width:44px;min-height:44px}
 .up59-bottom{padding-bottom:max(5px,env(safe-area-inset-bottom,0px))}
 .search-modal input{font-size:16px}
 .d595-actions button,.d595-actions a,.d595-fav,.d595-select,.d595-hero a{min-height:44px}
 .d595-actions{flex-wrap:wrap}
}
@media screen and (max-width:360px){.site-header .nav-actions{gap:3px}.site-header .nav-actions>button{min-width:40px}.site-header .brand-icon{width:30px;height:30px}.site-header .brand{min-width:0}.up59-bottom a,.up59-bottom button{font-size:.64rem}.up591-catalog-grid{grid-template-columns:1fr}}
@media print{.up596-scroll-note{display:none!important}.up596-scroll{overflow:visible!important;max-width:none!important}}
