/* ── Dark Theme (Standard) ───────────────────────────── */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg:          #080808;
    --bg-deep:     #040404;
    --bg-alt:      #0f0f0f;
    --panel:       #111111;
    --panel-deep:  #141414;
    --panel-2:     #181818;
    --line:        #2b2b2b;
    --text:        #f4f4f4;
    --muted:       #b5b5b5;
    --soft:        #e7e7e7;
    --ink:         #050505;
    --danger:      #f1f1f1;
    --accent:      #f4f4f4;
    --accent-ink:  #050505;
    --success:     #d6d6d6;
    --shadow:      0 18px 60px rgba(0, 0, 0, 0.34);
    --bg-glass:    rgba(8, 8, 8, 0.88);
    --overlay-soft: rgba(255, 255, 255, 0.04);
    --overlay:     rgba(255, 255, 255, 0.055);
    --border-faint: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.12);
    --border:      rgba(255, 255, 255, 0.17);
    --border-medium:  rgba(255, 255, 255, 0.28);
    --border-strong: rgba(255, 255, 255, 0.46);
    --header-bg:             rgba(8, 8, 8, 0.9);
    --header-bg-home:        rgba(8, 8, 8, 0.08);
    --header-bg-home-past:   rgba(8, 8, 8, 0.82);
    --header-bg-home-fallback: rgba(8, 8, 8, 0.22);
    --header-border:         rgba(255, 255, 255, 0.08);
    --header-border-home:    rgba(255, 255, 255, 0.04);
    --header-border-home-past: rgba(255, 255, 255, 0.1);
    --header-shadow-home-past: 0 16px 42px rgba(0, 0, 0, 0.26);
    --header-text:           #f4f4f4;
    --header-text-muted:     rgba(244, 244, 244, 0.72);
    --header-text-hover:     #ffffff;
    --header-text-shadow:    none;
    --nav-hover-border: rgba(255, 255, 255, 0.18);
    --nav-hover-bg:     rgba(255, 255, 255, 0.055);
    --brand-border:     rgba(255, 255, 255, 0.14);
}

/* ── Light Theme ─────────────────────────────────────── */
[data-theme="light"] {
    color-scheme: light;
    --bg:          #dedede;
    --bg-deep:     #c8c8c8;
    --bg-alt:      #d4d4d4;
    --panel:       #ececec;
    --panel-deep:  #d2d2d2;
    --panel-2:     #c6c6c6;
    --line:        #b5b5b5;
    --text:        #151515;
    --muted:       #555555;
    --soft:        #2b2b2b;
    --ink:         #ededed;
    --danger:      #1e1e1e;
    --accent:      #111111;
    --accent-ink:  #eeeeee;
    --success:     #3a3a3a;
    --shadow:      0 18px 60px rgba(0, 0, 0, 0.14);
    --bg-glass:    rgba(222, 222, 222, 0.92);
    --overlay-soft: rgba(0, 0, 0, 0.035);
    --overlay:     rgba(0, 0, 0, 0.075);
    --border-faint: rgba(0, 0, 0, 0.08);
    --border-soft: rgba(0, 0, 0, 0.13);
    --border:      rgba(0, 0, 0, 0.2);
    --border-medium:  rgba(0, 0, 0, 0.3);
    --border-strong: rgba(0, 0, 0, 0.46);
    --header-bg:             transparent;
    --header-bg-home:        transparent;
    --header-bg-home-past:   transparent;
    --header-bg-home-fallback: rgba(222, 222, 222, 0.1);
    --header-border:         rgba(0, 0, 0, 0.1);
    --header-border-home:    rgba(0, 0, 0, 0.07);
    --header-border-home-past: rgba(0, 0, 0, 0.13);
    --header-shadow-home-past: 0 16px 42px rgba(0, 0, 0, 0.12);
    --header-text:           #151515;
    --header-text-muted:     rgba(21, 21, 21, 0.72);
    --header-text-hover:     #111111;
    --header-text-shadow:    0 1px 16px rgba(255, 255, 255, 0.42);
    --nav-hover-border: rgba(0, 0, 0, 0.16);
    --nav-hover-bg:     rgba(255, 255, 255, 0.12);
    --brand-border:     rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.summary-open {
    padding-bottom: 132px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

body.page-home .site-header {
    position: fixed;
    background: var(--header-bg-home);
    border-bottom-color: var(--header-border-home);
    box-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

body.page-home .site-header.is-past-hero {
    background: var(--header-bg-home-past);
    border-bottom-color: var(--header-border-home-past);
    box-shadow: var(--header-shadow-home-past);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(1px)) {
    body.page-home .site-header {
        background: var(--header-bg-home-fallback);
    }
}

/* ── Light-Mode: Header ───────────────── */
[data-theme="light"] .site-header {
    background: var(--header-bg);
    border-bottom-color: var(--header-border);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
}

[data-theme="light"] body.page-home .site-header {
    background: var(--header-bg-home);
    border-bottom-color: var(--header-border-home);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
}

[data-theme="light"] body.page-home .site-header.is-past-hero {
    background: var(--header-bg-home-past);
    border-bottom-color: var(--header-border-home-past);
    box-shadow: var(--header-shadow-home-past);
    -webkit-backdrop-filter: blur(22px) saturate(1.16);
    backdrop-filter: blur(22px) saturate(1.16);
}

[data-theme="light"] .site-nav a {
    color: var(--header-text-muted);
    text-shadow: var(--header-text-shadow);
}

[data-theme="light"] .site-nav a:hover,
[data-theme="light"] .site-nav a.active {
    color: var(--header-text-hover);
    border-color: var(--nav-hover-border);
    background: var(--nav-hover-bg);
}

[data-theme="light"] .brand {
    color: var(--header-text);
    text-shadow: var(--header-text-shadow);
}

[data-theme="light"] .brand-mark {
    border-color: var(--brand-border);
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .theme-switcher {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .theme-btn {
    color: #4a4a4a;
}

[data-theme="light"] .theme-btn[aria-pressed="true"] {
    background: #151515;
    color: #f0f0f0;
}

[data-theme="light"] .theme-btn:hover:not([aria-pressed="true"]) {
    color: #111111;
    background: rgba(255, 255, 255, 0.24);
}

.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-default { display: none; }
[data-theme="light"] .brand-logo-light   { display: block; }

[data-theme="light"] body.page-booking .site-header {
    background: var(--header-bg);
    border-bottom-color: rgba(0, 0, 0, 0.14);
    box-shadow: none;
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
}

[data-theme="light"] body.page-booking .brand,
[data-theme="light"] body.page-booking .site-nav a {
    color: var(--header-text);
}

[data-theme="light"] body.page-booking .site-nav a:hover,
[data-theme="light"] body.page-booking .site-nav a.active {
    color: var(--header-text-hover);
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.page-booking .brand-mark {
    border-color: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] body.page-booking .theme-switcher {
    background: rgba(0, 0, 0, 0.055);
    border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] body.page-booking .theme-btn {
    color: #4a4a4a;
}

[data-theme="light"] body.page-booking .theme-btn[aria-pressed="true"] {
    background: #202020;
    color: #eeeeee;
}

[data-theme="light"] body.page-booking .theme-btn:hover:not([aria-pressed="true"]) {
    color: #111111;
    background: rgba(0, 0, 0, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: var(--header-text);
    font-weight: 750;
    text-shadow: var(--header-text-shadow);
}

.brand-mark {
    display: inline-grid;
    overflow: hidden;
    width: 50px;
    height: 50px;
    place-items: center;
    background: #000000;
    border-radius: 6px;
    border: 1px solid var(--brand-border);
    color: var(--header-text);
    font-size: 0.85rem;
    letter-spacing: 0;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--header-text-muted);
    font-size: 0.94rem;
    text-shadow: var(--header-text-shadow);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--header-text-hover);
    border-color: var(--nav-hover-border);
    background: var(--nav-hover-bg);
}

.hero {
    display: grid;
    align-items: end;
    min-height: clamp(480px, calc(100svh - 140px), 720px);
    padding: clamp(42px, 8vw, 86px) clamp(18px, 5vw, 72px);
}

body.page-home .hero {
    min-height: 100svh;
}

.home-hero {
    --hero-desktop-image: url("../img/studio-haco-hero.jpg");
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.18)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48)),
        var(--hero-desktop-image) center / cover;
    background-color: var(--bg);
}

[data-theme="light"] .home-hero {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.12)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(38, 38, 38, 0.48)),
        var(--hero-desktop-image) center / cover;
    background-color: var(--bg);
}

[data-theme="light"] .home-hero .hero-copy {
    color: #f4f4f4;
}

[data-theme="light"] .home-hero .eyebrow {
    color: #b5b5b5;
}

[data-theme="light"] .home-hero .button {
    color: #f4f4f4;
    border-color: rgba(255, 255, 255, 0.17);
}

[data-theme="light"] .home-hero .button:hover {
    border-color: rgba(255, 255, 255, 0.46);
}

[data-theme="light"] .home-hero .button.primary {
    background: #f4f4f4;
    color: #050505;
    border-color: #f4f4f4;
}

[data-theme="light"] .home-hero .button.ghost {
    background: rgba(255, 255, 255, 0.07);
}

/* Foto-Karussell: nur Tablet/Mobil — Vollbild-Lagen unter dem Text */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.18)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48)),
        var(--hero-image);
    background-size: cover;
    background-position:
        center,
        center,
        var(--hero-position, center center);
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.15s ease;
    z-index: 0;
}

[data-theme="light"] .hero-slide {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.12)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(38, 38, 38, 0.48)),
        var(--hero-image);
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide.is-leaving {
    opacity: 0;
    z-index: 2;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

@media (max-width: 1100px) {
    .home-hero {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.18)),
            linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48)),
            var(--bg);
    }
}

