@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-variable.ttf") format("truetype");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --navy-950: #04264d;
    --navy-900: #07386f;
    --blue-700: #0867c8;
    --blue-600: #0878e2;
    --blue-100: #e7f2ff;
    --ice-50: #f7fbff;
    --ice-100: #edf6fc;
    --slate-900: #10243e;
    --slate-700: #3e536d;
    --slate-500: #708297;
    --slate-300: #cbd6e1;
    --slate-200: #dce5ed;
    --white: #ffffff;
    --green: #20a24a;
    --green-soft: #e8f7ed;
    --amber: #dfa10b;
    --amber-soft: #fff5d8;
    --red: #cc3b38;
    --red-soft: #fff0ef;
    --shadow-soft: 0 12px 34px rgba(9, 46, 87, 0.10);
    --shadow-card: 0 8px 24px rgba(9, 46, 87, 0.08);
    --radius-large: 24px;
    --radius-card: 18px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--white);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 10% -20%, rgba(90, 181, 242, 0.24), transparent 35%),
        radial-gradient(circle at 100% 20%, rgba(8, 120, 226, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fcff 0%, #eef6fb 100%);
    font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.app-shell {
    position: relative;
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: calc(94px + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 60px rgba(4, 38, 77, 0.08);
    backdrop-filter: blur(18px);
}

.app-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 22px 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
}

.brand {
    display: flex;
    flex: 1 1 auto;
    gap: 11px;
    align-items: center;
    min-width: 0;
    font-size: clamp(0.82rem, 3.8vw, 1.02rem);
    font-weight: 850;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
    margin-left: 12px;
}

.test-environment-label {
    color: inherit;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    opacity: 0.88;
    white-space: nowrap;
}

.brand-home {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.brand-avatar-button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: zoom-in;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-label {
    display: block;
    overflow: hidden;
    font-size: 1.12em;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.brand-tagline {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.58em;
    font-weight: 750;
    letter-spacing: 0.09em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    color: inherit;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    place-items: center;
    font-size: 1.25rem;
}

.icon-button:focus-visible,
.brand-avatar-button:focus-visible,
.brand-home:focus-visible,
.button:focus-visible,
.nav-item:focus-visible,
.mountain-card:focus-visible,
.text-button:focus-visible {
    outline: 3px solid rgba(8, 120, 226, 0.35);
    outline-offset: 3px;
}

.avatar-dialog {
    width: min(86vw, 560px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.avatar-dialog::backdrop {
    background: rgba(4, 24, 48, 0.72);
    backdrop-filter: blur(5px);
}

.avatar-dialog-close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    color: var(--navy-900);
    background: rgba(237, 246, 252, 0.94);
    border: 1px solid rgba(7, 56, 111, 0.12);
    box-shadow: 0 6px 18px rgba(4, 38, 77, 0.18);
    backdrop-filter: blur(5px);
}

.avatar-dialog-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 54px rgba(4, 38, 77, 0.26);
}

.connection-banner {
    padding: 10px 20px;
    color: #6e4a00;
    background: var(--amber-soft);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

main {
    padding: 28px 20px 20px;
}

.page-heading,
.onboarding-copy {
    margin-bottom: 24px;
}

.page-heading.compact {
    margin-bottom: 20px;
}

.page-heading-with-action {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.view-back {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--blue-700);
    border: 1px solid rgba(8, 103, 200, 0.22);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--blue-700);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 620px;
    margin-bottom: 8px;
    font-size: clamp(2rem, 7vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 4px;
    font-size: 1.12rem;
    line-height: 1.25;
}

.page-heading > p:last-child,
.page-heading > div > p:last-child,
.onboarding-copy > p:last-child,
.updated-label {
    margin-bottom: 0;
    color: var(--slate-500);
    line-height: 1.55;
}

.onboarding {
    max-width: 620px;
    margin: 0 auto;
}

/* Die Ersteinrichtung verwendet die vollständige Ansicht «Meine Berge».
   Ein Zurücksetzen ist erst nach dem ersten Speichern sinnvoll. */
.setup-mode #reset-app,
.setup-mode .reset-card {
    display: none;
}

.bot-tagline {
    color: var(--navy-900);
    font-weight: 750;
}

.onboarding-question {
    margin-top: 26px;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.mountain-picker {
    display: grid;
    gap: 12px;
}

.profile-field {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
}

.profile-field label {
    color: var(--navy-900);
    font-weight: 800;
}

.profile-field input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    color: var(--navy-900);
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    background: var(--white);
    font: inherit;
}

.profile-field input:focus {
    border-color: var(--blue-600);
    outline: 3px solid rgba(8, 120, 226, 0.18);
    outline-offset: 1px;
}

.profile-field small {
    color: var(--slate-500);
    line-height: 1.4;
}

.settings-profile-field {
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.settings-profile-field label {
    font-size: 1.25rem;
    line-height: 1.25;
}

.personal-selection {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--slate-200);
}

.lift-time-settings {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--slate-200);
}

.lift-time-settings label {
    display: block;
    margin-top: 16px;
    color: var(--navy-900);
    font-weight: 700;
}

.lift-time-explanation-clock {
    display: inline-flex;
    align-items: center;
    color: var(--green);
    vertical-align: -3px;
}

.lift-time-explanation-clock .lift-clock-icon {
    width: 17px;
    height: 17px;
}

.lift-time-settings select {
    appearance: none;
    width: 100%;
    min-height: 52px;
    margin-top: 7px;
    padding: 12px 48px 12px 14px;
    color: var(--navy-900);
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='m1 1 6 6 6-6' stroke='%230878e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 17px center;
    background-repeat: no-repeat;
    background-size: 14px 8px;
    font: inherit;
}

.lift-time-settings select:focus {
    border-color: var(--blue-600);
    outline: 3px solid rgba(8, 120, 226, 0.18);
    outline-offset: 1px;
}

.lift-time-settings small {
    display: block;
    margin-top: 7px;
    color: var(--slate-500);
    line-height: 1.4;
}

.mountain-order-settings {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--slate-200);
}

.mountain-selection-settings {
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid var(--slate-200);
}

.mountain-selection-settings .mountain-picker {
    margin-top: 16px;
}

.mountain-order-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 10px;
}

.mountain-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px 36px;
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 9px 10px 9px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
}

.mountain-order-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--navy-900);
    font-size: 0.94rem;
    font-weight: 850;
}

