/* KVED pilot UI 205K — scoped to kved.html / kved_ua.html / kved_en.html. */
.kved-pilot-205{
  --kved-menu-bg:#e3e5ed url("../menu.png") repeat-x center / auto 100%;
  --kved-blue:#00009F;
  --kved-orange:#ef8a18;
}

.kved-pilot-205 #main-content{position:relative}
.kved-pilot-205 .kved-search-field-wrap,
.kved-pilot-205 .kved-tax-search-field-wrap{position:relative;min-width:0}

.kved-pilot-205 .kved-search-shell,
.kved-pilot-205 .kved-tax-search-shell{
  position:relative;
  display:flex;
  align-items:center;
  gap:5px;
  width:100%;
  height:44px;
  min-height:44px;
  min-width:0;
  padding:3px 4px 3px 7px;
  border:1px solid #b9bec7;
  border-radius:22px !important;
  background:#DCDCDC !important;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  overflow:visible;
}
.kved-pilot-205 .kved-search-shell:focus-within,
.kved-pilot-205 .kved-tax-search-shell:focus-within{
  border-color:var(--kved-blue);
  box-shadow:0 1px 5px rgba(0,0,159,.10);
}
.kved-pilot-205 .kved-category-toggle{
  display:flex;
  flex:0 0 30px;
  width:30px;
  min-width:30px;
  height:36px;
  min-height:36px;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  border:0;
  border-radius:50% !important;
  background:transparent;
  color:var(--kved-blue);
  box-shadow:none;
  cursor:pointer;
  transition:color .16s ease,background-color .16s ease,transform .16s ease;
}
.kved-pilot-205 .kved-category-toggle svg{
  width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;
}
.kved-pilot-205 .kved-category-toggle.is-active{color:var(--kved-orange)}
.kved-pilot-205 .kved-search,
.kved-pilot-205 #kved-tax-search{
  flex:1 1 auto;
  width:auto;
  min-width:0;
  height:36px;
  margin:0;
  padding:0 4px;
  border:0;
  border-radius:0 !important;
  outline:0;
  background:transparent;
  box-shadow:none;
  color:#222;
  font-size:15px;
  line-height:36px;
}
.kved-pilot-205 .kved-search::placeholder,
.kved-pilot-205 #kved-tax-search::placeholder{color:#6c7178;opacity:1}
.kved-pilot-205 .kved-search-clear{
  display:flex;
  flex:0 0 28px;
  width:28px;height:28px;align-items:center;justify-content:center;
  position:static;
  margin:0;padding:0;border:0;border-radius:50% !important;
  background:transparent;color:#666;cursor:pointer;
}
.kved-pilot-205 .kved-search-clear[hidden]{display:none!important}
.kved-pilot-205 .kved-search-clear svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}

