/* P01 Tools — approved task-first direction, adapted to canonical data. */
.vf-tool-home-route .vf-functional-sidebar .vf-category-section{display:none}
.vf-tool-home{display:grid;gap:18px;padding-bottom:12px}
.vf-tool-hero{position:relative;overflow:hidden;padding:20px 22px 18px;border:1px solid color-mix(in srgb,var(--ws-teal) 14%,var(--ws-line));border-radius:14px;background:linear-gradient(115deg,color-mix(in srgb,var(--ws-teal-soft) 72%,var(--ws-panel)) 0%,var(--ws-panel) 62%,color-mix(in srgb,#dbeafe 45%,var(--ws-panel)) 100%);box-shadow:0 4px 18px rgba(15,23,42,.045)}
.vf-tool-hero:after{content:"";position:absolute;right:-80px;bottom:-95px;width:420px;height:190px;border-radius:50%;background:radial-gradient(circle at 40% 40%,color-mix(in srgb,var(--ws-teal) 10%,transparent),transparent 68%);pointer-events:none}
.vf-tool-hero-copy{position:relative;z-index:1;display:block}.vf-tool-eyebrow{display:block;margin-bottom:5px;color:var(--ws-teal);font-size:10px;font-weight:800;letter-spacing:.09em}.vf-tool-hero-copy h1{margin:0;color:var(--ws-strong);font-size:31px;line-height:1.1;letter-spacing:-.03em}.vf-tool-hero-copy p{margin:6px 0 0;color:var(--ws-muted);font-size:13.5px;line-height:1.55}
.vf-tool-task-search{position:relative;z-index:1;margin-top:18px;min-height:52px;padding:5px 5px 5px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid var(--ws-line-strong);border-radius:10px;background:var(--ws-panel);box-shadow:0 5px 18px rgba(15,23,42,.05)}.vf-tool-task-search>span{color:var(--ws-muted);font-size:19px}.vf-tool-task-search input{min-width:0;height:40px;border:0;outline:0;background:transparent;color:var(--ws-text);font-size:13.5px}.vf-tool-task-search button{height:40px;min-width:92px;padding:0 16px;border:1px solid var(--ws-teal);border-radius:8px;background:var(--ws-teal);color:#fff;font-size:12px;font-weight:740;cursor:pointer}.vf-tool-task-search button:hover{background:var(--ws-teal-deep);border-color:var(--ws-teal-deep)}
.vf-tool-task-suggestions{position:relative;z-index:1;margin-top:10px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.vf-tool-task-suggestions>span{color:var(--ws-muted);font-size:11px;font-weight:650}.vf-tool-task-suggestions>a{padding:5px 9px;border:1px solid color-mix(in srgb,var(--ws-line) 86%,transparent);border-radius:999px;background:color-mix(in srgb,var(--ws-panel) 88%,transparent);color:var(--ws-muted);text-decoration:none;font-size:10.8px}.vf-tool-task-suggestions>a:hover{border-color:color-mix(in srgb,var(--ws-teal) 30%,var(--ws-line));background:var(--ws-teal-soft);color:var(--ws-teal)}

.vf-tool-home-section{padding:16px;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-panel);box-shadow:0 2px 9px rgba(15,23,42,.025)}.vf-tool-section-head{margin-bottom:13px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.vf-tool-section-head h2{margin:0;color:var(--ws-strong);font-size:17px;line-height:1.25}.vf-tool-section-head p{margin:4px 0 0;color:var(--ws-muted);font-size:12.5px}.vf-tool-section-head>small{padding-top:3px;color:var(--ws-muted-2);font-size:11.5px;white-space:nowrap}.vf-tool-section-head>a{padding-top:2px;color:var(--ws-teal);text-decoration:none;font-size:11.5px;font-weight:690;white-space:nowrap}
.vf-tool-scenes{padding-inline:15px}.vf-tool-scene-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:start}.vf-tool-scene-card{min-width:0;min-height:142px;padding:13px 13px 12px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:start;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-panel);text-decoration:none;transition:border-color .14s ease,background .14s ease,transform .14s ease,box-shadow .14s ease}.vf-tool-scene-card:hover{border-color:color-mix(in srgb,var(--ws-teal) 24%,var(--ws-line));background:var(--ws-soft);transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,23,42,.045)}.vf-tool-scene-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:var(--ws-teal-soft);color:var(--ws-teal);font-size:17px;font-weight:800}.vf-tool-scene-copy{min-width:0}.vf-tool-scene-copy strong,.vf-tool-scene-copy small,.vf-tool-scene-copy em{display:block}.vf-tool-scene-copy strong{color:var(--ws-strong);font-size:14.5px;line-height:1.35}.vf-tool-scene-copy small{margin-top:4px;color:var(--ws-teal);font-size:11.5px;font-weight:680}.vf-tool-scene-copy em{margin-top:9px;color:var(--ws-muted);font-size:12px;line-height:1.55;font-style:normal}.vf-tool-scene-arrow{align-self:end;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--ws-teal-soft);color:var(--ws-teal);font-size:14px}.vf-tool-scene-card:hover .vf-tool-scene-arrow{background:var(--ws-teal);color:#fff}

.vf-tool-favorite-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.vf-tool-favorite-strip .vf-tool-asset-tile{min-height:102px;padding:9px 6px;display:grid;justify-items:center;align-content:center;gap:7px;text-align:center}.vf-tool-favorite-strip .vf-tool-asset-icon{width:42px;height:42px;border-radius:10px}.vf-tool-favorite-strip .vf-tool-asset-copy strong,.vf-tool-favorite-strip .vf-tool-asset-copy small{max-width:100%;text-align:center}.vf-tool-favorite-strip .vf-tool-asset-copy strong{font-size:12px}.vf-tool-favorite-strip .vf-tool-asset-copy small{font-size:10.8px}
.vf-tool-asset-tile{min-width:0;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-panel);color:inherit;text-decoration:none;transition:border-color .14s ease,background .14s ease,transform .14s ease}.vf-tool-asset-tile:hover{border-color:var(--ws-line-strong);background:var(--ws-soft);transform:translateY(-1px)}.vf-tool-asset-icon{flex:0 0 auto;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-soft);overflow:hidden;color:var(--ws-teal);font-size:12px;font-weight:760}.vf-tool-asset-icon img{width:100%;height:100%;object-fit:cover}.vf-tool-asset-copy{min-width:0}.vf-tool-asset-copy strong,.vf-tool-asset-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vf-tool-asset-copy strong{color:var(--ws-strong);font-size:11.7px}.vf-tool-asset-copy small{margin-top:3px;color:var(--ws-muted);font-size:10px}