.personal-selection-heading h2 {
    margin: 3px 0 5px;
    font-size: 1.25rem;
}

.personal-selection-heading > p:last-child,
.personal-selection-empty {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.45;
}

.personal-group-settings {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.personal-selection-empty {
    padding: 14px;
    border: 1px dashed var(--slate-300);
    border-radius: 13px;
    background: var(--ice-50);
}

.personal-mountain-groups {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 15px;
    background: var(--ice-50);
}

.personal-mountain-groups > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: var(--navy-900);
    font-weight: 850;
    list-style: none;
    cursor: pointer;
}

.personal-mountain-groups > summary::-webkit-details-marker {
    display: none;
}

.personal-mountain-groups > summary::after {
    color: var(--blue-700);
    font-size: 1.1rem;
    content: "+";
    text-align: center;
}

.personal-mountain-groups[open] > summary {
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
}

.personal-mountain-groups[open] > summary::after {
    content: "−";
}

.personal-group-count {
    color: var(--slate-500);
    font-size: 0.76rem;
    font-weight: 750;
}

.personal-group-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.personal-group-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px 36px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
}

.personal-group-toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.personal-group-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.personal-group-switch {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--slate-300);
    transition: background 160ms ease;
}

.personal-group-switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    content: "";
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(4, 38, 77, 0.24);
    transition: transform 160ms ease;
}

.personal-group-toggle input:checked + .personal-group-switch {
    background: var(--blue-600);
}

.personal-group-toggle input:checked + .personal-group-switch::after {
    transform: translateX(16px);
}

.personal-group-toggle input:focus-visible + .personal-group-switch {
    outline: 3px solid rgba(8, 120, 226, 0.22);
    outline-offset: 2px;
}

.personal-group-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    font-weight: 800;
}

.personal-group-row.is-hidden .personal-group-name {
    color: var(--slate-500);
}

.personal-group-order {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--blue-700);
    font: inherit;
    font-weight: 900;
    border: 1px solid rgba(8, 120, 226, 0.22);
    border-radius: 10px;
    background: var(--ice-100);
    cursor: pointer;
    place-items: center;
}

.personal-group-order:disabled,
.personal-group-action:disabled {
    cursor: default;
    opacity: 0.35;
}

.personal-group-order:not(:disabled):hover {
    border-color: var(--blue-600);
    background: var(--blue-100);
}

.personal-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px 12px;
}

.personal-group-action {
    min-height: 36px;
    padding: 7px 10px;
    color: var(--blue-700);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid rgba(8, 120, 226, 0.22);
    border-radius: 999px;
    background: var(--white);
    cursor: pointer;
}

.personal-group-action:not(:disabled):hover {
    border-color: var(--blue-600);
    background: var(--blue-100);
}

.mountain-option {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 28px;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 12px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 18px rgba(9, 46, 87, 0.04);
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mountain-option:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.mountain-option:has(input:checked) {
    border-color: var(--blue-600);
    box-shadow: 0 7px 22px rgba(8, 120, 226, 0.13);
}

.mountain-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
}

.option-name {
    font-size: 1.08rem;
    font-weight: 800;
}

.option-check {
    display: grid;
    width: 26px;
    height: 26px;
    border: 2px solid var(--slate-300);
    border-radius: 50%;
    place-items: center;
}

.mountain-option input:checked + .option-check {
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.mountain-option input:checked + .option-check::after {
    width: 6px;
    height: 11px;
    content: "";
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg);
}

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

