:root {
  color-scheme: light;
  --bg: #f7fbfd;
  --surface: #ffffff;
  --surface-blue: #eefbff;
  --text: #07314b;
  --muted: #637b92;
  --border: #cfe0ea;
  --accent: #0a9db7;
  --accent-dark: #075d73;
  --green: #14924a;
  --orange: #f59b00;
  --red: #ff4747;
  --shadow: 0 14px 34px rgba(3, 56, 87, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 14%, rgba(37, 192, 214, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-body {
  min-height: 100vh;
}

.mobile-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 112px);
  background: rgba(255, 255, 255, 0.72);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin: -18px -18px 12px;
  padding: calc(env(safe-area-inset-top) + 18px) 18px 12px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(207, 224, 234, 0.72);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-mark img {
  width: 42px;
  height: 42px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-back,
.icon-only {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 500;
}

.icon-only img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.notify-button {
  position: relative;
}

.notify-button span {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #10bad2, #0488a7);
  box-shadow: 0 8px 18px rgba(22, 111, 122, 0.18);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

h1 {
  margin: 18px 0 18px;
  color: #051f3e;
  font-size: 2.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2,
h3,
p {
  margin-top: 0;
}

.expiry-card {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 102px;
  padding: 18px;
  border: 1px solid #ffb4b4;
  border-radius: 22px;
  background: linear-gradient(120deg, #fff5f5 0%, #ffffff 62%, #fff1f1 100%);
  box-shadow: 0 14px 30px rgba(255, 71, 71, 0.12);
  color: var(--text);
  text-align: left;
}

.expiry-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7368, #ff302f);
  box-shadow: 0 10px 20px rgba(255, 71, 71, 0.26);
  color: #fff;
  font-size: 2rem;
}

.expiry-card strong {
  display: block;
  color: var(--red);
  font-size: 1.35rem;
}

.expiry-card small {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.expiry-card em {
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff756f, #ff302f);
  color: #fff;
  font-style: normal;
  font-weight: 800;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.summary-strip div {
  min-height: 154px;
  padding: 14px;
  border: 1px solid #dceaf2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.summary-strip img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.summary-strip small {
  display: block;
  min-height: 42px;
  margin: 10px 0 16px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.15;
}

.summary-strip span {
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 900;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.section-title span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

.section-title img {
  width: 28px;
  height: 28px;
}

.section-title button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #b9d5e6;
  border-radius: 19px;
  background: #fff;
}

.search-box img {
  width: 28px;
  height: 28px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 1rem;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin: 16px -18px 16px 0;
  overflow-x: auto;
  padding-bottom: 3px;
}

.filter-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfe0ea;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.filter-row button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #0bb2ca, #087d9e);
  color: #fff;
}

.item-list {
  display: grid;
  gap: 10px;
}

.freezer-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  min-height: 126px;
  padding: 12px 10px 12px 12px;
  border: 1px solid #d7e6ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(14, 80, 120, 0.08);
}

.compact-list .freezer-item {
  grid-template-columns: 136px minmax(0, 1fr) 18px;
}

.freezer-item.abgelaufen {
  border-color: #ffc5c5;
}

.freezer-item.bald-verbrauchen {
  border-color: #ffdca3;
}

.food-image {
  width: 100%;
  aspect-ratio: 1.24;
  border-radius: 14px;
  background: #eaf8fb;
  object-fit: cover;
}

.item-main {
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-title-row h3 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1.05rem;
}

.category-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #e8f8ee;
  color: var(--green);
  font-weight: 900;
}

.status-badge {
  flex: 0 0 auto;
  background: #eef9ef;
  font-size: 0.75rem;
}

.freezer-item.bald-verbrauchen .status-badge,
.freezer-item.bald-verbrauchen .expiry-line {
  color: var(--orange);
}

.freezer-item.abgelaufen .status-badge,
.freezer-item.abgelaufen .expiry-line {
  color: var(--red);
}

.item-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: #38566c;
  font-size: 0.86rem;
}

.item-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.item-facts img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.expiry-line {
  margin: 8px 0 0;
  color: var(--orange);
  font-weight: 800;
}

.item-chevron {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
}

.empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed #cfe0ea;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.add-card,
.settings-card {
  padding: 18px;
  border: 1px solid #d7e6ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.app-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 900;
}

.app-field input,
.app-field select,
.app-field textarea,
.input-with-icon {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b9d5e6;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

.app-field select {
  height: 54px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #38566c 50%),
    linear-gradient(135deg, #38566c 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 24px,
    calc(100% - 12px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.app-field input,
.app-field select,
.app-field textarea {
  padding: 12px 14px;
}

.app-field select {
  padding-right: 34px;
}

.app-field textarea {
  resize: vertical;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-action,
.logout-button,
.danger-action,
.settings-card button {
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #075d73, #004960);
  color: #fff;
  font-weight: 900;
}

.primary-action {
  width: 100%;
  font-size: 1.1rem;
}

.secondary {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #0a9db7;
  border-radius: 16px;
  background: #fff;
  color: var(--accent);
  font-weight: 900;
}

.danger-action {
  background: linear-gradient(135deg, #ff756f, #ff3333);
}

.message {
  min-height: 1.3em;
  color: var(--muted);
}

.message.inline {
  margin: 0 0 10px;
  text-align: right;
}

.detail-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(100%, 430px);
  max-height: 74vh;
  transform: translateX(-50%);
  overflow-y: auto;
  padding: 12px 18px calc(env(safe-area-inset-bottom) + 18px);
  border: 1px solid #b9d5e6;
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 36px rgba(5, 31, 62, 0.18);
}

.sheet-handle {
  width: 56px;
  height: 6px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #c5d8e5;
}

.sheet-content {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 14px;
}

.sheet-image {
  width: 100%;
  border-radius: 18px;
  background: #eaf8fb;
}

.sheet-title h2 {
  margin: 0 0 8px;
}

.sheet-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.sheet-facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sheet-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38566c;
}

.sheet-facts img {
  width: 20px;
  height: 20px;
}

.sheet-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.sheet-note {
  color: #38566c;
  line-height: 1.35;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.sheet-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sheet-actions img {
  width: 22px;
  height: 22px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 430px);
  min-height: 78px;
  padding: 8px 8px calc(env(safe-area-inset-bottom) + 6px);
  transform: translateX(-50%);
  border-top: 1px solid #d7e6ef;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 56px;
  padding: 4px 2px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #38566c;
  font-size: 0.66rem;
  line-height: 1.05;
}

.bottom-nav span {
  font-size: 1.45rem;
  line-height: 1;
}

.bottom-nav .nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-bottom: 1px;
}

.bottom-nav .nav-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.bottom-nav button.active {
  background: rgba(10, 157, 183, 0.1);
  color: var(--accent);
}

.bottom-nav .add-tab span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: -34px auto 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #14c5d8, #058aa7);
  box-shadow: 0 10px 24px rgba(10, 157, 183, 0.35);
  color: #fff;
  font-size: 2.3rem;
  line-height: 58px;
}

details {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.admin-form,
.issue-form,
.shelf-life-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.rule-list,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.rule-pill {
  min-height: 36px;
  border: 1px solid #cfe0ea;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.status-grid,
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.diagnostic-item,
.admin-user,
.admin-block {
  padding: 12px;
  border: 1px solid #d7e6ef;
  border-radius: 16px;
  background: #fff;
}

.diagnostic-item {
  display: grid;
  gap: 4px;
}

.diagnostic-item span,
dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.admin-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.admin-user span {
  display: grid;
}

.view-intro {
  margin: -8px 0 18px;
  color: var(--muted);
  line-height: 1.35;
}

.settings-grid,
.admin-grid {
  display: grid;
  gap: 12px;
}

.settings-panel,
.admin-card {
  padding: 16px;
  border: 1px solid #d7e6ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(14, 80, 120, 0.08);
}

.settings-panel {
  display: grid;
  gap: 12px;
}

.admin-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-kicker {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-card-title h2 {
  margin: 0;
  color: #051f3e;
  font-size: 1.12rem;
  line-height: 1.15;
}

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0;
}

.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #10bad2, #0488a7);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-push {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 157, 183, 0.12);
}

.wide {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e9f8fb;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-panel {
  margin-top: 14px;
  padding: 0;
  border: 1px solid rgba(10, 157, 183, 0.22);
  border-radius: 22px;
  background: rgba(238, 251, 255, 0.48);
  overflow: hidden;
}

.admin-summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  color: var(--accent-dark);
  list-style: none;
}

.admin-summary::-webkit-details-marker {
  display: none;
}

.admin-summary span {
  font-weight: 900;
}

.admin-summary small {
  max-width: 210px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.admin-grid {
  padding: 0 12px 12px;
}

.admin-shelf-card {
  border-color: rgba(20, 146, 74, 0.2);
  background: linear-gradient(180deg, #fff 0%, #f3fbf6 100%);
}

.admin-maintenance-card {
  background: linear-gradient(180deg, #fff 0%, #eefbff 100%);
}

.admin-form,
.issue-form,
.shelf-life-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.settings-panel .app-field,
.admin-card .app-field {
  margin-bottom: 0;
}

.category-admin-list {
  padding: 0;
  border: 1px solid #d7e6ef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.category-admin-list + .category-admin-list {
  margin-top: 10px;
}

.category-admin-summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--accent-dark);
  list-style: none;
}

.category-admin-summary::-webkit-details-marker {
  display: none;
}

.category-admin-summary span {
  font-weight: 900;
}

.category-admin-summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.shelf-life-list {
  display: grid;
  border-top: 1px solid rgba(10, 157, 183, 0.1);
}

.shelf-life-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 48px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid rgba(10, 157, 183, 0.08);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.shelf-life-row:first-child {
  border-top: 0;
}

.shelf-life-row span {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.shelf-life-row strong {
  color: var(--accent-dark);
  font-size: 0.86rem;
}

.category-admin-list .shelf-life-form {
  padding: 12px;
  border-top: 1px solid rgba(10, 157, 183, 0.1);
}

.admin-push-status {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid #d7e6ef;
  border-radius: 16px;
  background: #f7fbfd;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-push-status strong {
  color: var(--accent-dark);
  font-size: 0.94rem;
}

.admin-push-status.success {
  border-color: rgba(20, 146, 74, 0.26);
  background: #f0fbf4;
}

.admin-push-status.warning {
  border-color: rgba(245, 155, 0, 0.34);
  background: #fff9ec;
}

.admin-push-status.warning strong {
  color: #ad6f00;
}

.compact-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.diagnostics {
  display: grid;
  gap: 10px;
}

.diagnostic-group {
  padding: 0;
  border: 1px solid #d7e6ef;
  border-radius: 16px;
  background: #f7fbfd;
  overflow: hidden;
}

.diagnostic-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--accent-dark);
  list-style: none;
}

.diagnostic-summary::-webkit-details-marker {
  display: none;
}

.diagnostic-state {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 146, 74, 0.12);
}

.diagnostic-state.warn {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 155, 0, 0.14);
}

.diagnostic-group-body {
  padding: 0 12px 10px;
  border-top: 1px solid rgba(10, 157, 183, 0.1);
}

.diagnostic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(10, 157, 183, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}

.diagnostic-row:first-child {
  border-top: 0;
}

.diagnostic-row strong {
  max-width: 190px;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: right;
}

.diagnostic-row strong.ok {
  color: var(--accent-dark);
}

.diagnostic-row strong.warn {
  color: #ad6f00;
}

.status-grid {
  margin: 2px 0 0;
}

.status-grid div,
.admin-user {
  background: #f7fbfd;
}

.logout-button {
  width: 100%;
  margin-top: 14px;
}

.login-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 18%, rgba(132, 220, 235, 0.25), transparent 20%),
    radial-gradient(circle at 100% 30%, rgba(132, 220, 235, 0.18), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #eef9fd 100%);
}

.login-screen {
  position: relative;
  width: min(100%, 430px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.login-content {
  position: relative;
  z-index: 2;
  padding: calc(env(safe-area-inset-top) + 10px) 28px 0;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
  padding: 0;
}

.login-brand img {
  width: 48px;
  height: 48px;
}

.login-brand strong {
  color: var(--accent-dark);
  font-size: 2.25rem;
  line-height: 1;
}

.login-copy {
  margin-bottom: 52px;
  padding: 0;
  text-align: center;
}

.login-copy h1 {
  margin: 0 0 4px;
  font-size: 1.7rem;
}

.login-copy p {
  margin-bottom: 0;
  color: #566a7b;
  font-size: 1rem;
}

.login-form {
  position: relative;
  z-index: 2;
  padding: 0;
}

.login-form .app-field {
  margin-bottom: 10px;
}

.input-with-icon {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px 0 0;
}

.input-with-icon input {
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
}

.field-icon {
  width: 25px;
  height: 25px;
  margin-left: 14px;
  object-fit: contain;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #566a7b;
}

.error {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--red);
  text-align: center;
}

.login-freezer-bg {
  display: block;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 100vw;
  max-width: none;
  height: min(48dvh, 360px);
  transform: translateX(-50%);
  object-fit: cover;
  object-position: top center;
}

@supports (height: 100svh) {
  .login-body,
  .login-screen {
    height: 100svh;
  }

  .login-freezer-bg {
    height: min(48svh, 360px);
  }
}

@media (max-width: 370px) {
  .mobile-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-header {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .freezer-item,
  .compact-list .freezer-item {
    grid-template-columns: 92px minmax(0, 1fr) 18px;
  }

  .summary-strip {
    gap: 8px;
  }

  .summary-strip div {
    padding: 11px;
  }
}