@media (min-width: 1101px) {
    .hero-slides {
        display: none;
    }
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero h1,
.page-hero h1,
.thanks-page h1 {
    max-width: 920px;
    font-size: clamp(3rem, 9vw, 7.8rem);
    margin-bottom: 45px;
}

.beispiel-nagelstudio-title {
    overflow-wrap: normal;
    word-break: keep-all;
}

.beispiel-nagelstudio-title span {
    display: block;
    white-space: nowrap;
}

.compact-hero h1,
.booking-hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.thanks-page p:not(.eyebrow) {
    width: min(100%, 660px);
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--soft);
    font-size: clamp(1.02rem, 2vw, 1.32rem);
}

.hero-actions,
.toolbar-actions,
.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    min-height: 46px;
    padding: 0 18px;
    background: transparent;
    color: var(--text);
    font-weight: 750;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.icon-button:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
}

.button.primary {
    background: var(--text);
    color: var(--ink);
    border-color: var(--text);
}

.button.ghost {
    background: var(--overlay);
}

.button.danger {
    border-color: var(--border-medium);
    background: var(--panel-2);
    color: var(--text);
}

.button.small {
    min-height: 38px;
    padding: 0 14px;
}

.icon-button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.55rem;
    line-height: 1;
}

.section,
.page-hero,
.thanks-page {
    padding: clamp(48px, 8vw, 86px) clamp(18px, 5vw, 72px);
}

.page-hero {
    background: linear-gradient(180deg, var(--panel), var(--bg));
    border-bottom: 1px solid var(--border-faint);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.section-heading h2,
.split-band h2,
.studio-band h2,
.location-section h2,
.admin-toolbar h2,
.panel-header h2,
.day-details h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.7rem);
}

.service-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.social-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 clamp(18px, 5vw, 72px) clamp(48px, 8vw, 86px);
    background: var(--bg);
}

.hours-section {
    padding: 0 clamp(18px, 5vw, 72px) clamp(48px, 8vw, 86px);
    background: var(--bg);
}

.hours-disclosure {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hours-disclosure summary {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 16px;
    min-height: 82px;
    padding: 18px clamp(16px, 3vw, 26px);
    cursor: pointer;
    list-style: none;
}

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

.hours-disclosure summary > span:first-child {
    display: grid;
    gap: 4px;
}

.hours-disclosure summary strong {
    font-size: clamp(1.35rem, 3vw, 2.3rem);
    line-height: 1.08;
}

.hours-summary-time {
    color: var(--text);
    font-weight: 850;
    white-space: nowrap;
}

.hours-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.hours-disclosure[open] .hours-toggle {
    font-size: 1.6rem;
}

.hours-disclosure[open] .hours-toggle::before {
    content: "−";
}

.hours-disclosure[open] .hours-toggle {
    color: transparent;
}

.hours-disclosure[open] .hours-toggle::before {
    color: var(--text);
}

.hours-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 clamp(16px, 3vw, 26px) clamp(16px, 3vw, 26px);
}

.hours-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 62px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
}

.hours-list span {
    color: var(--muted);
    font-weight: 750;
}

.hours-list strong {
    color: var(--text);
    text-align: right;
    white-space: nowrap;
}

.location-section {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
    align-items: stretch;
    gap: clamp(18px, 4vw, 54px);
    padding: 0 clamp(18px, 5vw, 72px) clamp(48px, 8vw, 86px);
    background: var(--bg);
}

.location-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
    padding: clamp(22px, 4vw, 36px);
    border-left: 2px solid var(--border-medium);
    background: var(--bg-alt);
}

.location-copy address {
    color: var(--text);
    font-style: normal;
    font-size: clamp(1.02rem, 2vw, 1.24rem);
    font-weight: 760;
    line-height: 1.55;
}

.location-copy p:not(.eyebrow) {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.map-frame {
    overflow: hidden;
    min-width: 0;
    min-height: 360px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel-2);
    box-shadow: var(--shadow);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.contact-section {
    padding: 0 clamp(18px, 5vw, 72px) clamp(48px, 8vw, 86px);
    background: var(--bg);
}

.contact-heading {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.section-heading.compact.contact-heading {
    align-items: flex-start;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 112px;
    align-content: center;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.contact-card:hover {
    border-color: var(--border-strong);
    background: var(--panel-deep);
}

.contact-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-card strong {
    color: var(--text);
    font-size: clamp(1.18rem, 2.2vw, 1.65rem);
    line-height: 1.15;
}

.social-section h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.7rem);
}

.social-link-list {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 800;
}

.social-link:hover {
    border-color: var(--border-strong);
    background: var(--panel-deep);
}

.social-link span:last-child {
    overflow: hidden;
    max-width: min(42vw, 240px);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 6px;
    background: var(--text);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
}

.social-links-grid {
    align-items: end;
}

.preview-item,
.service-card,
.info-grid article,
.selected-services-panel,
.calendar-panel,
.slot-panel,
.checkout-panel,
.login-panel,
.day-details {
    background: var(--panel);
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.calendar-panel {
    overflow: hidden;
}

.preview-item {
    min-height: 118px;
    padding: 18px;
}

.preview-item strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
}

.preview-item span {
    color: var(--muted);
    font-size: 0.94rem;
}

.split-band,
.studio-band {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 5vw, 80px);
    padding: clamp(44px, 7vw, 78px) clamp(18px, 5vw, 72px);
    background: var(--bg);
    color: var(--text);
    border-top: 1px solid var(--border-faint);
}

.split-band .eyebrow,
.studio-band .eyebrow {
    color: var(--muted);
}

.split-band p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.split-band h2,
.split-band p {
    max-width: 680px;
}

.studio-band {
    background: var(--panel);
    color: var(--text);
}

.studio-band .eyebrow {
    color: var(--muted);
}

.studio-band .button {
    justify-self: end;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-story {
    background: var(--bg);
}

.info-location-hero {
    position: relative;
    min-height: clamp(480px, 76svh, 760px);
    overflow: hidden;
    background: var(--info-hero-image) center 42% / cover no-repeat var(--bg);
}

.info-page-heading {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: clamp(92px, 12vw, 138px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 40px);
    background: var(--bg);
    text-align: center;
}

.info-page-heading h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 0.98;
}

.info-heading-copy {
    display: grid;
    gap: 10px;
    max-width: 760px;
    color: var(--soft);
    font-size: clamp(1rem, 1.55vw, 1.16rem);
    line-height: 1.72;
}

.info-heading-copy p {
    margin: 0;
}

.info-location-section {
    display: grid;
    justify-items: center;
    padding: clamp(38px, 7vw, 78px) clamp(18px, 5vw, 72px);
    background: var(--bg);
}

.info-location-copy {
    display: grid;
    gap: 16px;
    width: min(100%, 920px);
}

.info-location-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(1.85rem, 4.2vw, 3.65rem);
    line-height: 1.02;
}

.info-location-copy address {
    color: var(--text);
    font-style: normal;
    font-size: clamp(1.1rem, 2.1vw, 1.55rem);
    font-weight: 850;
    line-height: 1.45;
}

.info-location-copy p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--soft);
    font-size: clamp(1rem, 1.55vw, 1.16rem);
    line-height: 1.78;
}

.info-photo-section {
    display: grid;
    justify-items: center;
    padding: clamp(38px, 7vw, 78px) clamp(18px, 5vw, 72px);
    background: var(--bg);
}

.info-photo-section-top {
    padding-top: clamp(22px, 4vw, 42px);
    padding-bottom: clamp(34px, 6vw, 64px);
}

.info-photo-section-filler {
    padding-top: 0;
}

.info-photo-frame {
    width: min(100%, 1120px);
    margin: 0;
}

.info-photo-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(760px, 78svh);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-services-section {
    display: grid;
    justify-items: center;
    padding: 0 clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
    background: var(--bg);
}

.info-services-copy {
    display: grid;
    gap: 18px;
    width: min(100%, 920px);
}

.info-services-copy h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(1.85rem, 4.2vw, 3.65rem);
    line-height: 1.02;
}

.info-services-copy p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--soft);
    font-size: clamp(1rem, 1.55vw, 1.16rem);
    line-height: 1.78;
}

.info-services-copy .button {
    justify-self: start;
    margin-top: 8px;
}

.info-text-panel {
    display: grid;
    gap: 18px;
    max-width: 920px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.info-text-panel p {
    max-width: 780px;
    margin: 0;
    color: var(--soft);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.info-text-panel .button {
    justify-self: start;
}

.info-grid article {
    min-height: 260px;
    padding: 24px;
}

.info-number {
    display: block;
    margin-bottom: 46px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.info-grid h2 {
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

.info-grid p {
    margin: 0;
    color: var(--muted);
}

.legal-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.legal-page article {
    min-height: 220px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border-faint);
    border-radius: 8px;
}

.legal-page h2 {
    margin-bottom: 16px;
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

.legal-page p {
    margin: 0 0 10px;
    color: var(--muted);
}

.booking-shell,
.admin-shell {
    position: relative;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 360px;
    text-align: left;
    color: var(--text);
    background: var(--panel);
}

.service-card button {
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
    min-height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
}

.service-card.selected {
    border-color: var(--accent);
    box-shadow: 0 18px 60px var(--border-faint);
}

.service-card.selectable button {
    position: relative;
}

.service-select-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: var(--bg-glass);
}

.service-card.selected .service-select-indicator {
    border-color: var(--accent);
    background: var(--accent);
}

.service-card.selected .service-select-indicator::after {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 6px;
    height: 11px;
    content: "";
    border-right: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(42deg);
}

.service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #202020;
    border-bottom: 1px solid var(--border-faint);
}

.service-content {
    display: flex;
    min-height: 176px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.service-content h3 {
    font-size: 1.18rem;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
}

.service-meta strong {
    color: var(--text);
    font-size: 1.12rem;
}

.price-stack {
    display: inline-flex;
    align-items: baseline;
    flex-direction: row;
    gap: 8px;
    line-height: 1.1;
    white-space: nowrap;
}

.old-price {
    color: #ff8585;
    font-size: 0.88em;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.sale-price {
    color: #6ee79a;
    font-weight: 850;
}

.price-stack .old-price {
    color: #ff8585;
}

.price-stack .sale-price {
    color: #6ee79a;
}

.sale-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(110, 231, 154, 0.44);
    border-radius: 999px;
    color: #6ee79a;
    font-size: 0.78rem;
    font-weight: 800;
}

.payment-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, 720px);
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel-deep);
}