.app-version {
    margin: 18px 0 0;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.app-version.version-mismatch {
    color: var(--red);
}

.app-version-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.app-version-link:hover {
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-version-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue-600) 35%, transparent);
    outline-offset: 3px;
    border-radius: 5px;
}

.button {
    min-height: 52px;
    padding: 12px 18px;
    border: 1.5px solid transparent;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:not(:disabled):active {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    box-shadow: 0 10px 22px rgba(8, 103, 200, 0.22);
}

.button-secondary {
    color: var(--blue-700);
    border-color: var(--blue-600);
    background: var(--white);
}

.button-reset {
    color: var(--red);
    border-color: rgba(204, 59, 56, 0.45);
    background: var(--white);
}

.full-width {
    width: 100%;
}

.notice-card,
.lake-card,
.excursions-card,
.install-card,
.settings-card,
.push-card {
    border: 1px solid rgba(203, 214, 225, 0.75);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.notice-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 16px;
    margin-bottom: 28px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.notice-card.has-warning {
    border-color: rgba(223, 161, 11, 0.45);
    background: linear-gradient(135deg, var(--white), var(--amber-soft));
}

.notice-card.has-critical,
.notice-card.has-negative {
    border-color: rgba(204, 59, 56, 0.42);
    background: linear-gradient(135deg, var(--white), var(--red-soft));
}

.notice-card.has-positive {
    border-color: rgba(32, 162, 74, 0.38);
    background: linear-gradient(135deg, var(--white), var(--green-soft));
}

.notice-icon,
.lake-icon {
    display: grid;
    width: 48px;
    height: 48px;
    color: var(--blue-700);
    border-radius: 15px;
    background: var(--blue-100);
    place-items: center;
    font-size: 1.35rem;
    font-weight: 900;
}

.notice-card p {
    margin-bottom: 0;
    color: var(--slate-500);
    line-height: 1.4;
}

.notice-copy {
    min-width: 0;
}

.notice-summary-title {
    overflow: hidden;
    color: var(--slate-700) !important;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-summary-text {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.status-dot {
    display: block;
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px var(--green-soft);
}

.notice-card.has-warning .status-dot {
    background: var(--amber);
    box-shadow: 0 0 0 5px var(--amber-soft);
}

.notice-card.has-critical .status-dot,
.notice-card.has-negative .status-dot {
    background: var(--red);
    box-shadow: 0 0 0 5px var(--red-soft);
}

.notice-card.has-positive .status-dot {
    background: var(--green);
    box-shadow: 0 0 0 5px var(--green-soft);
}

.notice-tail {
    display: grid;
    grid-template-columns: 11px 14px;
    gap: 9px;
    align-items: center;
    justify-items: center;
    align-self: center;
}

.notice-arrow {
    display: block;
    width: 9px;
    height: 9px;
    color: var(--slate-500);
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    font-size: 0;
    transform: rotate(-45deg);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.28rem;
}

.text-button {
    padding: 8px 4px;
    color: var(--blue-700);
    border: 0;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.mountain-grid {
    display: grid;
    gap: 14px;
}

.mountain-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 15px;
    align-items: center;
    width: 100%;
    min-height: 112px;
    padding: 17px;
    color: inherit;
    text-align: left;
    border: 1px solid rgba(203, 214, 225, 0.75);
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.mountain-card:hover {
    border-color: rgba(8, 120, 226, 0.35);
}

.mountain-symbol {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
}

.mountain-card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.status-line {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    color: var(--slate-700);
    font-size: 0.91rem;
}

.mini-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--slate-300);
}

.mini-dot.open {
    background: var(--green);
}

.mini-dot.closed {
    background: var(--red);
}

.mini-dot.unknown {
    background: var(--slate-300);
}

.card-arrow {
    color: var(--slate-500);
    font-size: 1.7rem;
    font-weight: 400;
}

.lake-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    margin-top: 24px;
}

.excursions-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.excursions-icon {
    display: grid;
    width: 48px;
    height: 48px;
    color: var(--blue-700);
    border-radius: 15px;
    background: var(--blue-100);
    place-items: center;
}

.excursions-icon img {
    display: block;
    width: 41px;
    height: 41px;
    object-fit: contain;
}

.excursions-card h2 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.excursions-card p:last-child {
    margin-bottom: 0;
    color: var(--slate-500);
    font-size: 0.88rem;
    line-height: 1.45;
}

.excursions-arrow {
    color: var(--slate-500);
    font-size: 1.7rem;
    font-weight: 400;
}

.excursions-dialog {
    width: min(calc(100% - 28px), 620px);
}

#excursions-dialog-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    padding: 18px;
}

.excursions-intro {
    margin: 0 0 18px;
    color: var(--slate-500);
    line-height: 1.5;
}

.einkehrtipps-row .gastro-details-source.message-footer {
    width: 100%;
    text-align: right;
}

.einkehrtipps-row.is-expanded .object-details {
    padding-bottom: 30px;
}

.einkehrtipps-row.is-expanded {
    position: relative;
}

.einkehrtipps-row.is-expanded .gastro-details-source.message-footer {
    position: absolute;
    right: 13px;
    bottom: 12px;
    width: auto;
    margin: 0 !important;
}

.card-label {
    margin-bottom: 3px;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lake-temperature {
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: 850;
}

.message-list {
    display: grid;
    gap: 14px;
}

.message-ui-test-banner {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    margin-bottom: 18px;
    color: var(--navy-900);
    border: 1px solid rgba(8, 103, 200, 0.30);
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, rgba(226, 242, 255, 0.98), rgba(247, 251, 255, 0.98));
    box-shadow: var(--shadow-card);
}

.message-ui-test-banner[hidden] {
    display: none;
}

.message-ui-test-banner strong {
    color: var(--blue-700);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.message-ui-test-banner span {
    color: var(--slate-700);
    line-height: 1.45;
}

.ui-message-test-mode #settings-shortcut,
.ui-message-test-mode #bottom-nav {
    display: none !important;
}

.ui-message-test-mode #view-overview .mountain-section,
.ui-message-test-mode #lake-card {
    display: none !important;
}

