:root {
  color-scheme: light;
  --ink: #192e3b;
  --muted: #526675;
  --line: #d9e2e6;
  --teal: #126958;
  --canvas: #f4f7f8;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.48;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: var(--teal); }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, .button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #0586a4; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
button:disabled { opacity: .65; cursor: wait; }
form, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.4; }
.wrap { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.skip-link { position: absolute; top: .4rem; left: .5rem; z-index: 10; padding: .4rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { color: #f5fafb; background: #152e3c; }
.topbar-inner, .brand, .account, .page-heading, .panel-heading, .security-title, .holding-controls, .result-top, .preferences summary {
  display: flex; align-items: center;
}
.topbar-inner { min-height: 4.25rem; justify-content: space-between; gap: 1rem; }
.brand { gap: .7rem; font-weight: 650; font-size: 1.05rem; color: inherit; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 1.7rem; height: 1.65rem; display: inline-flex; align-items: end; justify-content: space-between; padding: 0 .13rem .05rem; color: #8ed3bf; }
.brand-mark i { background: currentColor; width: 26%; border-radius: 1px 1px 0 0; }
.brand-mark i:nth-child(1) { height: 39%; }
.brand-mark i:nth-child(2) { height: 66%; }
.brand-mark i:nth-child(3) { height: 96%; }
.account { gap: 1rem; font-size: .9rem; }
.account-name { overflow-wrap: anywhere; }
.logout { background: transparent; color: #e2eeef; border: 1px solid #58717c; border-radius: .4rem; min-height: 2.5rem; padding: .4rem .8rem; }
.logout:hover { background: #294854; }
main { padding-block: clamp(2rem, 5vw, 4.65rem) 5rem; }
.page-heading { gap: 1.25rem; justify-content: space-between; margin-bottom: 2rem; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 500; font-size: clamp(2.8rem, 5.3vw, 4.75rem); letter-spacing: -.055em; line-height: 1.05; }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 650; font-size: .935rem; padding: .62rem 1rem; text-decoration: none; }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #0d5144; }
.secondary { background: #fff; color: var(--teal); border-color: #92b4aa; }
.secondary:hover { background: #edf5f2; }
.add-shortcut > span { font-size: 1.25rem; line-height: 1; font-weight: 400; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 1fr); gap: 1.6rem; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: .75rem; }
.panel-heading { justify-content: space-between; padding: 1.55rem 1.65rem 1.25rem; }
.summary { color: var(--muted); margin-top: .22rem; font-size: .9rem; }
.summary > span { padding-inline: .25rem; }
.holding { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.15rem 1.65rem; border-top: 1px solid var(--line); }
.holding-identity { min-width: 0; }
.security-title { gap: .65rem; flex-wrap: wrap; }
.security-name, .result strong { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.ticker { display: inline-block; border: 1px solid #c8d9da; border-radius: .28rem; background: #eef4f4; padding: .12rem .42rem; color: #284f55; line-height: 1.35; font: 600 .875rem/1.35 "IBM Plex Mono", Consolas, monospace; overflow-wrap: anywhere; }
.listing-meta { display: flex; flex-wrap: wrap; gap: .14rem .35rem; color: var(--muted); font-size: .875rem; margin-top: .35rem; }
.listing-meta > span + span::before { content: "·"; padding-right: .35rem; }
.isin { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; overflow-wrap: anywhere; }
.holding-controls { gap: .6rem; flex-shrink: 0; }
.state, .owned { font-size: .8125rem; line-height: 1.4; }
.state { padding: .2rem .55rem; border-radius: 4rem; background: #f0f1f1; color: #53616a; }
.state.active { color: #175a47; background: #e2f1e9; }
.actions { position: relative; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.actions > summary { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .42rem; background: white; }
.actions > summary span { font-size: 1.36rem; font-weight: 750; line-height: .5; letter-spacing: .06em; }
.actions[open] > summary, .actions > summary:hover { background: #f0f5f4; }
.action-menu { position: absolute; right: 0; z-index: 3; top: calc(100% + .3rem); white-space: nowrap; padding: .35rem; min-width: 10.25rem; border: 1px solid var(--line); background: white; border-radius: .5rem; box-shadow: 0 .5rem 1.5rem #19344221; }
.action-menu button, .action-menu .remove > summary { background: transparent; border: 0; border-radius: .3rem; text-align: left; color: var(--ink); padding: .6rem .7rem; width: 100%; font-size: .925rem; }
.action-menu button:hover, .action-menu .remove > summary:hover { background: #eef4f3; }
.action-menu .remove button, .danger { color: #a3313a; }
.side { display: grid; gap: 1.1rem; min-width: 0; }
.lookup, .preferences { padding: 1.5rem; }
#wertpapier-suchen, #datenabdeckung, #suchergebnisse { scroll-margin: 1rem; }
form label { display: block; color: var(--muted); margin-block: 1.2rem .4rem; font-size: .9rem; }
input:not([type=hidden]) { color: var(--ink); background: white; min-height: 2.8rem; width: 100%; border: 1px solid #aebfc6; border-radius: .4rem; padding: .55rem .7rem; min-width: 0; }
input::placeholder { color: #687984; }
.search-row { display: flex; gap: .45rem; }
.pending, .inline-info, .preferences p, .checked { color: var(--muted); font-size: .9rem; }
.pending:not(:empty), .inline-info { margin-top: .8rem; }
#suchergebnisse h3, .coverage { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.count { color: var(--muted); font-size: .85rem; margin-left: .25rem; }
.result-list { margin-top: .35rem; }
.result-list > li + li { border-top: 1px solid var(--line); }
.result { display: block; width: 100%; padding: .85rem .3rem; background: white; color: var(--ink); text-align: left; border: 0; border-radius: .3rem; }
.result:hover { background: #f2f7f5; }
.result-top { flex-wrap: wrap; gap: .4rem; margin-bottom: .3rem; }
.result-action, .text-link { font-weight: 600; font-size: .875rem; color: var(--teal); }
.result-action { display: block; margin-top: .45rem; }
.owned { color: #52656a; }
.selected-title { margin-top: .8rem; }
.coverage-list { margin-block: 1rem; }
.coverage-list > div { border-top: 1px solid var(--line); padding-block: .5rem; }
.coverage-list dt { font-weight: 600; font-size: .925rem; }
.coverage-list dd { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.coverage-list dd strong { font-weight: 600; }
.coverage-list [data-status="Verfügbar"] { color: #175a47; }
.coverage-list [data-status="Eingeschränkt"], .coverage-list [data-status="Vorübergehend offen"] { color: #805719; }
.coverage-list [data-status="Kein Zugriff"] { color: #92353d; }
.coverage-list dd span { display: block; }
.checked { margin-bottom: .8rem; }
.preferences > summary { justify-content: space-between; font-size: 1rem; font-weight: 650; gap: .8rem; }
.preferences .toggle-icon { width: .55rem; height: .55rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.preferences[open] .toggle-icon { transform: rotate(225deg); }
.preferences p { margin-top: .8rem; }
.preferences form button { margin-top: .7rem; }
.account-id { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .85rem; font-size: .875rem; color: var(--muted); }
.account-id summary { text-decoration: underline; }
.account-id code { display: block; overflow-wrap: anywhere; margin-top: .5rem; user-select: all; }
button.text-link { padding: .4rem 0; background: none; border: 0; text-decoration: underline; }
.empty { padding: 1.4rem 1.65rem 2.5rem; border-top: 1px solid var(--line); }
.empty p { color: var(--muted); margin: .45rem 0 1rem; }
.notice { max-width: 75rem; border-left: 3px solid var(--teal); background: #e7f4ee; padding: .75rem 1rem; margin-bottom: 1.3rem; }
.notice.error { border-color: #b73a48; background: #fff0f0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sign-in { margin: clamp(2rem, 10vh, 7rem) auto; max-width: 35rem; }
.sign-in p { max-width: 31rem; margin-block: 1rem 1.6rem; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 52rem) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .holding-list .holding:last-child .action-menu { top: auto; bottom: calc(100% + .3rem); }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .page-heading { align-items: start; flex-direction: column; gap: 1rem; margin-bottom: 1.3rem; }
  .topbar-inner { min-height: 3.8rem; }
  .account-name { display: none; }
  .brand { font-size: .98rem; gap: .5rem; }
  .panel-heading, .holding, .empty, .lookup, .preferences { padding-inline: 1rem; }
  .holding { gap: .55rem; }
  .holding-controls { gap: .3rem; }
  .security-title { align-items: start; flex-direction: column; gap: .25rem; }
  .workspace { gap: 1.1rem; }
}