.payment-note span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.payment-note strong {
    color: var(--text);
    text-align: right;
}

.checkout-payment-note {
    width: 100%;
    margin: 14px 0 0;
}

.booking-flow {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 16px;
    margin-top: 28px;
}

.selected-services-panel,
.checkout-panel {
    padding: 22px;
}

.booking-calendar-shell .booking-flow {
    align-items: start;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: 16px;
}

.section-heading.compact h2 {
    font-size: clamp(1.28rem, 2.2vw, 1.85rem);
}

.calendar-panel,
.slot-panel,
.login-panel,
.day-details {
    padding: 22px;
}

.panel-header,
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header.left {
    justify-content: flex-start;
}

.weekday-row,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-grid.mobile-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    touch-action: pan-y;
    transform: translate3d(0, 0, 0);
    user-select: none;
    will-change: transform;
}

.calendar-grid.mobile-week.is-swipe-preview {
    width: 300%;
    grid-template-columns: repeat(21, minmax(0, 1fr));
    transform: translate3d(calc(-33.333333% + var(--calendar-swipe-x, 0px)), 0, 0);
}

.calendar-grid.mobile-week.is-swipe-animating {
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.weekday-row {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    background: var(--panel-deep);
    color: var(--text);
}

.calendar-day:not(.blank):hover,
.calendar-day.selected {
    border-color: var(--border-strong);
    background: var(--panel-2);
}

.calendar-day.blank {
    opacity: 0;
    pointer-events: none;
}

.calendar-day.disabled {
    color: #6d6d6d;
    background: var(--bg-alt);
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    border-color: var(--border-faint);
    background: var(--bg-alt);
}

.calendar-day.closed {
    color: #777777;
}

.calendar-day.closed::before {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    z-index: 1;
    content: "";
    border-top: 1px solid #777777;
    transform: rotate(-12deg);
}

.calendar-day.closed .calendar-day-number {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.calendar-day-status {
    color: #777777;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.calendar-day-number {
    font-weight: 850;
}

.calendar-day-month {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1;
}

.calendar-day.today::after,
.calendar-day.has-bookings::after {
    position: absolute;
    right: 9px;
    bottom: 8px;
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--text);
}

.calendar-day.has-bookings::after {
    width: auto;
    height: auto;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--text);
    color: var(--ink);
    content: attr(data-count);
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-calendar .calendar-day {
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.admin-calendar .calendar-day.has-bookings::after {
    display: none;
}

.admin-day-number {
    display: block;
    font-weight: 850;
    line-height: 1;
}

/* Responsive fixes for admin / booking panels */
@media (max-width: 900px) {
    .location-section,
    .booking-flow,
    .service-grid,
    .info-grid,
    .split-band {
        grid-template-columns: 1fr !important;
        padding-left: clamp(12px, 4vw, 24px) !important;
        padding-right: clamp(12px, 4vw, 24px) !important;
        gap: 16px !important;
    }

    .hours-list {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding-left: clamp(12px, 4vw, 18px);
        padding-right: clamp(12px, 4vw, 18px);
    }

    .hours-list div,
    .contact-card,
    .preview-item,
    .selected-services-panel,
    .calendar-panel,
    .slot-panel,
    .checkout-panel,
    .login-panel,
    .day-details {
        padding: 14px !important;
        min-height: initial !important;
        overflow: visible;
    }

    .booking-flow {
        grid-template-columns: 1fr !important;
    }

    .calendar-grid,
    .weekday-row {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .calendar-day {
        padding: 8px;
        min-height: 64px;
    }

    .service-card {
        min-height: 220px;
    }

    .panel-header,
    .admin-toolbar {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .panel-header > *,
    .admin-toolbar > * {
        width: 100%;
    }

    .booking-calendar-shell .calendar-panel .panel-header {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        align-items: center;
        gap: 8px;
    }

    .booking-calendar-shell .calendar-panel .panel-header > * {
        width: auto;
    }

    .booking-calendar-shell .calendar-panel .panel-header h2 {
        min-width: 0;
        text-align: center;
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1.08;
    }

    .booking-calendar-shell .calendar-panel .panel-header .icon-button {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

    .form-row,
    .hero-actions,
    .toolbar-actions {
        gap: 8px;
    }

    .button,
    .icon-button {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure booking/manual block buttons match photo-upload design on small/medium screens,
   but remain full-width only on very small phones */
@media (max-width: 900px) {
    .manual-booking-layout {
        grid-template-columns: 1fr !important;
    }

    /* Center and enlarge manual buttons on mobile */
    .manual-booking-form .appointment-actions,
    .manual-block-form .appointment-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .manual-booking-form .appointment-actions .button,
    .manual-block-form .appointment-actions .button {
        width: min(100%, 380px) !important;
        max-width: 100% !important;
        padding: 12px clamp(22px, 7vw, 40px) !important;
        white-space: normal !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    /* fallback for other uses of appointment-actions */
    .appointment-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .manual-booking-form .appointment-actions .button,
    .manual-block-form .appointment-actions .button {
        width: min(100%, 360px) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        padding: 12px clamp(20px, 6vw, 36px) !important;
        font-size: 0.98rem;
        white-space: normal !important;
        margin: 0 auto !important;
        display: block !important;
        box-sizing: border-box;
    }
}

/* Small phones: ensure no horizontal overflow and readable sizes */
@media (max-width: 480px) {
    html, body {
        font-size: 15px;
    }

    .site-header {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
        min-height: 64px;
    }

    .hours-list div {
        padding: 12px;
        gap: 8px;
        min-height: 56px;
    }

    .calendar-day {
        padding: 6px;
        min-height: 56px;
    }

    .calendar-day .calendar-day-number,
    .admin-day-number {
        font-size: 0.95rem;
    }

    .calendar-grid .calendar-day,
    .weekday-row {
        white-space: normal;
        word-break: break-word;
    }

    .map-frame iframe {
        min-height: 240px;
    }
}

/* Utility to prevent panels from overflowing horizontally */
.panel-header, .admin-shell, .booking-shell, .section {
    max-width: 100%;
}

.calendar-panel, .slot-panel {
    overflow-x: hidden;
}


.admin-day-count {
    display: block;
    max-width: 100%;
    padding: 3px 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--text);
    color: var(--ink);
    font-size: clamp(0.58rem, 1.1vw, 0.72rem);
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-height: 128px;
}

.time-slot {
    display: grid;
    gap: 1px;
    min-height: 42px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--panel-deep);
    color: var(--text);
    font-weight: 750;
}

/* Improve time slot buttons for mobile: ensure text fits and buttons don't overflow */
@media (max-width: 900px) {
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
        gap: 8px;
        min-height: auto;
    }

    .time-slot {
        padding: 10px 8px;
        align-items: center;
        justify-items: center;
        text-align: center;
        min-height: 48px;
        white-space: normal;
    }

    .time-value {
        font-size: 0.98rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .time-status {
        font-size: 0.72rem;
    }

    .manual-availability .time-grid.compact {
        gap: 7px;
    }

    .manual-availability .time-grid.compact .time-slot {
        min-width: 3.75rem;
        padding: 5px 10px;
    }

    .manual-availability .time-grid.compact .time-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        gap: 6px;
    }

    .time-slot {
        padding: 8px 6px;
    }

    .time-value {
        font-size: 0.95rem;
        white-space: normal;
        word-break: break-word;
    }
}

.time-slot:hover,
.time-slot.selected {
    background: var(--text);
    color: var(--ink);
    border-color: var(--text);
}

.time-slot.blocked {
    color: #777777;
    background: var(--bg-alt);
    border-color: var(--overlay);
    cursor: not-allowed;
}

.time-slot.blocked:hover {
    transform: none;
}

.time-value {
    font-weight: 850;
}

.time-status {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.time-slot.selected .time-status {
    color: var(--ink);
}

.time-slot.blocked .time-status {
    color: #666666;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    color: var(--muted);
    background: var(--panel-deep);
}

.booking-form,
.login-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.checkout-form {
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-faint);
}

.booking-fields {
    display: grid;
    grid-template-columns: minmax(220px, 380px) minmax(220px, 420px);
    align-items: end;
    gap: 14px;
}

.field-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.account-logo-panel {
    padding: 0 24px 24px;
}

.account-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-logo-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--overlay-soft);
}

.account-logo-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.account-logo-card-head h3 {
    margin: 2px 0 0;
    font-size: 1.05rem;
}

.account-logo-status {
    flex: 0 0 auto;
    max-width: 150px;
    padding: 4px 8px;
    overflow: hidden;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    color: var(--muted);
    background: var(--bg-glass);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-logo-preview {
    display: grid;
    min-height: 132px;
    padding: 14px;
    place-items: center;
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    background: var(--bg-deep);
}

.account-logo-preview img {
    display: none;
    width: min(220px, 100%);
    max-height: 96px;
    object-fit: contain;
}

.account-logo-preview p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.account-logo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.account-logo-global {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 14px;
}

.account-logo-global .form-message,
.account-logo-card .form-message {
    margin: 0;
}

label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

input,
select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-deep);
    color: var(--text);
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--border-strong);
}

.form-row input {
    flex: 1 1 240px;
}

.booking-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
}