.ui-message-test-mode main {
    padding-bottom: 36px;
}

.message-card,
.empty-state {
    padding: 18px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.message-card {
    position: relative;
    overflow: hidden;
    padding-right: 58px;
    touch-action: pan-y;
    transition: transform 180ms ease, opacity 180ms ease;
    will-change: transform, opacity;
}

.message-card.is-swiping {
    transition: none;
}

.message-card.is-dismissing {
    pointer-events: none;
}

.message-dismiss {
    position: absolute !important;
    z-index: 2;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 12px !important;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    overflow: hidden;
    color: var(--navy-900);
    font-size: 0;
    place-items: center;
    border: 1px solid rgba(8, 103, 200, 0.18);
    border-radius: 50%;
    background: rgba(247, 251, 255, 0.94);
    box-shadow: 0 4px 12px rgba(4, 38, 77, 0.10);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.message-dismiss::before,
.message-dismiss::after {
    position: absolute;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.message-dismiss::before {
    transform: rotate(45deg);
}

.message-dismiss::after {
    transform: rotate(-45deg);
}

.message-dismiss:hover,
.message-dismiss:focus-visible {
    color: var(--blue-700);
    border-color: rgba(8, 103, 200, 0.35);
    background: var(--white);
    transform: scale(1.05);
}

.message-dismiss:active {
    transform: scale(0.94);
}

.message-card.tone-negative {
    border-left: 5px solid var(--red);
}

.message-card.tone-positive {
    border-left: 5px solid var(--green);
}

.message-card.source-telegram-hand {
    border-left: 5px solid var(--amber);
}

.message-card h2 {
    margin-bottom: 8px;
}

.message-card p {
    color: var(--slate-700);
    line-height: 1.55;
}

.message-card .message-text {
    white-space: pre-line;
}

.gastro-details-source.message-footer {
    display: flex;
    gap: 5px;
    align-items: baseline;
    justify-content: flex-end;
    margin: 14px -99px 0 0 !important;
    text-align: right;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.gastro-details-source.message-footer .message-footer-source {
    margin-left: auto;
}

.message-card .message-footer {
    display: flex;
    gap: 5px;
    align-items: baseline;
    justify-content: flex-end;
    margin-top: 14px;
    margin-right: -40px;
    margin-bottom: 0;
    text-align: right;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.message-footer-source,
.message-footer-time {
    min-width: 0;
    white-space: nowrap;
}

.message-footer-source {
    margin-left: auto;
}

.message-footer-time {
    text-align: right;
}

@media (max-width: 390px) {
    .message-card .message-footer {
        gap: 5px;
        align-items: flex-start;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .message-footer-time {
        margin-left: 0;
    }
}

.message-card a {
    color: var(--blue-700);
    font-weight: 800;
}

.message-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    padding: 5px 9px;
    color: var(--navy-900);
    border-radius: 999px;
    background: var(--ice-100);
    font-size: 0.72rem;
    font-weight: 800;
}

.empty-state {
    color: var(--slate-500);
    text-align: center;
}

.settings-card,
.install-card {
    padding: 18px;
}

.push-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 20px;
    margin-top: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(8, 120, 226, 0.28);
    background:
        radial-gradient(circle at 100% 0, rgba(30, 154, 240, 0.17), transparent 42%),
        linear-gradient(145deg, #ffffff 0%, #eef7ff 100%);
    box-shadow: 0 14px 34px rgba(6, 70, 132, 0.12);
}

.push-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    content: "";
    background: linear-gradient(180deg, var(--blue-600), #14b8a6);
}

.push-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.push-card-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    color: var(--white);
    border-radius: 17px;
    background: linear-gradient(145deg, var(--blue-700), #1096e8);
    box-shadow: 0 9px 20px rgba(8, 103, 200, 0.24);
    place-items: center;
}

.push-card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.push-card .card-label {
    margin: 0 0 3px;
}

.push-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.settings-profile-field label,
.personal-selection-heading h2,
.push-card h2,
.install-card h2 {
    color: var(--navy-900);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.push-status-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 13px;
    border: 1px solid rgba(8, 120, 226, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
}

.push-status-row p {
    margin: 0;
    color: var(--slate-700);
    font-size: 0.88rem;
    line-height: 1.42;
}

.push-status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(8, 120, 226, 0.12);
}

.push-card .button {
    width: 100%;
    min-height: 54px;
    margin: 0;
}

.push-privacy {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    color: var(--slate-500);
    font-size: 0.76rem;
    line-height: 1.45;
}

.push-privacy span {
    color: var(--green);
    font-weight: 900;
}

.push-card.push-active {
    border-color: rgba(28, 158, 85, 0.38);
    background: linear-gradient(135deg, var(--white), rgba(226, 248, 235, 0.86));
}

.push-card.push-active::before {
    background: var(--green);
}

.push-card.push-active .push-status-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(28, 158, 85, 0.12);
}

.push-card.push-error {
    border-color: rgba(204, 59, 56, 0.38);
}

.push-card.push-error::before {
    background: var(--red);
}

.push-card.push-error .push-status-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(204, 59, 56, 0.12);
}

.settings-card .button {
    margin-top: 18px;
}

.settings-card .button-reset {
    margin-top: 10px;
}

.reset-help {
    margin: 0;
    padding: 0 18px 15px;
    color: var(--slate-500);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.reset-card {
    overflow: hidden;
    border: 1px solid rgba(204, 59, 56, 0.45);
    border-radius: var(--radius-card);
    background: var(--white);
}

.reset-card .button-reset {
    border: 0;
    border-radius: 0;
}

.install-card {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.install-card + .reset-card {
    margin-top: 18px;
}

.install-card p:last-child {
    margin-bottom: 0;
    color: var(--slate-500);
    line-height: 1.5;
}

.powered-by {
    margin: 28px 2px 0;
    color: var(--slate-500);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-align: right;
}

.powered-by-link,
.powered-by-goat {
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
}

.powered-by-link {
    cursor: pointer;
}

.powered-by-goat {
    margin-left: 2px;
    cursor: pointer;
}

.powered-by-link:hover,
.powered-by-goat:hover {
    color: var(--blue-700);
}

.powered-by-link:focus-visible,
.powered-by-goat:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue-600) 35%, transparent);
    outline-offset: 3px;
}

.settings-powered-by {
    margin: 10px 2px 0;
    text-align: center;
}

#view-settings.active ~ .powered-by {
    display: none;
}

.view:not(#view-overview).active ~ .main-powered-by {
    display: none;
}

.dialog-powered-by {
    margin-top: 22px;
    padding: 12px 26px 10px 0;
    border-top: 1px solid var(--slate-200);
}

.bottom-nav {
    position: fixed;
    z-index: 25;
    right: max(0px, calc((100vw - 760px) / 2));
    bottom: 0;
    left: max(0px, calc((100vw - 760px) / 2));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 8px calc(8px + var(--safe-bottom));
    border-top: 1px solid rgba(203, 214, 225, 0.85);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 30px rgba(9, 46, 87, 0.08);
    backdrop-filter: blur(18px);
}

.nav-item {
    position: relative;
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 6px;
    color: var(--slate-500);
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    place-items: center;
    font-size: 0.73rem;
    font-weight: 750;
}

.nav-item.active {
    color: var(--blue-700);
    background: var(--ice-50);
}

.nav-item.active::before {
    position: absolute;
    top: -9px;
    width: 46px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: var(--blue-600);
}

.nav-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.nav-icon-overview::before,
.nav-icon-overview::after,
.nav-icon-messages::before,
.nav-icon-messages::after {
    content: none;
}

.nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.nav-icon-overview svg,
.nav-icon-messages svg {
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon-mountains {
    border-radius: 8px;
    background: url('icons/icon-192.png') center / cover no-repeat;
}

.nav-item:not(.active) .nav-icon-mountains {
    filter: grayscale(1);
    opacity: 0.72;
}

.nav-item.active .nav-icon-mountains {
    box-shadow: 0 0 0 2px rgba(8, 120, 226, 0.18);
}

.nav-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.mountain-dialog {
    width: min(calc(100% - 28px), 680px);
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    padding: 0;
    color: var(--slate-900);
    border: 0;
    border-radius: 24px;
    background: var(--ice-50);
    box-shadow: 0 24px 80px rgba(4, 38, 77, 0.3);
}

.mountain-dialog::backdrop {
    background: rgba(4, 24, 47, 0.55);
    backdrop-filter: blur(5px);
}

.dialog-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
}

.dialog-header h2 {
    margin: 0;
    font-size: 1.55rem;
}

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

.dialog-map-link {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    transform: translate(-50%, -50%);
    color: var(--navy-900);
    border: 1px solid color-mix(in srgb, var(--blue-600) 28%, var(--slate-200));
    border-radius: 999px;
    background: color-mix(in srgb, var(--blue-100) 68%, var(--white));
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.dialog-map-link:hover {
    background: color-mix(in srgb, var(--blue-100) 92%, var(--white));
}

.dialog-map-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue-600) 35%, transparent);
    outline-offset: 2px;
}