.kved-pilot-205 .kved-search-submit,
.kved-pilot-205 .kved-tax-search-submit,
.kved-pilot-205 .kved-tax-jump,
.kved-pilot-205 .kved-cart-button,
.kved-pilot-205 .kved-all-jump,
.kved-pilot-205 .kved-basket-check{
  display:inline-flex;
  height:36px;
  min-height:36px;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:0;
  padding:0 13px;
  border:0 !important;
  border-radius:999px !important;
  outline:0;
  background:var(--kved-menu-bg) !important;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
  color:var(--kved-blue);
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  text-shadow:none;
  transform:translateY(0);
  transition:color .16s ease,transform .16s ease,box-shadow .16s ease,filter .16s ease,background-color .16s ease;
}
.kved-pilot-205 .kved-search-submit,
.kved-pilot-205 .kved-tax-search-submit{flex:0 0 auto;min-width:126px}
.kved-pilot-205 .kved-search-plus-icon,
.kved-pilot-205 .kved-button-icon svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;
}
.kved-pilot-205 .kved-button-icon{display:inline-flex;align-items:center;justify-content:center}
.kved-pilot-205 .kved-cart-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.kved-pilot-205 .kved-cart-count{
  min-width:20px;height:20px;display:inline-grid;place-items:center;padding:0 5px;border-radius:50%!important;
  background:var(--kved-blue);color:#fff;font-size:10px;font-weight:700
}
.kved-pilot-205 .kved-cart-button.has-items{
  background:var(--kved-orange)!important;
  color:#fff!important;
  box-shadow:0 2px 6px rgba(239,138,24,.28);
}
.kved-pilot-205 .kved-cart-button.has-items .kved-cart-count{background:#fff;color:var(--kved-orange)}
.kved-pilot-205 .kved-basket-check.is-active{background:var(--kved-orange)!important;color:#fff!important}

.kved-pilot-205 .kved-category-status{
  display:flex;
  min-height:18px;
  align-items:center;
  gap:5px;
  padding:3px 10px 0 12px;
  color:#555b65;
  font-size:11px;
  line-height:1.25;
}
.kved-pilot-205 .kved-category-status[hidden]{display:none!important}
.kved-pilot-205 .kved-category-status strong{color:var(--kved-blue);font-weight:600}
.kved-pilot-205 .kved-category-clear{
  display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%!important;background:transparent;color:#777;cursor:pointer
}
.kved-pilot-205 .kved-category-clear svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.kved-pilot-205 .kved-category-popover{
  position:absolute;top:47px;left:0;z-index:450;width:min(680px,calc(100vw - 80px));max-height:min(54vh,420px);overflow:auto;
  padding:5px;border:1px solid #c7cbd1;border-radius:6px!important;background:#fff;box-shadow:0 9px 24px rgba(0,0,0,.12)
}
.kved-pilot-205 .kved-category-popover[hidden]{display:none!important}
.kved-pilot-205 .kved-category-popover button{
  display:grid;width:100%;grid-template-columns:34px minmax(0,1fr);gap:7px;align-items:center;min-height:34px;padding:5px 8px;
  border:0;border-bottom:1px solid #e3e5e8;border-radius:0!important;background:#fff;color:#292e35;text-align:left;cursor:pointer
}
.kved-pilot-205 .kved-category-popover button:last-child{border-bottom:0}
.kved-pilot-205 .kved-category-popover button strong{color:var(--kved-blue);font-size:12px}
.kved-pilot-205 .kved-category-popover button span{min-width:0;font-size:12px;line-height:1.2}

.kved-pilot-205 .kved-tax-groups{gap:6px}
.kved-pilot-205 .kved-tax-group-card{
  min-height:36px;padding:0 10px;border:0!important;border-radius:18px!important;background:var(--kved-menu-bg)!important;
  color:var(--kved-blue);box-shadow:0 1px 2px rgba(0,0,0,.10);text-align:center;transition:color .16s ease,box-shadow .16s ease,transform .16s ease
}
.kved-pilot-205 .kved-tax-group-card span{color:inherit}
.kved-pilot-205 .kved-tax-group-card.is-active{background:var(--kved-orange)!important;color:#fff!important;box-shadow:0 2px 6px rgba(239,138,24,.25)}

/* Desktop: the specialized toolbar shares the H1 line. JS measures the title text. */
@media (min-width:901px){
  .kved-pilot-205 .kved-search-hero{
    position:absolute!important;
    top:var(--kved-toolbar-top,0);
    left:var(--kved-toolbar-left,520px);
    right:40px;
    z-index:180;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .kved-pilot-205 .kved-search-row{
    display:grid;
    grid-template-columns:minmax(280px,1fr) auto;
    gap:8px;
    min-height:44px;
    align-items:start;
  }
  .kved-pilot-205 .kved-search-actions{display:flex;gap:7px;align-items:center;height:44px}
  .kved-pilot-205 .kved-tax-jump{max-width:190px}
  .kved-pilot-205 .kved-cart-button{min-width:130px}
  .kved-pilot-205 .kved-primary-tool{position:static!important;padding-top:0}
  .kved-pilot-205 .kved-tax-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
  .kved-pilot-205 .kved-tax-search-actions{display:flex;gap:7px;height:44px;align-items:center}
  .kved-pilot-205 .kved-all-jump,.kved-pilot-205 .kved-basket-check{max-width:190px}
  .kved-pilot-205 .kved-search-row.is-searching .kved-search-submit,
  .kved-pilot-205 .kved-tax-search-row.is-searching .kved-tax-search-submit{
    background:#00009F!important;color:#fff!important;box-shadow:0 2px 6px rgba(0,0,159,.20)
  }
}

@media (min-width:901px) and (hover:hover) and (pointer:fine){
  .kved-pilot-205 .kved-category-toggle:hover,
  .kved-pilot-205 .kved-category-clear:hover,
  .kved-pilot-205 .kved-search-clear:hover{color:var(--kved-orange)}
  .kved-pilot-205 .kved-search-submit:hover,
  .kved-pilot-205 .kved-tax-search-submit:hover,
  .kved-pilot-205 .kved-tax-jump:hover,
  .kved-pilot-205 .kved-cart-button:not(.has-items):hover,
  .kved-pilot-205 .kved-all-jump:hover,
  .kved-pilot-205 .kved-basket-check:not(.is-active):hover{
    color:var(--kved-orange)!important;
    box-shadow:0 3px 7px rgba(0,0,0,.18);
    filter:brightness(1.025);
    transform:translateY(-1px)
  }
  .kved-pilot-205 .kved-search-row.is-searching .kved-search-submit:hover,
  .kved-pilot-205 .kved-tax-search-row.is-searching .kved-tax-search-submit:hover{color:#fff!important;filter:brightness(1.05)}
  .kved-pilot-205 .kved-cart-button.has-items:hover,
  .kved-pilot-205 .kved-basket-check.is-active:hover{filter:brightness(1.03);transform:translateY(-1px)}
  .kved-pilot-205 .kved-category-popover button:hover{color:var(--kved-orange);background:#f7f7f7}
  .kved-pilot-205 .kved-category-popover button:hover strong{color:var(--kved-orange)}
  .kved-pilot-205 .kved-tax-group-card:not(.is-active):hover{color:var(--kved-orange);box-shadow:0 3px 7px rgba(0,0,0,.16);transform:translateY(-1px)}
}

/* Mobile/compact: keep the general site search untouched; restyle only KVED controls. */
@media (max-width:900px){
  .kved-pilot-205 .kved-search-hero{
    position:sticky!important;top:0!important;left:auto!important;right:auto!important;z-index:120!important;
    padding:5px!important;border-bottom:1px solid #d8d8d8!important;background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important
  }
  body.ubc-pilot-mobile-header-stuck .kved-pilot-205 .kved-search-hero{
    top:var(--ubc-pilot-mobile-sticky-height,93px)!important;
  }
  .kved-pilot-205 .kved-search-row,
  .kved-pilot-205 .kved-tax-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:start}
  .kved-pilot-205 .kved-search-actions{display:flex;gap:4px;height:32px;align-items:center}
  .kved-pilot-205 .kved-tax-search-actions{display:flex;gap:4px;height:44px;align-items:center}
  .kved-pilot-205 .kved-search-shell{height:32px;min-height:32px;padding:3px 4px;border-radius:16px!important}
  .kved-pilot-205 .kved-tax-search-shell{height:44px;min-height:44px;padding:3px 4px 3px 6px;border-radius:22px!important}
  .kved-pilot-205 .kved-category-toggle{flex-basis:28px;width:28px;min-width:28px;height:36px;min-height:36px}
  .kved-pilot-205 .kved-category-toggle svg{width:18px;height:18px}
  .kved-pilot-205 .kved-search-shell .kved-category-toggle{flex-basis:24px;width:24px;min-width:24px;height:24px;min-height:24px}
  .kved-pilot-205 .kved-search-shell .kved-category-toggle svg{width:16px;height:16px}
  .kved-pilot-205 .kved-search{height:24px;font-size:12px;line-height:24px;padding:0 2px}
  .kved-pilot-205 #kved-tax-search{height:36px;font-size:12px;line-height:36px;padding:0 2px}
  .kved-pilot-205 .kved-search-submit{width:24px;height:24px;min-width:24px;max-width:24px;min-height:24px;padding:0;gap:0;transition:width .18s ease,min-width .18s ease,padding .18s ease,border-radius .18s ease,background-color .18s ease,color .18s ease}
  .kved-pilot-205 .kved-tax-search-submit{height:36px;min-height:36px;min-width:104px;max-width:128px;padding:0 10px;transition:width .18s ease,min-width .18s ease,padding .18s ease,border-radius .18s ease,background-color .18s ease,color .18s ease}
  .kved-pilot-205 .kved-search-submit span{display:none}
  .kved-pilot-205 .kved-search-submit .kved-search-plus-icon{width:16px;height:16px}
  .kved-pilot-205 .kved-search-submit .kved-search-plus-icon path:nth-of-type(2),
  .kved-pilot-205 .kved-search-submit .kved-search-plus-icon path:nth-of-type(3){display:none}
  .kved-pilot-205 .kved-tax-search-submit .kved-search-plus-icon{width:17px;height:17px}
  .kved-pilot-205 .kved-search-shell .kved-search-clear{flex:0 0 24px;width:24px;height:24px}
  .kved-pilot-205 .kved-search-shell .kved-search-clear svg{width:16px;height:16px}
  .kved-pilot-205 .kved-tax-jump,
  .kved-pilot-205 .kved-cart-button,
  .kved-pilot-205 .kved-all-jump,
  .kved-pilot-205 .kved-basket-check{height:36px;min-height:36px;padding:0 7px;font-size:10px}
  .kved-pilot-205 .kved-search-row .kved-tax-jump,
  .kved-pilot-205 .kved-search-row .kved-cart-button{height:24px;min-height:24px;padding:0 6px;font-size:10px}
  .kved-pilot-205 .kved-search-row .kved-button-icon{display:inline-flex}
  .kved-pilot-205 .kved-search-row .kved-button-icon svg,
  .kved-pilot-205 .kved-search-row .kved-cart-icon{width:16px;height:16px}
  .kved-pilot-205 .kved-cart-button{min-width:42px;padding:0 7px}
  .kved-pilot-205 .kved-search-row .kved-cart-button{min-width:36px;padding:0 5px}
  .kved-pilot-205 .kved-cart-label{display:none}
  .kved-pilot-205 .kved-cart-count{min-width:18px;height:18px;font-size:9px}
  .kved-pilot-205 .kved-search-row .kved-cart-count{min-width:16px;height:16px;padding:0 4px;font-size:9px}
  .kved-pilot-205 .kved-search-row.is-searching .kved-tax-jump{display:none}
  .kved-pilot-205 .kved-tax-search-row.is-searching .kved-all-jump{display:none}
  .kved-pilot-205 .kved-search-row.is-searching .kved-search-submit{
    width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border-radius:50%!important;background:#00009F!important;color:#fff!important
  }
  .kved-pilot-205 .kved-tax-search-row.is-searching .kved-tax-search-submit{
    width:36px!important;min-width:36px!important;max-width:36px!important;padding:0!important;border-radius:50%!important;background:#00009F!important;color:#fff!important
  }
  .kved-pilot-205 .kved-search-row.is-searching .kved-search-submit span,
  .kved-pilot-205 .kved-tax-search-row.is-searching .kved-tax-search-submit span{display:none}
  .kved-pilot-205 .kved-search-row.is-searching .kved-search-submit .kved-search-plus-icon{width:16px;height:16px}
  .kved-pilot-205 .kved-tax-search-row.is-searching .kved-tax-search-submit .kved-search-plus-icon{width:19px;height:19px}
  .kved-pilot-205 .kved-category-status{padding:2px 7px 0;font-size:10px}
  .kved-pilot-205 .kved-category-popover{top:35px;width:min(92vw,620px);max-height:46vh}
  .kved-pilot-205 .kved-category-popover button{grid-template-columns:30px minmax(0,1fr);min-height:32px;padding:4px 6px}
  .kved-pilot-205 .kved-category-popover button strong,.kved-pilot-205 .kved-category-popover button span{font-size:11px}
  .kved-pilot-205 .kved-tax-group-card{min-height:36px;border-radius:18px!important;font-size:11px}
}

@media (max-width:520px){
  .kved-pilot-205 .kved-search-submit{width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;padding:0}
  .kved-pilot-205 .kved-tax-search-submit{min-width:38px;max-width:112px;padding:0 8px}
  .kved-pilot-205 .kved-search-submit span{display:none}
  .kved-pilot-205 .kved-tax-search-submit span{font-size:10px}
  .kved-pilot-205 .kved-tax-jump{max-width:104px;white-space:normal;line-height:1.05}
  .kved-pilot-205 .kved-button-icon{display:none}
  .kved-pilot-205 .kved-search-row .kved-button-icon{display:inline-flex}
  .kved-pilot-205 .kved-search-row .kved-button-icon svg{width:16px;height:16px}
  .kved-pilot-205 .kved-all-jump{max-width:82px;white-space:normal;line-height:1.05}
  .kved-pilot-205 .kved-basket-check{max-width:92px;white-space:normal;line-height:1.05}
}

@media (prefers-reduced-motion:reduce){
  .kved-pilot-205 .kved-category-toggle,.kved-pilot-205 .kved-search-submit,.kved-pilot-205 .kved-tax-search-submit,
  .kved-pilot-205 .kved-tax-jump,.kved-pilot-205 .kved-cart-button,.kved-pilot-205 .kved-all-jump,.kved-pilot-205 .kved-basket-check,.kved-pilot-205 .kved-tax-group-card{transition:none!important}
}

/* The KVED controls already provide an SVG clear control; suppress native search-field glyphs. */
.kved-pilot-205 .kved-search::-webkit-search-cancel-button,
.kved-pilot-205 #kved-tax-search::-webkit-search-cancel-button{display:none!important;-webkit-appearance:none}


/* === KVED pilot 208: H1 toolbar, bordered external controls, compact tax block === */
.kved-pilot-205 .kved-breadcrumb-line{gap:0;min-height:22px;padding-bottom:2px}
.kved-pilot-205 .kved-breadcrumb-note{display:none!important}

/* Functional category +: compact desktop circle, white vector plus. */
@media (min-width:901px){
  .kved-pilot-205 .kved-category-toggle{
    flex:0 0 20px!important;width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;
    border-radius:50%!important;background:var(--kved-blue)!important;color:#fff!important;
    box-shadow:none!important
  }
  .kved-pilot-205 .kved-category-toggle svg{width:11px!important;height:11px!important;stroke-width:2.4!important}
  .kved-pilot-205 .kved-category-toggle.is-active{background:var(--kved-orange)!important;color:#fff!important}
}

/* Outer controls have the corporate blue outline; inner search buttons remain borderless. */
.kved-pilot-205 .kved-tax-jump,
.kved-pilot-205 .kved-cart-button,
.kved-pilot-205 .kved-all-jump,
.kved-pilot-205 .kved-basket-check,
.kved-pilot-205 .kved-tax-group-card{
  border:1px solid var(--kved-blue)!important;
}
.kved-pilot-205 .kved-search-submit,
.kved-pilot-205 .kved-tax-search-submit{border:0!important}
.kved-pilot-205 .kved-cart-button.has-items,
.kved-pilot-205 .kved-basket-check.is-active,
.kved-pilot-205 .kved-tax-group-card.is-active{border-color:var(--kved-orange)!important}

@media (min-width:901px) and (hover:hover) and (pointer:fine){
  .kved-pilot-205 .kved-tax-jump:hover,
  .kved-pilot-205 .kved-cart-button:not(.has-items):hover,
  .kved-pilot-205 .kved-all-jump:hover,
  .kved-pilot-205 .kved-basket-check:not(.is-active):hover,
  .kved-pilot-205 .kved-tax-group-card:not(.is-active):hover{
    border-color:var(--kved-orange)!important;
    color:var(--kved-orange)!important;
  }
  .kved-pilot-205 .kved-category-toggle:hover{background:var(--kved-orange)!important;color:#fff!important;transform:translateY(-1px)}
}

/* Desktop: title and the live KVED toolbar share one real flex row. */
@media (min-width:901px){
  .kved-pilot-205 .kved-title-toolbar{
    display:flex;align-items:center;gap:22px;width:100%;min-width:0;
    padding:0 40px 0 0;margin:0;
  }
  .kved-pilot-205 .kved-title-toolbar .kved-page-title{flex:0 0 auto;margin-right:0;white-space:nowrap}
  .kved-pilot-205 .kved-toolbar-slot{flex:1 1 auto;min-width:420px;height:44px;align-self:center}
  .kved-pilot-205 .kved-toolbar-slot .kved-search-hero{
    position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%;height:auto;z-index:180;padding:0!important;margin:0!important;border:0!important;
    background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important
  }
  .kved-pilot-205 .kved-toolbar-slot .kved-search-row{
    display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:8px;min-height:44px;align-items:start
  }
  .kved-pilot-205 .kved-toolbar-slot .kved-search-actions{display:flex;gap:7px;align-items:center;height:44px}
  .kved-pilot-205 .kved-toolbar-slot .kved-tax-jump{max-width:190px}
  .kved-pilot-205 .kved-toolbar-slot .kved-cart-button{min-width:130px}
  /* The old source panel no longer reserves vertical room for the moved search. */
  .kved-pilot-205 .kved-primary-tool{padding-top:0!important}
}

/* Tax checker: compact 3-column rhythm so its search remains in the first desktop viewport. */
@media (min-width:901px){
  .kved-pilot-205 .kved-main-grid{padding-top:6px}
  .kved-pilot-205 .kved-catalog{gap:4px;padding:5px}
  .kved-pilot-205 .kved-section>summary{min-height:30px;padding-top:2px;padding-bottom:2px}
  .kved-pilot-205 .kved-tax-checker{margin-top:8px;padding:8px 10px}
  .kved-pilot-205 .kved-tax-topline{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:center;
    margin:0 0 5px;padding:0 0 5px;border-bottom:1px solid #ddd
  }
  .kved-pilot-205 .kved-tax-heading{grid-column:1;margin:0;border:0;min-height:36px;align-items:center}
  .kved-pilot-205 .kved-tax-title{margin:0;font-size:19px;line-height:1.18}
  .kved-pilot-205 .kved-tax-groups{
    grid-column:2/4;display:flex!important;align-items:center;justify-content:flex-start;gap:7px;margin:0!important;min-width:0
  }
  .kved-pilot-205 .kved-tax-group-card{
    flex:0 1 auto;width:auto;min-width:112px;max-width:190px;min-height:36px;height:36px;padding:0 10px!important;
    display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center
  }
  .kved-pilot-205 .kved-tax-group-card span{margin-left:4px;font-size:10px;white-space:nowrap}
  .kved-pilot-205 .kved-tax-profile{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:4px 0 6px!important
  }
  .kved-pilot-205 .kved-tax-question,
  .kved-pilot-205 .kved-tax-question:nth-child(3){
    grid-column:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;
    align-content:start;min-width:0;padding:5px 7px!important;border:1px solid #ddd;background:#fafafa
  }
  .kved-pilot-205 .kved-question-label{display:block;min-height:14px;font-size:11px;line-height:1.15;font-weight:700;color:#555}
  .kved-pilot-205 .kved-profile-select{
    display:block;width:100%;height:30px;min-height:30px;margin:0;padding:0 28px 0 8px;border:1px solid var(--kved-blue);
    border-radius:4px;background:#fff;color:#333;font:inherit;font-size:12px;line-height:30px;outline:0;cursor:pointer
  }
  .kved-pilot-205 .kved-profile-select:focus{border-color:var(--kved-orange);box-shadow:0 0 0 1px rgba(239,138,24,.12)}
  .kved-pilot-205 .kved-answer-set{display:none!important}
  .kved-pilot-205 .kved-tax-search-row{margin-top:0}
  .kved-pilot-205 .kved-tax-options{margin:4px 0}
  .kved-pilot-205 .kved-tax-summary{margin:4px 0;min-height:18px;padding-top:2px;padding-bottom:2px}
}

/* Mobile keeps the touch-oriented old answer controls; the desktop selects are hidden. */
@media (max-width:900px){
  .kved-pilot-205 .kved-title-toolbar{display:block}
  .kved-pilot-205 .kved-toolbar-slot{display:none}
  .kved-pilot-205 .kved-profile-select{display:none!important}
  .kved-pilot-205 .kved-tax-topline{display:block}
  .kved-pilot-205 .kved-tax-heading{margin-bottom:5px}
  .kved-pilot-205 .kved-tax-groups{margin-bottom:5px}
  .kved-pilot-205 .kved-category-toggle{
    width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;flex-basis:28px!important;
    border-radius:50%!important;background:var(--kved-blue)!important;color:#fff!important
  }
  .kved-pilot-205 .kved-category-toggle.is-active{background:var(--kved-orange)!important;color:#fff!important}
}

/* H1 inside the new flex wrapper must not restore the legacy partial divider. */
@media (min-width:901px){
  .kved-pilot-205 .kved-title-toolbar .kved-page-title{
    margin:0!important;padding:21px 0 17px 40px!important;border-bottom:0!important;
  }
}


/* === KVED pilot 209: fluid viewport-height compaction for top-level KVED categories ===
   Typography stays unchanged. Only vertical chrome scales with the desktop viewport height. */
@media (min-width:901px){
  .kved-pilot-205 .kved-catalog{
    gap:clamp(2px,.34vh,4px)!important;
    padding-top:clamp(3px,.45vh,5px)!important;
    padding-bottom:clamp(3px,.45vh,5px)!important;
  }
  .kved-pilot-205 .kved-section>summary{
    min-height:clamp(24px,calc(2vh + 8px),30px)!important;
    padding-top:clamp(0px,.16vh,2px)!important;
    padding-bottom:clamp(0px,.16vh,2px)!important;
  }
  .kved-pilot-205 .kved-section>summary::after{
    width:clamp(20px,2.4vh,26px)!important;
    height:clamp(20px,2.4vh,26px)!important;
    font-size:clamp(19px,2.35vh,25px)!important;
    line-height:1!important;
  }
  .kved-pilot-205 .kved-section[open]>summary::after{
    font-size:clamp(18px,2.2vh,23px)!important;
    line-height:1!important;
  }
  .kved-pilot-205 .kved-tax-checker{
    margin-top:clamp(6px,.9vh,8px)!important;
  }
}


/* === KVED pilot 210: breadcrumb-aligned H1 search + live simplified-tax search === */
@media (min-width:901px){
  .kved-pilot-205 .kved-toolbar-slot{overflow:visible!important;position:relative!important}
  .kved-pilot-205 .kved-toolbar-slot .kved-search-hero{
    will-change:transform;
    transition:transform .18s ease-out;
  }
  .kved-pilot-205 .kved-breadcrumb-line{position:relative;z-index:30}
  .kved-pilot-205 .kved-tax-title,
  .kved-pilot-205 #kved-tax-checker,
  .kved-pilot-205 #kved-all-codes{scroll-margin-top:calc(var(--ubc-sticky-nav-height,30px) + 12px)}
}
@media (max-width:900px){
  .kved-pilot-205 .kved-tax-title,
  .kved-pilot-205 #kved-tax-checker,
  .kved-pilot-205 #kved-all-codes{scroll-margin-top:calc(var(--ubc-pilot-mobile-sticky-height,93px) + 52px)}
}
.kved-pilot-205 .kved-tax-results.is-live{
  animation:kvedLiveReveal .16s ease-out both;
}
.kved-pilot-205 .kved-tax-live-preview .kved-name{line-height:1.22}
@keyframes kvedLiveReveal{
  from{opacity:.72;transform:translateY(3px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:reduce){
  .kved-pilot-205 .kved-toolbar-slot .kved-search-hero{transition:none!important}
  .kved-pilot-205 .kved-tax-results.is-live{animation:none!important}
}


/* === KVED pilot 211: compact mobile header search + unified simplified-tax settings === */
@media (min-width:901px){
  /* 5% tighter line spacing for KVED class names; font size is unchanged. */
  .kved-pilot-205 .kved-class .kved-name,
  .kved-pilot-205 .kved-tax-result .kved-name{line-height:1.1875!important}

  /* Lower checker mirrors the upper H1 toolbar: heading + fluid search + two actions. */
  .kved-pilot-205 .kved-tax-checker{padding:7px 10px!important}
  .kved-pilot-205 .kved-tax-topline{
    display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:22px!important;align-items:center!important;
    margin:0!important;padding:0 0 5px!important;border-bottom:1px solid #ddd!important
  }
  .kved-pilot-205 .kved-tax-heading{grid-column:auto!important;min-height:44px!important;display:flex!important;align-items:center!important;margin:0!important}
  .kved-pilot-205 .kved-tax-title{margin:0!important;white-space:nowrap;font-size:19px!important;line-height:1.18!important}
  .kved-pilot-205 .kved-tax-search-row{
    display:grid!important;grid-template-columns:minmax(240px,1fr) auto!important;gap:8px!important;align-items:start!important;min-width:0!important;margin:0!important
  }
  .kved-pilot-205 .kved-tax-search-actions{display:flex!important;gap:7px!important;height:44px!important;align-items:center!important;white-space:nowrap}
  .kved-pilot-205 .kved-all-jump{max-width:190px!important}
  .kved-pilot-205 .kved-basket-check{min-width:130px!important;max-width:190px!important}
}

/* Tax settings are no longer permanent rows; they live inside the functional + popover. */
.kved-pilot-205 .kved-tax-settings-popover{
  position:absolute;z-index:520;top:47px;left:0;width:min(690px,calc(100vw - 80px));max-height:min(68vh,560px);overflow:auto;
  padding:7px;border:1px solid #b9bec7;border-radius:8px!important;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.15)
}
.kved-pilot-205 .kved-tax-settings-popover[hidden]{display:none!important}
.kved-pilot-205 .kved-tax-settings-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 3px 6px;border-bottom:1px solid #e1e3e6;color:var(--kved-blue);font-size:12px}
.kved-pilot-205 .kved-tax-settings-close{display:grid;width:26px;height:26px;place-items:center;padding:0;border:0;border-radius:50%!important;background:transparent;color:#666;cursor:pointer}
.kved-pilot-205 .kved-tax-settings-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.kved-pilot-205 .kved-tax-setting-section{margin:0;border:0;border-bottom:1px solid #e5e6e8;background:#fff}
.kved-pilot-205 .kved-tax-setting-section:last-child{border-bottom:0}
.kved-pilot-205 .kved-tax-setting-section>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-height:34px;padding:5px 4px;list-style:none;color:#333;font-size:12px;font-weight:700;cursor:pointer}
.kved-pilot-205 .kved-tax-setting-section>summary::-webkit-details-marker{display:none}
.kved-pilot-205 .kved-tax-setting-section>summary::after{content:"+";grid-column:3;color:var(--kved-blue);font-size:16px;line-height:1}
.kved-pilot-205 .kved-tax-setting-section[open]>summary::after{content:"×";color:var(--kved-orange)}
.kved-pilot-205 .kved-tax-setting-section>summary span{color:#6b7078;font-size:10px;font-weight:600;white-space:nowrap}
.kved-pilot-205 .kved-tax-settings-popover .kved-tax-groups{display:flex!important;flex-wrap:wrap;gap:6px!important;margin:0!important;padding:2px 2px 7px!important}
.kved-pilot-205 .kved-tax-settings-popover .kved-tax-group-card{width:auto!important;min-width:104px!important;height:34px!important;min-height:34px!important;padding:0 9px!important}
.kved-pilot-205 .kved-tax-settings-popover .kved-tax-group-card span{display:none!important}
.kved-pilot-205 .kved-tax-settings-popover .kved-tax-question{display:block!important;padding:2px 2px 7px!important;border:0!important;background:#fff!important}
.kved-pilot-205 .kved-tax-settings-popover .kved-profile-select{display:block!important;width:100%;height:32px;min-height:32px;padding:0 28px 0 8px;border:1px solid var(--kved-blue);border-radius:4px;background:#fff;color:#333;font-size:12px;outline:0}
.kved-pilot-205 .kved-tax-settings-popover .kved-profile-select:focus{border-color:var(--kved-orange);box-shadow:0 0 0 1px rgba(239,138,24,.12)}
.kved-pilot-205 .kved-tax-settings-popover .kved-answer-set{display:none!important}
.kved-pilot-205 .kved-tax-category-options{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:2px 2px 7px}
.kved-pilot-205 .kved-tax-category-options button{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px;align-items:center;min-height:31px;padding:4px 6px;border:0;border-bottom:1px solid #e4e5e7;background:#fff;color:#333;text-align:left;cursor:pointer}
.kved-pilot-205 .kved-tax-category-options button strong{color:var(--kved-blue);font-size:11px}.kved-pilot-205 .kved-tax-category-options button span{font-size:11px;line-height:1.15}

.kved-pilot-205 .kved-tax-filter-status{display:flex;flex-wrap:wrap;gap:4px;min-height:0;padding:4px 2px 0;color:#555;font-size:10px;line-height:1.2}
.kved-pilot-205 .kved-tax-filter-chip{display:inline-flex;align-items:center;gap:4px;min-height:21px;padding:2px 5px 2px 7px;border:1px solid #c7cad0;border-radius:11px!important;background:#f7f7f7;color:#555;white-space:nowrap}
.kved-pilot-205 .kved-tax-filter-chip strong{color:var(--kved-blue);font-weight:700}
.kved-pilot-205 .kved-tax-filter-chip button{display:grid;width:15px;height:15px;place-items:center;padding:0;border:0;border-radius:50%!important;background:transparent;color:#777;cursor:pointer}
.kved-pilot-205 .kved-tax-filter-chip button svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.kved-pilot-205 #kved-tax-category-status{display:none!important}

@media (min-width:901px) and (hover:hover) and (pointer:fine){
  .kved-pilot-205 .kved-tax-settings-close:hover,.kved-pilot-205 .kved-tax-filter-chip button:hover{color:var(--kved-orange)}
  .kved-pilot-205 .kved-tax-category-options button:hover{color:var(--kved-orange);background:#f7f7f7}.kved-pilot-205 .kved-tax-category-options button:hover strong{color:var(--kved-orange)}
}

/* Mobile: compact H1/breadcrumb rhythm and one unified search height. */
@media (max-width:900px){
  .kved-pilot-205 .kved-title-toolbar .kved-page-title{margin:0!important;padding-bottom:0!important}
  .kved-pilot-205 .kved-breadcrumb-line{margin-top:3px!important;padding-top:0!important;padding-bottom:3px!important;min-height:0!important}
  .kved-pilot-205 .kved-breadcrumb-line .page-breadcrumbs{min-height:0!important;margin:0!important;padding:0!important;line-height:1.15!important}
  .kved-pilot-205 .kved-main-grid{padding-top:3px!important}

  /* General site-service search on KVED pages only: same 44/36px geometry as KVED search. */
  body.kved-pilot-205 .ubc-mobile-search-zone{padding:5px 7px 5px!important}
  body.kved-pilot-205 .ubc-menu-search,
  html.ubc-menu-ui-compact body.kved-pilot-205 .ubc-menu-search,
  html.ubc-menu-ui-compact body.kved-pilot-205 .main-nav-wrap.menu-open .ubc-menu-search{
    grid-template-columns:28px minmax(0,1fr) auto!important;gap:5px!important;height:44px!important;min-height:44px!important;
    padding:3px 4px 3px 6px!important;border-radius:22px!important;background:#DCDCDC!important;background-image:none!important
  }
  body.kved-pilot-205 .ubc-menu-search-category{grid-column:1!important;order:1;width:28px!important;min-width:28px!important;height:36px!important;min-height:36px!important;border-radius:50%!important;color:var(--kved-blue)!important}
  body.kved-pilot-205 .ubc-menu-search-category svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  body.kved-pilot-205 .ubc-menu-search-input{grid-column:2!important;order:2;height:36px!important;line-height:36px!important;font-size:14px!important;padding:0 2px!important}
  body.kved-pilot-205 .ubc-menu-search-submit,
  html.ubc-menu-ui-compact body.kved-pilot-205 button.ubc-menu-search-submit-premium{
    grid-column:3!important;order:3;height:36px!important;min-height:36px!important;padding:0 10px!important;border-radius:999px!important;
    background-color:#e3e5ed!important;background-image:url("../menu.png")!important;background-repeat:repeat-x!important;background-position:center!important;background-size:auto 100%!important;
    color:var(--kved-blue)!important;box-shadow:0 1px 2px rgba(0,0,0,.12)!important;text-shadow:none!important
  }
  body.kved-pilot-205 .ubc-menu-search-submit::after{display:none!important}

  /* Lower tax row is intentionally minimal: +, input, action; settings live in popover. */
  .kved-pilot-205 .kved-tax-checker{padding:6px!important}
  .kved-pilot-205 .kved-tax-topline{display:block!important;margin:0!important;padding:0 0 4px!important;border-bottom:1px solid #ddd!important}
  .kved-pilot-205 .kved-tax-heading{margin:0 0 4px!important;min-height:0!important}
  .kved-pilot-205 .kved-tax-title{margin:0!important;font-size:18px!important;line-height:1.15!important}
  .kved-pilot-205 .kved-tax-search-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;margin:0!important}
  .kved-pilot-205 .kved-tax-search-actions{display:flex!important;gap:4px!important;height:44px!important}
  .kved-pilot-205 .kved-tax-settings-popover{position:fixed;left:8px;right:8px;top:auto;bottom:8px;width:auto;max-height:min(72dvh,600px);border-radius:10px!important;padding:7px}
  .kved-pilot-205 .kved-tax-category-options{grid-template-columns:1fr}
  .kved-pilot-205 .kved-tax-filter-status{padding-top:3px;font-size:9.5px;gap:3px}
  .kved-pilot-205 .kved-tax-filter-chip{min-height:20px;padding:1px 4px 1px 6px}
  .kved-pilot-205 .kved-tax-options{margin-top:4px!important}
  .kved-pilot-205 .kved-tax-summary{margin-top:3px!important}
}

@media (max-width:520px){
  body.kved-pilot-205 .ubc-menu-search-submit{padding-left:8px!important;padding-right:8px!important}
  .kved-pilot-205 .kved-tax-search-actions .kved-all-jump{max-width:76px!important}
  .kved-pilot-205 .kved-tax-search-actions .kved-basket-check{max-width:86px!important}
}

/* 211 QA refinements: exact desktop toolbar symmetry + exact mobile spacing. */
@media (min-width:901px){
  .kved-pilot-205 .kved-tax-checker{padding-left:0!important;padding-right:0!important}
  .kved-pilot-205 .kved-tax-topline{
    grid-template-columns:var(--kved-page-title-width,360px) minmax(0,1fr)!important;
    padding-left:0!important;padding-right:0!important
  }
  .kved-pilot-205 .kved-tax-filter-status,
  .kved-pilot-205 .kved-tax-options,
  .kved-pilot-205 .kved-tax-summary,
  .kved-pilot-205 .kved-tax-results{margin-left:10px!important;margin-right:10px!important}
  .kved-pilot-205 .kved-tax-setting-section>summary{grid-template-columns:minmax(0,1fr) auto 14px!important}
}
@media (max-width:900px){
  /* The common service search sits above H1 on mobile: keep exactly 10px air. */
  body.kved-pilot-205 .ubc-mobile-search-zone{margin-bottom:10px!important}
  /* H1 -> breadcrumbs = 3px; breadcrumbs -> first KVED search field = 3px. */
  body.kved-pilot-205 #main-content > .kved-main-grid{padding-top:2px!important}
  .kved-pilot-205 .kved-search-hero{padding-top:0!important}
  .kved-pilot-205 .kved-tax-setting-section>summary{grid-template-columns:minmax(0,1fr) auto 14px!important}
}
@media (min-width:901px){
  .kved-pilot-205 .kved-tax-topline{grid-template-columns:var(--kved-tax-heading-width,var(--kved-page-title-width,360px)) minmax(0,1fr)!important}
}
/* Keep the unified settings panel above following content; on desktop it opens upward because the toolbar sits near the viewport bottom. */
.kved-pilot-205 .kved-tax-checker{position:relative;z-index:200}
@media (min-width:901px){
  .kved-pilot-205 .kved-tax-settings-popover{top:auto!important;bottom:47px!important}
}
@media (max-width:900px){
  /* Open settings upward from the search field, keeping the input itself tappable. */
  .kved-pilot-205 .kved-tax-settings-popover{
    position:absolute!important;top:auto!important;bottom:47px!important;left:0!important;right:auto!important;
    width:min(620px,calc(100vw - 54px))!important;max-height:min(64dvh,540px)!important
  }
}
@media (min-width:901px){
  .kved-pilot-205 .kved-tax-checker{margin-top:4px!important}
}


/* 212: compact single-line tax status strip on desktop. */
@media (min-width:901px){
  .kved-pilot-205 .kved-tax-meta-row{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0;
    margin:3px 10px 2px!important;
    padding:0!important;
    white-space:nowrap;
    font-size:12px!important;
    line-height:1.15!important;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-filter-status,
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-options,
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-summary{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    background:transparent!important;
    border:0!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-filter-status{
    flex:0 1 auto!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
    align-items:center!important;
    min-width:0;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-filter-chip{
    min-height:20px!important;
    padding:1px 4px 1px 6px!important;
    font-size:12px!important;
    line-height:1.1!important;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-options{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    gap:9px!important;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-switch{
    margin:0!important;
    font-size:12px!important;
    line-height:1.1!important;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-marker-legend{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:6px!important;
    font-size:12px!important;
    line-height:1.1!important;
  }
  .kved-pilot-205 .kved-tax-meta-row .kved-marker-legend span{white-space:nowrap!important}
  .kved-pilot-205 .kved-tax-meta-row .kved-tax-summary{
    flex:1 1 auto!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    color:#555!important;
  }
}
@media (max-width:900px){
  .kved-pilot-205 .kved-tax-meta-row{display:block!important;margin:0!important;padding:0!important}
}


/* === KVED pilot 213: larger desktop dropdown typography + exact upper/lower control symmetry === */
@media (min-width:901px){
  /* Dropdown menus: never below 14px; use the available desktop width for easier selection. */
  .kved-pilot-205 .kved-category-popover{width:min(760px,calc(100vw - 80px))!important;padding:7px!important}
  .kved-pilot-205 .kved-category-popover button{
    min-height:40px!important;padding:6px 9px!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important
  }
  .kved-pilot-205 .kved-category-popover button strong,
  .kved-pilot-205 .kved-category-popover button span{
    font-size:clamp(14px,.92vw,16px)!important;line-height:1.22!important
  }

  .kved-pilot-205 .kved-tax-settings-popover{width:min(780px,calc(100vw - 80px))!important;padding:9px!important}
  .kved-pilot-205 .kved-tax-settings-head{
    font-size:clamp(14px,.92vw,16px)!important;padding:3px 4px 8px!important
  }
  .kved-pilot-205 .kved-tax-setting-section>summary{
    min-height:40px!important;padding:6px 5px!important;font-size:clamp(14px,.92vw,16px)!important;line-height:1.2!important
  }
  .kved-pilot-205 .kved-tax-setting-section>summary span{
    display:block!important;width:100%!important;max-width:none!important;text-align:right!important;
    font-size:clamp(14px,.86vw,15px)!important;line-height:1.15!important
  }
  .kved-pilot-205 .kved-tax-settings-popover .kved-profile-select{
    width:100%!important;height:40px!important;min-height:40px!important;padding:0 34px 0 10px!important;
    font-size:clamp(14px,.92vw,16px)!important;line-height:40px!important
  }
  .kved-pilot-205 .kved-tax-settings-popover .kved-tax-groups{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;gap:7px!important
  }
  .kved-pilot-205 .kved-tax-settings-popover .kved-tax-group-card{
    width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;
    padding:0 10px!important;font-size:clamp(14px,.92vw,16px)!important
  }
  .kved-pilot-205 .kved-tax-category-options{grid-template-columns:1fr 1fr!important;width:100%!important}
  .kved-pilot-205 .kved-tax-category-options button{
    width:100%!important;min-height:39px!important;padding:6px 8px!important;grid-template-columns:34px minmax(0,1fr)!important
  }
  .kved-pilot-205 .kved-tax-category-options button strong,
  .kved-pilot-205 .kved-tax-category-options button span{
    font-size:clamp(14px,.9vw,16px)!important;line-height:1.2!important
  }

  /* Upper and simplified-tax toolbars share exactly the same three control widths. */
  .kved-pilot-205{
    --kved-desktop-action-middle:190px;
    --kved-desktop-action-cart:130px;
    --kved-desktop-action-gap:7px;
  }
  .kved-pilot-205 .kved-toolbar-slot .kved-search-row,
  .kved-pilot-205 .kved-tax-search-row{
    grid-template-columns:minmax(0,1fr) calc(var(--kved-desktop-action-middle) + var(--kved-desktop-action-cart) + var(--kved-desktop-action-gap))!important;
    gap:8px!important;
  }
  .kved-pilot-205 .kved-toolbar-slot .kved-search-actions,
  .kved-pilot-205 .kved-tax-search-actions{
    display:grid!important;
    grid-template-columns:var(--kved-desktop-action-middle) var(--kved-desktop-action-cart)!important;
    gap:var(--kved-desktop-action-gap)!important;
    width:calc(var(--kved-desktop-action-middle) + var(--kved-desktop-action-cart) + var(--kved-desktop-action-gap))!important;
    min-width:0!important;
  }
  .kved-pilot-205 .kved-toolbar-slot .kved-tax-jump,
  .kved-pilot-205 .kved-toolbar-slot .kved-cart-button,
  .kved-pilot-205 .kved-tax-search-actions .kved-all-jump,
  .kved-pilot-205 .kved-tax-search-actions .kved-basket-check{
    width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;min-height:36px!important;margin:0!important
  }
}

@media (min-width:901px){
  /* Selected values consume the complete flexible part of each settings row. */
  .kved-pilot-205 .kved-tax-setting-section>summary{
    grid-template-columns:max-content minmax(0,1fr) 14px!important;
  }
  .kved-pilot-205 .kved-tax-setting-section>summary span{
    justify-self:stretch!important;text-align:right!important;min-width:0!important
  }
  /* Compensate the checker's 1px right border so the three lower controls exactly match the upper toolbar width. */
  .kved-pilot-205 .kved-tax-search-row{width:calc(100% + 1px)!important}
}

/* KVED 2026-09-18: compact top-level service classes.
   Mobile section letter has exactly 4px breathing room on each side.
   Top-level service-class typography is reduced by 10%. */
@media (min-width:901px){
  .kved-pilot-205 .kved-section>summary{
    font-size:90%!important;
  }
}
@media (max-width:900px){
  .kved-pilot-205 .kved-section>summary{
    grid-template-columns:max-content minmax(0,1fr)!important;
    gap:0!important;
    padding-left:0!important;
    font-size:9.9px!important;
  }
  .kved-pilot-205 .kved-section>summary>.kved-summary-code{
    display:block!important;
    box-sizing:content-box!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
}



/* KVED 2026-09-22: unified 32/24/16 mobile control standard. */
@media (max-width:900px){
  /* KVED native search fields: 32px shell, 24px controls, 16px symbols. */
  .kved-pilot-205 .kved-search-shell,
  .kved-pilot-205 .kved-tax-search-shell{
    height:32px!important;min-height:32px!important;padding:3px 4px!important;border-radius:16px!important;gap:4px!important;
  }
  .kved-pilot-205 .kved-search,
  .kved-pilot-205 #kved-tax-search{
    height:24px!important;min-height:24px!important;max-height:24px!important;line-height:24px!important;font-size:16px!important;padding:0 2px!important;
  }
  .kved-pilot-205 .kved-category-toggle,
  .kved-pilot-205 .kved-search-clear,
  .kved-pilot-205 .kved-search-submit,
  .kved-pilot-205 .kved-tax-search-submit{
    flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;padding:0!important;gap:0!important;border-radius:50%!important;
  }
  .kved-pilot-205 .kved-category-toggle{background:var(--kved-blue)!important;color:#fff!important;}
  .kved-pilot-205 .kved-category-toggle.is-active{background:var(--kved-orange)!important;color:#fff!important;}
  .kved-pilot-205 .kved-category-toggle svg,
  .kved-pilot-205 .kved-search-clear svg,
  .kved-pilot-205 .kved-search-submit svg,
  .kved-pilot-205 .kved-tax-search-submit svg,
  .kved-pilot-205 .kved-button-icon svg,
  .kved-pilot-205 .kved-cart-icon,
  .kved-pilot-205 .kved-basket-icon{width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;}
  .kved-pilot-205 .kved-search-submit span,
  .kved-pilot-205 .kved-tax-search-submit span{display:none!important;}

  /* Action row: compact controls leave maximum width to the search field. */
  .kved-pilot-205 .kved-search-row,
  .kved-pilot-205 .kved-tax-search-row{grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;align-items:center!important;}
  .kved-pilot-205 .kved-search-actions,
  .kved-pilot-205 .kved-tax-search-actions{height:32px!important;gap:4px!important;align-items:center!important;}
  .kved-pilot-205 .kved-tax-jump,
  .kved-pilot-205 .kved-cart-button,
  .kved-pilot-205 .kved-all-jump,
  .kved-pilot-205 .kved-basket-check{
    height:24px!important;min-height:24px!important;max-height:24px!important;padding:0 6px!important;font-size:16px!important;font-weight:400!important;line-height:24px!important;gap:3px!important;
  }
  .kved-pilot-205 .kved-cart-button,
  .kved-pilot-205 .kved-basket-check{width:24px!important;min-width:24px!important;max-width:24px!important;padding:0!important;}
  .kved-pilot-205 .kved-cart-label,
  .kved-pilot-205 .kved-basket-check > span,
  .kved-pilot-205 .kved-basket-check > b,
  .kved-pilot-205 .kved-cart-count{display:none!important;}
  .kved-pilot-205 .kved-basket-icon{display:block!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px;}
  .kved-pilot-205 .kved-search-clear{background:#f1f2f4!important;color:var(--kved-orange)!important;}
  .kved-pilot-205 .kved-search-submit .kved-search-plus-icon path:nth-of-type(2),
  .kved-pilot-205 .kved-search-submit .kved-search-plus-icon path:nth-of-type(3),
  .kved-pilot-205 .kved-tax-search-submit .kved-search-plus-icon path:nth-of-type(2),
  .kved-pilot-205 .kved-tax-search-submit .kved-search-plus-icon path:nth-of-type(3){display:none!important;}

  /* Mobile label only; desktop keeps the full wording. */

  /* Category/settings open-close symbols use the same 24/16 scale. */
  .kved-pilot-205 .kved-tax-setting-section>summary{grid-template-columns:minmax(0,1fr) auto 24px!important;}
  .kved-pilot-205 .kved-tax-setting-section>summary::after{
    display:grid!important;width:24px!important;height:24px!important;place-items:center!important;border-radius:50%!important;background:#f1f2f4!important;
    font-size:16px!important;font-weight:400!important;line-height:24px!important;color:var(--kved-blue)!important;
  }
  .kved-pilot-205 .kved-tax-setting-section[open]>summary::after{color:var(--kved-orange)!important;}
}
@media (min-width:901px){.kved-pilot-205 .kved-basket-icon{display:none!important;}}

/* KVED 2026-09-22: device-independent mobile action labels rendered as outlined SVG. */
.kved-pilot-205 .kved-mobile-label-svg{display:none;}
@media (max-width:900px){
  .kved-pilot-205 .kved-tax-jump,
  .kved-pilot-205 .kved-all-jump{overflow:hidden;white-space:nowrap!important;}
  .kved-pilot-205 .kved-tax-jump > span:last-of-type,
  .kved-pilot-205 .kved-all-jump > span:last-of-type{display:none!important;}
  .kved-pilot-205 .kved-search-row .kved-tax-jump{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:104px!important;min-width:104px!important;max-width:104px!important;
  }
  .kved-pilot-205 .kved-tax-search-actions .kved-all-jump{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:82px!important;min-width:82px!important;max-width:82px!important;
  }
  .kved-pilot-205 .kved-mobile-label-svg{
    display:block!important;
    flex:0 1 auto!important;
    width:calc(100% - 19px)!important;
    min-width:1px!important;
    max-width:100%!important;
    height:16px!important;
    object-fit:contain!important;
    object-position:center!important;
  }
}
