@import url("galerie.css");

:root {
  --bg: #f6f6f6; --fg: #3f3f3f; --accent: #5c8762;
  --green: #5c8762; --green-dark: #4b6f50; --green-soft: #e7efe8;
  --muted: #7b7b7b; --line: #e4e4e4; --panel: #ffffff; --danger: #c0392b;
}
body[data-view="studio"] { background: var(--bg); color: var(--fg); font-size: 14px; }
.st-shell { min-height: 100svh; }
.st-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.st-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; font: 400 20px/1 "Cormorant Garamond", serif; text-decoration: none; }
.st-spacer { flex: 1; }
.st-green { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--green); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.st-green:hover { background: var(--green-dark); }
.st-green:disabled { opacity: .5; cursor: default; }
.st-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); font-size: 13px; text-decoration: none; }
.st-outline:hover { background: var(--green-soft); }
.st-outline.danger { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.st-outline.danger:hover { background: #fbeceb; }
.st-rail { position: fixed; top: 54px; bottom: 0; left: 0; z-index: 15; width: 50px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; background: #fff; border-right: 1px solid var(--line); }
.st-rail a, .st-rail button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: #6a6a6a; }
.st-rail a:hover, .st-rail button:hover { color: var(--green-dark); background: var(--green-soft); }
.st-rail a.on { color: var(--green-dark); }
.st-rail svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.st-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px; margin-left: 50px; background: #fff; font-size: 13px; color: var(--muted); }
.st-crumbs a { color: var(--green-dark); text-decoration: none; }
.st-main { margin-left: 50px; padding: 24px 22px 90px; }
.st-title { margin: 0 0 18px; font: 600 clamp(24px, 3vw, 32px)/1.2 var(--sans); color: #4a4a4a; overflow-wrap: anywhere; }
.st-note { color: var(--muted); font-size: 13px; }
.st-card { background: #fff; padding: 20px; margin-bottom: 18px; }
.st-card h2 { margin: 0 0 14px; font-size: 19px; font-weight: 600; color: #4a4a4a; }
.st-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-search { width: 100%; max-width: 340px; min-height: 44px; margin-bottom: 14px; padding: 0 18px; background: #fff; border: 1px solid #cfcfcf; border-radius: 22px; }
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.st-stat { padding: 16px 18px; background: #fff; border-top: 3px solid var(--green); }
.st-stat b { display: block; font-size: 25px; font-weight: 600; color: #4a4a4a; font-variant-numeric: tabular-nums; }
.st-stat span { color: var(--muted); font-size: 12.5px; }
.st-scroll { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th { padding: 10px 12px 10px 0; text-align: left; color: #555; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-table a { color: var(--green-dark); text-decoration: none; }
.st-table a:hover { text-decoration: underline; }
.st-thumb { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--line); }
.st-num { font-variant-numeric: tabular-nums; }

/* Kopf einer Galerie */
.st-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.st-head-photo { flex: none; width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #e4e4e4; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; text-align: center; }
.st-head h1 { margin: 0; font-size: 26px; font-weight: 600; color: #4a4a4a; overflow-wrap: anywhere; }
.st-head small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.st-tabs { display: flex; gap: 30px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.st-tabs > button { flex: none; min-height: 50px; color: #5f5f5f; font-size: 16px; border-bottom: 2px solid transparent; }
.st-tabs > button:hover { color: var(--green-dark); }
.st-tabs > button.on { color: var(--green-dark); border-color: var(--green); }
.st-area { background: #fff; padding: 18px 22px 26px; }

/* Alben */
.st-album { padding: 0 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.st-album-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 10px; }
.st-album-name { flex: 0 1 240px; min-width: 120px; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 20px; background: transparent; font-weight: 500; }
.st-album-name:hover, .st-album-name:focus { border-color: #cfcfcf; }
.st-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: #555; cursor: pointer; }
.st-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 18px; margin: 0; border-radius: 9px; background: #8a8a8a; position: relative; cursor: pointer; transition: background .15s; }
.st-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.st-switch input:checked { background: var(--green); }
.st-switch input:checked::after { left: 18px; }
.st-select { min-height: 40px; padding: 0 12px; background: #fff; border: 1px solid #cfcfcf; border-radius: 20px; font-size: 13px; color: var(--green-dark); }
.st-text-btn { min-height: 44px; padding: 0 8px; color: var(--green-dark); font-size: 13px; }
.st-text-btn:hover { text-decoration: underline; }
.st-text-btn.danger { color: var(--danger); }
.st-adds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.st-add { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 3 / 2; padding: 8px; background: #ececec; border: 1px solid #d9d9d9; border-radius: 8px; color: #8d8d8d; font-size: 13px; font-weight: 600; text-align: center; overflow: hidden; }
button.st-add:hover, .st-add.over { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }
.st-add b { font-size: 26px; font-weight: 400; line-height: 1; }
.st-add img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-add em { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 9px; background: #fff; color: #555; font-size: 10.5px; font-style: normal; font-weight: 500; }
.st-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-progress progress { flex: 1; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 3px; overflow: hidden; background: var(--line); }
.st-progress progress::-webkit-progress-bar { background: var(--line); }
.st-progress progress::-webkit-progress-value { background: var(--green); }
.st-progress progress::-moz-progress-bar { background: var(--green); }
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 620px; overflow: auto; padding-right: 2px; }
.st-photo { position: relative; aspect-ratio: 3 / 2; background: #ececec; overflow: hidden; border-radius: 4px; }
.st-photo img, .st-photo video { width: 100%; height: 100%; object-fit: contain; }
.st-photo-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; color: var(--muted); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.st-photo-state.bad { color: var(--danger); }
.st-photo-tools { position: absolute; left: 4px; right: 4px; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; gap: 2px; padding: 3px; border-radius: 14px; background: #fff; opacity: 0; transition: opacity .12s; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.st-photo:hover .st-photo-tools, .st-photo:focus-within .st-photo-tools { opacity: 1; }
.st-photo-tools button { flex: 1; min-height: 34px; font-size: 11px; color: var(--green-dark); border-radius: 10px; }
.st-photo-tools button:hover { background: var(--green-soft); }
.st-photo-tools button.danger { color: var(--danger); }
.st-badge { position: absolute; left: 4px; top: 4px; padding: 1px 7px; border-radius: 9px; background: var(--green); color: #fff; font-size: 10.5px; }
@media (hover: none) { .st-photo-tools { opacity: 1; top: auto; bottom: 4px; transform: none; } }

/* Formulare */
.st-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; max-width: 880px; }
.st-field { display: block; font-size: 13.5px; font-weight: 500; color: #4f4f4f; }
.st-field input, .st-field select, .st-field textarea { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 16px; background: #fff; border: 1px solid #cfcfcf; border-radius: 22px; color: #3f3f3f; font-size: 14px; font-weight: 400; }
.st-field textarea { min-height: 110px; border-radius: 16px; resize: vertical; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.st-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; max-width: 880px; margin: 18px 0; }
.st-sel { padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-sel-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 10px; }
.st-sel-name { font-size: 16px; font-weight: 600; }
.st-log { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.st-log li { display: flex; gap: 12px; padding: 9px 12px; margin-bottom: 4px; background: #f6f6f6; border-radius: 8px; }
.st-log time { flex: none; width: 128px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-qr { width: 190px; height: 190px; }
.st-two { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 26px; }
.st-login { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 380px; margin: 0 auto; padding: 24px; }
.st-login h1 { margin: 0 0 18px; font-size: 26px; font-weight: 600; color: #4a4a4a; }
.st-login input { width: 100%; min-height: 46px; margin-bottom: 10px; padding: 0 18px; background: #fff; border: 1px solid #cfcfcf; border-radius: 23px; font-size: 16px; }

/* Design-Reiter */
.st-design { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 28px; align-items: start; }
.st-dsec { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.st-dsec:last-child { border: 0; }
.st-dsec h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #4a4a4a; }
.st-tpls { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.tpl { flex: none; width: 138px; scroll-snap-align: start; text-align: left; font-size: 12px; color: #555; }
.tpl-card { position: relative; display: block; height: 90px; margin-bottom: 5px; overflow: hidden; border-radius: 7px; box-shadow: inset 0 0 0 1px #d8d8d8; background-size: cover; background-position: center; }
.tpl.on .tpl-card { outline: 2px solid var(--green); outline-offset: 1px; }
.tpl-photo { position: absolute; background-size: cover; background-position: center; }
.tpl-name { position: absolute; font-size: 9px; font-family: var(--tpl-font); }
.st-swatches { display: inline-flex; gap: 4px; }
.st-swatches i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.st-palettes { display: grid; gap: 6px; }
.st-palette { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; border: 1px solid #cfcfcf; border-radius: 22px; background: #fff; font-size: 13px; }
.st-palette:hover { border-color: var(--green); }
.st-palette.on { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.st-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; font-size: 12px; }
.st-colors input { display: block; width: 100%; height: 40px; margin-top: 4px; padding: 2px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; }
.st-seg { display: flex; padding: 3px; border: 1px solid #cfcfcf; border-radius: 24px; }
.st-seg button { flex: 1; min-height: 40px; border-radius: 20px; font-size: 13px; color: #6a6a6a; }
.st-seg button.on { background: var(--green-soft); color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); }
.st-preview { position: sticky; top: 66px; padding: 14px; background: #ececec; border-radius: 16px; }
.st-preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.st-preview-frame { position: relative; overflow: hidden; background: #fff; margin: 0 auto; }
.st-preview-frame iframe { display: block; border: 0; transform-origin: 0 0; background: #fff; }

@media (max-width: 900px) {
  .st-design, .st-two { grid-template-columns: 1fr; }
  .st-preview { position: static; }
}
@media (max-width: 720px) {
  .st-rail { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 54px; flex-direction: row; justify-content: space-around; padding: 0; border-top: 1px solid var(--line); border-right: 0; }
  .st-main, .st-crumbs { margin-left: 0; }
  .st-main { padding: 16px 12px 90px; }
  .st-area { padding: 14px 12px 20px; }
  .st-table .opt { display: none; }
  .st-log time { width: 92px; }
  .st-tabs { gap: 20px; padding: 0 12px; }
  .st-tabs > button { font-size: 14px; }
}

/* Statistiken */
.st-stat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.st-feed { list-style: none; margin: 0; padding: 0; max-height: 720px; overflow: auto; }
.st-feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; margin-bottom: 6px; background: #f6f6f6; border-radius: 8px; font-size: 13px; }
.st-feed b { font-weight: 600; }
.st-feed time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-feed span { color: #5d5d5d; overflow-wrap: anywhere; }
.st-feed img { width: 56px; height: 38px; object-fit: cover; border-radius: 4px; justify-self: end; }
.st-chart { display: block; width: 100%; height: auto; overflow: visible; }
.st-chart text { font-size: 11px; fill: #8a8a8a; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.st-chip { min-height: 44px; padding: 0 14px; border-radius: 22px; background: #f6f6f6; color: #5d5d5d; font-size: 13px; }
.st-chip.on { background: var(--chip); color: #fff; }
.st-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 18px; font-size: 13px; }
.st-totals b { display: inline-block; min-width: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-top-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.st-top-photos div { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #ececec; }
.st-top-photos img { width: 100%; height: 100%; object-fit: cover; }
.st-top-photos em { position: absolute; right: 4px; bottom: 4px; padding: 0 6px; border-radius: 8px; background: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.st-filter { min-height: 40px; }
@media (max-width: 900px) { .st-stat-grid { grid-template-columns: 1fr; } }

/* Leiste, Kopf und Fuß */
.st-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #6a6a6a; }
.st-burger svg, .st-top-opt svg, .st-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.st-rail a span, .st-rail button span { display: none; }
.st-rail a.on { background: var(--green-soft); }
.st-shell.wide .st-rail { width: 200px; align-items: stretch; padding-inline: 6px; }
.st-shell.wide .st-rail a, .st-shell.wide .st-rail button { width: auto; justify-content: flex-start; gap: 12px; padding: 0 10px; font-size: 13.5px; text-decoration: none; }
.st-shell.wide .st-rail a span, .st-shell.wide .st-rail button span { display: inline; }
.st-shell.wide .st-main, .st-shell.wide .st-crumbs, .st-shell.wide .st-foot { margin-left: 200px; }
.st-foot { margin-left: 50px; padding: 14px 22px 22px; color: var(--muted); font-size: 12px; }

/* Symbolknöpfe, Aktionen, Blättern */
.st-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; color: var(--green-dark); text-decoration: none; }
.st-icon:hover { background: var(--green-soft); }
.st-icon.danger { color: var(--danger); }
.st-icon.danger:hover { background: #fbeceb; }
.st-icon.dim { color: #b5b5b5; }
.st-actions { display: flex; gap: 1px; }
.st-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.st-tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 500; }
.st-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.st-full { width: 100%; margin-top: 12px; }
.st-narrow { max-width: 780px; }
.st-text-link { display: inline-flex; align-items: center; min-height: 34px; color: var(--green-dark); font-size: 12.5px; }
.st-text-btn:disabled { color: #bbb; cursor: default; text-decoration: none; }
.st-card > .st-search { display: block; margin-top: 10px; margin-bottom: 8px; }
.st-row .st-search { margin-bottom: 0; flex: 1 1 200px; }
.st-card .st-row h2 { margin-bottom: 0; }

/* Galerie als Kacheln */
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.st-gcard { display: flex; flex-direction: column; gap: 4px; }
.st-gcard img, .st-gcard-empty { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #ececec; color: var(--muted); font-size: 12px; }
.st-gcard-title { margin-top: 4px; color: var(--green-dark); font-weight: 500; text-decoration: none; }
.st-gcard small { color: var(--muted); }

/* Bilder-Reiter */
.st-photo-head { margin-bottom: 10px; }
.st-bulk { position: sticky; top: 60px; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--green-soft); border-radius: 14px; }
.st-add-album { width: 100%; min-height: 62px; border: 2px dashed #cfcfcf; border-radius: 8px; color: var(--green-dark); font-weight: 600; }
.st-add-album:hover { background: var(--green-soft); border-color: var(--green); }
.st-add-show { color: var(--green-dark); }
.st-add-show svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.st-add-show small { font-weight: 400; font-size: 11px; }
.st-photos { max-height: none; overflow: visible; }
.st-photo.off img { opacity: .4; }
.st-photo.picked { outline: 3px solid var(--green); outline-offset: -3px; }
.st-photo.dragging { opacity: .4; }
.st-photo[draggable="true"] { cursor: grab; }
.st-photo-tools { left: 4px; right: 4px; top: auto; bottom: 4px; transform: none; flex-wrap: wrap; border-radius: 10px; }
.st-photo-tools .st-icon { width: 26px; height: 26px; min-height: 0; flex: none; border-radius: 7px; }
.st-photo-tools .st-icon svg { width: 15px; height: 15px; }
.st-check { position: absolute; right: 2px; top: 2px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; opacity: 0; cursor: pointer; }
.st-check input { width: 18px; height: 18px; accent-color: var(--green); }
.st-photo:hover .st-check, .st-photo.picked .st-check, .st-check:focus-within { opacity: 1; }
@media (hover: none) { .st-check { opacity: 1; } }

/* Fenster */
.sheet.st-wide { max-width: 860px; }
.sheet .st-field input, .sheet .st-field select { margin-top: 6px; }
.st-info-row { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.st-info-row span { color: var(--muted); }
.st-info-row b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.st-crop { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto 12px; line-height: 0; user-select: none; touch-action: none; }
.st-crop img { display: block; max-width: 100%; max-height: 60svh; }
.st-crop-box { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); border: 1px solid #fff; cursor: move; }
.st-crop { overflow: hidden; }
.st-crop-box i { position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--green); }
.st-crop-box i[data-corner="tl"] { left: -11px; top: -11px; cursor: nwse-resize; }
.st-crop-box i[data-corner="tr"] { right: -11px; top: -11px; cursor: nesw-resize; }
.st-crop-box i[data-corner="bl"] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.st-crop-box i[data-corner="br"] { right: -11px; bottom: -11px; cursor: nwse-resize; }

/* Einstellungen einer Galerie */
.st-settings { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 22px; }
.st-settings-form .st-field { margin-bottom: 12px; }
.st-settings-form .st-checks { display: block; margin: 10px 0; }
.st-settings-form .st-switch { display: flex; min-height: 34px; }
.st-side { padding-left: 22px; border-left: 1px solid var(--line); }
.st-customers { list-style: none; margin: 12px 0; padding: 0; }
.st-customers li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.st-customers li > div { flex: 1 1 160px; }
.st-customers small { display: block; color: var(--muted); }
@media (max-width: 900px) { .st-settings { grid-template-columns: 1fr; } .st-side { padding-left: 0; border-left: 0; } }

/* Verschicken */
.st-send { display: grid; grid-template-columns: minmax(200px, 260px) minmax(240px, 1fr) minmax(280px, 1.2fr); gap: 20px; align-items: start; }
.st-send-share { display: flex; flex-direction: column; gap: 8px; }
.st-send-share .st-qr { align-self: center; }
.st-send-mail .st-field { margin-bottom: 10px; }
.st-mail { padding: 26px 22px; text-align: center; border-left: 1px solid var(--line); }
.st-mail-logo { display: block; max-width: 200px; max-height: 90px; margin: 0 auto 26px; }
.st-mail-cover { display: block; width: 170px; height: 170px; object-fit: cover; margin: 0 auto 12px; border-radius: 10px; }
.st-mail h3 { margin: 0 0 22px; font-size: 16px; font-weight: 600; }
.st-mail-text { text-align: left; font-size: 14px; }
.st-mail-text p { margin: 0 0 12px; overflow-wrap: anywhere; }
.st-mail-button { display: inline-block; margin-top: 12px; padding: 12px 22px; background: #000; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
@media (max-width: 1100px) { .st-send { grid-template-columns: 1fr; } .st-mail { border-left: 0; } }

/* Einstellungen allgemein */
.st-subtabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; font-size: 13.5px; }
.st-subtabs a, .st-subtabs button { display: inline-flex; align-items: center; min-height: 38px; color: #5f5f5f; text-decoration: none; }
.st-subtabs a:hover, .st-subtabs button:hover { color: var(--green-dark); }
.st-subtabs .on { color: var(--green-dark); font-weight: 600; }
.st-two-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.st-mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.st-mcard { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.st-mcard-img { display: flex; align-items: center; justify-content: center; height: 130px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-align: center; }
.st-mcard-img.dark { background: #5b5b5b; color: #fff; }
.st-mcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-mark-text { font-size: 18px; overflow-wrap: anywhere; }
.st-mcard-row { display: flex; align-items: center; gap: 2px; }
.st-mcard-add { align-items: center; justify-content: center; min-height: 130px; border: 2px dashed #d0d0d0; border-radius: 4px; color: var(--green-dark); font-weight: 500; }
.st-mcard-add:hover { background: var(--green-soft); border-color: var(--green); }
.st-mcard-add b { font-size: 28px; font-weight: 400; line-height: 1; }
.st-logo-row { display: grid; grid-template-columns: minmax(150px, 1fr) 120px minmax(190px, 1.3fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.st-logo-row small { display: block; color: var(--muted); font-size: 12px; }
.st-logo-preview { display: flex; align-items: center; justify-content: center; height: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.st-logo-preview.dark { background: #4f4f4f; }
.st-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 720px) { .st-logo-row { grid-template-columns: 1fr; } }
.st-wm { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); gap: 20px; align-items: start; }
.st-wm form .st-field { margin-bottom: 10px; }
.st-wm input[type="range"] { padding: 0; min-height: 28px; border: 0; background: none; accent-color: var(--green); }
.st-wm input[type="color"] { padding: 3px 8px; }
.st-wm-preview { display: block; width: 100%; border-radius: 6px; background: #ddd; min-height: 180px; }
.st-wm-grid { display: grid; grid-template-columns: repeat(3, 34px); gap: 2px; margin-top: 6px; }
.st-wm-grid button { width: 34px; height: 34px; background: #e2e2e2; }
.st-wm-grid button:hover { background: #cfcfcf; }
.st-wm-grid button.on { background: var(--green); }
@media (max-width: 720px) { .st-wm { grid-template-columns: 1fr; } }
.st-preset-albums .st-row { margin-bottom: 6px; }
.st-notice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.st-notice .st-field { margin-bottom: 10px; }
@media (max-width: 900px) { .st-notice { grid-template-columns: 1fr; } }
.st-phone { width: 250px; height: 500px; margin: 0 auto; padding: 12px; border-radius: 34px; background: #111; }
.st-phone-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 14px; overflow: auto; border-radius: 24px; background: #fff; text-align: center; font-size: 12.5px; }
.st-phone-screen h4 { margin: 0; padding: 10px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.st-phone-screen p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.st-phone-screen img { width: 100%; }
.st-phone-btn { align-self: center; padding: 8px 16px; border-radius: 18px; background: var(--green); color: #fff; }

/* Übersicht und Hilfe */
.st-ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.st-ticks li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.st-ticks b { margin-left: auto; font-variant-numeric: tabular-nums; }
.st-tick { color: var(--green); font-weight: 700; }
.st-meter { height: 10px; margin-bottom: 8px; border-radius: 5px; background: #ececec; overflow: hidden; }
.st-meter i { display: block; height: 100%; background: var(--green); }
.st-help { padding: 12px 0; border-bottom: 1px solid var(--line); }
.st-help h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; }
.st-help p { margin: 0; color: #5d5d5d; }
@media (max-width: 720px) {
  .st-foot { margin-left: 0; padding-bottom: 70px; }
  .st-burger, .st-top-opt { display: none; }
  .st-shell.wide .st-rail { width: auto; }
  .st-shell.wide .st-main, .st-shell.wide .st-crumbs, .st-shell.wide .st-foot { margin-left: 0; }
  .st-rail a, .st-rail button { width: 40px; }
}
.st-area .st-title { font-size: 19px; margin-bottom: 12px; }
.sheet { background: #fff; color: var(--fg); }
.sheet .btn { background: var(--green); color: #fff; }
.sheet .btn:hover { background: var(--green-dark); }
.sheet .btn.ghost { background: #fff; color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); }
.sheet .btn.ghost:hover { background: var(--green-soft); }
.st-film-choice { display: grid; gap: 12px; padding: 4px 0 8px; }
.st-film-choice .btn { width: 100%; justify-content: center; border-radius: 999px; }
.st-film-actions { justify-content: flex-end; }
.sheet label.st-switch { display: flex; margin: 4px 0; }
.sheet .st-switch input { display: block; width: 34px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 9px; background: #8a8a8a; }
.sheet .st-switch input:checked { background: var(--green); }
.sheet input[type="range"] { padding: 0; min-height: 28px; border: 0; background: none; }
.sheet .st-subtabs button { min-height: 38px; }

/* ===== Scrappbook 1:1 (gemessen 05.11.2026) ===== */
.sli { font-family: "simple-line-icons"; font-style: normal; font-weight: 400; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; }
.fa { display: inline-block; font-family: "FontAwesome"; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }
body[data-view="studio"] { color: #5d5d5d; }
.st-top { height: 55px; gap: 0; padding: 0; border-bottom: 1px solid #d8dbe0; }
.st-mark { width: 46px; height: 48px; margin-right: 2px; background: none; border-radius: 0; }
.st-mark span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: #5c8762; color: #fff; font: 400 19px/1 "Cormorant Garamond", serif; }
.st-burger { width: 48px; height: 32px; margin-right: 0; }
.st-burger-icon { display: block; width: 24px; height: 24px; margin: 0 auto; background: no-repeat center/100% url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2373818f' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }
.st-top .st-green:first-of-type { margin-left: 0; }
.st-top > * + .st-green, .st-top > .st-outline { margin-left: 0; }
.st-top-opt { margin-right: 12px; }
.st-top-cta { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.st-green, .st-outline { min-height: 35px; height: 35px; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 400; gap: 0; box-shadow: none; }
.st-green { border: 1px solid #5c8762; }
.st-outline { border: 1px solid #5c8762; box-shadow: none; color: #5c8762; background: transparent; }
.st-outline.danger { border-color: var(--danger); box-shadow: none; }
.st-green .fa, .st-outline .fa, .st-green .sli, .st-outline .sli { margin-right: 5px; font-size: 14px; }
.st-rail { top: 55px; width: 50px; padding: 0; gap: 0; border-right: 0; }
.st-rail ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.st-rail a { display: flex; align-items: center; justify-content: center; width: 50px; height: 45px; border-radius: 0; color: #73818f; text-decoration: none; }
.st-rail a .sli { font-size: 18px; }
.st-rail a:hover { background: #f6f6f6; color: #5c8762; }
.st-rail a.on { background: #fff; color: #5c8762; }
.st-shell.wide .st-rail a { width: auto; justify-content: flex-start; gap: 14px; padding: 0 16px; }
.st-crumbs { display: flex; list-style: none; margin: 0 0 0 50px; padding: 12px 16px; gap: 0; height: 45px; align-items: center; background: #fff; font-size: 14px; color: #5d5d5d; }
.st-crumbs li.sep { padding: 0 8px; color: #8a93a2; }
.st-crumbs a { color: #5c8762; }
.st-main { padding: 26px 30px 90px; }
.st-foot { padding: 14px 30px 22px; }

/* Galerie-Kopf und Reiter */
.st-head h1 { font-size: 28px; font-weight: 600; color: #5d5d5d; }
.st-head small { font-size: 13px; color: #9a9a9a; }
.st-tabs { gap: 0; padding: 0; background: transparent; border-bottom: 0; box-shadow: inset 0 -3px 0 #e5e5e5; padding-bottom: 3px; }
@media (min-width: 1000px) { .st-tabs { overflow: visible; } }
.st-tabs > button { min-height: 0; padding: 12px 8px 18px; margin: 0 0 -3px 48px; font-size: 19px; font-weight: 300; color: #5d5d5d; border-bottom: 3px solid transparent; border-radius: 4px 4px 0 0; }
.st-tabs > button:first-child { margin-left: 48px; }
.st-tabs > button.on { color: #5c8762; font-weight: 400; border-bottom-color: #5c8762; }
.st-area { background: #fff; padding: 30px 48px 40px; border-radius: 0 0 22px 22px; }

/* Design-Reiter */
.st-design { grid-template-columns: 397px minmax(0, 1fr); gap: 48px; }
.dz-sec { padding: 0 0 20px; margin: 0 0 30px; border-bottom: 1px solid #e5e5e5; }
.dz-sec:last-child { border-bottom: 0; }
.dz-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dz-ico { flex: none; width: 22px; height: 22px; fill: none; stroke: #5d5d5d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dz-titles { flex: 1; }
.dz-titles h2 { margin: 0; font-size: 19px; font-weight: 500; line-height: 23px; color: #5d5d5d; }
.dz-titles span { display: block; margin-top: 2px; font-size: 13px; color: #9a9a9a; }
.dz-reset { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -3px -7px 0 0; }
.dz-reset .dz-ico { width: 14px; height: 14px; stroke: #5c8762; stroke-width: 2.4; }
.dz-carousel { display: flex; align-items: center; gap: 4px; }
.dz-arrow { flex: none; width: 24px; height: 100px; color: #808080; font-size: 13px; }
.dz-arrow:hover { color: #5c8762; }
.dz-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dz-track::-webkit-scrollbar { display: none; }
.tpl { flex: none; width: 160px; padding: 5px; scroll-snap-align: start; text-align: left; }
.tpl .tpl-card { position: relative; display: block; width: 150px; height: 100px; margin: 0; overflow: hidden; border: 1px solid #ccc; border-radius: 8px; box-shadow: none; }
.tpl.on .tpl-card { outline: 0; border-color: #5c8762; box-shadow: 0 0 0 1px #5c8762; }
.tpl-check { position: absolute; top: 5px; right: 5px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #5c8762; color: #fff; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.tpl-label { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #5d5d5d; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-select { position: relative; }
.dz-control { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 2px 14px 2px 18px; background: #fff; border: 1px solid #ccc; border-radius: 22px; color: #333; font-size: 15px; text-align: left; }
.dz-select.open .dz-control, .dz-control:focus-visible { border-color: #5c8762; box-shadow: 0 0 0 1px #5c8762; outline: 0; }
.dz-value { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.dz-chevron { width: 20px; height: 20px; stroke: #1d1d1d; stroke-width: 2.2; }
.dz-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: 300px; overflow: auto; padding: 4px 0; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 4px 11px rgba(0,0,0,.1); }
.dz-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 18px; text-align: left; color: #333; font-size: 15px; }
.dz-option:hover { background: #f6f6f6; }
.dz-option.on { background: #f1f1f1; }
.dz-dots { display: inline-flex; gap: 8px; flex: none; }
.dz-dots i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; }
.dz-palette .dz-control { min-height: 52px; padding-left: 10px; }
.dz-palette .dz-dots i { width: 30px; height: 30px; }
.dz-name { color: #333; font-size: 15px; white-space: nowrap; }
.dz-tick { margin-left: auto; color: #5d5d5d; font-size: 13px; }
.dz-font { font-size: 15px; color: #333; }
.dz-fonts .dz-option { min-height: 40px; }
.dz-samples { display: inline-flex; gap: 14px; flex: none; }
.dz-samples svg { width: 22px; height: 22px; fill: none; stroke: #5d5d5d; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dz-samples.outline svg { stroke-width: 1.05; }
.dz-samples.duotone svg { fill: rgba(93,93,93,.18); }
.dz-samples.hand svg { stroke-width: 1.3; transform: rotate(-3deg) skewX(-4deg); }
.dz-switch { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-top: 10px; font-size: 14px; color: #5d5d5d; cursor: pointer; }
.dz-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 29px; height: 16px; margin: 0; border: 1px solid #7b7b7b; border-radius: 28px; background: #7b7b7b; position: relative; cursor: pointer; }
.dz-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left .15s; }
.dz-switch input:checked { background: #5c8762; border-color: #5c8762; }
.dz-switch input:checked::after { left: 15px; }
.dz-hint { color: #5c8762; font-size: 13px; cursor: help; }
.dz-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 16px; }
.dz-color > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #5d5d5d; }
.dz-color-row { display: flex; align-items: center; gap: 8px; }
.dz-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; }
.dz-color-input { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; height: 36px; padding: 0 10px 0 14px; border: 1px solid #ccc; border-radius: 20px; }
.dz-color-input input:not([type="color"]) { flex: 1; min-width: 0; border: 0; padding: 0; font-size: 13px; color: #7b7b7b; background: none; }
.dz-pen { color: #5d5d5d; font-size: 12px; }
.dz-picker { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-seg { display: flex; padding: 4px; border: 1px solid #ccc; border-radius: 28px; }
.dz-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 6px 12px; border: 2px solid transparent; border-radius: 24px; color: #9a9a9a; font-size: 15px; font-weight: 400; }
.dz-seg button .dz-ico { width: 20px; height: 20px; stroke: currentColor; }
.dz-seg button.on { background: rgba(92,135,98,.14); border-color: #5c8762; color: #5d5d5d; font-weight: 500; }
.st-preview { top: 70px; padding: 24px 28px; background: #f1f1f1; border-radius: 22px; }
.st-preview-head { gap: 12px; margin-bottom: 12px; }
.st-preview-title { font-size: 19px; font-weight: 500; color: #5d5d5d; }
.dz-refresh { color: #5d5d5d; font-size: 17px; }
.dz-device { width: 34px; height: 30px; color: #d2d2d2; font-size: 20px; }
.dz-device.on { color: #5d5d5d; }
.st-preview-dots { display: flex; gap: 5px; margin: 0 0 6px 6px; }
.st-preview-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c8c8c8; }
.st-preview-frame { border-radius: 0; }
@media (max-width: 1100px) { .st-design { grid-template-columns: 1fr; } .st-area { padding: 20px 16px; } .st-tabs button, .st-tabs > button:first-child { margin-left: 22px; font-size: 16px; } }

/* ===== Scrappbook 1:1, Teil 2: Reiter und Seiten ===== */
.st-small { height: 28px; min-height: 28px; padding: 3px 10px; font-size: 12.5px; border-radius: 16px; }
.st-head { gap: 16px; margin-bottom: 24px; }
.st-head-photo { width: 60px; height: 60px; border-radius: 4px; }
.st-head h1 { margin: 0 0 2px; line-height: 1.25; }
.st-head-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-head-line > div { margin-right: 6px; }
.st-tabs { align-items: center; background: #fff; border-radius: 22px 22px 0 0; padding-right: 14px; }
.st-tabs-extra .st-select { height: 35px; min-height: 35px; min-width: 210px; border-radius: 20px; color: #5d5d5d; }
.st-area { border-radius: 0 0 22px 22px; }
.st-area-photos, .st-area-split, .st-area-pad { background: transparent; padding: 0; }
.st-area-pad { background: #fff; padding: 18px 16px 30px; }
.st-panel { background: #fff; padding: 15px; }
.st-panel-title { margin: 0 0 12px; font-size: 20px; font-weight: 600; color: #5d5d5d; }
.st-area-split { display: grid; grid-template-columns: 487px minmax(0, 1fr); gap: 15px; }
.st-area-stats { display: block; }
.st-help-link { display: inline-flex; align-items: center; min-height: 28px; color: #5c8762; font-size: 14px; text-decoration: none; }
.st-help-link:hover { text-decoration: underline; }
.st-green-link { color: #5c8762; padding: 0; }
.st-fa { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; color: #5c8762; font-size: 14px; text-decoration: none; }
.st-fa:hover { color: #4b6f50; }
.st-fa.off { color: #9a9a9a; }
.st-fa.on { color: #5c8762; }
.st-green-fa { font-size: 17px; }

/* Bilder */
.st-album { background: #fff; padding: 10px 15px 15px; margin-bottom: 15px; border: 0; }
.st-album-head { gap: 10px; margin-bottom: 12px; font-size: 13px; color: #5d5d5d; }
.st-album-edit { display: inline-flex; align-items: center; gap: 6px; color: #5d5d5d; font-size: 13px; }
.st-album-edit .fa { color: #5c8762; font-size: 12px; }
.st-album-title { font-size: 13px; }
.st-album-name { height: 28px; min-height: 28px; font-size: 13px; }
.st-album-count { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; }
.st-album-count .fa { color: #5c8762; font-size: 14px; margin-right: 4px; }
.st-inline-switch { margin: 0; min-height: 26px; font-size: 13px; }
.st-album-head .st-select { height: 28px; min-height: 28px; font-size: 12.5px; color: #5d5d5d; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, 229px); gap: 10px; }
.st-tile { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; overflow: hidden; background: #ededed; border: 1px solid #c8ced3; border-radius: 5px; }
.st-tile img, .st-tile video { width: 100%; height: 100%; object-fit: contain; }
.st-tile-photo { cursor: pointer; }
.st-tile-photo.off img { opacity: .4; }
.st-tile-photo.picked { box-shadow: 0 0 0 3px #5c8762; border-color: #5c8762; }
.st-tile-photo.dragging { opacity: .4; }
.st-tile-add { flex-direction: column; gap: 10px; color: #8a8a8a; }
.st-tile-add:hover, .st-tile-add.over { background: #e6ece7; border-color: #5c8762; }
.st-tile-icon { display: inline-flex; align-items: center; gap: 4px; color: #dadada; font-size: 34px; }
.st-tile-icon .fa:first-child { font-size: 30px; }
.st-tile-add b { font-size: 13px; font-weight: 600; color: #7d7d7d; }
.st-tile-add small { font-size: 11px; }
.st-corner { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #fff; font-size: 16px; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.st-corner.tl { left: 4px; top: 4px; }
.st-corner.tr { right: 4px; top: 4px; }
.st-corner.bl { left: 4px; bottom: 4px; width: 24px; height: 22px; border-radius: 3px; background: #fff; color: #5d5d5d; text-shadow: none; font-size: 13px; }
.st-corner.tr.on { color: #f5c518; }
.st-tile-tools { position: absolute; z-index: 2; right: 4px; bottom: 4px; display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: #fff; opacity: 0; transition: opacity .12s; }
.st-tile-tools .st-corner { position: static; width: 24px; height: 22px; color: #5d5d5d; text-shadow: none; font-size: 13px; }
.st-tile-tools .st-corner.on { color: #5c8762; }
.st-tile-tools .st-corner.dim { color: #bbb; }
.st-tile-photo:hover .st-tile-tools, .st-tile-photo:focus-within .st-tile-tools { opacity: 1; }
@media (hover: none) { .st-tile-tools { opacity: 1; } }
.st-tile .st-badge { top: auto; bottom: 30px; left: 4px; }
.st-more { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 10px; color: #5d5d5d; font-size: 14px; }
.st-more .fa { color: #5d5d5d; }
.st-add-album { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 70px; margin-top: 10px; border: 3px dotted #5c8762; border-radius: 0; color: #5c8762; font-size: 20px; font-weight: 400; background: transparent; }
.st-add-album:hover { background: rgba(92,135,98,.06); }
.st-fixed-add { position: fixed; z-index: 25; left: 66px; bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.st-bulk { top: 64px; }
.st-focus { position: relative; width: fit-content; max-width: 100%; margin: 0 auto 14px; cursor: crosshair; line-height: 0; }
.st-focus img { display: block; max-width: 100%; max-height: 60svh; }
.st-focus-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(0, 159, 227, .9); box-shadow: 0 0 0 3px #fff, 0 0 8px rgba(0,0,0,.4); pointer-events: none; }
.st-sheet-foot { justify-content: flex-end; padding-top: 12px; border-top: 1px solid #e5e5e5; }

/* Einstellungen */
.st-fg { margin-bottom: 10px; }
.st-label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 500; color: #5d5d5d; }
.st-ig { display: flex; align-items: stretch; height: 35px; }
.st-ig input, .st-ig select { flex: 1; min-width: 0; height: 35px; padding: 6px 12px 6px 10px; border: 1px solid #ccc; border-right: 0; border-radius: 20px 0 0 20px; background: #fff; color: #7b7b7b; font-size: 14px; font-weight: 300; }
.st-ig input:focus, .st-ig select:focus { outline: 0; border-color: #5c8762; }
.st-ig-post, .st-ig-pre { display: inline-flex; align-items: center; justify-content: center; width: 36px; border: 1px solid #ccc; background: #fff; color: #5d5d5d; font-size: 13px; }
.st-ig-post { border-left: 0; border-radius: 0 20px 20px 0; cursor: help; }
.st-ig-pre { border-right: 0; border-radius: 0; background: #f0f3f5; }
.st-ig-pre + input { border-right: 1px solid #ccc; border-radius: 0 20px 20px 0; }
.st-list-card .st-ig { max-width: 447px; margin: 10px 0; }
.st-switch-row { margin: 0; min-height: 31px; }
.st-danger-zone { display: flex; gap: 14px; margin-top: 18px; padding-top: 10px; border-top: 1px solid #eee; }
.st-panel-form .st-text-btn { min-height: 28px; padding: 0; font-size: 13px; }

/* Auswahlen */
.st-sel-cards { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 14px; }
.st-sel-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 128px; min-height: 140px; padding: 26px 8px 10px; border: 1px solid #e3e3e3; background: #fff; color: #5d5d5d; font-size: 11.5px; text-align: center; cursor: pointer; }
.st-sel-card.on { background: #f4f4f4; border-color: #cfcfcf; }
.st-sel-card b { font-size: 12px; font-weight: 600; }
.st-sel-card em { font-size: 10px; color: #777; }
.st-sel-card small { color: #9a9a9a; font-size: 10px; }
.st-sel-corner { position: absolute; left: 8px; top: 6px; color: #5d5d5d; font-size: 13px; }
.st-sel-count { position: absolute; right: 8px; top: 6px; font-size: 11px; color: #5d5d5d; }
.st-sel-hand { font-size: 34px; color: #1d1d1d; margin-bottom: 6px; }
.st-sel-avatar { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; object-fit: cover; background: #e4e4e4; }
.st-sel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.st-sel-tools .st-select { height: 28px; min-height: 28px; font-size: 12.5px; color: #5d5d5d; }
.st-sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 460px; overflow: auto; padding: 2px; }
.st-sel-photo { position: relative; aspect-ratio: 3 / 2; background: #ededed; border: 1px solid #c8ced3; border-radius: 4px; overflow: hidden; }
.st-sel-photo img { width: 100%; height: 100%; object-fit: contain; }
.st-sel-heart { position: absolute; left: 6px; top: 4px; color: #e5484d; font-size: 14px; }

/* Statistiken */
.st-stat-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 6px; }
.st-stat-grid .st-panel { min-height: 600px; }
.st-feed { max-height: 560px; padding-right: 6px; }
.st-feed li { padding: 8px 10px; margin-bottom: 8px; background: #f2f2f2; border-radius: 4px; font-size: 12px; }
.st-feed b { font-size: 12px; }
.st-feed b .fa { color: #5c8762; width: 14px; }
.st-feed span { color: #5d5d5d; }
.st-filter { display: inline-flex; align-items: center; gap: 6px; color: #9a9a9a; font-size: 13px; }
.st-filter select { border: 0; background: transparent; color: #9a9a9a; font-size: 13px; }
.st-chips { gap: 6px; margin: 8px 0 22px; }
.st-chip { min-height: 30px; padding: 0 12px; border-radius: 16px; background: #f0f0f0; color: #5d5d5d; font-size: 12px; }
.st-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; font-size: 12px; color: #5d5d5d; }
.st-chart text { font-size: 10px; fill: #9a9a9a; }

/* Dashboard */
.st-dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.st-dash-stat { padding: 14px 10px 12px; background: #fff; border-bottom: 3px solid #5c8762; text-align: center; font-size: 13px; color: #5d5d5d; }
.st-dash-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #5d5d5d; }
.st-dash { background: #fff; padding: 14px 16px 20px; }
.st-dash .st-dash-stats { background: transparent; }
@media (max-width: 720px) { .st-dash-stats { grid-template-columns: 1fr 1fr; } }

/* Liste */
.st-view-label { font-size: 16px; font-weight: 600; color: #5d5d5d; margin-right: 6px; }
.st-view { color: #5c8762; font-size: 15px; }
.st-list-thumb { display: block; width: 70px; height: 47px; border-radius: 7px; object-fit: cover; background: #e4e4e4; }
.st-table th { font-size: 14px; font-weight: 500; color: #5d5d5d; padding: 12px 12px 12px 0; }
.st-table td { padding: 12px 12px 12px 0; border-top: 1px solid #d8dbe0; border-bottom: 0; color: #080a0c; height: 72px; }
.st-table td a { color: #5c8762; }
.st-actions .st-fa { min-width: 18px; font-size: 13px; }
@media (max-width: 1100px) { .st-area-split, .st-stat-grid { grid-template-columns: 1fr; } }
.st-totals { grid-template-rows: repeat(6, auto); grid-auto-flow: column; }

/* ===== Scrappbook 1:1, Teil 3: Einstellungen, Account, Fenster ===== */
.sheet { padding: 0 0 18px; border-radius: 4px; max-width: 520px; }
.sheet.st-wide { max-width: 760px; }
.sheet > *:not(.st-sheet-head) { margin-left: 16px; margin-right: 16px; }
.st-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 16px; background: #5c8762; color: #fff; }
.st-sheet-head h2 { flex: 1; margin: 0; padding: 0; font-size: 16px; font-weight: 600; color: #fff; }
.st-sheet-x { width: 32px; height: 32px; color: #fff; font-size: 18px; }
.sx-h1 { margin: 0 0 16px; font-size: 32px; font-weight: 400; color: #5d5d5d; line-height: 48px; }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 0; }
.sx-tabs a { padding: 8px; font-size: 14px; color: #5d5d5d; text-decoration: none; }
.sx-tabs a.on { color: #5c8762; font-weight: 600; }
.sx-area { margin-top: 8px; }
.sx-card { background: #fff; padding: 15px; margin-bottom: 30px; }
.sx-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sx-card-head h2 { margin: 0; font-size: 20px; font-weight: 600; color: #5d5d5d; }
.sx-help { display: inline-flex; align-items: center; padding: 3.5px 5.6px; font-size: 11px; font-weight: 700; color: #5c8762; text-decoration: none; border-radius: 4px; }
.sx-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 30px; align-items: start; }
.sx-half { max-width: 740px; }
.sx-narrow { max-width: 500px; }
.sx-tiles { display: grid; grid-template-columns: repeat(auto-fill, 298px); gap: 26px 40px; padding: 0 0 15px 15px; }
.sx-tile-box { display: flex; align-items: center; justify-content: center; width: 298px; height: 200px; padding: 10px; border: 1px solid #dee2e6; border-radius: 4px; background: #fff; overflow: hidden; }
.sx-tile-box.dark { background: #5b5b5b; }
.sx-tile-box img { max-width: 225px; max-height: 150px; object-fit: contain; }
.sx-tile-text { font-size: 20px; color: #5d5d5d; text-align: center; overflow-wrap: anywhere; }
.sx-mark-text { font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.sx-tile-add { cursor: pointer; }
.sx-tile-add:hover { border-color: #5c8762; }
.sx-add-glyph { color: #a8a8a8; font-size: 76px; line-height: 1; }
.sx-image-plus { position: relative; display: inline-block; }
.sx-plus-badge { position: absolute; right: -12px; bottom: -6px; font-size: 38px; color: #a8a8a8; background: #fff; border-radius: 50%; }
.sx-tile-row { display: flex; align-items: center; margin-top: 16px; font-size: 14px; color: #5d5d5d; }
.sx-tile-row > span:first-child { flex: 1; }
.sx-tile-actions { display: inline-flex; align-items: center; gap: 4px; }
.sx-mini-switch { margin: 0; min-height: 0; }
.sx-mini-switch input:disabled { opacity: .65; cursor: default; }
.sx-field { display: block; margin-bottom: 12px; }
.sx-field > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; color: #5d5d5d; }
.sx-field > small { display: block; margin-top: 4px; color: #9a9a9a; font-size: 12px; }
.sx-label { display: block; margin: 6px 0 4px; font-size: 14px; color: #5d5d5d; }
.sx-input { display: block; width: 100%; height: 35px; padding: 6px 12px 6px 10px; border: 1px solid #ccc; border-radius: 20px; background: #fff; color: #7b7b7b; font-size: 14px; font-weight: 300; }
.sx-input:focus { outline: 0; border-color: #5c8762; }
.sx-textarea { height: auto; min-height: 60px; border-radius: 12px; resize: vertical; }
.sx-color { padding: 3px 8px; }
.sx-intro { margin: 0 0 12px; font-size: 13px; color: #5d5d5d; }
.sx-full { width: 100%; margin: 6px 0; }
.sx-wide-btn { min-width: 240px; }
.sx-center { display: block; margin: 0 auto; }
.sx-foot { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e5e5; }
.sx-right { justify-content: flex-end; }
.sx-modal-tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid #e5e5e5; }
.sx-modal-tabs button { padding: 8px 10px; font-size: 13px; color: #5d5d5d; border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.sx-modal-tabs button.on { color: #5c8762; border-color: #e5e5e5; background: #fff; }
.sx-file-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 30px; padding: 0 12px; border-radius: 15px; background: #5c8762; color: #fff; font-size: 13px; }
.sx-file-state { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 8px 12px; background: #e3ece4; color: #3d5a42; font-size: 12.5px; }
.sx-logo-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.sx-logo-row small { display: block; color: #7b7b7b; font-size: 11px; margin-top: 4px; }
.sx-search { max-width: 220px; margin: 0 0 12px; height: 30px; }
.sx-search input { height: 30px; }
.sx-table td { height: auto; padding: 10px 12px 10px 0; color: #5d5d5d; }
.sx-table-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.sx-add-link { color: #5d5d5d; padding: 0; }
.sx-add-link .fa { color: #5d5d5d; }
.sx-preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sx-switches { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 2px 12px; padding-top: 20px; }
.sx-switch { margin: 0; min-height: 28px; font-size: 13px; }
.sx-preset-design { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sx-suffix { display: flex; }
.sx-suffix .sx-input { border-radius: 20px 0 0 20px; }
.sx-suffix > span { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #ccc; border-left: 0; border-radius: 0 20px 20px 0; background: #f0f3f5; font-size: 13px; color: #5d5d5d; white-space: nowrap; }
.sx-album-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.sx-add-album { min-height: 50px; font-size: 16px; border-width: 2px; }
.sx-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.sx-action-row { display: flex; align-items: stretch; height: 35px; }
.sx-scheme { border: 0; border-radius: 20px 0 0 20px; background: #5c8762; color: #fff; font-size: 13px; padding: 0 10px; }
.sx-prefix { display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid #ccc; border-left: 0; background: #f0f3f5; font-size: 13px; color: #5d5d5d; }
.sx-action-row .sx-input { border-left: 0; border-radius: 0 20px 20px 0; }
.sx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sx-phone { position: relative; width: 254px; height: 516px; margin: 6px auto 20px; padding: 14px 12px; border: 7px solid #1d1d1d; border-radius: 44px; background: #1d1d1d; box-shadow: inset 0 0 0 2px #444; }
.sx-notch { position: absolute; left: 50%; top: 0; width: 110px; height: 22px; margin-left: -55px; border-radius: 0 0 14px 14px; background: #1d1d1d; z-index: 2; }
.sx-phone-screen { height: 100%; overflow: auto; border-radius: 32px; background: #fff; padding-top: 30px; }
.sx-phone-screen h4 { margin: 0 6px; padding: 12px 10px; background: #5c8762; color: #fff; font-size: 14px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.sx-phone-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e5e5e5; border-top: 0; margin: 0 6px; text-align: center; font-size: 12.5px; color: #333; }
.sx-phone-body p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.sx-phone-body img { width: 100%; }
.sx-legal { list-style: none; margin: 0 0 8px; padding: 10px 0 0; border-top: 1px solid #e5e5e5; }
.sx-legal li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.sx-legal li span { min-width: 120px; color: #5d5d5d; }
.sx-legal li a { flex: 1; color: #5c8762; overflow-wrap: anywhere; }
.sx-legal-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; margin-bottom: 8px; }
.sx-account { max-width: 365px; }
.sx-account-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 20px; font-weight: 600; color: #5d5d5d; }
.sx-key-head { display: flex; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5e5e5; font-size: 14px; }
.sx-key-actions { display: flex; gap: 12px; margin: 4px 0 8px; }
.sx-empty { padding: 10px 0 20px; text-align: center; color: #5d5d5d; }
.sx-empty p { margin: 0 0 12px; font-size: 13px; }
@media (max-width: 720px) { .sx-preset-grid, .sx-preset-design, .sx-row2, .sx-logo-row { grid-template-columns: 1fr; } .sx-tiles { grid-template-columns: 1fr; gap: 20px; } .sx-tile-box { width: 100%; } }

/* Scrappbook 1:1, Teil 4: Bilder-Reiter (Titelbilder oben, Bilder aufklappbar, Werkzeug-Balken, Auswahl) */
.st-album { container-type: inline-size; }
.st-album.drop-target { box-shadow: inset 0 0 0 2px #5c8762; }
.st-album-head[draggable="true"] { cursor: grab; }
.st-collapse .fa { font-size: 15px; color: #5d5d5d; }
.st-mark-pen { margin-left: -6px; }
.st-mark-pen .fa { color: #5c8762; font-size: 13px; }
.st-tiles-top { grid-template-columns: repeat(auto-fill, 229px); }
.st-tile-cover { overflow: visible; }
.st-tile-cover img { border-radius: 4px; }
.st-tile-cover.empty { color: #9a9a9a; font-size: 12px; }
.st-tile-cover .st-corner { opacity: 1; }
.st-tile-cover .st-corner.tl, .st-tile-cover .st-corner.tr { color: #fff; font-size: 15px; }
.st-tile-cover .st-corner.dim { opacity: .45; cursor: default; }
.st-tile-cover .st-corner.tr.on { color: #fff; }
.st-tile-cover .st-face { width: 26px; height: 22px; background: transparent; color: #fff; }
.st-tile-cover .st-face .st-tool-ico { width: 20px; height: 20px; stroke: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.st-grid-scroll { max-height: calc(34cqw + 14px); margin-top: 22px; padding: 16px 6px 0 0; overflow-y: auto; border-top: 1px solid #f0f0f0; }
.st-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@container (max-width: 760px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-grid-scroll { max-height: calc(68cqw + 14px); } }
.st-grid .st-tile { height: auto; aspect-ratio: 3 / 2; overflow: visible; }
.st-grid .st-tile img, .st-grid .st-tile video { border-radius: 4px; }
.st-grid .st-tile-photo.picked { box-shadow: 0 0 0 2px #5c8762; border-color: #5c8762; }
.st-tile .st-badge { top: 6px; bottom: auto; left: 6px; background: rgba(0,0,0,.55); }
.st-more { margin-top: 14px; }
/* Werkzeug-Balken: weiße Pille, Symbole grün, das aktive grün hinterlegt */
.st-tools { position: absolute; z-index: 3; left: 50%; bottom: 14%; display: flex; align-items: center; padding: 0 6px; border-radius: 20px; background: #fff; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .12s; white-space: nowrap; }
.st-tile-photo:hover .st-tools, .st-tile-photo:focus-within .st-tools { opacity: 1; pointer-events: auto; }
@media (hover: none) { .st-tools { opacity: 1; pointer-events: auto; } }
.st-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #5c8762; }
.st-tool:hover, .st-tool:focus-visible { background: #5c8762; color: #fff; }
.st-tool-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.st-grid .st-tile-photo { container-type: inline-size; }
.st-tool { width: min(30px, calc((100cqw - 14px) / 8)); height: min(30px, calc((100cqw - 14px) / 8 + 2px)); }
.st-tool-ico { width: min(17px, calc((100cqw - 14px) / 8 * .6)); height: min(17px, calc((100cqw - 14px) / 8 * .6)); }
/* Schwarzer Hinweis über dem Symbol */
.st-pick-act { position: relative; }
.st-tip { position: fixed; z-index: 200; max-width: 190px; padding: 7px 12px; border-radius: 5px; background: #1c1c1c; color: #fff; font: 400 13px/1.35 "Noto Sans", sans-serif; text-align: center; pointer-events: none; }
/* Auswahl oben rechts */
.st-pick-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.st-pick-status { display: flex; align-items: center; gap: 4px; color: #3d3d3d; font-size: 13px; }
.st-pick-status > span { margin-right: 6px; }
.st-pick-act { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; color: #5c8762; font-size: 17px; }
.st-picker { position: relative; width: 360px; font-family: "Noto Sans", sans-serif; }
/* Gemessen bei Scrappbook (react-select): 360 x 38, Rand #ccc, offen grün mit 1px Schein, Trennstrich 1 x 20, Pfeil grün */
.st-picker-control { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 38px; padding: 2px 0 2px 10px; border: 1px solid #ccc; border-radius: 20px; background: #fff; color: #808080; font-size: 14px; line-height: 21px; }
.st-picker.open .st-picker-control { border-color: #5c8762; box-shadow: 0 0 0 1px #5c8762; }
.st-picker-chev { display: inline-flex; align-items: center; height: 100%; }
.st-picker-chev::before { content: ""; width: 1px; height: 20px; background: #ccc; }
.st-picker-chev .dz-ico { box-sizing: content-box; width: 20px; height: 20px; padding: 8px; stroke: #5c8762; stroke-width: 2.2; }
.st-pick-menu { position: absolute; z-index: 30; left: 0; top: calc(100% + 1px); width: 360px; padding: 0; border-radius: 0; background: #fff; box-shadow: none; }
.st-pick-search { position: relative; margin: 10px 5px; }
.st-pick-search .st-pick-glass { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: #5c8762; }
.st-pick-search input { box-sizing: border-box; width: 100%; height: 35px; padding: 6px 12px 6px 30px; border: 1px solid #ccc; border-radius: 20px; background: #fff; color: #7b7b7b; font: 300 14px/21px "Noto Sans", sans-serif; outline: none; }
.st-pick-search input::placeholder { color: #c4c4c4; }
.st-pick-sort { position: absolute; right: -24px; top: 50%; width: 18px; margin-top: -14px; color: #5c8762; font-size: 15px; line-height: 1; }
.st-pick-sort .st-az { display: flex; flex-direction: column; align-items: center; font: 700 11px/12px "Noto Sans", sans-serif; letter-spacing: 0; }
.st-pick-list { max-height: 300px; padding: 4px 0; overflow-y: auto; }
.st-pick-row { display: flex; align-items: center; gap: 4px; height: 37px; padding: 8px 12px; color: #5d5d5d; font: 400 14px/21px "Noto Sans", sans-serif; cursor: pointer; }
.st-pick-row input { width: 13px; height: 13px; margin: 0; accent-color: #5c8762; }
/* App-Icon im Kopf */
.st-head-noicon { width: 60px; height: 60px; border-radius: 8px; background: #ececec; color: #8a8a8a; font-size: 12px; font-weight: 600; line-height: 1.25; }
/* Wasserzeichen-Fenster und App-Icon-Zuschnitt */
.st-mark-select { box-sizing: border-box; width: 100%; max-width: 100%; }
.st-mark-add { display: inline-block; margin: 14px 0 6px; color: #5c8762; font-size: 15px; }
.st-crop-wrap { display: flex; justify-content: center; padding: 0; background: repeating-conic-gradient(#d9d9d9 0 25%, #f4f4f4 0 50%) 0 0 / 22px 22px; }
.st-crop-icon { margin: 0; }
.st-crop-icon .st-crop-box { border: 1px solid #3d8bfd; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); }
.st-crop-icon .st-crop-box i { width: 9px; height: 9px; border-radius: 1px; background: #3d8bfd; box-shadow: none; }
.st-crop-icon .st-crop-box i[data-corner="tl"] { left: -5px; top: -5px; }
.st-crop-icon .st-crop-box i[data-corner="tr"] { right: -5px; top: -5px; }
.st-crop-icon .st-crop-box i[data-corner="bl"] { left: -5px; bottom: -5px; }
.st-crop-icon .st-crop-box i[data-corner="br"] { right: -5px; bottom: -5px; }

/* Scrappbook 1:1, Teil 5: Verschicken (Teilen-Kasten, Formular, Vorschau mit Logo und Titelbild) */
.st-area-send { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.st-area-send .st-send { grid-template-columns: 270px minmax(0, 1fr); gap: 14px; }
.st-send-share, .st-send-main { padding: 20px 22px 26px; background: #fff; }
.st-send-main { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.15fr); gap: 30px; align-items: start; }
.st-send .st-qr { width: 150px; height: 150px; }
.st-send-to { display: flex; margin: 0; }
.st-send-to input { flex: 1; min-width: 0; }
.st-check-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; color: #5d5d5d; font-size: 13px; }
.st-check-row input { width: 16px; height: 16px; accent-color: #5c8762; }
.st-mail { padding: 26px 18px 10px; border-left: 0; }
.st-mail-logo { max-width: 260px; max-height: 130px; margin: 18px auto 70px; }
.st-mail-cover { width: 100%; max-width: 300px; height: auto; aspect-ratio: 3 / 2; margin: 0 auto 10px; border-radius: 8px; }
.st-mail h3 { margin: 0 0 56px; color: #4a5160; font: 600 20px/1.3 Arial, Helvetica, sans-serif; }
.st-mail-text { min-height: 60px; padding: 4px 6px; border-radius: 4px; color: #4a5160; font: 16px/1.5 Arial, Helvetica, sans-serif; white-space: pre-wrap; outline: none; }
.st-mail-text:focus { box-shadow: 0 0 0 1px #ccc; }
.st-mail-text:empty::before { content: attr(data-placeholder); color: #4a5160; }
.st-mail-button { margin-top: 30px; padding: 14px 26px; font: 700 15px Arial, Helvetica, sans-serif; }
@media (max-width: 1100px) { .st-area-send .st-send, .st-send-main { grid-template-columns: 1fr; } }

/* Scrappbook 1:1, Teil 6: Voreinstellung (Name im Kopf, schlichte Reiter, waagrechte Schalter) */
.sheet .dz-switch { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; font-size: 15px; color: #3d3d3d; }
.sheet .dz-switch input { display: inline-block; width: 29px; min-width: 29px; height: 16px; min-height: 16px; margin: 0; padding: 0; border-radius: 28px; }
.sheet .dz-switch input::after { top: 2px; left: 2px; }
.sheet .dz-switch input:checked::after { left: 15px; }
.sx-switches { grid-template-columns: max-content max-content; gap: 14px 40px; padding-top: 30px; align-content: start; }
.sx-switches .dz-switch { min-height: 26px; }
.st-sheet-head h2 { display: flex; align-items: center; gap: 10px; }
.sx-name-pen { color: #fff; font-size: 17px; }
.sx-name-edit { min-width: 40px; padding: 0 2px; border-radius: 3px; outline: none; }
.sx-name-edit:focus { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.sx-modal-tabs { gap: 30px; margin: 4px 0 26px; padding: 0 2px; border-bottom: 0; }
.sx-modal-tabs button { padding: 4px 0; border: 0; border-radius: 0; background: none; color: #5d5d5d; font-size: 15px; }
.sx-modal-tabs button.on { color: #5c8762; font-weight: 600; background: none; }
.sx-sort-row { display: flex; align-items: center; gap: 10px; }
.sx-sort-row select { flex: 1; margin-top: 0; }
.sx-sort-dir .fa { color: #5c8762; font-size: 18px; }
.sx-suffix .sx-in-hint { display: inline-flex; align-items: center; margin-left: -34px; padding: 0 12px 0 0; background: none; border: 0; color: #5c8762; z-index: 1; }
.sx-suffix-hint input { border-radius: 23px !important; padding-right: 40px; }
.sx-preset-design { display: block; }
.sx-preset-design .dz-left { width: 100%; max-width: none; }
.sx-preset-sheet { width: min(1060px, 96vw); max-width: none; }
.sx-add-album { min-height: 76px; border: 3px dotted #5c8762; color: #5c8762; font-size: 26px; font-weight: 400; }

/* Scrappbook 1:1, Teil 7: Portfolio bearbeiten (Formular links, Live-Vorschau rechts) */
.st-pf-title { margin: 30px 0 14px; font-size: 48px; font-weight: 600; color: #3d3d3d; }
.st-pf { grid-template-columns: 330px minmax(0, 1fr); }
.st-pf-form { align-self: start; padding: 14px 12px 30px; background: #fff; }
.st-pf-form .sx-field { margin-bottom: 14px; }
.st-pf-ig { display: flex; margin: 0; }
.st-pf-ig .sx-input { flex: 1; min-width: 0; margin: 0; }
.st-ig-post { display: inline-flex; align-items: center; margin-left: -36px; padding-right: 14px; color: #5c8762; z-index: 1; cursor: help; }
.st-pf-btn { margin-top: 30px; }
.st-pf-btn + .st-pf-link, .st-pf-link + .st-pf-btn { margin-top: 26px; }
.st-pf-link { display: block; margin-top: 30px; color: #5c8762; font-size: 14px; overflow-wrap: anywhere; }
.st-pf-link:empty { display: none; }
.st-pf-blank { height: 620px; background: #fff; }
@media (max-width: 1000px) { .st-pf { grid-template-columns: 1fr; } }

/* Teil 8: Messwerte von Scrappbook (gleiche Fensterbreite 1435, Beschriftung für Beschriftung verglichen) */
.st-head .st-outline.st-small { height: 35px; padding: 6px 12px; border-radius: 20px; font-size: 14px; }
.st-tabs > button { padding-top: 8px; padding-bottom: 9px; line-height: 25px; }
.st-album-head, .st-album-title, .st-album-edit, .st-album-count, .st-inline-switch { font-size: 14px; }
.st-tile-add b { font-size: 14px; color: #7b7b7b; }
.st-head-noicon { box-sizing: border-box; width: 68px; height: 68px; padding: 0 20px; border-radius: 10px; background: #ededed; color: #7b7b7b; font-size: 14px; font-weight: 600; line-height: 1.5; }
.st-head-photo { width: 68px; height: 68px; border-radius: 10px; }
.st-pick-status { font-size: 14px; color: #5d5d5d; }
.st-switch-row { min-height: 21px; margin: 0 0 10px; }
.st-help-link { min-height: 21px; }
.st-area select { font-weight: 400; padding-right: 36px; }
.st-green-link { font-size: 14px; min-height: 21px; }
.dz-switch { min-height: 21px; }
.dz-value, .dz-name { color: #5d5d5d; }
/* Statistiken nach Messwerten */
.st-stat-grid { grid-template-columns: minmax(0, .706fr) minmax(0, 1fr); align-items: stretch; }
.st-stat-grid .st-panel { min-height: calc(100vh - 200px); }
.st-area-stats .st-panel-title { font-size: 20px; font-weight: 500; color: #5d5d5d; }
.st-feed { max-height: none; overflow: visible; }
.st-feed li { padding: 8px 10px; background: #f1f1f1; border-radius: 4px; font-size: 14px; }
.st-feed b { font-size: 14px; font-weight: 600; color: #5d5d5d; }
.st-feed b .fa { color: #5c8762; font-size: 12px; margin-right: 4px; }
.st-feed time { color: #73818f; font-size: 14px; }
.st-feed span { font-size: 14px; }
.st-chip { min-height: 35px; height: 35px; padding: 6px 12px; border-radius: 20px; background: #f6f6f6; font-size: 14px; }
.st-chips { gap: 8px; }
.st-totals { font-size: 14px; color: #5d5d5d; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-totals b { color: #5c8762; font-weight: 600; font-size: 14px; }
.st-filter { color: #aaa; font-size: 14px; }
.st-filter select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: #aaa; font-size: 14px; padding: 0 0 0 4px; height: auto; min-height: 0; cursor: pointer; }
/* Verschicken nach Messwerten */
.st-send .st-title { font-size: 20px; color: #5d5d5d; line-height: 30px; margin: 0 0 10px; }
.st-send .st-field { font-size: 14px; color: #5d5d5d; }
.st-send b { font-weight: 600; color: #5d5d5d; font-size: 14px; }
.st-send input:not([type="checkbox"]), .st-send select { box-sizing: border-box; height: 35px; min-height: 35px; padding: 6px 12px 6px 10px; border: 1px solid #ccc; border-radius: 20px; color: #7b7b7b; font-size: 14px; font-weight: 300; }
.st-send select { padding-right: 36px; font-weight: 400; }
.st-send-to input { padding-left: 34px; }
.st-check-row { font-size: 11.5px; font-weight: 300; line-height: 17px; }
.st-mail-button { padding: 18px 30px; font-size: 16px; font-weight: 600; }
.st-send-to { position: relative; }
.st-send-to .st-ig-pre { position: absolute; left: 12px; top: 50%; z-index: 1; width: auto; height: auto; padding: 0; border: 0; background: none; color: #9a9a9a; transform: translateY(-50%); }
.st-mcard-add b, .st-request b { font-size: 14px; }
/* Einstellungen nach Messwerten */
.st-small { height: 35px; min-height: 35px; padding: 6px 12px; border-radius: 20px; font-size: 14px; }
.sx-two .sx-field > span { font-weight: 600; }
.sx-suffix > span:last-child, .sx-prefix { display: inline-flex; align-items: center; height: 35px; padding: 0 12px; border: 1px solid #ccc; background: #f0f3f5; color: #5c6873; font-size: 14px; }
.sx-file-btn { height: 35px; padding: 6px 14px; border: 1px solid #5c8762; border-radius: 20px; font-size: 14px; }
.sx-table td:nth-child(2) { color: #080a0c; }
.sx-add-link { min-height: 21px; color: #23282c; font-size: 14px; }
.sx-table-foot .st-note { font-size: 14px; color: #5d5d5d; }
.sx-table-foot .st-select { height: 38px; min-height: 38px; padding: 6px 36px 6px 12px; border: 1px solid #dbdfe6; border-radius: 6px; color: rgba(37,43,54,.95); font-size: 16px; }
.sx-search input { height: 35px; min-height: 35px; }
b.sx-label { font-weight: 700; }
/* Listen, Seitentitel, Account nach Messwerten */
.st-crumbs li, .st-crumbs a { color: #73818f; }
.st-crumbs a { color: #5c8762; }
h1.st-title { font-size: 32px; font-weight: 400; color: #5d5d5d; line-height: 48px; }
.st-page { min-width: 18px; color: #5d5d5d; font-size: 14px; text-decoration: underline; }
.st-page.on { color: #5d5d5d; font-weight: 400; }
.st-per-page { display: inline-flex; align-items: center; gap: 10px; color: #5d5d5d; font-size: 14px; }
.st-per-page .st-select { height: 38px; min-height: 38px; padding: 6px 36px 6px 12px; border: 1px solid #dbdfe6; border-radius: 6px; color: rgba(37,43,54,.95); font-size: 16px; }
.st-list-thumb { width: 70px; height: 70px; border-radius: 4px; object-fit: cover; }
.st-table td { padding-top: 12px; padding-bottom: 12px; }
.st-table td a { color: #5c8762; }
.st-dash-stat b { font-weight: 600; }
.sx-area .sx-field > span, .st-account .sx-field > span { font-weight: 400; }
.st-list-card .sx-search { width: 410px; max-width: 100%; }
.st-main { min-height: calc(100vh - 150px); }
.st-foot { font-size: 13px; color: #5d5d5d; }
.st-more { margin-top: 30px; }

/* Bestätigungscode bei der Anmeldung */
.sx-totp { margin: 18px 0 6px; }
.sx-on { color: #5c8762; font-weight: 600; }
.sx-off { color: #9a9a9a; }
.sx-qr { display: block; width: 210px; height: 210px; margin: 6px auto 10px; image-rendering: pixelated; }
.sx-secret { display: block; margin: 0 0 14px; padding: 8px 10px; background: #f0f3f5; border-radius: 6px; font-size: 13px; letter-spacing: .04em; word-break: break-all; text-align: center; }

/* Upload-Fenster unten rechts, wie bei Scrappbook */
.up-panel { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; flex-direction: column; width: 360px; max-width: calc(100vw - 32px); height: 430px; max-height: calc(100vh - 48px); background: #fff; border: 1px solid #d5d5d5; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.18); overflow: hidden; }
.up-panel[hidden] { display: none; }
.up-panel.small { height: auto; }
.up-panel.small .up-list, .up-panel.small .up-foot small { display: none; }
.up-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 12px 0 20px; background: var(--green); color: #fff; }
.up-head b { font-size: 18px; font-weight: 600; }
.up-actions { display: flex; gap: 2px; }
.up-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; border-radius: 50%; }
.up-btn:hover { background: rgba(255,255,255,.14); }
.up-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.up-list { flex: 1; overflow-y: auto; padding: 14px 20px 8px; }
.up-group { margin: 6px 0 10px; font-size: 18px; font-weight: 600; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-row { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 0 0 0 18px; font-size: 14px; color: #555; }
.up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-pct { font-size: 12px; color: #888; font-variant-numeric: tabular-nums; }
.up-state { position: relative; flex: none; width: 20px; height: 20px; }
.up-row.wait { color: #999; }
.up-row.wait .up-state::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #ddd; }
.up-row.run .up-state::after, .up-row.prep .up-state::after { content: ""; position: absolute; inset: 1px; border: 2px solid #ccc; border-top-color: #333; border-radius: 50%; animation: up-spin .9s linear infinite; }
.up-row.prep .up-state::after { border-top-color: var(--green); }
.up-row.ok .up-state::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 12px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.up-row.bad { color: #b3261e; }
.up-row.bad .up-state::after { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #b3261e; color: #fff; font-size: 12px; font-weight: 700; }
@keyframes up-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .up-row.run .up-state::after, .up-row.prep .up-state::after { animation-duration: 2.5s; } }
.up-foot { padding: 14px 20px 16px; border-top: 1px solid #e3e3e3; }
.up-meter { position: relative; height: 28px; border-radius: 4px; background: #ececec; overflow: hidden; }
.up-meter progress { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; -webkit-appearance: none; border: 0; background: transparent; }
.up-meter progress::-webkit-progress-bar { background: transparent; }
.up-meter progress::-webkit-progress-value { background: #cfe0cc; }
.up-meter progress::-moz-progress-bar { background: #cfe0cc; }
.up-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #555; font-variant-numeric: tabular-nums; }
.up-foot small { display: block; min-height: 16px; margin-top: 6px; font-size: 12px; color: #777; text-align: center; }
@media (max-width: 560px) { .up-panel { right: 16px; bottom: 16px; height: 50vh; } }
/* Gerade hochgeladen: Vorschau vom Mac, bis die NAS das Bild fertig hat */
.st-tile .st-preview { opacity: .75; }
.st-photo-state.st-prep { inset: auto 0 0 0; padding: 4px 6px; background: rgba(255,255,255,.85); color: #555; font-size: 11px; }

/* Neue Galerie erstellen, zwei Schritte wie bei Scrappbook */
.sheet.np-sheet { max-width: 900px; }
.np-step { display: flex; flex-direction: column; padding: 4px 0 0; }
.np-step[hidden] { display: none; }
.np-label { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: #555; }
.np-label:first-child { margin-top: 4px; }
.np-input { display: flex; align-items: stretch; }
.np-input input { flex: 1; min-width: 0; border-radius: 22px 0 0 22px; }
.sheet .np-step input, .sheet select.np-select, .np-step input, .np-select { min-height: 44px; padding: 0 18px; border: 1px solid #ccc; border-radius: 22px; background: #fff; font: inherit; font-size: 15px; color: #444; }
.np-step input[type="date"] { border-radius: 4px; }
.np-help { display: flex; align-items: center; justify-content: center; width: 52px; border: 1px solid #ccc; border-left: 0; border-radius: 0 6px 6px 0; background: #f2f2f2; color: #444; cursor: help; }
.sheet select.np-select, .np-select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; }
.np-design { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.np-half { width: 100%; }
.np-about { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: #555; }
.np-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 22px -16px 0; padding: 16px 16px 4px; border-top: 1px solid #e6e6e6; }
.np-grey, .np-green { min-height: 44px; padding: 0 24px; border: 0; border-radius: 22px; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.np-grey { background: #7c7c7c; }
.np-green { background: var(--green); }
.np-grey:hover { background: #6a6a6a; }
.np-green:hover { background: var(--green-dark); }
.np-phone { position: relative; width: 220px; height: 440px; margin: 0 auto; padding: 10px; border-radius: 38px; background: #1b1b1b; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.np-notch { position: absolute; z-index: 2; left: 50%; top: 10px; width: 90px; height: 20px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: #1b1b1b; }
.np-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 30px; }
.np-photo { display: block; flex: 1; background: linear-gradient(160deg, #cbc6bd, #8f897f 55%, #6f6a62); }
.np-text { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 28px; text-align: center; }
.np-title { font-size: 21px; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.np-text small { font-size: 9.5px; letter-spacing: .18em; opacity: .85; }
.np-lisbon .np-text, .np-chicago .np-text { position: absolute; left: 0; right: 0; bottom: 40px; }
.np-lisbon .np-photo, .np-chicago .np-photo { flex: 1 0 100%; }
.np-vienna { justify-content: center; }
.np-milan { flex-direction: row; } .np-milan .np-photo { flex: 0 0 55%; } .np-milan .np-text { justify-content: center; }
.np-versailles .np-photo, .np-billund .np-photo { flex: none; width: 120px; height: 160px; margin: 50px auto 0; border-radius: 50%; }
.np-billund .np-photo { width: 110px; height: 110px; }
.np-copenhagen .np-photo { margin: 40px 18px 0; }
@media (max-width: 720px) { .np-design { grid-template-columns: 1fr; } .np-phone { width: 180px; height: 360px; } }