.dialog-map-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.dialog-map-link-external {
    font-size: 1rem;
    line-height: 1;
}

.operation-sos:focus-visible,
.rescue-primary-call:focus-visible,
.rescue-general-call:focus-visible,
.rescue-location-button:focus-visible,
.rescue-copy-location:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--red) 34%, transparent);
    outline-offset: 2px;
}

.dialog-close {
    color: transparent;
    background: var(--ice-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 4l10 10M14 4 4 14' stroke='%2307386f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    font-size: 0;
    line-height: 0;
    padding: 0;
}

.contact-dialog {
    width: min(calc(100% - 28px), 540px);
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow-x: hidden;
    color: var(--slate-900);
    border: 0;
    border-radius: 24px;
    background: var(--ice-50);
    box-shadow: 0 24px 80px rgba(4, 38, 77, 0.3);
}

.contact-dialog::backdrop {
    background: rgba(4, 24, 47, 0.55);
    backdrop-filter: blur(5px);
}

.contact-dialog-content {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.contact-action {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 16px;
    color: var(--navy-900);
    border: 1px solid var(--slate-200);
    border-radius: 15px;
    background: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.contact-action:hover {
    border-color: color-mix(in srgb, var(--blue-600) 45%, var(--slate-200));
    background: var(--blue-100);
}

.contact-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue-600) 35%, transparent);
    outline-offset: 2px;
}