.vf-tool-bottom-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:14px}.vf-tool-bottom-grid>.vf-tool-home-section{min-width:0}
.vf-tool-recent-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.vf-tool-recent-strip .vf-tool-asset-tile{min-height:78px;padding:9px;display:flex;align-items:center;gap:8px}.vf-tool-recent-strip .vf-tool-asset-icon{width:34px;height:34px}
.vf-tool-intent-section{background:linear-gradient(125deg,color-mix(in srgb,#fff7ed 42%,var(--ws-panel)),var(--ws-panel))}.vf-tool-intent-head{display:flex;align-items:flex-start;gap:10px}.vf-tool-intent-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#fff7ed;font-size:17px}.vf-tool-intent-head h2{margin:0;color:var(--ws-strong);font-size:16px}.vf-tool-intent-head p{margin:4px 0 0;color:var(--ws-muted);font-size:11.3px;line-height:1.5}.vf-tool-intent-form{margin-top:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.vf-tool-intent-form input{min-width:0;height:40px;padding:0 11px;border:1px solid var(--ws-line-strong);border-radius:8px;background:var(--ws-panel);color:var(--ws-text);font-size:12px}.vf-tool-intent-form button{height:40px;padding:0 14px;border:1px solid var(--ws-teal);border-radius:8px;background:var(--ws-teal);color:#fff;font-size:11.5px;font-weight:720;cursor:pointer}.vf-tool-intent-suggestions{margin-top:10px;display:flex;gap:6px;flex-wrap:wrap}.vf-tool-intent-suggestions a{padding:4px 7px;border-radius:999px;background:var(--ws-soft);color:var(--ws-muted);font-size:9.8px;text-decoration:none}.vf-tool-intent-suggestions a:hover{background:var(--ws-teal-soft);color:var(--ws-teal)}

@media(max-width:1260px){.vf-tool-favorite-strip{grid-template-columns:repeat(5,minmax(0,1fr))}.vf-tool-bottom-grid{grid-template-columns:1fr}}
@media(max-width:980px){.vf-tool-scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vf-tool-recent-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.vf-tool-home{gap:12px}.vf-tool-hero{padding:15px}.vf-tool-hero-copy h1{font-size:25px}.vf-tool-task-search{grid-template-columns:auto minmax(0,1fr);padding-right:8px}.vf-tool-task-search button{grid-column:1/-1;width:100%}.vf-tool-home-section{padding:12px}.vf-tool-scene-grid{grid-template-columns:1fr 1fr}.vf-tool-scene-card{min-height:118px;padding:10px;grid-template-columns:34px minmax(0,1fr)}.vf-tool-scene-icon{width:32px;height:32px}.vf-tool-scene-arrow{display:none}.vf-tool-favorite-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.vf-tool-recent-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.vf-tool-section-head p{display:none}.vf-tool-bottom-grid{grid-template-columns:1fr}.vf-tool-intent-form{grid-template-columns:1fr}.vf-tool-intent-form button{width:100%}}
@media(max-width:440px){.vf-tool-scene-grid{grid-template-columns:1fr}.vf-tool-scene-card{min-height:92px}.vf-tool-scene-copy em{margin-top:5px}.vf-tool-favorite-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.vf-tool-recent-strip{grid-template-columns:1fr 1fr}.vf-tool-task-suggestions>a:nth-of-type(n+5){display:none}}

/* IA V4: the specialist rule editor belongs to the Tools workspace,
 * not the shared backend navigation. */
.vf-tool-local-heading .vf-toolbox-settings-link{
  margin-inline-start:auto;
  color:var(--ws-teal,#07884f);
  text-decoration:none;
  font-size:13px;
  font-weight:680;
  white-space:nowrap;
}
.vf-tool-local-heading .vf-toolbox-settings-link:hover{text-decoration:underline}


/* R5 · Empty tool workspaces retain the same in-page Add authority. */
.vf-tool-home .vf-tool-home-empty{padding:20px 22px;border:1px dashed var(--ws-line-strong,#c6d7cb);border-radius:12px;background:var(--ws-panel,#fff)}
.vf-tool-home .vf-tool-home-empty strong{display:block;color:var(--ws-strong,#183b2c);font-size:16px;font-weight:750}
.vf-tool-home .vf-tool-home-empty p{margin:7px 0 14px;color:var(--ws-muted,#5e7468);font-size:14px;line-height:1.65}
.vf-tool-home .vf-tool-home-empty button{min-height:44px;padding:9px 16px;border:1px solid #07884f;border-radius:9px;background:#07884f;color:#fff;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.vf-tool-home .vf-tool-home-empty button:focus-visible{outline:3px solid #12a46b;outline-offset:3px}