.booking-action .button {
    min-width: min(100%, 220px);
}

.form-message {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
}

.form-message.error {
    color: var(--danger);
}

.booking-summary {
    position: fixed;
    right: clamp(14px, 4vw, 44px);
    bottom: 12px;
    left: clamp(14px, 4vw, 44px);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.booking-summary > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.booking-summary span {
    display: block;
    color: var(--muted);
}

.booking-summary strong {
    display: block;
    color: var(--text);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.booking-summary small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.booking-summary .button {
    min-width: 180px;
    min-height: 54px;
    font-size: 1rem;
}

.selected-service-list,
.checkout-services {
    display: grid;
    gap: 8px;
}

.selected-service-row,
.checkout-service-row,
.selected-total,
.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-faint);
}

.selected-service-row span,
.checkout-service-row span,
.selected-total span,
.checkout-total span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.selected-total,
.checkout-total {
    margin-top: 8px;
    border-bottom: 0;
    color: var(--text);
}

.total-price-block {
    display: grid;
    justify-items: end;
    gap: 3px;
    text-align: right;
}

.checkout-panel {
    margin-top: 16px;
    max-width: 980px;
}

.checkout-panel .booking-form {
    margin-top: 16px;
}

[data-theme="light"] .booking-hero {
    background:
        linear-gradient(180deg, #c7c7c7 0%, #dedede 72%, #d4d4d4 100%);
    border-bottom-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .booking-shell {
    background:
        linear-gradient(180deg, #d4d4d4 0%, #c9c9c9 42%, #dedede 100%);
}

[data-theme="light"] .service-card,
[data-theme="light"] .selected-services-panel,
[data-theme="light"] .calendar-panel,
[data-theme="light"] .slot-panel,
[data-theme="light"] .checkout-panel {
    background: #e5e5e5;
    border-color: rgba(0, 0, 0, 0.13);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .service-card {
    background: linear-gradient(180deg, #eeeeee, #d8d8d8);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .service-card.selected {
    background: linear-gradient(180deg, #f1f1f1, #cfcfcf);
    border-color: rgba(0, 0, 0, 0.34);
}

[data-theme="light"] .service-image {
    background: #b8b8b8;
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .selected-services-panel,
[data-theme="light"] .checkout-panel {
    background: linear-gradient(180deg, #eeeeee, #dddddd);
}

[data-theme="light"] .calendar-panel,
[data-theme="light"] .slot-panel {
    background: linear-gradient(180deg, #e7e7e7, #d3d3d3);
}

[data-theme="light"] .weekday-row {
    color: #4d4d4d;
}

[data-theme="light"] .calendar-day {
    background: #eeeeee;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .calendar-day:not(.blank):hover,
[data-theme="light"] .calendar-day.selected {
    background: #c2c2c2;
    border-color: rgba(0, 0, 0, 0.38);
}

[data-theme="light"] .calendar-day.disabled,
[data-theme="light"] .calendar-day.disabled:hover {
    color: #777777;
    background: #d2d2d2;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .calendar-day.closed {
    color: #686868;
    background: #d9d9d9;
}

[data-theme="light"] .calendar-day.today::after,
[data-theme="light"] .calendar-day.has-bookings::after {
    background: #1f1f1f;
}

[data-theme="light"] .calendar-day.has-bookings::after {
    color: #ededed;
}

[data-theme="light"] .time-slot {
    background: #eeeeee;
    border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .time-slot:hover,
[data-theme="light"] .time-slot.selected {
    background: #202020;
    border-color: #202020;
    color: #eeeeee;
}

[data-theme="light"] .time-slot.blocked,
[data-theme="light"] .time-slot.blocked:hover {
    color: #777777;
    background: #d2d2d2;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .payment-note,
[data-theme="light"] .empty-state {
    background: #d6d6d6;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .booking-shell input,
[data-theme="light"] .booking-shell select {
    background: #d8d8d8;
    border-color: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .booking-shell input:focus,
[data-theme="light"] .booking-shell select:focus {
    background: #eeeeee;
    border-color: rgba(0, 0, 0, 0.48);
}

[data-theme="light"] .booking-summary {
    background: rgba(214, 214, 214, 0.92);
    border-color: rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .booking-shell .loading-card,
[data-theme="light"] .booking-shell .loading-line {
    background: linear-gradient(90deg, #d2d2d2, #eeeeee, #c9c9c9);
    background-size: 220% 100%;
}

.thanks-page {
    display: grid;
    gap: 28px;
    min-height: calc(100svh - 146px);
    align-content: start;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.thanks-confirmation {
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.thanks-page .thanks-confirmation h1 {
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 4rem);
}

.thanks-page .thanks-confirmation p:not(.eyebrow) {
    width: min(100%, 620px);
    margin: 0;
    color: var(--soft);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.thanks-home-button {
    width: auto;
    min-width: 180px;
    max-width: 240px;
    justify-self: center;
}

.thanks-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 16px;
    width: min(100%, 980px);
    margin: 0 auto;
}

.thanks-detail-panel,
.thanks-address-panel {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.thanks-detail-panel h2,
.thanks-address-panel h2 {
    margin-bottom: 16px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.thanks-detail-panel p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.thanks-facts {
    display: grid;
    grid-template-columns: minmax(88px, 0.36fr) minmax(0, 1fr);
    gap: 8px 16px;
    margin-bottom: 18px;
}

.thanks-facts span,
.thanks-service-row span,
.thanks-total span {
    color: var(--muted);
}

.thanks-service-list {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-faint);
}

.thanks-service-row,
.thanks-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.thanks-total {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.thanks-address-panel address {
    color: var(--soft);
    font-style: normal;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    font-weight: 750;
    line-height: 1.65;
}

.admin-toolbar {
    margin-bottom: 20px;
}

.admin-dashboard {
    display: grid;
    gap: 18px;
}

.admin-dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 2px;
    order: -2;
}

.admin-standalone-sections {
    display: grid;
    gap: 14px;
}

.admin-category {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-category-general {
    order: -1;
}

.admin-category-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 20px clamp(18px, 3vw, 26px);
    cursor: pointer;
    list-style: none;
}

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

.admin-category-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-category-title h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.admin-category-title span {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.admin-category-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1.9rem;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-category-summary:hover .admin-category-toggle {
    border-color: var(--border-strong);
    background: var(--overlay);
}

.admin-category[open] .admin-category-toggle {
    transform: rotate(90deg);
}

.admin-category-content {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 0 clamp(14px, 2.4vw, 22px) clamp(14px, 2.4vw, 22px);
}

.admin-category .management-section {
    margin-bottom: 0;
    border-color: var(--border-soft);
    background: var(--panel-deep);
    box-shadow: none;
}

.admin-category .management-summary h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.opening-hours-editor {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.opening-hours-row {
    display: grid;
    grid-template-columns: minmax(112px, 0.8fr) minmax(132px, 0.9fr) repeat(2, minmax(120px, 1fr));
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 7px;
    background: var(--overlay-soft);
}

.opening-hours-row > strong {
    align-self: center;
}

.opening-hours-row label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.opening-hours-row label span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.opening-hours-closed {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    align-self: center;
    cursor: pointer;
}

.opening-hours-closed input {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--text);
}

.opening-hours-row.is-closed input[type="time"] {
    opacity: 0.48;
}

.discount-manager,
.management-section,
.photo-manager,
.manual-booking-section,
.appointment-table-section {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.appointment-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    background: var(--panel-deep);
}

.appointment-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.appointment-table th,
.appointment-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-faint);
    text-align: left;
    vertical-align: middle;
}

.appointment-table tbody tr:last-child td {
    border-bottom: 0;
}

.appointment-table th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointment-table td strong {
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill.confirmed {
    border-color: rgba(40, 167, 69, 0.35);
    background: rgba(40, 167, 69, 0.12);
    color: #70d98d;
}

.status-pill.blocked {
    border-color: rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.12);
    color: #ffd56a;
}

.management-section {
    align-items: start;
}

.management-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    cursor: pointer;
    list-style: none;
}

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

.management-summary h2 {
    font-size: clamp(1.28rem, 2.2vw, 1.85rem);
}

.management-toggle {
    display: inline-grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.management-summary:hover .management-toggle {
    border-color: var(--border-strong);
    background: var(--overlay);
}

.management-section[open] .management-toggle {
    transform: rotate(90deg);
}

.management-content {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hero-design-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 14px;
    margin-bottom: 28px;
}

.hero-design-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
}

.hero-design-card h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-design-card form,
.hero-design-card label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.hero-design-card label span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-design-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-device-preview {
    overflow: hidden;
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    background: var(--overlay-soft);
}

.hero-device-preview-desktop {
    aspect-ratio: 16 / 9;
}

.hero-device-preview img,
.mobile-hero-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-preview-empty,
.mobile-hero-empty {
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 14px;
    color: var(--muted);
    text-align: center;
}

.mobile-hero-empty {
    grid-column: 1 / -1;
}

.mobile-hero-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.mobile-hero-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--border-faint);
    border-radius: 8px;
    background: var(--overlay-soft);
}

.mobile-hero-item img {
    aspect-ratio: 9 / 14;
}

.mobile-hero-item button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(0, 0, 0, 0.56);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.photo-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.photo-upload-form label {
    display: grid;
    gap: 7px;
}

.photo-upload-form label span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.photo-visibility-button {
    justify-self: start;
}

.photo-manager-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.photo-manager-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--panel-deep);
}

.photo-manager-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
    background: var(--bg-deep);
}

.photo-manager-card div:not(.photo-actions) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.photo-manager-card span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.social-gallery-section {
    padding: 0 clamp(18px, 5vw, 72px) clamp(48px, 8vw, 86px);
    background: var(--bg);
}

.social-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.social-gallery figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.social-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.reporting-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.report-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 98px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--panel-deep);
}

.report-card span,
.revenue-form span {
    color: var(--muted);
    font-size: 0.88rem;
}

.report-card strong {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    overflow-wrap: anywhere;
}

.reporting-chart,
.reporting-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    background: var(--panel-deep);
}

.reporting-chart h3,
.reporting-panel h3 {
    margin: 0;
    font-size: 1rem;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.chart-month-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chart-month-control strong {
    min-width: 128px;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}

.icon-button.small {
    width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 1.25rem;
}

.chart-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.chart-vertical {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.chart-y-axis {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    align-items: start;
    min-height: 230px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1;
    text-align: right;
}

.chart-y-axis span:last-child {
    align-self: end;
}

.chart-plot {
    position: relative;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}

.chart-grid-lines {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    height: 230px;
    pointer-events: none;
}

.chart-grid-lines span {
    border-top: 1px solid var(--border-faint);
}

.chart-grid-lines span:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.chart-columns {
    position: relative;
    z-index: 1;
    display: grid;
    grid-auto-columns: minmax(74px, 1fr);
    grid-auto-flow: column;
    gap: 10px;
    min-width: min(100%, 420px);
}

.chart-columns.daily-chart {
    grid-auto-columns: minmax(34px, 1fr);
    min-width: 1120px;
    gap: 4px;
}

.chart-column {
    display: grid;
    grid-template-rows: 230px auto auto;
    gap: 7px;
    min-width: 0;
    text-align: center;
}

.chart-bar-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    height: 230px;
    overflow: hidden;
    padding: 0 10px;
}

.daily-chart .chart-bar-wrap {
    padding: 0 5px;
}

.chart-bar-wrap i {
    display: block;
    width: 100%;
    max-width: 42px;
    min-height: 0;
    border-radius: 6px 6px 0 0;
    background: #f5f5f5;
}

.chart-column strong {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: nowrap;
}

.chart-column span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
}

.reporting-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 12px;
    min-width: 0;
}

.report-table-wrap {
    overflow-x: auto;
    min-width: 0;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.report-table th,
.report-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-faint);
    text-align: left;
    vertical-align: top;
}

.report-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.report-table td {
    overflow-wrap: anywhere;
}

.reporting-booking-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.revenue-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.3fr) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    background: var(--overlay-soft);
}

.revenue-form > div,
.revenue-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.revenue-form > div span {
    color: var(--muted);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.revenue-form > div strong {
    overflow-wrap: anywhere;
}

.revenue-form input {
    min-height: 40px;
}

.confirmed-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(40, 167, 69, 0.35);
    border-radius: 999px;
    background: rgba(40, 167, 69, 0.12);
    color: #70d98d;
}

.confirmed-check span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28a745;
    color: #061209;
    font-size: 0.8rem;
    font-weight: 900;
}

.confirmed-check strong {
    font-size: 0.88rem;
}

.discount-service-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.discount-service-card {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--panel-deep);
    cursor: pointer;
}

.discount-service-card:hover {
    border-color: var(--border-medium);
}

.discount-service-card.editing {
    display: block;
    grid-column: 1 / -1;
    overflow: hidden;
    cursor: default;
}

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

.discount-service-card > div:first-child span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.discount-price-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.discount-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.discount-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.discount-form .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
}

.discount-form label,
.discount-form input,
.discount-form select,
.manual-booking-form label,
.manual-booking-form input,
.manual-booking-form select,
.manual-block-form label,
.manual-block-form input,
.manual-block-form select {
    min-width: 0;
}

.discount-form input[type="datetime-local"],
.manual-booking-form input[type="date"],
.manual-booking-form input[type="time"],
.manual-block-form input[type="date"],
.manual-block-form input[type="time"] {
    width: 100%;
    max-width: 100%;
    min-inline-size: 0;
    padding-inline: 10px;
    font-size: 0.9rem;
}

.discount-form input[type="datetime-local"]::-webkit-datetime-edit,
.manual-booking-form input[type="date"]::-webkit-datetime-edit,
.manual-booking-form input[type="time"]::-webkit-datetime-edit,
.manual-block-form input[type="date"]::-webkit-datetime-edit,
.manual-block-form input[type="time"]::-webkit-datetime-edit {
    min-width: 0;
    overflow: hidden;
}

.discount-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.manual-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.manual-booking-form input[type="time"]::-webkit-calendar-picker-indicator,
.manual-block-form input[type="date"]::-webkit-calendar-picker-indicator,
.manual-block-form input[type="time"]::-webkit-calendar-picker-indicator {
    width: 16px;
    margin-left: 2px;
    padding: 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: 16px;
}


.manual-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
    gap: 14px;
    align-items: start;
}