.contact-action strong,
.privacy-content h3,
.release-notes-content h3 {
    color: var(--navy-900);
    font-size: 1rem;
    font-weight: 850;
}

.contact-action span,
.contact-dialog-content > p,
.privacy-content p,
.contact-hint {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.88rem;
    line-height: 1.5;
}

.release-notes-content {
    gap: 10px;
    background:
        radial-gradient(circle at 92% 8%, rgba(87, 181, 242, 0.2), transparent 28%),
        var(--ice-50);
}

.release-notes-header {
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--navy-900), #0b4e8c);
}

.release-notes-header .dialog-close {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.release-notes-header .dialog-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.release-notes-bot {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.release-notes-avatar {
    flex: 0 0 auto;
}

.release-notes-header .eyebrow,
.release-notes-header h2 {
    color: var(--white);
}

.release-notes-header .eyebrow {
    margin-bottom: 2px;
    opacity: 0.82;
}

.release-notes-content > .release-notes-version {
    margin: 0;
    color: var(--blue-600);
    font-size: 0.88rem;
    font-weight: 850;
}

.release-notes-content > .release-notes-intro {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.92rem;
    line-height: 1.45;
}

.release-notes-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    line-height: 1.5;
}

.release-notes-list li {
    position: relative;
    padding: 10px 12px 10px 42px;
    color: var(--slate-500);
    border: 1px solid color-mix(in srgb, var(--blue-600) 14%, var(--slate-200));
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.74);
}

.release-notes-list li::before {
    position: absolute;
    top: 10px;
    left: 13px;
    content: '🐐';
    font-size: 1rem;
}

.feedback-form label {
    color: var(--navy-900);
    font-size: 0.9rem;
    font-weight: 800;
}

.feedback-form label span {
    color: var(--slate-500);
    font-weight: 650;
}

.feedback-form textarea,
.feedback-form input {
    width: 100%;
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
    font: inherit;
}

.feedback-form textarea {
    min-height: 132px;
    padding: 12px;
    resize: vertical;
}

.feedback-form input {
    min-height: 46px;
    padding: 10px 12px;
}

.feedback-form textarea:focus,
.feedback-form input:focus {
    outline: 3px solid color-mix(in srgb, var(--blue-600) 28%, transparent);
    outline-offset: 1px;
    border-color: var(--blue-600);
}

.privacy-content {
    gap: 18px;
}

.privacy-content section {
    display: grid;
    gap: 6px;
}

.privacy-content h3 {
    margin: 0;
}

.privacy-content a {
    width: fit-content;
    color: var(--blue-700);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 520px) {
    .dialog-header h2 {
        font-size: 1.35rem;
    }

    .dialog-map-link {
        width: 58px;
        min-height: 58px;
        justify-content: center;
        padding: 0;
    }

    .dialog-map-link-label,
    .dialog-map-link-external {
        display: none;
    }

    .dialog-map-link svg {
        width: 27px;
        height: 27px;
    }
}

.rescue-dialog {
    width: min(calc(100% - 28px), 480px);
    padding: 0;
    color: var(--slate-900);
    border: 0;
    border-radius: 24px;
    background: var(--ice-50);
    box-shadow: 0 24px 80px rgba(4, 38, 77, 0.3);
}

.rescue-dialog::backdrop {
    background: rgba(4, 24, 47, 0.55);
    backdrop-filter: blur(5px);
}

