/* Vexis Bundelstudio 1.4 — gereedschapskist, visie en Vex-hulp. */

.vision-strip {
  max-width: 1040px;
  margin: 0 auto 32px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  border-block: 1px solid var(--line);
  color: var(--text);
}
.vision-strip strong { font: 600 clamp(20px, 2.2vw, 27px)/1.25 Georgia, "Times New Roman", serif; }
.vision-strip span { color: var(--muted); line-height: 1.65; }
.merge-intro + .vision-strip { margin-top: -7px; }

.tools-main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 62px 0 90px; }
.tools-hero { max-width: 790px; margin: 0 auto 34px; text-align: center; }
.tools-hero h1 { margin: 10px 0 14px; font-size: clamp(42px, 6vw, 70px); line-height: .98; }
.tools-hero > p:not(.eyebrow) { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.6; }
.tool-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tool-search-wrap { max-width: 620px; margin: 28px auto 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 0 18px; border: 1px solid #958a7d; border-radius: 8px; background: var(--paper); box-shadow: 4px 5px 0 rgba(24, 32, 51, .08); }
.tool-search-wrap span { color: var(--accent-text); font-size: 25px; }
.tool-search-wrap input { min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.tool-search-wrap:focus-within { outline: 3px solid rgba(40, 124, 120, .22); border-color: var(--teal-text); }

.tools-page .vision-strip { margin-bottom: 58px; }
.tool-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 66px; align-items: start; }
.tool-group { min-width: 0; }
.tool-group h2 { margin: 0 0 18px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 13px/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-card { width: 100%; min-height: 76px; padding: 12px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.tool-card:hover { border-color: var(--line); background: rgba(255, 253, 248, .82); transform: translateY(-1px); }
.tool-card:focus-visible { outline: 3px solid rgba(40, 124, 120, .25); border-color: var(--teal-text); }
.tool-card > span:last-child { min-width: 0; display: grid; gap: 4px; }
.tool-card strong { font-size: 15px; line-height: 1.3; }
.tool-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tool-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: white; font: 700 12px/1 Arial, sans-serif; box-shadow: 2px 2px 0 rgba(24, 32, 51, .12); }
.tool-icon.coral { background: #c84e35; }
.tool-icon.green { background: #5b7f4a; }
.tool-icon.yellow { background: #c69a21; }
.tool-icon.blue { background: #526f9d; }
.tool-icon.orange { background: #cb6d45; }
.tool-icon.purple { background: #855b7f; }
.tool-icon.navy { background: #3e5d89; }
.tool-icon.violet { background: #6f50b5; }
.tool-search-empty { grid-column: 1 / -1; margin: 10px auto; color: var(--muted); text-align: center; }

.tool-workspace { max-width: 1040px; margin: 74px auto 0; border: 1px solid #a99f92; border-radius: 10px; background: var(--paper); box-shadow: 12px 14px 0 rgba(24, 32, 51, .07); overflow: hidden; scroll-margin-top: 90px; }
.tool-workspace-heading { padding: 24px 28px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(243, 239, 229, .56); }
.tool-workspace-heading h2 { margin: 4px 0 5px; font-size: 34px; }
.tool-workspace-heading p:last-child { max-width: 690px; margin: 0; color: var(--muted); }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font-size: 25px; cursor: pointer; }
.icon-button:hover { background: white; }
#tool-form { padding: 28px; }
.tool-options { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-options label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.tool-options .wide { grid-column: 1 / -1; }
.tool-options input, .tool-options select, .tool-options textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #958a7d; border-radius: 6px; background: #fffdf8; color: var(--text); font: 400 15px/1.4 Arial, sans-serif; }
.tool-options textarea { resize: vertical; }
.tool-options input:focus, .tool-options select:focus, .tool-options textarea:focus { outline: 3px solid rgba(40, 124, 120, .2); border-color: var(--teal-text); }
.tool-disclosure { margin: 18px 0 0; padding: 12px 15px; border-left: 3px solid var(--gold); background: rgba(212, 170, 52, .08); color: var(--muted); font-size: 13px; line-height: 1.5; }
.tool-form-actions { margin-top: 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.tool-form-actions span { color: var(--muted); font-size: 13px; }
.tool-workspace .merge-status { min-height: 310px; }
.tool-workspace .notice { margin: 0 28px 28px; }

.vex-help { position: fixed; right: 24px; bottom: 22px; z-index: 80; font-family: Arial, sans-serif; }
.vex-launcher { min-width: 132px; min-height: 58px; padding: 5px 14px 5px 5px; display: flex; align-items: center; gap: 8px; border: 1px solid #9d9182; border-radius: 999px; background: #fffdf8; color: var(--text); box-shadow: 5px 7px 0 rgba(24, 32, 51, .14); cursor: pointer; }
.vex-launcher:hover { transform: translateY(-2px); }
.vex-launcher:focus-visible { outline: 4px solid rgba(40, 124, 120, .3); outline-offset: 2px; }
.vex-launcher img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 26%; }
.vex-launcher span { font-weight: 800; font-size: 14px; }
.vex-welcome { position: absolute; right: 0; bottom: 72px; width: max-content; max-width: 230px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px 8px 2px 8px; background: #fffdf8; color: var(--text); box-shadow: 4px 5px 0 rgba(24, 32, 51, .1); opacity: 0; transform: translateY(8px); pointer-events: none; }
.vex-welcome.visible { opacity: 1; transform: translateY(0); }
.vex-dialog { position: absolute; right: 0; bottom: 72px; width: min(390px, calc(100vw - 32px)); max-height: min(650px, calc(100vh - 118px)); display: grid; grid-template-rows: auto minmax(130px, 1fr) auto auto auto; overflow: hidden; border: 1px solid #958a7d; border-radius: 12px; background: #fffdf8; box-shadow: 12px 16px 40px rgba(24, 32, 51, .22); }
.vex-dialog > header { padding: 13px 14px; display: grid; grid-template-columns: 46px 1fr 36px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); background: #efe8da; }
.vex-dialog header img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.vex-dialog header span { display: grid; gap: 3px; }
.vex-dialog header strong { font: 700 15px/1.2 Georgia, "Times New Roman", serif; }
.vex-dialog header small { color: var(--muted); font-size: 11px; }
.vex-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.vex-close:hover { background: rgba(24, 32, 51, .08); }
.vex-log { min-height: 150px; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background-image: linear-gradient(rgba(24, 32, 51, .025) 1px, transparent 1px); background-size: 100% 25px; }
.vex-message { max-width: 88%; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.48; }
.vex-message p { margin: 0; }
.vex-message a { display: inline-block; margin-top: 7px; color: var(--teal-text); font-weight: 800; }
.vex-message.bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 2px; background: #fffdf8; }
.vex-message.user { align-self: flex-end; border-bottom-right-radius: 2px; background: #26334c; color: white; }
.vex-quick { padding: 0 14px 11px; display: flex; gap: 6px; overflow-x: auto; }
.vex-quick button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 700 11px/1 Arial, sans-serif; cursor: pointer; }
.vex-quick button:hover { border-color: var(--accent); color: var(--accent-text); }
.vex-form { padding: 12px 14px; border-top: 1px solid var(--line); }
.vex-form label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; }
.vex-form > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.vex-form input { min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #958a7d; border-radius: 6px; background: white; color: var(--text); font: inherit; }
.vex-form button { padding: 0 12px; border: 0; border-radius: 6px; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }
.vex-form button:hover { background: var(--accent-dark); }
.vex-privacy { margin: 0; padding: 0 14px 13px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.vex-help.is-thinking .vex-launcher img { animation: vex-think .55s ease-in-out infinite alternate; }
.vex-help.just-answered .vex-launcher img { animation: vex-answer .4s ease-out; }
@keyframes vex-think { to { transform: rotate(-2deg) translateY(-2px); } }
@keyframes vex-answer { 50% { transform: translateY(-3px) rotate(2deg); } }

@media (max-width: 900px) {
  .tool-catalog { grid-template-columns: 1fr; gap: 42px; }
  .vision-strip { grid-template-columns: 1fr; gap: 10px; text-align: center; }
}

@media (max-width: 620px) {
  .tools-main { width: min(100% - 30px, 1220px); padding-top: 36px; }
  .tools-hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .tools-hero > p:not(.eyebrow) { font-size: 16px; }
  .tools-page .vision-strip { margin-bottom: 42px; }
  .vision-strip { padding-inline: 6px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 68px; }
  .tool-workspace { margin-top: 52px; }
  .tool-workspace-heading, #tool-form { padding: 20px 16px; }
  .tool-options { grid-template-columns: 1fr; }
  .tool-options .wide { grid-column: auto; }
  .tool-form-actions { align-items: stretch; flex-direction: column; }
  .tool-form-actions .button { width: 100%; }
  .vex-help { right: 12px; bottom: 12px; }
  .vex-launcher { min-width: 58px; width: 58px; padding: 5px; }
  .vex-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vex-dialog { position: fixed; inset: auto 8px 80px; width: auto; max-height: calc(100vh - 98px); }
  .vex-welcome { right: 0; bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card, .vex-launcher, .vex-welcome, .vex-dialog, .vex-launcher img { animation: none !important; transition: none !important; transform: none !important; }
}

@media (forced-colors: active) {
  .tool-card, .tool-search-wrap, .tool-workspace, .vex-launcher, .vex-dialog, .vex-message { border: 1px solid ButtonText; box-shadow: none; }
}
