
  .seg.svelte-1jw39w7 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), 1fr);
    background: var(--bg-2);
    border: 1px solid var(--g-line);
    border-radius: 99px;
    padding: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 0 transparent;
  }
  .seg-ind.svelte-1jw39w7 {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / var(--n));
    border-radius: 99px;
    background: var(--g-mid);
    border: 1px solid rgba(92, 219, 122, 0.45);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.5, 1);
  }
  .seg-opt.svelte-1jw39w7 {
    position: relative;
    z-index: 1;
    font-family: var(--ff-m);
    font-size: 0.76rem;
    color: var(--muted);
    background: transparent;
    border: none;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    border-radius: 99px;
    white-space: nowrap;
    transition: color 0.2s;
  }
  .seg.compact.svelte-1jw39w7 .seg-opt:where(.svelte-1jw39w7) {
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
  }
  .seg-opt.active.svelte-1jw39w7 {
    color: var(--g);
  }
  .seg-opt.svelte-1jw39w7:hover:not(.active) {
    color: var(--text);
  }
  /* shrink on narrow screens so multi-option toggles don't overflow their row */
  @media (max-width: 480px) {
    .seg-opt.svelte-1jw39w7 { font-size: 0.66rem; padding: 0.4rem 0.4rem; }
    .seg.compact.svelte-1jw39w7 .seg-opt:where(.svelte-1jw39w7) { font-size: 0.62rem; padding: 0.32rem 0.32rem; }
  }

  .app.svelte-l15t81 {
    display: grid;
    grid-template-columns: 19rem 1fr;
    gap: 2rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
  }
  .app-side.svelte-l15t81 {
    height: 100%;
    min-height: 0;
    overflow-y: auto; /* fixed-height app: the list scrolls on its own if it must — */
    /* no `overscroll-behavior: contain`: it kept the wheel over a list with nothing
       to scroll (Kundenakte), the page stood still */
    padding: 0.2rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--g-line) transparent;
  }
  /* page-scroll host: the list is part of the page — no own scroll box */
  @media (min-width: 861px) {
    .app.page-scroll.svelte-l15t81 .app-side:where(.svelte-l15t81) { overflow: visible; height: auto; }
  }
  .app-side.svelte-l15t81::-webkit-scrollbar { width: 6px; }
  .app-side.svelte-l15t81::-webkit-scrollbar-thumb { background: var(--g-line); border-radius: 99px; }
  .app-side.svelte-l15t81::-webkit-scrollbar-thumb:hover { background: var(--dim); }
  .side-areas.svelte-l15t81 {
    flex-shrink: 0;
    margin-bottom: -0.6rem;
    transition: opacity 0.2s;
  }
  .side-areas.dim.svelte-l15t81 {
    opacity: 0.55; /* the search spans both areas */
  }
  .side-areahint.svelte-l15t81 {
    font-size: 0.74rem;
    color: var(--dim);
    line-height: 1.45;
    margin-top: 0.45rem;
    padding-left: 0.15rem;
  }
  .side-search.svelte-l15t81 {
    position: relative;
    flex-shrink: 0;
  }
  .side-search.svelte-l15t81 input:where(.svelte-l15t81) {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--g-line);
    color: var(--text);
    font-family: var(--ff-m);
    font-size: 0.8rem;
    padding: 0.55rem 1.9rem 0.55rem 0.8rem;
    border-radius: 0.5rem;
    outline: none;
  }
  .side-search.svelte-l15t81 input:where(.svelte-l15t81):focus {
    border-color: rgba(92, 219, 122, 0.4);
  }
  .side-clear.svelte-l15t81 {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--dim);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
  }
  .side-clear.svelte-l15t81:hover {
    color: var(--text);
  }
  .side-empty.svelte-l15t81 {
    font-size: 0.82rem;
    color: var(--dim);
    padding: 0.5rem 0.2rem;
    line-height: 1.5;
  }
  .side-group.svelte-l15t81 {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .side-cat.svelte-l15t81 {
    font-family: var(--ff-m);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
    border-left: 2px solid var(--g);
    padding-left: 0.55rem;
  }
  .side-wrap.svelte-l15t81 { position: relative; }
  .side-hide.svelte-l15t81 { position: absolute; top: 0.45rem; right: 0.35rem; z-index: 1; font-family: var(--ff-m); font-size: 0.72rem; line-height: 1; color: var(--dim); background: var(--bg-1); border: 1px solid var(--g-line); border-radius: 99px; width: 1.4rem; height: 1.4rem; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
  .side-wrap.svelte-l15t81:hover .side-hide:where(.svelte-l15t81), .side-hide.svelte-l15t81:focus-visible, .side-hide.sug.svelte-l15t81, .side-hidden.svelte-l15t81 .side-hide:where(.svelte-l15t81) { opacity: 1; }
  .side-hide.sug.svelte-l15t81 { color: #dfb45a; border-color: rgba(223, 180, 90, 0.55); }
  .side-hide.svelte-l15t81:hover { color: var(--text); border-color: var(--g); }
  .side-sug.svelte-l15t81 { color: #dfb45a; }
  .side-hidden.svelte-l15t81 { margin-top: 0.6rem; }
  .side-hidden.svelte-l15t81 > summary:where(.svelte-l15t81) { cursor: pointer; font-family: var(--ff-m); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 0.3rem 0; }
  .side-hidden.svelte-l15t81 .side-item:where(.svelte-l15t81) { opacity: 0.6; }
  .side-item.svelte-l15t81 {
    --rx: 0deg;
    --ry: 0deg;
    --tilt-lift: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    text-align: left;
    padding: 0.85rem 1.05rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s ease;
    cursor: pointer;
    width: 100%;
  }
  .side-item.svelte-l15t81:hover {
    background: var(--bg-2);
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--g-line) inset;
  }
  .side-item.active.svelte-l15t81 {
    background: var(--bg-2);
    border-color: var(--g-line);
  }
  .side-dot.svelte-l15t81 {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
    background: var(--dim);
    transition: background 0.2s, box-shadow 0.2s;
  }
  .side-item.active.svelte-l15t81 .side-dot:where(.svelte-l15t81) {
    background: var(--g);
    box-shadow: 0 0 8px var(--g);
  }
  .side-text.svelte-l15t81 {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .side-title.svelte-l15t81 {
    font-family: var(--ff-d);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .side-tag.svelte-l15t81 {
    font-size: 0.8rem;
    color: var(--muted);
  }
  .side-note.svelte-l15t81 {
    font-family: var(--ff-m);
    font-size: 0.66rem;
    color: var(--g);
    margin-top: 0.15rem;
  }
  .side-foot.svelte-l15t81 {
    font-family: var(--ff-m);
    font-size: 0.66rem;
    color: var(--dim);
    border-top: 1px solid var(--g-line);
    padding-top: 1rem;
    line-height: 1.5;
  }
  .app-main.svelte-l15t81 {
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--g-line) transparent;
  }
  /* Frosted backing so tool content stays readable over the animated background.
     The blur sits on its own layer behind the panel: a backdrop-filter on the
     panel itself would make it the containing block of position:fixed children —
     the floating dropdown lists would then count into the panel's height and make
     the tool scroll just because a select is on it. */
  .app-panel.svelte-l15t81 {
    position: relative;
    isolation: isolate;
    background: color-mix(in srgb, var(--bg-1) 86%, transparent);
    border: 1px solid var(--g-line);
    border-radius: 0.75rem;
    padding: 1.75rem;
    min-height: 100%;
  }
  .app-panel.svelte-l15t81::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    pointer-events: none;
  }
  .app-main.svelte-l15t81::-webkit-scrollbar { width: 6px; }
  .app-main.svelte-l15t81::-webkit-scrollbar-thumb { background: var(--g-line); border-radius: 99px; }
  .app-loading.svelte-l15t81 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--muted);
    font-family: var(--ff-m);
    font-size: 0.85rem;
    padding: 3rem 0;
  }
  .spinner.svelte-l15t81 {
    width: 14px;
    height: 14px;
    border: 2px solid var(--g-line);
    border-top-color: var(--g);
    border-radius: 50%;
    animation: svelte-l15t81-spin 0.8s linear infinite;
  }
  @keyframes svelte-l15t81-spin {
    to {
      transform: rotate(360deg);
    }
  }
  .app-mobtoggle.svelte-l15t81 {
    display: none;
  }
  .chev.svelte-l15t81 {
    transition: transform 0.2s;
  }
  .chev.open.svelte-l15t81 {
    transform: rotate(180deg);
  }

  @media (max-width: 860px) {
    .app.svelte-l15t81 {
      grid-template-columns: 1fr;
      gap: 1rem;
      height: auto;
    }
    .app-main.svelte-l15t81 {
      height: auto;
      overflow: visible;
    }
    .app-panel.svelte-l15t81 {
      padding: 1.1rem;
      min-height: 0;
    }
    .app-mobtoggle.svelte-l15t81 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 0.9rem 1rem;
      background: var(--bg-2);
      border: 1px solid var(--g-line);
      border-radius: 0.5rem;
      font-family: var(--ff-d);
      font-weight: 700;
      color: var(--text);
      cursor: pointer;
    }
    .app-side.svelte-l15t81 {
      position: static;
      display: none;
      height: auto;
      max-height: 65vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      background: var(--bg-2);
      border: 1px solid var(--g-line);
      border-radius: 0.5rem;
      padding: 1rem;
    }
    .app-side.open.svelte-l15t81 {
      display: flex;
    }
    /* flat on touch — tilt is pointer-only and would skew tap targets */
    .side-item.svelte-l15t81 {
      transform: none;
    }
    .side-foot.svelte-l15t81 {
      display: none;
    }
  }