.rescue-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
}

.rescue-dialog-header h2 {
    margin: 0;
    font-size: 1.55rem;
}

.rescue-dialog-close {
    color: transparent;
    background: var(--ice-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 4l10 10M14 4 4 14' stroke='%2307386f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    font-size: 0;
    line-height: 0;
    padding: 0;
}

.rescue-dialog-content {
    display: grid;
    gap: 13px;
    padding: 20px;
}

.rescue-mountain-name {
    margin: 0;
    color: var(--slate-500);
    font-weight: 750;
}

.rescue-primary-call,
.rescue-general-call {
    text-decoration: none;
}

.rescue-primary-call {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--white);
    border-radius: 15px;
    background: var(--red);
    box-shadow: 0 8px 18px rgba(204, 59, 56, 0.22);
}

.rescue-primary-call strong {
    font-size: 1rem;
}

.rescue-primary-call span {
    font-size: 0.9rem;
    font-weight: 700;
}

.rescue-general-calls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rescue-general-call {
    display: grid;
    min-height: 48px;
    place-items: center;
    padding: 10px;
    color: var(--navy-900);
    border: 1.5px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

.rescue-location {
    display: grid;
    gap: 8px;
    padding-top: 2px;
}

.rescue-location-button,
.rescue-copy-location {
    min-height: 46px;
    padding: 10px 13px;
    color: var(--blue-700);
    border: 1.5px solid var(--blue-600);
    border-radius: 13px;
    background: var(--white);
    font: inherit;
    font-weight: 800;
}

.rescue-location-button:disabled {
    color: var(--slate-500);
    border-color: var(--slate-300);
}

.rescue-location-result {
    margin: 0;
    color: var(--navy-900);
    font-weight: 800;
}

.rescue-copy-location {
    min-height: 40px;
    color: var(--navy-900);
    border-color: var(--slate-200);
    font-size: 0.86rem;
}

.rescue-location-hint {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.78rem;
    line-height: 1.35;
}


#dialog-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    padding: 18px;
}

.object-list {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
}

.operation-panel {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-bottom: 18px;
    border: 1px solid rgba(8, 120, 226, 0.2);
    border-radius: 15px;
    background: var(--blue-100);
}

.operation-panel-header {
    position: relative;
    min-height: 72px;
}

.operation-panel-toggle {
    position: absolute;
    inset: 0;
    display: grid;
    width: 100%;
    padding: 15px 76px;
    color: var(--navy-900);
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    place-items: center;
}

.operation-panel-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue-600) 35%, transparent);
    outline-offset: -3px;
}

.operation-panel-title {
    color: var(--navy-900);
    font-size: 1.15rem;
    font-weight: 850;
    text-align: center;
}

.operation-panel.is-expanded .operation-panel-header {
    border-bottom: 1px solid rgba(8, 120, 226, 0.2);
}

.operation-panel-content {
    padding: 2px 15px 15px;
}

.operation-group {
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 12px 0;
    text-align: center;
}

