* { box-sizing: border-box; }
:root { color-scheme: dark; --ink: #061722; --aqua: #94ddd6; --white: #f8fbfa; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--ink); color: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }
.hidden { display: none !important; }
.lock-page, .vault-page { min-height: 100vh; padding: clamp(2rem, 8vw, 7rem) 1rem; background: radial-gradient(circle at 14% 8%, rgba(148,221,214,.17), transparent 32rem), linear-gradient(145deg, #061722, #0c2c3a 68%, #173e40); }
.lock-card, .vault-shell { width: min(100%, 980px); margin: 0 auto; }
.lock-card { max-width: 720px; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(148,221,214,.45); border-radius: 18px; background: rgba(255,255,255,.06); color: var(--aqua); font-size: 1.2rem; font-weight: 850; }
.eyebrow { margin: 1.9rem 0 .6rem; color: var(--aqua); font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; color: #fff; font-size: clamp(3rem, 9vw, 6.2rem); line-height: .94; letter-spacing: -.065em; }
.lead { max-width: 600px; margin: 1.3rem 0 2.5rem; color: rgba(255,255,255,.62); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.7; }
.unlock-form { padding: 1.35rem; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.unlock-form label { display: block; margin: .9rem 0 .55rem; color: rgba(255,255,255,.72); font-size: .74rem; font-weight: 750; }
.unlock-row { display: grid; grid-template-columns: 1fr auto; gap: .7rem; }
input, textarea { min-width: 0; min-height: 54px; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.17); border-radius: 0; outline: 0; background: rgba(1,12,20,.42); color: white; }
input:focus, textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(148,221,214,.12); }
.unlock-form > input, .confirmation input { width: 100%; }
button { min-height: 54px; padding: .8rem 1.15rem; border: 0; background: var(--aqua); color: #08202b; cursor: pointer; font-weight: 850; }
button:disabled { opacity: .58; cursor: wait; }
.form-intro { display: flex; flex-direction: column; gap: .2rem; }
.form-intro strong { color: white; }
.form-intro span { color: rgba(255,255,255,.5); font-size: .73rem; line-height: 1.45; }
.server-auth-form > input { width: 100%; }
.server-auth-form > button { width: 100%; margin-top: 1rem; }
.server-auth-form label small { color: rgba(255,255,255,.42); font-weight: 400; }
.check-field { display: flex !important; align-items: center; flex-direction: row !important; gap: .65rem !important; cursor: pointer; }
.check-field input { width: 20px !important; min-height: 20px !important; height: 20px; margin: 0; accent-color: var(--aqua); }
.confirmation span { display: block; margin-bottom: .5rem; }
.trust { max-width: 620px; margin: 1.25rem 0; display: grid; grid-template-columns: auto 1fr; gap: .75rem; color: rgba(255,255,255,.48); }
.trust > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(148,221,214,.12); color: var(--aqua); }
.trust p { margin: 0; font-size: .72rem; line-height: 1.5; }
.trust strong { display: block; color: rgba(255,255,255,.8); }
.message { min-height: 1.1em; margin: .9rem 0 0; color: #b8ece8; font-size: .78rem; line-height: 1.45; }
.message.wide { min-height: 0; padding: .75rem 1rem; border-left: 3px solid var(--aqua); background: rgba(148,221,214,.08); }
.app-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.app-head .eyebrow { margin-top: 0; }
.app-head > div:first-child > p:last-child { margin: .8rem 0 0; color: rgba(255,255,255,.45); font-size: .76rem; }
.head-actions { display: flex; gap: .7rem; }
.head-actions { flex-wrap: wrap; justify-content: flex-end; }
.button-link { min-height: 54px; padding: .8rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--aqua); color: #08202b; font-size: .78rem; font-weight: 850; text-decoration: none; }
.secondary { border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.78); }
.logout-form { margin: 0; }
.logout-form button { height: 100%; }
.toolbar { margin-top: 2.5rem; padding: 1rem; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.05); }
.toolbar > input { width: 100%; }
.categories { margin-top: .75rem; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: thin; }
.categories button { min-height: 0; flex: 0 0 auto; padding: .5rem .7rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: transparent; color: rgba(255,255,255,.56); font-size: .68rem; }
.categories button.active { border-color: var(--aqua); background: var(--aqua); color: #08202b; }
.entry-list { margin-top: 1rem; display: grid; gap: .75rem; }
.entry { padding: 1.05rem; display: grid; grid-template-columns: auto minmax(140px, 1.2fr) minmax(150px, .8fr); align-items: center; gap: 1rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.065); }
.entry-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #214e58; color: #b8ece8; font-weight: 850; }
.entry-title { min-width: 0; }
.entry-title small { display: block; color: var(--aqua); font-size: .6rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.entry-title strong, .entry-title span { display: block; }
.entry-title strong { margin-top: .18rem; }
.entry-title span { margin-top: .2rem; overflow: hidden; color: rgba(255,255,255,.48); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.password-preview { min-width: 0; display: flex; align-items: center; gap: .45rem; }
.password-preview span { min-width: 0; overflow: hidden; color: rgba(255,255,255,.68); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.password-preview button { min-height: 0; padding: .35rem; background: transparent; color: var(--aqua); font-size: .64rem; }
.entry-actions { grid-column: 1 / -1; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; border-top: 1px solid rgba(255,255,255,.08); }
.entry-actions button { min-height: 40px; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.13); background: transparent; color: rgba(255,255,255,.68); font-size: .67rem; }
.entry-actions .copy-primary { border-color: var(--aqua); background: var(--aqua); color: #08202b; }
.entry-actions .delete { margin-left: auto; color: #f0aaa3; }
.entry-meta { grid-column: 1 / -1; display: flex; gap: 1rem; color: rgba(255,255,255,.43); font-size: .68rem; line-height: 1.5; }
.entry-meta a { color: var(--aqua); font-weight: 750; white-space: nowrap; }
.empty { min-height: 320px; margin-top: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,.18); text-align: center; }
.empty > div { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: rgba(148,221,214,.12); color: var(--aqua); font-size: 1.6rem; }
.empty p { margin: .5rem 1rem 1rem; color: rgba(255,255,255,.48); font-size: .78rem; }
.vault-shell > footer { margin-top: 2rem; color: rgba(255,255,255,.32); font-size: .64rem; text-align: center; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 1rem; display: grid; place-items: center; overflow-y: auto; background: rgba(2,10,18,.84); backdrop-filter: blur(7px); }
.modal { width: min(100%, 680px); max-height: calc(100vh - 2rem); overflow-y: auto; border: 1px solid rgba(255,255,255,.12); background: #0d2635; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.modal > header { padding: 1.4rem 1.5rem; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
.modal .eyebrow { margin: 0 0 .3rem; }
.modal h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.modal > header > button { width: 38px; min-height: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; color: white; font-size: 1.4rem; }
.modal form { padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal form > label { display: flex; flex-direction: column; gap: .4rem; }
.modal label > span { color: rgba(255,255,255,.68); font-size: .69rem; font-weight: 750; }
.modal input, .modal textarea { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.2); color: white; font-size: .81rem; }
.modal textarea { resize: vertical; }
.full, .dialog-note, .modal-actions { grid-column: 1 / -1; }
.password-field { display: grid; grid-template-columns: 1fr auto; }
.password-field button { min-height: 48px; background: #214e58; color: #b8ece8; font-size: .68rem; }
.dialog-note { margin: 0; color: rgba(255,255,255,.4); font-size: .66rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.modal-actions button { min-height: 46px; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.15); background: transparent; color: white; font-size: .73rem; }
.modal-actions button[type="submit"] { border-color: var(--aqua); background: var(--aqua); color: #08202b; }
.modal.compact { max-width: 560px; }
.totp-setup { width: min(calc(100% - 2rem), 980px); margin: 1rem auto 0; padding: 1rem 1.2rem; display: grid; gap: .55rem; border: 1px solid rgba(148,221,214,.35); background: #123541; color: rgba(255,255,255,.72); }
.totp-setup strong { color: var(--aqua); }
.totp-setup p, .totp-setup small { margin: 0; line-height: 1.5; }
.totp-setup code { padding: .7rem; overflow-wrap: anywhere; background: rgba(0,0,0,.25); color: white; font-size: .9rem; letter-spacing: .08em; }
.totp-setup .totp-uri { font-size: .62rem; opacity: .65; overflow-wrap: anywhere; }
.totp-setup.inline { width: 100%; margin: 0 0 1rem; }
.admin-head { margin-bottom: 1.5rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.admin-head h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
.admin-head > div > p:last-child { color: rgba(255,255,255,.5); }
.admin-card { margin-top: 1rem; padding: 1.4rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); }
.admin-card h2 { margin: 0 0 1.2rem; font-size: 1.25rem; }
.admin-copy { color: rgba(255,255,255,.54); line-height: 1.55; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form label { display: flex; flex-direction: column; gap: .4rem; }
.admin-form label > span { color: rgba(255,255,255,.68); font-size: .7rem; font-weight: 750; }
.user-list { display: grid; gap: .7rem; }
.user-row { padding: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.14); }
.user-row strong, .user-row span, .user-row small { display: block; }
.user-row span { margin-top: .25rem; color: rgba(255,255,255,.58); font-size: .74rem; }
.user-row small { margin-top: .35rem; color: rgba(255,255,255,.34); }
.user-actions { display: flex; align-items: start; gap: .55rem; }
.user-actions form { margin: 0; }
.user-actions button { min-height: 42px; padding: .55rem .75rem; font-size: .7rem; }
.user-actions details { position: relative; }
.user-actions summary { min-height: 42px; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.72); cursor: pointer; font-size: .7rem; font-weight: 700; list-style: none; }
.reset-form { min-width: 280px; margin-top: .45rem; padding: .8rem; display: grid; gap: .6rem; border: 1px solid rgba(255,255,255,.12); background: #0d2635; }
.reset-form input { width: 100%; }
.totp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.totp-actions form { display: grid; gap: .6rem; }
.totp-actions input { width: 100%; }
.setup-card { width: min(100%, 980px); }
.simple-setup-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.simple-setup-form fieldset { min-width: 0; margin: 0; padding: 1rem; display: grid; gap: .75rem; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.04); }
.simple-setup-form legend { padding: 0 .4rem; color: var(--aqua); font-weight: 800; }
.simple-setup-form label { display: grid; gap: .35rem; color: rgba(255,255,255,.72); }
.simple-setup-form .full { grid-column: 1 / -1; }
.signed-in-as { align-self: center; color: rgba(255,255,255,.65); font-size: .82rem; }

@media (max-width: 720px) {
  .lock-page, .vault-page { padding: 2rem .85rem 5rem; }
  .unlock-row { grid-template-columns: 1fr; }
  .app-head { align-items: stretch; flex-direction: column; }
  .app-head h1 { font-size: 3.8rem; }
  .head-actions { width: 100%; }
  .head-actions button { flex: 1; }
  .entry { grid-template-columns: auto minmax(0,1fr); }
  .password-preview { grid-column: 1 / -1; padding-top: .5rem; }
  .entry-actions button { flex: 1 1 calc(50% - .45rem); }
  .entry-actions .delete { margin-left: 0; }
  .entry-meta { flex-direction: column; gap: .4rem; }
  .modal form { grid-template-columns: 1fr; }
  .full, .dialog-note, .modal-actions { grid-column: auto; }
  .admin-head { align-items: stretch; flex-direction: column; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .full { grid-column: auto; }
  .user-row { grid-template-columns: 1fr; }
  .user-actions { flex-direction: column; }
  .totp-actions { grid-template-columns: 1fr; }
  .simple-setup-form { grid-template-columns: 1fr; }
  .simple-setup-form .full { grid-column: auto; }
}
@media (max-width: 430px) {
  h1 { font-size: 3.2rem; }
  .entry { padding: .85rem; }
  .entry-actions button { flex-basis: 100%; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal { width: 100%; max-height: 94vh; }
  .password-field { grid-template-columns: 1fr; }
}

/* Einheitlicher PLDI-Auftritt – Farbwelt der Praxis-Website. */
:root {
  --ink: #071222;
  --aqua: #69b9c0;
  --white: #f7faf9;
}
html, body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.lock-page, .vault-page {
  background: radial-gradient(circle at 14% 8%, rgba(141, 206, 208, .18), transparent 32rem), linear-gradient(145deg, #071222, #203448 68%, #274653);
}
.brand-mark, .entry-icon, .lock-card, .toolbar, .entry, .admin-card, .user-row, .simple-setup-form fieldset {
  border-radius: 0;
}
.brand-mark { color: #8dced0; border-color: rgba(141, 206, 208, .42); }
.unlock-form input, .toolbar input, .modal input, .modal textarea, .admin-form input, .reset-form input {
  border-radius: 0;
  border-color: rgba(223, 241, 240, .24);
}
.unlock-form input:focus, .toolbar input:focus, .modal input:focus, .modal textarea:focus, .admin-form input:focus {
  border-color: #69b9c0;
  outline: 3px solid rgba(105, 185, 192, .16);
}
.unlock-form button, .head-actions button, .entry-actions button, .modal-actions button[type="submit"] {
  border-color: #69b9c0;
  background: #69b9c0;
  color: #071222;
}
.password-field button { background: #29344d; color: #dff1f0; }
.totp-setup { border-color: rgba(105, 185, 192, .4); background: #203448; }
.reset-form { background: #203448; }