.manual-booking-form,
.manual-block-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.manual-block-form {
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--panel-deep);
}

.manual-block-form h3 {
    margin: 2px 0 0;
    font-size: 1.1rem;
}

.manual-block-form label {
    display: grid;
    gap: 7px;
}

.manual-availability {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--panel-deep);
}

.manual-availability > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.manual-availability span {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Freie Zeiten (Benutzeransicht): kompakte Chips wie Sale-Badge / Sale-Karten */
.manual-availability .time-grid.compact {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    min-height: auto;
}

.manual-availability .time-grid.compact .time-slot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: auto;
    min-width: 4rem;
    max-width: max-content;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 154, 0.38);
    background: rgba(110, 231, 154, 0.07);
}

.manual-availability .time-grid.compact .time-slot.blocked {
    border-color: var(--border-faint);
    background: var(--bg-alt);
    color: #777777;
}

.manual-availability .time-grid.compact .time-value {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.15;
}

.manual-availability .time-grid.compact .time-status {
    font-size: 0.64rem;
    font-weight: 750;
    opacity: 0.88;
}

.manual-availability .time-grid.compact .time-slot.selected .time-status {
    opacity: 1;
}

/* Make the manual booking + block buttons wider and centered on larger screens */
.manual-booking-form .appointment-actions,
.manual-block-form .appointment-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.manual-booking-form .appointment-actions .button,
.manual-block-form .appointment-actions .button {
    width: min(420px, 80%);
    max-width: 100%;
    justify-content: center;
    padding-inline: clamp(18px, 4vw, 36px);
    box-sizing: border-box;
}

.login-panel {
    max-width: 460px;
}

.appointment-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    background: var(--panel-deep);
}

.appointment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-faint);
    background: var(--panel-deep);
}

.appointment:last-child {
    border-bottom: 0;
}

.appointment.editing {
    display: block;
    padding: 14px;
    border-color: var(--border-medium);
    background: var(--panel-2);
}

.appointment-info {
    display: grid;
    grid-template-columns: minmax(118px, 0.36fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.appointment-time-name,
.appointment-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.appointment-time-name strong {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
    white-space: nowrap;
}

.appointment-time-name span {
    color: var(--text);
    font-weight: 800;
}

.appointment-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.appointment .confirmed-check span {
    display: grid;
    color: #061209;
}

.appointment-status-confirmed {
    color: #70d98d !important;
    font-weight: 850;
}

.appointment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 0;
}

/* Desktop: Tages-Termine (Detailspalte) breiter, klarer; Monatstabelle nutzt die Breite */
@media (min-width: 1024px) {
    .admin-layout {
        grid-template-columns: minmax(300px, 1fr) minmax(380px, 1.15fr);
        gap: 20px;
        align-items: start;
    }

    .day-details {
        display: grid;
        gap: 14px;
        padding: clamp(18px, 1.4vw, 24px);
    }

    .day-details .appointment-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .day-details .appointment {
        border: 1px solid var(--border-soft);
        border-radius: 8px;
        padding: 16px 18px;
        gap: 16px 20px;
    }

    .day-details .appointment:last-child {
        border-bottom: 1px solid var(--border-soft);
    }

    .day-details .appointment-info {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 14px 28px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .day-details .appointment-time-name {
        flex: 0 1 clamp(160px, 24%, 240px);
        min-width: 132px;
    }

    .day-details .appointment-meta {
        flex: 1 1 260px;
        min-width: 0;
        gap: 6px;
    }

    .day-details .appointment-actions {
        flex: 0 0 auto;
        align-self: center;
    }

    .day-details .appointment.editing {
        border-radius: 8px;
    }
}

@media (min-width: 1200px) {
    .admin-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.28fr);
    }

    .appointment-table-wrap {
        overflow-x: visible;
    }

    .appointment-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .appointment-table th,
    .appointment-table td {
        padding: 14px 14px;
    }

    .appointment-table th:nth-child(1),
    .appointment-table td:nth-child(1) {
        width: 12%;
    }

    .appointment-table th:nth-child(2),
    .appointment-table td:nth-child(2) {
        width: 9%;
    }

    .appointment-table th:nth-child(3),
    .appointment-table td:nth-child(3) {
        width: 22%;
    }

    .appointment-table th:nth-child(4),
    .appointment-table td:nth-child(4) {
        width: 11%;
    }

    .appointment-table th:nth-child(5),
    .appointment-table td:nth-child(5) {
        width: 20%;
    }

    .appointment-table th:nth-child(6),
    .appointment-table td:nth-child(6) {
        width: 11%;
    }

    .appointment-table th:nth-child(7),
    .appointment-table td:nth-child(7) {
        width: 9%;
    }

    .appointment-table td {
        vertical-align: top;
        overflow-wrap: anywhere;
    }
}