.operation-group h4 {
    margin: 0;
    color: var(--navy-900);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.operation-period {
    margin: 0;
    color: var(--slate-700);
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

.operation-sos {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--navy-900);
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    place-items: center;
}

.operation-sos svg {
    width: 36px;
    height: 28px;
    transform: translateY(2px);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.operation-sos svg text {
    fill: currentColor;
    stroke: none;
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.weather-panel {
    margin-bottom: 18px;
    text-align: center;
}

.weather-panel h3 {
    margin: 0 0 10px;
    color: var(--navy-900);
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.weather-card {
    display: grid;
    gap: 3px;
    padding: 13px;
    border: 1px solid rgba(8, 120, 226, 0.18);
    border-radius: 14px;
    background: var(--white);
}

.weather-card strong {
    color: var(--navy-900);
}

.weather-card span {
    color: var(--slate-700);
    font-size: 0.84rem;
}

.object-group {
    min-width: 0;
    max-width: 100%;
    margin-top: 22px;
}

.object-group summary {
    position: relative;
    margin: 0 0 10px 2px;
    padding-right: 28px;
    color: var(--navy-900);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

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

.object-group summary::after {
    position: absolute;
    right: 5px;
    content: "+";
    color: var(--blue-700);
    font-size: 1.35rem;
    line-height: 1;
}

.object-group[open] summary::after {
    content: "−";
}

.object-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
}

.object-row.has-details {
    align-items: start;
}

.object-row.has-details .mini-dot {
    margin-top: 0.42rem;
}

.object-row.has-details .object-type {
    padding-top: 0.1rem;
}

.parking-row .object-details {
    display: block;
    padding-bottom: 28px;
}

.parking-row .gastro-details-source.message-footer {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin: 0 !important;
}

.parking-load-state {
    margin: 0;
    padding: 10px 2px 0;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.parking-load-error {
    color: var(--red);
}

.object-row.is-collapsible {
    cursor: pointer;
}

.parking-row {
    position: relative;
}

.object-row.is-collapsible:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-500) 42%, transparent);
    outline-offset: 2px;
}

.object-row.is-collapsible .object-type::after {
    content: "›";
    display: inline-block;
    margin-left: 5px;
    color: var(--brand-700);
    font-size: 1rem;
    line-height: 0.7;
    transition: transform 160ms ease;
}

.object-row.is-collapsible.is-expanded .object-type::after {
    transform: rotate(90deg);
}

.object-name {
    min-width: 0;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.object-content {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 7px;
}

.object-inline-type {
    color: var(--slate-500);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.object-row.is-collapsible .object-inline-type::after {
    content: "›";
    display: inline-block;
    margin-left: 4px;
    color: var(--brand-700);
    font-size: 1rem;
    line-height: 0.7;
    transition: transform 160ms ease;
}

.object-row.is-collapsible.is-expanded .object-inline-type::after {
    transform: rotate(90deg);
}

.object-details {
    flex-basis: 100%;
    margin: 10px 0 0;
    padding-top: 9px;
    color: var(--slate-500);
    border-top: 1px solid var(--slate-200);
    font-size: 0.8rem;
    line-height: 1.5;
}

.object-details[hidden] {
    display: none;
}

.object-details p {
    margin: 0;
}

.object-details p + p {
    margin-top: 2px;
}

.gastro-details-source {
    margin-top: 9px !important;
    color: var(--slate-700);
    font-size: 0.74rem;
    font-weight: 750;
}

.gastro-details-summary {
    margin-top: 3px !important;
}

.gastro-details-link {
    display: block;
    width: fit-content;
    margin-top: 3px;
    color: var(--brand-700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gastro-opening-title {
    margin-top: 9px !important;
    color: var(--slate-700);
    font-weight: 750;
}

.gastro-opening-hours {
    display: grid;
    gap: 2px;
    margin-top: 3px;
}

.gastro-opening-day {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
}

.gastro-opening-day.is-sis-closed {
    color: var(--slate-500);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.object-time {
    color: var(--slate-700);
    font-size: 0.84rem;
}

.object-type {
    min-width: 88px;
    color: var(--slate-500);
    font-size: 0.75rem;
    white-space: nowrap;
}

.object-type.gastro-object-type {
    width: auto;
    text-align: right;
}

.object-type.poi-object-type {
    width: auto;
    text-align: right;
}

.object-type.lift-object-type {
    width: auto;
    text-align: right;
}

.object-row.has-details .object-type.lift-object-type {
    align-self: center;
    padding-top: 0;
}

.object-row.is-collapsible .object-type.gastro-open-clock::after {
    content: none;
}

.object-type.gastro-open-clock {
    color: var(--green);
}

.object-type.gastro-open-clock::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) 50% 29% / 2px 5px no-repeat,
        linear-gradient(currentColor, currentColor) 64% 50% / 5px 2px no-repeat;
    vertical-align: -2px;
}

.object-type.lift-open-clock {
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.object-row.is-collapsible .object-type.lift-open-clock::after {
    content: none;
}

.lift-clock-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.lift-list {
    display: grid;
    gap: 8px;
}

.ride-line {
    margin: 3px 0;
    color: var(--slate-700);
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (max-width: 430px) {
    .page-heading-with-action {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .view-back {
        padding-inline: 9px;
        font-size: 0.75rem;
    }
}

@media (min-width: 680px) {
    .mountain-dialog {
        scrollbar-color: rgba(69, 92, 118, 0.58) transparent;
        scrollbar-width: thin;
    }

    .mountain-dialog::-webkit-scrollbar {
        width: 10px;
    }

    .mountain-dialog::-webkit-scrollbar-track {
        margin-block: 16px;
        background: transparent;
    }

    .mountain-dialog::-webkit-scrollbar-thumb {
        min-height: 48px;
        border: 3px solid transparent;
        border-radius: 999px;
        background: rgba(69, 92, 118, 0.58);
        background-clip: padding-box;
    }

    .mountain-dialog::-webkit-scrollbar-thumb:hover {
        background: rgba(32, 67, 104, 0.72);
        background-clip: padding-box;
    }

    .mountain-dialog::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }

    main {
        padding: 36px 36px 28px;
    }

    .mountain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mountain-grid.single-mountain {
        grid-template-columns: minmax(0, 1fr);
    }

    .install-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .push-card {
        grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
        align-items: center;
    }

    .push-card-header,
    .push-status-row,
    .push-privacy {
        grid-column: 1;
    }

    .push-card .button {
        grid-column: 2;
        grid-row: 1 / span 3;
        width: auto;
        min-width: 170px;
    }
}

@media (max-width: 390px) {
    .app-header {
        padding-inline: 16px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    main {
        padding-inline: 14px;
    }

    .onboarding-actions {
        grid-template-columns: 1fr;
    }

    .mountain-card {
        grid-template-columns: 50px 1fr auto;
        padding: 14px;
    }

    .mountain-symbol {
        width: 50px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
