/* Tracker – SheppardHub. Farben: gedeckte Soft-Summer-Töne. */
:root {
	--bg: #f7f4f5;
	--card: #ffffff;
	--ink: #2c2630;
	--muted: #6e6570;
	--line: #e8e0e4;
	--berry: #9e4a6a;
	--berry-ink: #7d3553;
	--berry-soft: #f4e8ee;
	--blue: #5f83a8;
	--blue-soft: #e8eff6;
	--green: #5e8a66;
	--green-soft: #e7f0e8;
	--amber-soft: #fbf1e1;
	--error: #b3261e;
	--error-soft: #fbeae8;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(44, 38, 48, .06), 0 4px 16px rgba(44, 38, 48, .05);
	--safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.sht {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	padding-bottom: calc(76px + var(--safe-b));
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.08rem; display: flex; align-items: center; gap: .45rem; }
h3 { font-size: .98rem; }
p { margin: 0 0 .7rem; }
a { color: var(--berry-ink); }
small, .sht-small { font-size: .84rem; }
.sht-muted { color: var(--muted); }
.sht-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sht-logo { width: 30px; height: 30px; flex: none; }

/* Kopf & Navigation */
.sht-top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between;
	padding: .6rem 16px; background: rgba(247, 244, 245, .92);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.sht-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 650; }
.sht-top-links { display: flex; gap: 2px; }
.sht-top-link { color: var(--muted); padding: .3rem .45rem; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; font-size: .66rem; border-radius: 8px; min-width: 44px; }
.sht-top-link:hover { background: var(--berry-soft); color: var(--berry-ink); }
.sht-top-link .sht-i { width: 1.3em; height: 1.3em; }
.sht-login-back { margin: 1rem 0 0; text-align: center; font-size: .9rem; }
.sht-login-back a { color: var(--muted); }
.sht-main { max-width: 760px; margin: 0 auto; padding: 14px 16px 24px; }
.sht-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: #fff; border-top: 1px solid var(--line);
	padding: 6px 4px calc(6px + var(--safe-b));
}
.sht-nav a {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .74rem; border-radius: 10px;
}
.sht-nav a .sht-i { width: 1.45em; height: 1.45em; }
.sht-nav a.is-active { color: var(--berry-ink); background: var(--berry-soft); font-weight: 600; }

/* Karten */
.sht-card {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 16px; margin: 0 0 14px; scroll-margin-top: 70px;
}
.sht-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.sht-card-head h2 { margin: 0; }
.sht-sub { margin-top: 1.1rem; }
.sht-empty { color: var(--muted); font-style: italic; margin: .4rem 0 0; }

/* Meldungen */
.sht-flash {
	max-width: 728px; margin: 12px auto 0; padding: .7rem 1rem; border-radius: 12px;
	background: var(--green-soft); color: #2f5a37; font-weight: 500;
}
.sht-main + .sht-flash, .sht-top + .sht-flash { margin-left: 16px; margin-right: 16px; }
@media (min-width: 792px) { .sht-top + .sht-flash { margin-left: auto; margin-right: auto; } }
.sht-flash-error { background: var(--error-soft); color: var(--error); }

/* Formulare */
.sht-form { display: grid; gap: .8rem; }
.sht-form label, .sht-inline-label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 550; color: var(--ink); }
input[type=text], input[type=number], input[type=password], input[type=date], textarea, select {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink);
	background: #fff; border: 1px solid #d9cfd4; border-radius: 10px; padding: .6rem .7rem;
	min-height: 44px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--berry); outline-offset: 1px; border-color: var(--berry); }