.admin-booking-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid label {
    display: grid;
    gap: 7px;
}

.admin-service-picker {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
}

.admin-service-picker legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-service-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 6px;
    background: var(--overlay-soft);
}

.admin-service-option input {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--text);
}

.admin-service-option span {
    color: var(--text);
}

.admin-service-option strong {
    white-space: nowrap;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 4vw, 56px);
    background: var(--bg);
    border-top: 1px solid var(--border-faint);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-brand div {
    display: grid;
    gap: 2px;
}

.footer-brand span:not(.brand-mark) {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.94rem;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--text);
    border-color: var(--border);
    background: var(--overlay);
}

.footer-links .footer-admin-link {
    color: var(--text);
    border-color: var(--border-medium);
    background: var(--overlay);
}

.loading-card,
.loading-line {
    min-height: 220px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel));
    background-size: 220% 100%;
    animation: loading 1.4s infinite;
}

.loading-line {
    min-height: 30px;
}

.loading-line.short {
    max-width: 360px;
}

@keyframes loading {
    to {
        background-position: -220% 0;
    }
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .info-location-hero {
        min-height: clamp(520px, 72svh, 700px);
        background-position: center 45%;
    }

    .info-photo-frame {
        width: min(100%, 820px);
    }

    .service-preview,
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .booking-flow,
    .admin-layout,
    .manual-booking-layout,
    .discount-service-list,
    .reporting-summary,
    .reporting-grid,
    .photo-manager-list,
    .info-grid,
    .legal-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .info-location-hero {
        min-height: 520px;
        background-position: center;
    }

    .info-location-copy {
        gap: 12px;
    }

    .info-location-copy h1 {
        font-size: clamp(1.85rem, 9vw, 2.75rem);
    }

    .info-photo-section {
        padding-top: 28px;
        padding-bottom: 38px;
    }

    .info-photo-section-top {
        padding-top: 84px;
    }

    .info-photo-frame img {
        max-height: none;
        border-radius: 6px;
    }

    .info-services-section {
        justify-items: stretch;
    }

    .info-location-section {
        justify-items: stretch;
    }

    body.summary-open {
        padding-bottom: 188px;
    }

    .admin-dashboard {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .admin-dashboard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .admin-dashboard-actions .button {
        width: 100%;
        flex: none;
        min-width: 0;
    }

    .admin-dashboard-actions .admin-main-action {
        grid-column: 1 / -1;
    }

    .admin-category-summary {
        grid-template-columns: minmax(0, 1fr) 38px;
        gap: 10px 12px;
        min-height: 76px;
        padding: 16px;
    }

    .admin-category-toggle {
        grid-column: 2;
        grid-row: 1;
        width: 38px;
        height: 38px;
        font-size: 1.65rem;
    }

    .admin-category-content {
        gap: 10px;
        padding: 0 10px 10px;
    }

    .admin-category .management-section {
        padding: 14px;
    }

    .hero-design-grid {
        grid-template-columns: 1fr;
    }

    .account-logo-panel {
        padding: 0 16px 18px;
    }

    .account-logo-grid {
        grid-template-columns: 1fr;
    }

    .account-logo-card {
        padding: 14px;
    }

    .account-logo-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-logo-actions .button,
    .account-logo-global .button {
        width: 100%;
    }

    .account-logo-global {
        display: grid;
        grid-template-columns: 1fr;
    }

    .section-order-manager .section-sort-list {
        border-radius: 8px;
    }

    .section-order-manager .section-sort-item {
        display: grid;
        grid-template-columns: 28px 38px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 0;
        padding: 14px;
    }

    .section-order-manager .section-sort-item.is-fixed {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .section-order-manager .section-sort-item.is-fixed .section-sort-icon {
        grid-column: 1;
    }

    .section-order-manager .section-sort-item.is-fixed .section-sort-info {
        grid-column: 2;
    }

    .section-order-manager .section-sort-handle {
        width: 28px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 6px;
        background: var(--overlay-soft);
    }

    .section-order-manager .section-sort-icon {
        width: 38px;
        height: 38px;
        border-radius: 7px;
    }

    .section-order-manager .section-sort-info {
        gap: 4px;
    }

    .section-order-manager .section-sort-name {
        font-size: 0.96rem;
    }

    .section-order-manager .section-sort-sub {
        font-size: 0.76rem;
    }

    .section-order-manager .section-sort-btns {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(64px, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 4px;
    }

    .section-order-manager .section-sort-btns .icon-button {
        width: 100%;
        height: 44px;
        min-height: 44px;
        border-radius: 7px;
        background: var(--overlay);
        font-size: 1.2rem;
    }

    .section-order-manager .section-visibility-icon {
        width: 24px;
        height: 15px;
    }

    .section-order-manager .section-sort-fixed-badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 2px;
        padding: 5px 9px;
    }

    .section-order-manager [data-section-order-save],
    .section-order-manager [data-section-order-reset] {
        width: 100%;
        min-height: 44px;
    }

    .opening-hours-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 9px;
    }

    .opening-hours-row > strong {
        font-size: 1rem;
    }

    .opening-hours-closed {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .discount-manager {
        margin-bottom: 0;
    }

    .site-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
        min-height: 62px;
        padding: 10px 12px;
    }

    .brand {
        flex: 0 0 auto;
        gap: 8px;
        font-size: 0.95rem;
        min-width: max-content;
        max-width: none;
    }

    .brand > span:last-child {
        max-width: none;
        overflow: visible;
        line-height: 1.05;
        white-space: nowrap;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 0.72rem;
    }

    .site-nav {
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 4px;
        flex-wrap: nowrap;
        margin-left: auto;
        min-width: 0;
    }

    .site-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: center;
        min-height: 36px;
        padding: 7px 5px;
        font-size: 0.68rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-link-list {
        justify-content: flex-start;
        width: 100%;
    }

    .reviews-section {
        grid-template-columns: 1fr;
    }

    .reviews-card {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 6px 12px;
        padding: 14px 16px;
        min-height: unset;
        text-align: left;
    }

    .reviews-brand {
        justify-content: flex-start;
        gap: 10px;
    }

    .reviews-rating {
        justify-content: flex-end;
        gap: 6px;
    }

    .reviews-link-hint {
        grid-column: 1 / -1;
        text-align: left;
        font-size: 0.82rem;
    }

    .reviews-card .star-bar {
        font-size: 1.1rem;
    }

    .reviews-card .reviews-score {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hours-disclosure summary {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 12px;
    }

    .hours-summary-time {
        grid-column: 1 / -1;
        grid-row: 2;
        white-space: normal;
    }

    .hours-toggle {
        grid-column: 2;
        grid-row: 1;
        width: 34px;
        height: 34px;
        justify-self: end;
    }

    .hours-list {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .hero {
        min-height: clamp(430px, calc(100svh - 160px), 620px);
    }

    .compact-hero h1,
    .booking-hero h1 {
        font-size: clamp(2.05rem, 10vw, 2.7rem);
    }

    .page-hero p:not(.eyebrow) {
        width: min(100%, 320px);
        max-width: calc(100vw - 48px);
        font-size: 1rem;
    }

    .page-hero h1 {
        max-width: calc(100vw - 48px);
    }

    .service-preview {
        grid-template-columns: 1fr;
    }

    .service-grid {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        width: calc(100% + (clamp(18px, 5vw, 72px) * 2));
        margin-right: calc(clamp(18px, 5vw, 72px) * -1);
        margin-left: calc(clamp(18px, 5vw, 72px) * -1);
        padding: 0 clamp(18px, 5vw, 72px) 12px !important;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 0;
        scroll-snap-type: x mandatory;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .service-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 min(72vw, 286px);
        min-height: 310px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        opacity: 0.82;
        transform: scale(0.95);
        transform-origin: center center;
        transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
        will-change: transform, opacity;
    }

    .service-card.is-centered {
        opacity: 1;
        transform: scale(1);
    }

    .service-card:last-child {
        margin-right: clamp(18px, 5vw, 72px);
        scroll-margin-right: clamp(18px, 5vw, 72px);
    }

    .service-card .service-image {
        aspect-ratio: 5 / 3;
    }

    .service-card .service-content {
        min-height: 148px;
        gap: 12px;
        padding: 14px;
    }

    .service-card .service-content h3 {
        font-size: 1.02rem;
    }

    .service-card .service-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .service-grid .loading-card {
        flex: 0 0 min(72vw, 286px);
        min-height: 310px;
    }

    .booking-flow {
        grid-template-columns: 1fr;
    }

    .payment-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .payment-note strong {
        text-align: left;
    }

    .selected-services-panel .section-heading {
        align-items: flex-start;
        text-align: left;
    }

    .selected-services-panel .section-heading .button {
        align-self: flex-start;
    }

    .selected-services-panel .selected-service-row,
    .selected-services-panel .selected-total {
        align-items: flex-start;
        text-align: left;
    }

    .selected-services-panel .total-price-block {
        justify-items: start;
        text-align: left;
    }

    .calendar-panel,
    .slot-panel,
    .selected-services-panel,
    .checkout-panel,
    .login-panel,
    .day-details {
        padding: 16px;
    }

    .weekday-row,
    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        min-height: 48px;
        padding: 7px 5px;
    }

    .calendar-grid.mobile-week .calendar-day {
        min-height: 58px;
        align-items: center;
        text-align: center;
    }

    .weekday-row {
        font-size: 0.68rem;
    }

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

    .booking-fields {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .booking-action .button {
        width: 100%;
        max-width: 420px;
    }

    .thanks-summary-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .discount-form .form-grid {
        grid-template-columns: 1fr;
    }

    .discount-form input[type="datetime-local"],
    .manual-booking-form input[type="date"],
    .manual-booking-form input[type="time"],
    .manual-block-form input[type="date"],
    .manual-block-form input[type="time"] {
        padding-inline: 8px;
        font-size: 0.82rem;
    }

    .discount-form .appointment-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .discount-form .appointment-actions .button {
        width: 100%;
        min-width: 0;
    }

    .appointment-list {
        border-radius: 6px;
    }

    .appointment {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 11px 10px;
    }

    .appointment-info {
        grid-template-columns: minmax(84px, 0.38fr) minmax(0, 1fr);
        gap: 10px;
    }

    .appointment-time-name strong {
        font-size: 0.95rem;
    }

    .appointment-time-name span,
    .appointment-meta span {
        font-size: 0.84rem;
    }

    /* Nur die kompakte Aktionsleiste in der Tagesliste — nicht Formulare (Termin speichern / Intervall) */
    .appointment:not(.editing) > .appointment-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 96px;
    }

    .appointment:not(.editing) > .appointment-actions .button {
        width: 100%;
        min-height: 38px;
        padding: 0 8px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .appointment:not(.editing) > .appointment-actions .button:first-child {
        min-width: 0;
    }

    .appointment.editing .appointment-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }

    .appointment.editing .appointment-actions .button {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        white-space: normal;
    }

    .appointment.editing .appointment-actions .button:nth-child(3):last-child {
        grid-column: 1 / -1;
    }

    /* Benutzeransicht: „Termin speichern“ / „Intervall blockieren“ — zentriert, breite Klickfläche */
    .manual-booking-form .appointment-actions,
    .manual-block-form .appointment-actions {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .manual-booking-form .appointment-actions .button,
    .manual-block-form .appointment-actions .button {
        width: min(100%, 380px);
        max-width: calc(100vw - 36px);
        padding: 12px clamp(22px, 7vw, 40px);
        box-sizing: border-box;
    }

    /* Freie Zeiten: etwas dichter auf schmalen Viewports */
    .manual-availability .time-grid.compact {
        gap: 6px;
    }

    .manual-availability .time-grid.compact .time-slot {
        min-width: 3.5rem;
        padding: 4px 9px;
        min-height: 32px;
    }

    .manual-availability .time-grid.compact .time-value {
        font-size: 0.76rem;
    }

    .manual-availability .time-grid.compact .time-status {
        font-size: 0.6rem;
    }

    /* Native Datum/Zeit: gleiche Kompaktheit wie Sale-Startzeit */
    .manual-booking-form input[type="time"],
    .manual-block-form input[type="time"] {
        max-width: 9.25rem;
        width: 100%;
    }

    .manual-booking-form input[type="date"],
    .manual-block-form input[type="date"] {
        max-width: min(100%, 11.5rem);
        width: 100%;
    }

    .appointment-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .appointment-table,
    .appointment-table tbody,
    .appointment-table tr,
    .appointment-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .appointment-table thead {
        display: none;
    }

    .appointment-table tbody {
        display: grid;
        gap: 10px;
    }

    .appointment-table tr {
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--border-faint);
        border-radius: 6px;
        background: var(--panel-deep);
    }

    .appointment-table td {
        display: grid;
        grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        border-bottom: 0;
    }

    .appointment-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.74rem;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .appointment-table td .button {
        width: 100%;
        min-height: 42px;
    }

    .reporting-chart,
    .reporting-panel {
        min-width: 0;
        padding: 12px;
    }

    .chart-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-month-control {
        width: 100%;
        justify-content: space-between;
    }

    .chart-month-control strong {
        min-width: 0;
        flex: 1 1 auto;
    }

    .chart-vertical {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
    }

    .chart-y-axis,
    .chart-grid-lines,
    .chart-bar-wrap {
        height: 190px;
        min-height: 190px;
    }

    .chart-columns {
        grid-auto-columns: minmax(58px, 1fr);
        gap: 6px;
    }

    .chart-columns.daily-chart {
        grid-auto-columns: minmax(31px, 1fr);
        min-width: 980px;
        gap: 3px;
    }

    .chart-bar-wrap {
        padding: 0 8px;
    }

    .daily-chart .chart-bar-wrap {
        padding: 0 4px;
    }

    .chart-column {
        grid-template-rows: 190px auto auto;
    }

    .chart-column strong {
        font-size: 0.72rem;
    }

    .chart-column span,
    .chart-y-axis {
        font-size: 0.68rem;
    }

    .report-table-wrap {
        overflow: visible;
    }

    .report-table,
    .report-table tbody,
    .report-table tr,
    .report-table td {
        display: block;
        width: 100%;
    }

    .report-table thead {
        display: none;
    }

    .report-table tbody {
        display: grid;
        gap: 10px;
    }

    .report-table tr {
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--border-faint);
        border-radius: 6px;
        background: var(--overlay-soft);
    }

    .report-table td {
        display: grid;
        grid-template-columns: minmax(78px, 0.34fr) minmax(0, 1fr);
        gap: 10px;
        padding: 0;
        border-bottom: 0;
    }

    .report-table td::before {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .report-table td:nth-child(1)::before {
        content: "E-Mail";
    }

    .report-table td:nth-child(2)::before {
        content: "Status";
    }

    .report-table td:nth-child(3)::before {
        content: "Termine";
    }

    .report-table td:nth-child(4)::before {
        content: "Umsatz";
    }

    .revenue-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .revenue-form .button {
        width: 100%;
    }

    .photo-upload-form,
    .social-gallery {
        grid-template-columns: 1fr;
    }

    .split-band,
    .studio-band {
        grid-template-columns: 1fr;
    }

    .studio-band .button {
        justify-self: start;
    }

    .booking-summary {
        align-items: center;
        flex-direction: row;
        right: 10px;
        bottom: 4px;
        left: 10px;
        gap: 10px;
        padding: 12px;
    }

    .booking-summary > div {
        flex: 1 1 auto;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 3px 10px;
    }

    .booking-summary [data-summary-name] {
        display: none;
    }

    .booking-summary strong {
        justify-self: start;
        font-size: 1.12rem;
    }

    .booking-summary small {
        justify-self: end;
        text-align: right;
        white-space: nowrap;
    }

    .booking-summary .button {
        width: auto;
        min-width: 118px;
        min-height: 48px;
        padding: 0 14px;
        flex: 0 0 auto;
    }
}

@media (max-width: 680px) {
    .location-section {
        grid-template-columns: 1fr;
    }

    .map-frame,
    .map-frame iframe {
        min-height: 330px;
    }
}

@media (max-width: 430px) {
    .discount-form input[type="datetime-local"],
    .manual-booking-form input[type="date"],
    .manual-booking-form input[type="time"],
    .manual-block-form input[type="date"],
    .manual-block-form input[type="time"] {
        padding-inline: 6px;
        font-size: 0.76rem;
    }

    .thanks-facts {
        grid-template-columns: 1fr;
    }

    .calendar-grid.mobile-week,
    .weekday-row {
        gap: 3px;
    }

    .calendar-grid.mobile-week .calendar-day {
        min-height: 52px;
        padding: 6px 2px;
    }

    .calendar-day-month {
        font-size: 0.66rem;
    }

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

    .brand span:last-child {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
        white-space: nowrap;
    }

    .brand {
        gap: 7px;
        font-size: 0.88rem;
        min-width: max-content;
        max-width: none;
    }

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

    .site-nav {
        gap: 3px;
        margin-left: auto;
    }

    .site-nav a {
        min-height: 34px;
        padding: 7px 4px;
        font-size: 0.66rem;
    }
}

/* ── Reviews Section (Google + Treatwell) ───────────────────── */
.reviews-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr));
    gap: 20px 12px;
    padding: clamp(48px, 8vw, 86px) clamp(18px, 5vw, 72px);
    background: var(--bg);
}

