.zus-tool {
  --zus-ink: #10105d;
  --zus-purple: #5140f5;
  --zus-muted: #666688;
  --zus-line: #dedcf2;
  color: var(--zus-ink);
  background: linear-gradient(135deg, #f7f8ff, #fbf1fc);
  border: 1px solid var(--zus-line);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(40, 35, 125, .08);
  padding: clamp(20px, 4vw, 40px);
  max-width: 920px;
  margin: 24px auto;
  font-family: inherit;
}
.zus-tool *, .zus-tool *::before, .zus-tool *::after { box-sizing: border-box; }
.zus-tool-kicker { color: var(--zus-purple); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.zus-tool-intro { margin: 8px 0 24px; color: var(--zus-muted); font-size: 1.02rem; line-height: 1.6; }
.zus-tool form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }
.zus-tool-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zus-tool-field label { font-size: .92rem; font-weight: 700; color: var(--zus-ink); }
.zus-tool-field input, .zus-tool-field select {
  width: 100%; min-height: 54px; border: 1px solid #bdbadd; border-radius: 13px;
  background: white; color: var(--zus-ink); padding: 12px 16px; font: inherit;
}
.zus-tool-field input:focus, .zus-tool-field select:focus { outline: 3px solid #bbb4ff; outline-offset: 1px; }
.zus-tool-submit {
  min-height: 54px; border: 0; border-radius: 13px; background: var(--zus-purple);
  color: white; padding: 12px 24px; font: inherit; font-weight: 700; cursor: pointer;
}
.zus-tool-submit:hover { background: #3c2acb; }
.zus-tool-submit:focus-visible { outline: 3px solid var(--zus-ink); outline-offset: 3px; }
.zus-tool-note { margin: 18px 0 0; color: var(--zus-muted); font-size: .88rem; line-height: 1.55; }
.zus-tool-error { margin: 16px 0 0; color: #9d1d3d; font-weight: 700; }
.zus-tool-result { margin-top: 24px; border-radius: 20px; background: white; border: 1px solid var(--zus-line); padding: 24px; }
.zus-tool-result-label { display: block; color: var(--zus-muted); font-size: .9rem; font-weight: 700; }
.zus-tool-result-main { display: block; margin: 6px 0 20px; color: var(--zus-ink); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; font-weight: 800; }
.zus-tool-detail { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid #ecebf7; }
.zus-tool-detail span { color: var(--zus-muted); }
.zus-tool-detail strong { text-align: right; }
.zus-tool-split { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--zus-line); }
.zus-tool-split-title { margin: 0 0 14px; color: var(--zus-ink); font-weight: 800; }
.zus-tool [hidden] { display: none !important; }
@media (max-width: 680px) {
  .zus-tool { border-radius: 20px; }
  .zus-tool form { grid-template-columns: 1fr; }
  .zus-tool-detail { flex-direction: column; gap: 2px; }
  .zus-tool-detail strong { text-align: left; }
}

/* Tabs, repeatable rows and secondary buttons (Zeitrechner and friends) */
.zus-tabs { display: inline-flex; gap: 4px; margin: 14px 0 6px; padding: 4px; background: #fff; border: 1px solid var(--zus-line); border-radius: 14px; }
.zus-tab { border: 0; background: transparent; color: var(--zus-muted); font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.zus-tab.is-active { background: var(--zus-purple); color: #fff; }
.zus-tab:focus-visible { outline: 3px solid #bbb4ff; }
.zus-tool form[data-zus-sum-form] { display: block; }
.zus-rows { display: grid; gap: 10px; }
.zus-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 46px; gap: 10px; }
.zus-row select, .zus-row input { min-height: 52px; border: 1px solid #bdbadd; border-radius: 13px; background: #fff; color: var(--zus-ink); padding: 10px 14px; font: inherit; font-size: 1.05rem; }
.zus-row select:focus, .zus-row input:focus { outline: 3px solid #bbb4ff; outline-offset: 1px; }
.zus-row-remove { border: 1px solid var(--zus-line); background: #fff; color: var(--zus-muted); border-radius: 13px; font-size: 1.3rem; cursor: pointer; }
.zus-row-remove:hover { color: #9d1d3d; border-color: #e5b9c6; }
.zus-row-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.zus-tool-ghost { min-height: 54px; border: 1px dashed #a9a3e6; border-radius: 13px; background: #fff; color: var(--zus-purple); padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.zus-tool-ghost:hover { background: #f4f2ff; }
.zus-span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .zus-tabs { display: flex; }
  .zus-tab { flex: 1; padding: 10px 8px; }
  .zus-row-actions > * { flex: 1 1 100%; }
}