.sht-input-unit { display: flex; align-items: center; gap: .4rem; }
.sht-input-unit span { color: var(--muted); font-weight: 500; }
.sht-weight input { font-size: 1.5rem; font-weight: 650; max-width: 9rem; }
.sht-check { display: flex !important; grid-template-columns: none; align-items: center; gap: .5rem; font-weight: 450 !important; }
.sht-check input { width: 20px; height: 20px; accent-color: var(--berry); }
.sht-form-row { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.sht-form-row > label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 550; flex: 1 1 8rem; }
.sht-grow { flex: 1 1 auto; }
.sht-narrow { flex: 0 1 6.5rem !important; }
.sht-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.sht-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sht-grid4 label { font-size: .78rem !important; }
@media (max-width: 420px) { .sht-grid4 { grid-template-columns: 1fr 1fr; } }
.sht-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.sht-inline { display: inline; margin: 0; }

/* Knöpfe */
.sht-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-height: 44px; padding: .55rem 1rem; border-radius: 12px;
	font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
	background: var(--berry-soft); color: var(--berry-ink); border: 1px solid transparent;
	-webkit-tap-highlight-color: transparent;
}
.sht-btn:active { transform: translateY(1px); }
.sht-btn-primary { background: var(--berry); color: #fff; }
.sht-btn-ghost { background: transparent; color: var(--muted); }
.sht-btn-sm { min-height: 36px; padding: .35rem .7rem; font-size: .86rem; border-radius: 10px; }
.sht-btn-block { width: 100%; }
.sht-btn-icon { width: 44px; padding: 0; }
.sht-btn:disabled, .sht-btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.sht-btn-ghost.sht-btn-sm span { font-weight: 500; }
.sht-file-btn { position: relative; overflow: hidden; }
.sht-file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 100px; }
.sht-list .sht-btn-ghost span, .sht-archive-grid .sht-btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Chips & Segmente */
.sht-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sht-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sht-chip span {
	display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line);
	font-size: .88rem; font-weight: 500; background: #fff; cursor: pointer;
}
.sht-chip input:checked + span { background: var(--berry); border-color: var(--berry); color: #fff; }
.sht-chip input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 2px; }
.sht-seg { display: flex; gap: 4px; background: #efe8eb; padding: 4px; border-radius: 12px; margin: 0 0 12px; overflow-x: auto; }
.sht-seg a, .sht-seg button {
	flex: 1 1 auto; text-align: center; padding: .45rem .45rem; border-radius: 9px; border: 0; background: transparent;
	font: inherit; font-size: .86rem; font-weight: 550; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.sht-seg .is-active { background: #fff; color: var(--berry-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Tag-Navigation */
.sht-daynav { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: 12px; }
.sht-daypick { flex: 1; text-align: center; }
.sht-daypick label { position: relative; display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; }
.sht-daytitle { font-size: 1.25rem; font-weight: 700; }
.sht-daypick input[type=date] {
	position: absolute; inset: 0; opacity: 0; min-height: 0; cursor: pointer;
}

/* Kacheln */
.sht-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .6rem; }
@media (max-width: 480px) { .sht-tiles { grid-template-columns: repeat(2, 1fr); } }
.sht-tiles-3 { grid-template-columns: repeat(3, 1fr) !important; }
.sht-tile { background: var(--bg); border-radius: 12px; padding: .55rem .7rem; display: grid; }
.sht-tile-l { font-size: .76rem; color: var(--muted); }
.sht-tile-v { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sht-tile-s { font-size: .76rem; color: var(--muted); }
.sht-health { background: linear-gradient(180deg, var(--blue-soft), #fff 70%); }

/* Listen */
.sht-list { list-style: none; margin: 0 0 .6rem; padding: 0; }
.sht-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.sht-list li:last-child { border-bottom: 0; }
.sht-badge {
	display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600;
	padding: .15rem .5rem; border-radius: 999px; background: var(--blue-soft); color: #3f6184; white-space: nowrap;
}
.sht-conf-hoch { background: var(--green-soft); color: #3c6a45; }
.sht-conf-niedrig { background: var(--amber-soft); color: #7a5518; }
.sht-details { margin-top: .6rem; }
.sht-details summary { cursor: pointer; font-weight: 600; color: var(--berry-ink); font-size: .92rem; padding: .3rem 0; }
.sht-details[open] summary { margin-bottom: .6rem; }
.sht-howto { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.sht-howto li { margin-bottom: .3rem; }

/* Essen */
.sht-meal-form { margin-bottom: .6rem; }
.sht-meals { display: grid; gap: .7rem; margin-top: .4rem; }
.sht-meal { display: grid; grid-template-columns: 72px 1fr; gap: .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; }
.sht-meal-thumb {
	width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--berry-soft);
	display: flex; align-items: center; justify-content: center; color: var(--berry);
}
.sht-meal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sht-meal-thumb .sht-i { width: 34px; height: 34px; }
.sht-meal-head { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-bottom: .2rem; }
.sht-meal-desc { font-size: .9rem; margin-bottom: .3rem; }
.sht-meal-num { font-size: .9rem; font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.sht-pending { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; }
.sht-error-text { color: var(--error); font-size: .88rem; margin-bottom: .4rem; }
.sht-spinner {
	width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--berry-soft); border-top-color: var(--berry);
	animation: sht-spin .8s linear infinite; display: inline-block;
}
@keyframes sht-spin { to { transform: rotate(360deg); } }
.sht-daysum {
	display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; margin-top: .8rem;
	padding: .7rem .8rem; background: var(--berry-soft); border-radius: 12px; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.sht-daysum strong { font-size: 1.1rem; }
.sht-meal-edit form + form { margin-top: .5rem; }

/* Upload-Hinweis */
.sht-busy {
	position: fixed; inset: 0; z-index: 100; background: rgba(44, 38, 48, .55);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.sht-busy div { background: #fff; border-radius: 14px; padding: 1.2rem 1.4rem; display: flex; gap: .7rem; align-items: center; font-weight: 600; }

/* Körper */
.sht-viewstatus { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sht-viewstatus li { background: var(--bg); border-radius: 12px; padding: .6rem; display: grid; justify-items: center; text-align: center; gap: .1rem; color: var(--muted); }
.sht-viewstatus li span { font-weight: 650; color: var(--ink); }
.sht-viewstatus li.is-done { background: var(--green-soft); color: #3c6a45; }
.sht-viewstatus .sht-i { width: 1.4em; height: 1.4em; }
.sht-compare-controls label { flex: 1 1 7rem; }
.sht-compare { margin-top: .4rem; }
.sht-compare-slider { position: relative; aspect-ratio: 3 / 4; background: #eee; border-radius: 12px; overflow: hidden; touch-action: pan-y; }
.sht-compare-slider img, .sht-compare-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sht-compare-top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.sht-compare-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.sht-compare-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; min-height: 0; }
.sht-compare-tag { position: absolute; top: 8px; padding: .15rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; pointer-events: none; }
.sht-tag-a { left: 8px; }
.sht-tag-b { right: 8px; }
.sht-compare-side { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sht-compare-side figure { margin: 0; }
.sht-compare-side img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #eee; }
.sht-compare-side figcaption { text-align: center; font-size: .84rem; color: var(--muted); }
.sht-archive-day { margin-bottom: .9rem; }
.sht-archive-day h3 { font-size: .9rem; color: var(--muted); font-weight: 600; }
.sht-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sht-archive-grid figure { margin: 0; }
.sht-archive-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; background: #eee; }
.sht-archive-grid figcaption { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.sht-archive-grid .sht-btn-sm { min-height: 32px; padding: 0 .3rem; }

/* Kamera */
.sht-cam {
	position: fixed; inset: 0; z-index: 200; background: #111; color: #fff;
	display: flex; flex-direction: column;
}
.sht-cam-top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; gap: .5rem; }
.sht-cam-top strong { font-size: 1rem; }
.sht-cam-close { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; min-width: 44px; min-height: 44px; font: inherit; font-weight: 600; padding: 0 .9rem; cursor: pointer; }
.sht-cam-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sht-cam-frame { position: relative; height: 100%; max-height: 100%; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; background: #000; }
@supports not (aspect-ratio: 3 / 4) { .sht-cam-frame { width: 75vh; } }
.sht-cam-frame video, .sht-cam-frame .sht-cam-ghost, .sht-cam-frame canvas, .sht-cam-frame .sht-cam-shot {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.sht-cam-frame .is-mirror { transform: scaleX(-1); }
.sht-cam-ghost { opacity: .35; pointer-events: none; }
.sht-cam-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sht-cam-count {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-size: 7rem; font-weight: 800; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); pointer-events: none;
}
.sht-cam-hint { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: .86rem; background: rgba(0, 0, 0, .45); padding: .35rem .6rem; border-radius: 10px; }
.sht-cam-bar { padding: 10px 12px calc(12px + var(--safe-b)); display: grid; gap: .6rem; background: #111; }
.sht-cam-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.sht-cam-row label { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: #ddd; }
.sht-cam-row input[type=range] { width: 110px; accent-color: #d9a3bb; min-height: 0; padding: 0; border: 0; }
.sht-cam-btn { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 12px; min-height: 44px; padding: 0 .9rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; position: relative; overflow: hidden; }
.sht-cam-btn input[type=file] { position: absolute; inset: 0; opacity: 0; font-size: 100px; }
.sht-cam-btn.is-on { background: #d9a3bb; color: #2c2630; }
.sht-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: #d9a3bb; cursor: pointer; flex: none; }
.sht-shutter:active { transform: scale(.95); }
.sht-cam-checklist { background: #fff; color: var(--ink); margin: auto; max-width: 440px; width: calc(100% - 32px); border-radius: 16px; padding: 18px; max-height: calc(100% - 32px); overflow: auto; }
.sht-cam-checklist ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.sht-cam-checklist li label { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.sht-cam-checklist input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--berry); margin-top: 1px; }
.sht-cam-views { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sht-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.sht-checks li { display: flex; gap: .45rem; align-items: flex-start; }
.sht-checks .ok { color: #9fd3a9; }
.sht-checks .warn { color: #f3cf8b; }
.sht-checks .bad { color: #ff9c94; }
.sht-cam-review { background: rgba(0, 0, 0, .6); position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; }
.sht-cam-err { background: #fff; color: var(--ink); border-radius: 14px; padding: 18px; margin: auto; max-width: 420px; width: calc(100% - 32px); }

/* Statistik */
.sht-ranges { margin-top: 2px; }
.sht-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .sht-kpis { grid-template-columns: repeat(3, 1fr); } }
.sht-kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 2px; }
.sht-kpi-l { font-size: .78rem; color: var(--muted); }
.sht-kpi-v { font-size: 1.45rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sht-kpi-v small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.sht-kpi-s { font-size: .76rem; color: var(--muted); }
.sht-chart { position: relative; height: 240px; }
.sht-chart-sm { height: 200px; }
.sht-chart-sq { height: 300px; }
.sht-chart-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-style: italic; background: var(--bg); border-radius: 12px; text-align: center; padding: 1rem; }
.sht-challenges { display: grid; gap: .7rem; }
@media (min-width: 640px) { .sht-challenges { grid-template-columns: repeat(3, 1fr); } }
.sht-challenge { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: grid; gap: .5rem; }
.sht-challenge.is-done { background: var(--green-soft); border-color: #cfe0d1; }
.sht-ch-head { display: flex; gap: .6rem; align-items: center; }
.sht-ch-head small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.sht-ch-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--berry-soft); color: var(--berry); display: flex; align-items: center; justify-content: center; flex: none; }
.is-done .sht-ch-icon { background: var(--green); color: #fff; }
.sht-bar { height: 8px; background: #eee6ea; border-radius: 999px; overflow: hidden; }
.sht-bar span { display: block; height: 100%; background: var(--berry); border-radius: 999px; }
.is-done .sht-bar span { background: var(--green); }
.sht-ch-foot { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.sht-ch-meta { display: flex; gap: .8rem; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.sht-dots { display: inline-flex; gap: 3px; }
.sht-dots i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; font-size: .62rem; display: inline-flex; align-items: center; justify-content: center; background: #eee6ea; color: var(--muted); }
.sht-dots i.on { background: var(--green); color: #fff; }
.sht-insights { display: grid; gap: .7rem; margin-bottom: .6rem; }
.sht-insight { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.sht-insight header { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; flex-wrap: wrap; }
.sht-insight h3 { margin: 0; flex: 1; font-size: .95rem; }
.sht-ins-icon { color: var(--berry); display: inline-flex; }
.sht-pill { font-size: .72rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; background: #eee6ea; color: var(--muted); white-space: nowrap; }
.is-clear .sht-pill { background: var(--berry); color: #fff; }
.is-slight .sht-pill { background: var(--berry-soft); color: var(--berry-ink); }
.is-insufficient { background: #fbfafa; }
.sht-cmp { display: grid; gap: .35rem; margin: .2rem 0 .5rem; }
.sht-cmp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .5rem; align-items: center; font-size: .84rem; }
.sht-cmp-l { color: var(--muted); }
.sht-cmp-bar { height: 10px; background: #f1ecee; border-radius: 999px; overflow: hidden; }
.sht-cmp-bar i { display: block; height: 100%; border-radius: 999px; }
.sht-cmp-bar.is-div { position: relative; }
.sht-cmp-bar.is-div::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #8f858b; }
.sht-cmp-bar.is-div i { position: absolute; top: 0; }
.sht-cmp-bar i.a { background: #a8386a; }
.sht-cmp-bar i.b { background: #7f8f9e; }
.sht-cmp-bar i.c { background: #ddd3d8; }
.sht-flow { color: var(--berry); }
.sht-exercise { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .8rem; background: var(--green-soft); border-radius: 12px; color: #2f5a37; margin-bottom: .3rem; }
.sht-exercise span { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; }
.sht-exercise strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.sht-badge-cycle { background: var(--berry-soft); color: var(--berry-ink); }
.sht-cycle-form { gap: .4rem; }
.sht-chip-flow input:checked + span { background: var(--berry-ink); border-color: var(--berry-ink); }
.sht-cmp-v { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sht-weekly-text { font-size: .9rem; margin-top: .6rem; }
.sht-table-wrap { overflow-x: auto; margin: 0 -4px; }
.sht-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.sht-table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 600; padding: .4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sht-table td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sht-table tr.is-empty td { color: #b3a9ae; }
.sht-mtable td { vertical-align: top; line-height: 1.25; }
.sht-mtable small { font-size: .72rem; }
.sht-ch-note { display: block; font-weight: 450; font-size: .76rem; }
.sht-good { color: #3c6a45; font-weight: 650; }
.sht-inline-label { margin: 1rem 0 .5rem; max-width: 14rem; }
.sht-pager { justify-content: center; margin-top: .8rem; }

/* Login */
.sht-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
body.sht:has(.sht-login) { padding-bottom: 0; }
.sht-login-card { width: 100%; max-width: 380px; text-align: left; }
.sht-login-card .sht-logo { width: 44px; height: 44px; margin-bottom: .8rem; }
.sht-login-card form { display: grid; gap: .8rem; margin-top: .6rem; }
.sht-login-card label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 550; }
.sht-login-card .sht-flash { margin: .5rem 0; }

@media (prefers-reduced-motion: reduce) { .sht-spinner { animation-duration: 2s; } }

/* Schrittprogramm im Tracker */
.sht-steps { padding: 12px 14px; }
.sht-steps .sz-box { max-width: none; }
.sht-steps .sz-box h3:first-of-type { margin-top: 4px; }
.sht-steps table { font-size: .92rem; }
.sht-steps input[type=number] { min-height: 44px; }

/* v1.4: Stimmung, Tagesbilanz, Erinnerungen, Ausreißer, Zucker */
.sht-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.sht-mood { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .1rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.sht-mood input { position: absolute; opacity: 0; pointer-events: none; }
.sht-mood-e { font-size: 1.9rem; line-height: 1.1; filter: grayscale(.35); opacity: .75; transition: filter .15s, opacity .15s; }
.sht-mood-l { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.15; }
.sht-mood:hover .sht-mood-e, .sht-mood.is-on .sht-mood-e { filter: none; opacity: 1; }
.sht-mood.is-on { border-color: var(--berry); background: var(--berry-soft); }
.sht-mood.is-on .sht-mood-l { color: var(--berry-ink); font-weight: 600; }
.sht-mood:active { transform: scale(.96); }
.sht-mood:has(input:focus-visible) { outline: 2px solid var(--berry); outline-offset: 2px; }
.sht-mood-form + p { margin: .6rem 0 0; }
.sht-mood-e-sm { font-size: 1.1rem; }
.sht-mood-nav { display: flex; align-items: center; justify-content: space-between; margin: .5rem 0 .2rem; }
.sht-mood-nav strong { font-size: 1rem; }
.sht-mood-nav button:disabled { opacity: .3; cursor: default; }
.sht-mood-dist .sht-cmp-l { white-space: nowrap; }
.sht-cmp-bar i.m1 { background: #6f5a86; }
.sht-cmp-bar i.m2 { background: #9b8fb3; }
.sht-cmp-bar i.m3 { background: #b9b1b6; }
.sht-cmp-bar i.m4 { background: #7fb08b; }
.sht-cmp-bar i.m5 { background: #3e8f55; }
.sht-hi-mood { font-size: 1.1rem; text-align: center; white-space: nowrap; }
.sht-tile-v small { font-size: .72em; font-weight: 500; color: var(--muted); }
.sht-balance .sht-tiles { margin-bottom: .4rem; }
.sht-reminder { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); border-left: 4px solid var(--berry); }
.sht-reminder > .sht-i:first-child { width: 1.6em; height: 1.6em; color: var(--berry); }
.sht-reminder > span { flex: 1; display: flex; flex-direction: column; }
.sht-reminder small { color: var(--muted); }
.sht-outlier { background: var(--amber-soft); border: 1px solid #efdcbc; }
.sht-outlier h2 .sht-i { color: #a06a1c; }
.sht-outlier-list { margin: 0 0 .6rem; padding-left: 1.2rem; }
.sht-outlier-list li { margin-bottom: .2rem; }
.sht-outlier p:last-child { margin-bottom: 0; }
.sht-due { color: var(--berry-ink); font-weight: 600; }
.sht-weigh-info { display: flex; gap: .45rem; align-items: flex-start; }
.sht-weigh-info .sht-i { margin-top: .15em; }
.sht-badge-sweet { background: var(--berry-soft); color: var(--berry-ink); }
.sht-sugar-row { align-items: flex-end; }
.sht-check { display: flex; align-items: center; gap: .4rem; padding-bottom: .55rem; font-weight: 500; }
.sht-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--berry); }
.sht-outlier-days { list-style: none; margin: 0 0 .8rem; padding: 0; }
.sht-outlier-days li { display: flex; flex-direction: column; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sht-outlier-days li:last-child { border-bottom: 0; }
.sht-outlier-days span { font-size: .9rem; }
.sht-hi-sweet, .sht-hi-out { color: var(--berry); }
.sht-hi-out { color: #a06a1c; }
.sht-legend .sht-i { color: var(--berry); }
.is-info { background: #fbfafa; }
@media (max-width: 380px) { .sht-mood-l { font-size: .64rem; } .sht-mood-e { font-size: 1.6rem; } }
.sht-moods-3 { grid-template-columns: repeat(3, 1fr); }
.sht-anx-title { margin: .7rem 0 .4rem; font-size: .88rem; color: var(--muted); font-weight: 600; }
.sht-mood-card h2 + .sht-anx-title { margin-top: 0; }
.sht-mood-seg { margin-bottom: .4rem; }
.sht-cmp-bar i.a1 { background: #7fb08b; }
.sht-cmp-bar i.a2 { background: #d9a55a; }
.sht-cmp-bar i.a3 { background: #b5533c; }
.sht-ins-group { margin-top: .6rem; } .sht-ins-group > summary { font-weight: 650; } .sht-ins-group .sht-insights { margin-top: .6rem; }
.sht-series-chips { margin-bottom: .5rem; }
.sht-schip { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .9rem; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.sht-schip i { width: 10px; height: 10px; border-radius: 50%; background: #d8d0d4; }
.sht-schip.is-on { color: var(--ink); border-color: #bfb3b9; font-weight: 600; }
.sht-schip.is-on i.s-mood { background: #A8386A; }
.sht-schip.is-on i.s-anx { background: #2F7DC0; }
.sht-schip.is-on i.s-head { background: #3E8F55; }
.sht-chart-tall { height: 320px; } .sht-ov-rel { font-weight: 600; color: var(--ink); margin-top: .4rem; } .sht-ov-rel:empty { display: none; } .sht-ov-chips { gap: .35rem; } .sht-ov-chips .sht-schip { font-size: .84rem; padding: .3rem .7rem; }
/* v1.5: Ernährungsübersicht, Wiegung als Erinnerung */
.sht-foodlink { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .75rem .9rem; border-radius: 12px; background: var(--berry-soft); color: var(--berry-ink); text-decoration: none; }
.sht-foodlink > span:first-child { flex: 1; display: flex; flex-direction: column; }
.sht-foodlink small { color: var(--muted); }
.sht-reminder-form { align-items: flex-start; }
.sht-reminder-form > .sht-i { margin-top: .15rem; }
.sht-reminder-form .sht-grow { display: flex; flex-direction: column; }
.sht-weigh-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin-top: .5rem; }
.sht-weigh-form .sht-input-unit { max-width: 10rem; } .sht-weigh-form .sht-input-unit input { min-width: 0; }
.sht-weighs { list-style: none; margin: 0 0 .6rem; padding: 0; }
.sht-weighs li { border-bottom: 1px solid var(--line); padding: .2rem 0 .5rem; }
.sht-weighs li:last-child { border-bottom: 0; }
.sht-weighs .sht-weigh-form { align-items: center; margin-top: .3rem; }
.sht-weigh-day { flex: 1; min-width: 7.5rem; font-size: .92rem; }
.sht-back { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; font-weight: 600; margin: .2rem 0 .4rem; }
.sht-pagetitle { font-size: 1.3rem; margin: .2rem 0 .6rem; }
.sht-weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-bottom: .9rem; }
.sht-weekstrip a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .1rem; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-height: 4.2rem; }
.sht-weekstrip a.is-active { background: var(--berry); color: #fff; }
.sht-weekstrip a.is-active .sht-ws-s { color: #fff; }
.sht-ws-d { font-size: .72rem; }
.sht-ws-k { font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.sht-ws-s { color: var(--berry); height: 1rem; }
.sht-ws-s .sht-i { width: .95em; height: .95em; }
.sht-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sht-weighs .sht-weigh-form { flex-wrap: nowrap; } .sht-weighs .sht-input-unit { max-width: 7rem; } .sht-weighs .sht-input-unit input { width: 4.8rem; } .sht-weigh-day { min-width: 0; }

/* 1.6.0: Essen ohne Foto nur per Text einreichen */
.sht-meal-text-btn { width: 100%; margin-top: .6rem; justify-content: center; }