[data-theme="light"] .reviews-section {
    background:
        linear-gradient(180deg, #8c8c8c 0%, #b9b9b9 34%, #dedede 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.reviews-heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.reviews-heading h2 {
    color: var(--muted);
    text-align: left;
}

[data-theme="light"] .reviews-heading h2 {
    color: #242424;
}

.section-heading.compact.reviews-heading {
    align-items: flex-start;
    text-align: left;
}

.reviews-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px 28px;
    min-height: 82px;
    padding: 18px clamp(16px, 3vw, 26px);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease;
}

.reviews-card:hover {
    border-color: var(--border-medium);
    background: var(--panel-2);
}

[data-theme="light"] .reviews-card {
    background: rgba(238, 238, 238, 0.9);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .reviews-card:hover {
    background: #f2f2f2;
    border-color: rgba(255, 255, 255, 0.68);
}

.reviews-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.google-g {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.reviews-brand-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.reviews-brand-name {
    font-size: clamp(1.15rem, 2.5vw, 1.8rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.reviews-stars {
    font-size: 1.35rem;
    color: #FBBC05;
    letter-spacing: 0.04em;
    line-height: 1;
}

.reviews-score {
    font-size: clamp(1.35rem, 3vw, 2.3rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.reviews-link-hint {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
    transition: color 180ms ease, transform 180ms ease;
}

.reviews-card:hover .reviews-link-hint {
    color: var(--text);
    transform: translateX(2px);
}

.star-bar {
    position: relative;
    display: inline-block;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.star-bar-bg {
    color: var(--border);
}

.star-bar-fg {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    width: var(--pct, 100%);
    color: #FBBC05;
    white-space: nowrap;
}

.tw-reviews-leaf {
    width: 22px;
    height: 29px;
    flex-shrink: 0;
}

/* ── Reviews Desktop ────────────────────────────────────────── */
@media (min-width: 761px) {
    .reviews-card {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 20px 36px;
        min-height: 110px;
        padding: 32px clamp(24px, 4vw, 52px);
        border-radius: 12px;
    }

    .reviews-link-hint {
        grid-column: auto;
        font-size: 0.95rem;
    }

    .reviews-brand {
        gap: 18px;
    }

    .google-g {
        width: 40px;
        height: 40px;
    }

    .tw-reviews-leaf {
        width: 26px;
        height: 34px;
    }

    .reviews-rating {
        gap: 12px;
    }

    .star-bar {
        font-size: 1.4rem;
    }

    .reviews-score {
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    }
}

/* ── Treatwell Promo Banner ─────────────────────────────────── */
.treatwell-promo {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


.treatwell-promo-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

.treatwell-promo-content {
    flex: 1;
    min-width: 0;
}

.treatwell-promo-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    margin: 8px 0 32px;
}

.treatwell-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00c878;
    color: #fff;
    border-color: #00c878;
    font-size: 1rem;
    font-weight: 750;
    padding: 0 28px;
    min-height: 52px;
    border-radius: 8px;
    letter-spacing: 0.01em;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.treatwell-cta-btn:hover {
    background: #00ad69;
    border-color: #00ad69;
    box-shadow: 0 8px 32px rgba(0, 200, 120, 0.28);
    transform: translateY(-2px);
}

.treatwell-btn-leaf {
    width: 14px;
    height: 18px;
    flex-shrink: 0;
}

.treatwell-promo-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.treatwell-tw-badge,
.treatwell-studio-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.treatwell-tw-leaf {
    width: 32px;
    height: 42px;
}

.treatwell-tw-wordmark {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #00c878;
}

.treatwell-logos-sep {
    font-size: 1.2rem;
    color: var(--line);
    flex-shrink: 0;
    margin-bottom: 20px;
}

.treatwell-studio-img {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--panel-2);
}

.treatwell-studio-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .treatwell-promo-inner {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .treatwell-promo-logos {
        order: -1;
        gap: 20px;
    }

    .treatwell-logos-sep {
        margin-bottom: 20px;
    }

    .treatwell-cta-btn {
        width: 100%;
        justify-content: center;
    }

}

/* ── Theme Switcher ──────────────────────────────────── */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    min-height: 32px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.theme-btn[aria-pressed="true"] {
    background: var(--accent);
    color: var(--accent-ink);
}

.theme-btn:hover:not([aria-pressed="true"]) {
    color: var(--text);
    background: var(--panel-2);
}

@media (max-width: 640px) {
    .theme-switcher {
        padding: 0;
        background: transparent;
        border-color: transparent;
        gap: 0;
    }

    .theme-btn {
        display: none;
    }

    .theme-btn[aria-pressed="true"] {
        display: inline-flex;
        padding: 6px 13px;
        min-height: 34px;
        font-size: 0.8rem;
        font-weight: 600;
        background: var(--panel);
        color: var(--text);
        border: 1px solid var(--border-soft);
        border-radius: 7px;
    }

    .theme-btn[aria-pressed="true"]:hover {
        background: var(--panel-2);
    }
}

/* ── Landing Page ─────────────────────────────────────── */
body.page-landing {
    background: #080808;
    color: #f4f4f4;
}

.landing-hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #080808;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/studio-haco-hero.jpg') center 42% / cover no-repeat;
    filter: brightness(0.38);
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(to bottom, transparent, #080808);
    z-index: 1;
    pointer-events: none;
}

.landing-hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.landing-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.landing-brand-name {
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1;
}

.landing-brand-tagline {
    font-size: clamp(0.9rem, 2.2vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.landing-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    z-index: 2;
}

/* Studios Section */
.studios-section {
    padding: 5rem 1.5rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.studios-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.studios-heading .eyebrow {
    font-size: 0.73rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.6rem;
    display: block;
}

.studios-heading h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #f4f4f4;
}

.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.studio-card {
    display: block;
    text-decoration: none;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.studio-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.studio-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

.studio-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.studio-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f4f4f4;
    margin: 0 0 0.3rem;
}

.studio-card-location {
    font-size: 0.855rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.2rem;
}

.studio-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f4f4f4;
    opacity: 0.75;
}

.studio-card:hover .studio-card-cta {
    opacity: 1;
}

/* More information editor */
.more-info-editor {
    display: block;
}

.more-info-content {
    display: grid;
    gap: 18px;
}

.more-info-auth-message,
.more-info-editor-header,
.more-info-tool-panel,
.more-info-block-panel {
    border: 1px solid var(--border-strong);
    background: var(--panel);
    border-radius: 8px;
}

.more-info-auth-message {
    padding: 18px;
}

.more-info-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(18px, 3vw, 28px);
}

.more-info-editor-heading {
    max-width: 720px;
}

.more-info-editor-heading h2,
.more-info-block-panel-head h3,
.more-info-empty-state h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.more-info-editor-heading p:not(.eyebrow),
.more-info-tool-hint,
.more-info-empty-state p {
    color: var(--muted);
    line-height: 1.6;
}

.more-info-editor-actions,
.more-info-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.more-info-editor-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.more-info-tool-panel,
.more-info-block-panel {
    padding: 18px;
}

.more-info-tool-panel {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 92px;
}

.more-info-tool-panel .button {
    justify-content: flex-start;
    width: 100%;
}

.more-info-tool-hint {
    margin: 6px 0 0;
    font-size: 0.84rem;
}

.more-info-block-panel {
    min-width: 0;
}

.more-info-block-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.more-info-block-list {
    margin-bottom: 12px;
}

.more-info-loading,
.more-info-empty-state {
    padding: 24px;
    background: var(--panel);
}

.more-info-empty-state {
    display: grid;
    gap: 10px;
}

.more-info-empty-state .button {
    justify-self: start;
}

.more-info-block-thumb {
    width: 54px;
    height: 42px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    background: var(--bg);
    flex-shrink: 0;
}

.more-info-block-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.more-info-edit-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    user-select: text;
}

.more-info-edit-form {
    width: 100%;
    display: grid;
    gap: 14px;
}

.more-info-form-grid {
    margin-bottom: 0;
}

.more-info-full-field,
.more-info-type-field,
.more-info-image-field,
.more-info-upload-field {
    display: grid;
    gap: 8px;
}

.more-info-textarea {
    width: 100%;
    min-height: 148px;
    resize: vertical;
}

.more-info-image-field .eyebrow {
    margin: 0;
}

.more-info-image-current {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.more-info-image-preview {
    max-width: min(100%, 520px);
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--border-medium);
    background: var(--bg);
}

.more-info-no-image {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.more-info-upload-field {
    padding: 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--bg);
}

.more-info-upload-field span {
    font-size: 0.875rem;
    color: var(--muted);
}

.more-info-check-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.more-info-check-field input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Section sort */
.section-sort-list {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--border-strong);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.section-sort-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 15px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: inset 0 -1px 0 var(--border-faint);
    transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease, transform 140ms ease;
    user-select: none;
    cursor: default;
    min-height: 66px;
}

.section-sort-item:last-child {
    border-bottom: none;
    box-shadow: none;
}

.section-sort-item.is-fixed {
    background: var(--bg-deep);
    opacity: 0.82;
}

.section-sort-item.drag-over {
    background: color-mix(in srgb, var(--accent) 12%, var(--panel));
    border-bottom-color: var(--accent);
}

.section-sort-item.is-moving {
    background: color-mix(in srgb, var(--accent) 9%, var(--panel));
    transform: translateX(3px);
}

.section-sort-item.is-hidden {
    background: color-mix(in srgb, var(--bg-deep) 72%, var(--panel));
}

.section-sort-item.is-hidden .section-sort-icon,
.section-sort-item.is-hidden .section-sort-info {
    opacity: 0.48;
}

.section-sort-item.is-dragging {
    opacity: 0.42;
    background: var(--bg-deep);
}

.section-sort-handle {
    cursor: grab;
    color: var(--muted);
    font-size: 1.15rem;
    flex-shrink: 0;
    touch-action: none;
    line-height: 1;
    padding: 0 2px;
}

.section-sort-handle:active {
    cursor: grabbing;
}

.section-sort-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.section-sort-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.section-sort-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.section-sort-sub {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.3;
}

.section-sort-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.section-visibility-button {
    position: relative;
    color: var(--text);
}

.section-visibility-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.section-visibility-icon::before {
    content: "";
    position: absolute;
    inset: 3px 7px;
    border-radius: 50%;
    background: currentColor;
}

.section-sort-item.is-hidden .section-visibility-button::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-35deg);
    transform-origin: center;
}

.section-sort-divider {
    padding: 8px 16px;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-sort-fixed-badge {
    font-size: 0.67rem;
    color: var(--muted);
    background: var(--bg-deep);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 3px 8px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 860px) {
    .more-info-editor-header,
    .more-info-block-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .more-info-editor-layout {
        grid-template-columns: 1fr;
    }

    .more-info-tool-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .more-info-tool-panel,
    .more-info-block-panel,
    .more-info-editor-header {
        padding: 14px;
    }

    .more-info-form-grid {
        grid-template-columns: 1fr;
    }

    .section-sort-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .section-sort-btns {
        width: 100%;
        flex-wrap: wrap;
    }

    .section-sort-btns .button {
        flex: 1 1 auto;
    }
}
