/* Lot 546 — standalone editor surfaces. Scope to the public direct tool route;
   never change the Studio renderers, catalogue, entitlement states or hidden controls. */
body.route-tool:not(.studio-embed-page) .direct-tool-page {
  --wts-tool-line:#d8e3ee;
  --wts-tool-muted:#52657a;
  --wts-tool-ink:#172b44;
  --wts-tool-surface:#f6f9fc;
  max-width:1520px;
  padding-inline:clamp(12px,2.4vw,36px);
  padding-top:clamp(16px,2vw,28px);
}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-breadcrumb{min-width:0;flex-wrap:wrap;gap:6px 9px;font-size:12px;line-height:1.55;margin-bottom:12px;overflow-wrap:anywhere}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-intro{
  grid-template-columns:58px minmax(0,1fr) minmax(0,260px);
  align-items:center;gap:14px 18px;padding:20px 24px;margin-bottom:12px;
  border:1px solid var(--wts-tool-line);border-radius:16px;background:#fff;
  box-shadow:0 3px 12px #172b4408;
}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-intro::before{width:3px;background:var(--tool-accent)}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-icon{width:58px;height:58px;border-radius:13px;box-shadow:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;letter-spacing:0;font-size:9px;line-height:1}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-icon svg{width:25px;height:25px;flex:none}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-copy .section-kicker{font-size:11px;letter-spacing:.07em;color:var(--tool-deep)}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-intro h1{font-size:clamp(22px,2.25vw,32px);line-height:1.2;overflow-wrap:anywhere;margin:3px 0 7px}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-intro p{font-size:13px;line-height:1.55;color:var(--wts-tool-muted);overflow-wrap:anywhere}
.route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-badges{min-width:0;max-width:100%;margin-top:0}
/* Quick links remain real buttons, with existing navigation/copy handlers. */
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav{margin:0 0 14px;padding:10px 12px;gap:8px 14px;background:#fff;border-color:var(--wts-tool-line);border-radius:12px}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-label{font-size:11px;color:var(--wts-tool-muted)}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions{gap:7px;min-width:0;max-width:100%}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions button{min-width:0;max-width:100%;min-height:38px;border-color:#d4e0ec;border-radius:8px;font-size:12px;padding:8px 12px;white-space:normal;overflow-wrap:anywhere;color:var(--wts-tool-ink)}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions button[data-tool-jump=editor]{background:var(--tool-soft);color:var(--tool-deep);border-color:color-mix(in srgb,var(--tool-accent) 32%,#d4e0ec)}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions button:hover{border-color:var(--tool-accent);background:var(--tool-soft)}
/* Only common editor primitives, not specialized canvas, editor or pro layouts. */
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount{min-width:0;max-width:100%}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount>.tool-shell{min-width:0;max-width:100%;border:1px solid var(--wts-tool-line);border-radius:16px;box-shadow:0 5px 20px #172b4409}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount>.tool-shell>.tool-body{min-width:0;padding:clamp(12px,2vw,26px)}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid{grid-template-columns:minmax(0,clamp(320px,34%,430px)) minmax(0,1fr);gap:clamp(12px,1.7vw,22px);min-width:0;max-width:100%}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .workspace-grid>*{min-width:0;max-width:100%}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid>.panel{padding:clamp(12px,1.5vw,20px);border:1px solid var(--wts-tool-line);border-radius:13px;box-shadow:none;background:#fff}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid>aside.panel{background:var(--wts-tool-surface)}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid>.panel>h3{font-size:16px;line-height:1.35;color:var(--wts-tool-ink);margin:0 0 14px;overflow-wrap:anywhere}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .field-help{font-size:12px;line-height:1.5;color:var(--wts-tool-muted)}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .field-grid>*{min-width:0}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .action-row{gap:8px;align-items:center}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .action-row>.button{min-height:42px}
/* Keep the native chooser and the drop handlers. No artificial overlay. */
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .drop-zone{min-width:0;max-width:100%;background:#fff;border-color:#a7b9cd;border-radius:12px;box-shadow:none;padding:18px 14px}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .drop-zone.compact{padding:12px}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .drop-zone:is(:hover,:focus-within,.drag,.dragging){border-color:var(--tool-accent);background:var(--tool-soft)}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .drop-zone strong{font-size:14px;color:var(--wts-tool-ink)}
.route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .drop-zone small{font-size:12px;line-height:1.5;color:var(--wts-tool-muted)}
/* Secondary help content keeps its original order, links and semantics. */
.route-tool:not(.studio-embed-page) .direct-tool-page :is(.experience-grid>article,.tool-seo-grid>article,.related-tools){min-width:0;border-color:var(--wts-tool-line);border-radius:13px;box-shadow:none}
.route-tool:not(.studio-embed-page) .direct-tool-page :is(.experience-grid,.tool-seo-grid) :is(p,li){font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.route-tool:not(.studio-embed-page) .direct-tool-page .experience-grid h2,.route-tool:not(.studio-embed-page) .direct-tool-page .tool-seo-grid h2{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-faq-card summary{font-size:13px;line-height:1.5}
.route-tool:not(.studio-embed-page) .direct-tool-page .before-after-grid>div{min-width:0;max-width:100%}
.route-tool:not(.studio-embed-page) .direct-tool-page .before-after-grid pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px;line-height:1.5}
@media(max-width:1050px){
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-intro{grid-template-columns:52px minmax(0,1fr)}
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-icon{width:52px;height:52px}
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-badges{grid-column:2;justify-content:flex-start}
 .route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid{grid-template-columns:minmax(0,1fr)}
 .route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body>.workspace-grid.equal{grid-template-columns:minmax(0,1fr)}
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-intro{padding:14px;grid-template-columns:44px minmax(0,1fr);gap:10px}
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-icon{width:44px;height:44px;gap:2px;font-size:8px}
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-icon svg{width:21px;height:21px}
 .route-tool:not(.studio-embed-page) .direct-tool-page .server-tool-badges{grid-column:1/-1}
 .route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions button{min-height:44px;padding:8px}
}
@media(max-width:480px){
 .route-tool:not(.studio-embed-page) .direct-tool-page #toolMount .tool-body .field-grid:is(.two,.three,.four){grid-template-columns:minmax(0,1fr)}
 .route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Bound related tool cards even when a long title sets a large min-content size. */
.route-tool:not(.studio-embed-page) .direct-tool-page .related-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.route-tool:not(.studio-embed-page) .direct-tool-page .related-tool-card{grid-template-columns:38px minmax(0,1fr) 18px;min-width:0;gap:8px;overflow-wrap:anywhere}
.route-tool:not(.studio-embed-page) .direct-tool-page .related-tool-card>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:760px){.route-tool:not(.studio-embed-page) .direct-tool-page .related-tool-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.route-tool:not(.studio-embed-page) .direct-tool-page .related-tools{padding:12px}.route-tool:not(.studio-embed-page) .direct-tool-page .related-tool-card{padding:10px;grid-template-columns:32px minmax(0,1fr) 14px}}
/* Compact example shortcuts use the same visual language as the quick buttons. */
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions :is(.tool-quick-sample,.tool-quick-samples summary){border-color:#d4e0ec;border-radius:8px;min-height:38px;font-size:12px;padding:8px 12px;color:var(--wts-tool-ink)}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions :is(.tool-quick-sample,.tool-quick-samples summary):hover{border-color:var(--tool-accent);background:var(--tool-soft)}
@media(max-width:650px){.route-tool:not(.studio-embed-page) .direct-tool-page .tool-quick-nav-actions :is(.tool-quick-sample,.tool-quick-samples summary){min-height:44px;padding:8px}}

/* Lot 573: keep plan and privacy badges visible; group optional professional actions.
   Native disclosure, so keyboard use and fallback do not depend on JS. */
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-pro-actions573{min-width:0;max-width:100%;flex:0 1 auto}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-pro-actions573[open]{flex:1 0 100%;max-width:100%}
.route-tool:not(.studio-embed-page) .direct-tool-page .tool-pro-actions573>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 10px;box-sizing:border-box;border:1px solid #dcd7eb;border-radius:8px;background:#faf9fc;color:#514779;font-size:12px;font-weight:700;line-height:1.4;cursor:pointer;list-style:none;overflow-wrap:anywhere}
.tool-pro-actions573>summary::-webkit-details-marker{display:none}
.tool-pro-actions573>summary::marker{content:""}
.tool-pro-actions573>summary>svg{width:16px;height:16px;flex:none}
.tool-pro-actions573>summary::after{content:"";border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;width:6px;height:6px;flex:none;transform:rotate(45deg);margin:0 2px 3px}
.tool-pro-actions573[open]>summary::after{transform:rotate(225deg);margin-top:5px}
.tool-pro-actions573>summary:focus-visible{outline:2px solid #276baf;outline-offset:3px}
.tool-pro-actions573[open]>.tool-pro-actions-list573{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:6px}
.tool-pro-actions-list573>button{min-width:0;max-width:100%;min-height:36px;white-space:normal;overflow-wrap:anywhere;text-align:start;justify-content:flex-start}
.tool-pro-actions-list573>button>b{margin-inline-start:auto;flex:none}
/* The runtime alone determines availability. Author display must not override hidden. */
.tool-pro-actions-list573>button[hidden]{display:none!important}
@media(max-width:760px){.tool-pro-actions573>summary,.tool-pro-actions-list573>button{min-height:44px!important}}
