/* Just Platforms admin language (connect/docs/design/DESIGN.md) */
:root {
  color-scheme: light;
  --chrome: #F2F3F5; --surface: #FFFFFF; --surface-band: #F6F7F8; --surface-hover: #F0F1F3;
  --surface-filter: #ECEDEF; --surface-active: #E4E6E9; --panel-border: #DFE1E5;
  --hairline: #E6E7EA; --hairline-row: #EDEEF0; --control-border: #CDD0D5; --input-border: #8E9197;
  --ink: #191B1D; --on-ink: #FFFFFF; --ink-muted: #5C6066; --ink-label: #6B6F76; --ink-disabled: #8E9197;
  --mark-neutral: #7C8088; --positive: #1F8A3B; --signal: #D63426; --signal-text: #C8281D;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--chrome); color: var(--ink); font: 13px/1.45 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--ink-muted); }
.error { color: var(--signal-text); }
.error:empty { display: none; }
.strong, .name { font-weight: 500; }
.page-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.view-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.section-title { font-size: 13px; font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--panel-border); border-radius: 10px; }
.brand { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }

/* Standalone sign-in */
.standalone { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px 16px 48px; }
.standalone > .brand { align-self: stretch; }
.login { width: 100%; max-width: 560px; margin-top: 10vh; }
.part { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; }
.part + .part { border-top: 1px solid var(--hairline); }
.part:last-child { flex-direction: row; padding: 16px 24px; }

/* Shell */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.sidebar { flex: 1 1 244px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 12px 4px 12px 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 6px; color: var(--ink-muted); font-weight: 500; }
.nav-item:hover { background: var(--surface-hover); color: var(--ink); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--surface-active); color: var(--ink); }
.account { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 8px; overflow-wrap: anywhere; }
.link { border: 0; padding: 0; background: none; color: var(--ink-muted); cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.main { flex: 999 1 560px; min-width: 0; margin: 8px; display: flex; flex-direction: column; }
.content { flex: 1; display: flex; flex-direction: column; }
.view-header { min-height: 49px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--hairline); }
.crumb { display: flex; align-items: center; gap: 10px; }
.crumb > a { white-space: nowrap; color: var(--ink-muted); font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.crumb > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 10px; border-top: 1.4px solid var(--ink-disabled); border-right: 1.4px solid var(--ink-disabled); transform: rotate(45deg); }
.filters { display: flex; flex-wrap: wrap; gap: 2px; }
.filter { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 6px; color: var(--ink-muted); font-weight: 500; }
.filter:hover { background: var(--surface-hover); color: var(--ink); text-decoration: none; }
.filter[aria-current="true"] { background: var(--surface-filter); color: var(--ink); }
.search { margin-left: auto; }
.search .input { height: 28px; width: 300px; max-width: 100%; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 500; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn:disabled { color: var(--ink-disabled); cursor: default; }
.btn-primary, .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn-primary:disabled { background: var(--ink-disabled); border-color: var(--ink-disabled); color: var(--on-ink); }
.btn-lg { height: 32px; }
.field > label { font-size: 12px; font-weight: 500; }
.input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--input-border); border-radius: 6px; background: var(--surface); }
.input:focus { outline: 2px solid rgba(25, 27, 29, 0.18); outline-offset: 1px; border-color: var(--ink); }
.input-invalid { border-color: var(--signal-text); }
.help { font-size: 12px; color: var(--ink-muted); }
.field .error { font-size: 12px; }

/* Status marks: always followed by a word */
.st { display: inline-flex; align-items: center; gap: 6px; }
.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 12px; height: 12px; }
.mark::before { content: ""; display: block; box-sizing: border-box; }
.m-pos::before { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.m-sig::before { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--signal); }
.m-wait::before { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--mark-neutral); }
.m-off::before { width: 7px; height: 7px; border-radius: 1px; background: var(--mark-neutral); }

/* Lists */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { height: 32px; padding: 0 12px; text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-label); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.tbl td { height: 40px; padding: 0 12px; border-bottom: 1px solid var(--hairline-row); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
.tbl tr.grp td { height: 30px; background: var(--surface-band); font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: var(--surface-hover); }
.tbl .r { text-align: right; }
.count { margin-left: 6px; color: var(--ink-label); }
.note { padding: 14px 16px; }
.empty { display: flex; flex-direction: column; gap: 4px; padding: 28px 16px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
.foot > .muted { margin-left: auto; }

/* Detail pages */
.detail { flex: 1; display: flex; flex-wrap: wrap; }
.detail-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding: 28px 32px; }
.detail-main > * { max-width: 760px; }
.detail-side { flex: 1 1 300px; max-width: 100%; padding: 24px 20px; border-left: 1px solid var(--hairline); }
.detail .tbl td { height: auto; padding-top: 10px; padding-bottom: 10px; }
.detail .tbl td:last-child { min-width: 240px; white-space: normal; }
.detail-main > .scroll { max-width: none; }
.detail .tbl th:first-child, .detail .tbl td:first-child { padding-left: 0; }
.detail .tbl th:last-child, .detail .tbl td:last-child { padding-right: 0; }
.detail .tbl tr.grp td { padding-left: 8px; }
section { display: flex; flex-direction: column; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.props { display: flex; flex-direction: column; gap: 10px; }
.props > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.props dt { font-size: 12px; font-weight: 500; color: var(--ink-label); }
.props dd { min-width: 0; overflow-wrap: anywhere; }
.findings { display: flex; flex-direction: column; gap: 6px; }
.tech { border-top: 1px solid var(--hairline); padding-top: 14px; }
.tech > summary { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted); transform: rotate(-45deg); }
.tech[open] > summary::before { transform: rotate(45deg); }
.tech .props { margin-top: 12px; }

/* Stammdaten */
.page { padding: 28px 32px; }
.form { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.entries { display: flex; flex-direction: column; gap: 8px; }
.entry { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.entry select.input { flex: 0 0 180px; }
.entry .input { flex: 1 1 120px; width: auto; }
.entry .short { flex: 0 0 72px; }
.entry .btn { height: 32px; }

@media (max-width: 640px) {
  .detail-main, .page { padding: 20px 16px; }
  .detail-side { border-left: 0; border-top: 1px solid var(--hairline); }
}
