:root {
    --bg: #0d1117;
    --surface: rgba(255, 255, 255, .045);
    --surface-hover: rgba(255, 255, 255, .085);
    --surface-solid: #161b24;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #e6e9ef;
    --muted: #8a93a6;
    --accent: #3fcf8e;
    --accent-text: #06231a;
    --blue: #5b8cff;
    --warn: #f5a524;
    --danger: #ff5c6c;
    --radius: 14px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body::before {
    content: ""; position: fixed; left: 0; right: 0; top: -160px; bottom: -160px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1200px 700px at 10% 0, rgba(63, 207, 142, .13), transparent 65%),
        radial-gradient(1000px 600px at 100% 120px, rgba(91, 140, 255, .12), transparent 65%);
}
body {
    min-height: 100dvh; background: transparent; color: var(--text);
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }

.page {
    max-width: 760px; margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 20px) max(16px, env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.head h1 { font-size: 24px; font-weight: 700; flex: 1; letter-spacing: -.5px; }

/* Knöpfe & Felder */
.btn, .icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s;
}
.btn:hover, .icon-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.icon-btn { padding: 8px; }
.icon-btn.sm { padding: 5px; border-radius: 8px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea {
    width: 100%; font: inherit; color: var(--text); min-width: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
input:focus, select:focus { border-color: var(--accent); outline: none; }
select option { background: var(--surface-solid); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); font-weight: 400; }
label.check input { width: auto; accent-color: var(--accent); }
.form-error { color: var(--danger); margin: 0; font-size: 14px; }
.form-error:empty { display: none; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.card h3 { font-size: 15px; margin-bottom: 8px; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }

/* Untere Leiste */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 2px;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(13, 17, 23, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border);
}
.tabbar button {
    flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; padding: 6px 2px; border-radius: 10px; cursor: pointer;
}
.tabbar button.active { color: var(--accent); }
.tabbar button:hover { color: var(--text); }
.tabbar button.active:hover { color: var(--accent); }

/* Kennzahlen */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.chip b { display: block; font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.chip span { font-size: 12px; color: var(--muted); }
.chips.c2 { grid-template-columns: 1fr 1fr; }
.chips.c4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .chips.c4 { grid-template-columns: repeat(4, 1fr); } }

/* Tagesnavigation */
.daynav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.daynav .day-title { flex: 1; text-align: center; font-weight: 600; }
.daynav .day-title small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.daynav input[type=date] { width: auto; position: absolute; opacity: 0; pointer-events: none; }

/* Einträge */
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.entry-head { display: flex; align-items: center; gap: 8px; }
.entry-head b { flex: 1; font-size: 16px; }
.setlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.set { background: rgba(63, 207, 142, .12); border: 1px solid rgba(63, 207, 142, .25); border-radius: 8px; padding: 3px 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.vals { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.vals b { color: var(--text); font-weight: 600; }
.entry .note { margin-top: 6px; font-size: 13px; color: var(--muted); font-style: italic; }
.fab {
    position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 15;
    width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-text);
    display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.fab svg { width: 26px; height: 26px; stroke-width: 2.6; }

/* Satz-Zeilen */
.setrows { display: flex; flex-direction: column; gap: 8px; }
.setrow { display: grid; grid-template-columns: 26px 1fr 1fr 34px; gap: 8px; align-items: center; }
.setrow .n { color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.setrow input { text-align: center; }
.hdr { display: grid; grid-template-columns: 26px 1fr 1fr 34px; gap: 8px; font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.fieldgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Kalender */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head h2 { flex: 1; text-align: center; font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal .d {
    aspect-ratio: 1 / 1.05; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font: inherit; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; position: relative;
}
.cal .d.out { visibility: hidden; }
.cal .d.today { border-color: var(--blue); }
.cal .d.active { background: rgba(63, 207, 142, .2); border-color: rgba(63, 207, 142, .55); font-weight: 700; }
.cal .d .dots { display: flex; gap: 2px; height: 5px; }
.cal .d .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal .d .dots i.b { background: var(--blue); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 5px; }
.legend i.b { background: var(--blue); }

/* Auswertung */
.pillrow { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.pill {
    border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px;
    padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#fg); stroke: none; }
.chart .pt { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.chart .goal { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .goal-t { fill: var(--warn); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart-tip { min-height: 20px; font-size: 13px; color: var(--muted); margin-top: 4px; text-align: center; }
.chart-tip b { color: var(--text); }
.listbtn {
    width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer;
}
.listbtn:hover { background: var(--surface-hover); }
.listbtn .t { flex: 1; min-width: 0; }
.listbtn .t b { display: block; }
.listbtn .t span { font-size: 13px; color: var(--muted); }
.listbtn .chev { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.table th { font-size: 12px; color: var(--muted); font-weight: 500; }
.table td.r, .table th.r { text-align: right; }
.back { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-bottom: 10px; }
.pr { color: var(--warn); font-weight: 600; }
.bmi-bar { position: relative; height: 10px; border-radius: 999px; margin: 18px 0 6px; background: linear-gradient(90deg, #5b8cff 0 14%, #3fcf8e 14% 40%, #f5a524 40% 60%, #ff5c6c 60% 100%); }
.bmi-bar i { position: absolute; top: -5px; width: 4px; height: 20px; background: #fff; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--bg); }
.bmi-scale { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.bmi-scale span { position: absolute; transform: translateX(-50%); }
.bmi-scale span:first-child { transform: none; }
.bmi-scale span:last-child { transform: translateX(-100%); }

/* Dialog */
.modal-bg {
    position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: center;
}
.modal {
    width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--surface-solid);
    border: 1px solid var(--border-strong); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; } }
.modal h2 { font-size: 18px; margin-bottom: 14px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.modal .actions .grow { flex: 1; }
.toast {
    position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
    background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 18px; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.exlist-pick { display: flex; flex-direction: column; gap: 6px; max-height: 50dvh; overflow-y: auto; }
small.en { display: block; font-size: .72em; font-weight: 400; font-style: italic; color: var(--muted); line-height: 1.25; }
.tscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table th { white-space: nowrap; }
.muscles { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.mus { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.mus.main { background: rgba(63, 207, 142, .14); border-color: rgba(63, 207, 142, .35); color: var(--text); }
.lbl { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.mpick { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { flex-direction: row; display: inline-flex; font-size: 13px; cursor: pointer; }
.mchip input { position: absolute; opacity: 0; width: 0; height: 0; }
.mchip span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.mchip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.mchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.figcard { max-width: 360px; margin: 10px auto; }
.card.figcard { background: none; border: 0; padding: 0; }
.bodyfig { width: 100%; height: auto; display: block; }
.bodyfig .bbase { fill: rgba(255, 255, 255, .05); stroke: var(--border-strong); stroke-width: .8; }
.bodyfig .bm { fill: var(--accent); stroke: rgba(255, 255, 255, .2); stroke-width: .5; }
.bodyfig text { fill: var(--muted); font-size: 8px; font-family: inherit; }
.mbars { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.mbar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; }
.mbar div { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mbar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bodyfig text { stroke: none; }
.figcard.figsm { max-width: 250px; }
.daycard { padding-top: 6px; }
.picking .tabbar { display: none; }
.picker { text-align: center; padding-top: 6vh; }
.picker img { border-radius: 16px; }
.picker h1 { font-size: 30px; margin: 12px 0 2px; letter-spacing: -.5px; }
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 24px; text-align: center; }
.ucard {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: inherit; cursor: pointer;
}
.ucard:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.ucard b { font-size: 16px; word-break: break-word; }
.ucard .avatar {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--blue)); color: #06231a;
}
.ucard.add .avatar { background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted); }
.ucard .lock { position: absolute; top: 10px; right: 10px; color: var(--muted); }
.ucard .lock svg { width: 16px; height: 16px; }
.userchip {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    border-radius: 999px; padding: 5px 12px 5px 9px; font: inherit; font-size: 13px; cursor: pointer; max-width: 40%;
}
.userchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userchip svg { width: 15px; height: 15px; color: var(--muted); }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu .btn { justify-content: flex-start; }
.picker { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 0; }
.ugrid { grid-template-columns: repeat(auto-fit, minmax(130px, 160px)); justify-content: center; width: 100%; }
/* Trainingsübersicht */
.weekbar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: -4px 0 14px; justify-content: center; flex-wrap: wrap; }
.weekbar b { color: var(--text); }
.wk-dots { display: flex; gap: 5px; }
.wk-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.wk-dots i.on { background: var(--accent); border-color: var(--accent); }
.daysum { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.daysum .figsm { flex: none; width: 150px; }
.daysum-info { flex: 1; min-width: 0; }
.daysum-nums { display: flex; gap: 18px; margin-bottom: 8px; }
.daysum-nums b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.daysum-nums span { font-size: 12px; color: var(--muted); }
.daysum .muscles { margin: 0; }
.set em { font-style: normal; color: var(--accent); font-weight: 700; }
.entry { padding: 10px 14px; margin-bottom: 8px; }
.entry .setlist { margin-top: 6px; }
.entry .vals { margin-top: 4px; font-size: 13px; }
.entry-head b { font-size: 15px; }
.daynav { margin-bottom: 10px; }
.daysum-nums { gap: 14px; flex-wrap: wrap; }
.daysum-nums b { font-size: 22px; }
.daysum .figsm { width: 130px; }
/* Fotos */
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-head h3 { flex: 1; margin: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.pthumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: block; cursor: pointer; }
.pthumb-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.pthumb-btn.labeled span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 4px 4px; text-align: center; font-size: 11px; color: #fff; border-radius: 0 0 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.ethumb { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; flex: none; }
.gthumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); flex: none; }
.ph-prev { max-height: 240px; width: auto; max-width: 100%; border-radius: 12px; align-self: center; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin: 8px 0 4px; display: block; }
.cmp-grid small { color: var(--muted); font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 10px) 10px calc(env(safe-area-inset-bottom) + 10px); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; font-size: 14px; padding: 4px 4px 10px; }
.lb-top em { font-style: normal; color: var(--muted); }
.lb-top div { display: flex; gap: 8px; flex: none; }
.lb-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; min-width: 0; }
.lb-nav { flex: none; width: 38px; height: 64px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; cursor: pointer; }
.listbtn .gthumb + .t { margin-left: 0; }
/* Abzeichen */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.btile b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.bico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid; }
.bico svg { width: 24px; height: 24px; stroke-width: 1.8; }
.bico.bronze { color: #e0a070; border-color: #cd7f32; background: rgba(205, 127, 50, .16); }
.bico.silver { color: #dfe5ee; border-color: #aeb8c6; background: rgba(174, 184, 198, .16); }
.bico.gold { color: #ffd166; border-color: #ffc94d; background: rgba(255, 201, 77, .16); }
.bico.plat { color: #8fe3ff; border-color: #5cc8f0; background: rgba(92, 200, 240, .18); box-shadow: 0 0 12px rgba(92, 200, 240, .35); }
.bico.locked { color: var(--muted); border-color: var(--border-strong); background: var(--surface); opacity: .7; }
.bnext { margin-top: 12px; font-size: 13px; }
.mbar-line { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.mbar-line div { flex: 1; height: 7px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.mbar-line i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.blist h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.brow { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.brow .bt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.brow .bt span { font-size: 13px; color: var(--muted); }
.brow .bt small.ok { color: var(--accent); font-size: 12px; }
.brow.off .bt b { color: var(--muted); }
.modal h2 .small { font-weight: 400; }
.picker h1 { font-size: 28px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.ucard.off { opacity: .55; }
.ucard small { color: var(--muted); font-size: 12px; margin-top: -6px; }
/* Gerätekatalog */
.catlist { max-height: 52dvh; overflow-y: auto; margin: 10px 0 6px; padding-right: 2px; }
.catlist h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--surface-solid); padding: 4px 0; }
.catrow { flex-direction: row; align-items: flex-start; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); cursor: pointer; color: var(--text); font-weight: 400; font-size: 14px; }
.catrow input { width: auto; margin-top: 3px; accent-color: var(--accent); flex: none; }
.catrow b { font-weight: 600; display: block; }
.catrow .cat-m { display: block; font-size: 12px; color: var(--muted); }
.catrow.off { opacity: .5; cursor: default; }
/* Kleine Körperfigur in der Gerätebox */
.entry { display: flex; gap: 10px; align-items: stretch; }
.entry-main { flex: 1; min-width: 0; }
.minifig { flex: none; width: 76px; align-self: center; }
.minifig .bodyfig { width: 100%; height: auto; }
.head { flex-wrap: wrap; row-gap: 8px; }
.head h1 { min-width: 45%; }
.minifig { width: 84px; }
/* Bearbeiten/Löschen in der Gerätebox: klein, direkt neben dem Gerätenamen */
.entry-head { align-items: flex-start; gap: 6px; }
.entry-head b { flex: 0 1 auto; }
.icon-btn.xs { padding: 3px; border-radius: 7px; margin-top: 1px; opacity: .75; }
.icon-btn.xs svg { width: 13px; height: 13px; }
.icon-btn.xs:hover { opacity: 1; }
