:root {
    color-scheme: dark;
    --ink: #f5f3ef;
    --muted: #b9b3aa;
    --panel: rgba(18, 20, 22, 0.82);
    --line: rgba(255, 255, 255, 0.14);
    --gold: #d7b56d;
    --teal: #3db5a7;
    --charcoal: #101214;
    --soft: rgba(255, 255, 255, 0.07);
}

body:has(.public-conversation-page) .mobile-public-nav {
    display: none !important;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(120deg, rgba(16, 18, 20, 0.9), rgba(16, 18, 20, 0.68)),
        radial-gradient(circle at 78% 22%, rgba(61, 181, 167, 0.18), transparent 28%),
        linear-gradient(145deg, #17191b, #0b0c0d);
    color: var(--ink);
}

button,
input,
select {
    font: inherit;
}

a,
button {
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

a:hover,
button:hover {
    transform: translateY(-1px);
}

.shell {
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
}

.workspace {
    width: min(1440px, 100%);
    min-height: min(820px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: 0.95fr 1.2fr 0.85fr;
    border: 1px solid var(--line);
    background: rgba(10, 11, 12, 0.54);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.public-workspace {
    width: min(1500px, 100%);
    grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
    align-items: stretch;
}

.public-conversation-page {
    width: min(840px, 100%);
    margin: 0 auto;
}

.public-flow-panel {
    min-height: auto;
    display: grid;
    gap: 16px;
}

.brand-panel.public-flow-panel {
    display: grid;
    justify-content: stretch;
    border: 1px solid var(--line);
}

.public-flow-panel .public-signal-grid {
    display: none;
}

.brand-panel,
.chat-panel,
.side-panel {
    min-width: 0;
}

.brand-panel {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 181, 109, 0.45);
    color: var(--gold);
    font-weight: 800;
}

.brand-mark img,
.mini-logo img,
.logo-preview img,
.card-media span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-mark img {
    border-radius: 50%;
}

.public-logo {
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 12px;
    border-color: rgba(215, 181, 109, 0.72);
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), rgba(5, 6, 7, 0.92) 62%),
        rgba(5, 6, 7, 0.92);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.54);
}

.public-logo img {
    border-radius: 0;
    object-fit: contain;
}

.public-brand-panel {
    position: relative;
    overflow: hidden;
    gap: 22px;
    justify-content: flex-start;
}

.public-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.86) 0%, rgba(5, 6, 7, 0.58) 52%, rgba(5, 6, 7, 0.76) 100%),
        linear-gradient(180deg, rgba(10, 11, 12, 0.22), rgba(10, 11, 12, 0.7)),
        var(--shop-cover, none);
    background-size: cover;
    background-position: center;
    opacity: 0.94;
}

.public-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 22%, rgba(215, 181, 109, 0.16), transparent 32%),
        linear-gradient(180deg, transparent 58%, rgba(5, 6, 7, 0.72));
    pointer-events: none;
}

.public-brand-panel > * {
    position: relative;
    z-index: 2;
}

.public-brand-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-brand-top span,
.public-location-card span {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-brand-top strong {
    display: block;
    margin-top: 5px;
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    line-height: 1;
}

.shop-live-clock {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
    text-transform: capitalize;
}

.public-brand-top > div:last-child {
    min-width: 0;
}

.public-hero-copy {
    margin-top: 28px;
}

.public-hero-copy .eyebrow {
    margin-top: 0;
}

.public-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 4.15vw, 4.1rem);
    line-height: 0.95;
}

.public-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.primary-public-action,
.ghost-public-action {
    min-height: 48px;
    border: 1px solid transparent;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 850;
}

.primary-public-action {
    color: var(--charcoal);
    background: var(--teal);
}

.ghost-public-action {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.public-location-card {
    display: grid;
    gap: 7px;
    padding: 15px;
    border: 1px solid rgba(215, 181, 109, 0.34);
    background: rgba(5, 6, 7, 0.48);
}

.public-location-card strong {
    line-height: 1.35;
}

.public-location-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.mini-location-map {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(215, 181, 109, 0.28);
    background: #17191a;
}

.mini-location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: saturate(0.78) contrast(1.06);
}

.location-link,
.style-inline-action,
.public-services-drawer summary,
.public-media-drawer summary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(215, 181, 109, 0.42);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.style-inline-action {
    width: 100%;
    margin-top: 12px;
}

.public-media-drawer {
    margin-top: 12px;
}

.public-services-drawer {
    margin-top: 12px;
    border: 1px solid rgba(215, 181, 109, 0.28);
    background: rgba(0, 0, 0, 0.18);
    padding: 14px;
}

.public-services-drawer summary {
    width: 100%;
    list-style: none;
}

.public-services-drawer summary::-webkit-details-marker {
    display: none;
}

.public-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.public-services-list article {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    padding: 12px;
}

.public-services-list strong,
.public-services-list span {
    display: block;
}

.public-services-list span {
    margin-top: 6px;
    color: var(--muted);
}

.public-media-drawer summary {
    width: 100%;
    list-style: none;
}

.public-media-drawer summary::-webkit-details-marker {
    display: none;
}

.public-media-drawer[open] {
    display: grid;
    gap: 14px;
}

.brand-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 260px;
    border: 1px solid var(--line);
    background: #050607;
    object-fit: cover;
    scroll-snap-align: start;
}

.public-video-playlist,
.public-photo-carousel {
    display: grid;
    gap: 10px;
}

.media-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.media-section-title span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.media-section-title strong {
    color: var(--muted);
    font-size: 0.86rem;
}

.public-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
}

.eyebrow {
    margin: 60px 0 10px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0;
}

h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(3.1rem, 7vw, 6.8rem);
    line-height: 0.88;
    letter-spacing: 0;
}

.lead {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 40px;
}

.signal-grid div,
.module {
    background: var(--panel);
    border: 1px solid var(--line);
}

.signal-grid div {
    min-height: 84px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.signal-grid span,
.module-title span,
dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.chat-panel {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    background: rgba(15, 17, 19, 0.72);
}

.public-workspace > .chat-panel {
    min-height: min(820px, calc(100vh - 56px));
}

.public-workspace > .chat-panel .chat-log {
    min-height: 330px;
}

.chat-header {
    min-height: 82px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.chat-header span,
.chat-header strong {
    display: block;
}

.chat-header span {
    color: var(--muted);
    font-size: 0.86rem;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
}

.chat-log {
    padding: 24px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    width: fit-content;
    max-width: min(78%, 520px);
    padding: 14px 16px;
    line-height: 1.48;
}

.message p {
    margin: 0;
}

.message.assistant {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line);
}

.message.customer {
    align-self: flex-end;
    background: rgba(61, 181, 167, 0.16);
    border: 1px solid rgba(61, 181, 167, 0.34);
}

.action-message {
    padding: 0;
    background: transparent;
    border: 0;
}

.action-message a,
.action-message button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    color: var(--charcoal);
    background: var(--teal);
    font-weight: 850;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.booking-flow-panel .action-message {
    width: 100%;
}

.booking-flow-panel .action-message a,
.booking-flow-panel .action-message button {
    width: 100%;
}

.quick-actions {
    padding: 0 22px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-actions button,
.secondary-button,
.composer button {
    border: 0;
    cursor: pointer;
    color: var(--charcoal);
    background: var(--gold);
    font-weight: 700;
}

.quick-actions button {
    min-height: 36px;
    padding: 0 13px;
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
}

.composer {
    padding: 18px 22px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.composer input {
    min-width: 0;
    height: 48px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    padding: 0 15px;
    outline: none;
}

.composer button {
    min-width: 94px;
}

.side-panel {
    padding: 18px;
    display: grid;
    gap: 14px;
    align-content: start;
    border-left: 1px solid var(--line);
}

.public-workspace .side-panel {
    overflow-y: auto;
    max-height: min(820px, calc(100vh - 56px));
}

.booking-flow-panel {
    min-height: auto;
    border: 1px solid rgba(61, 181, 167, 0.32);
    background:
        linear-gradient(145deg, rgba(61, 181, 167, 0.08), rgba(15, 17, 19, 0.9)),
        rgba(15, 17, 19, 0.82);
}

.public-flow-panel .booking-flow-panel {
    margin-top: 2px;
}

.booking-flow-panel .chat-header {
    min-height: auto;
    padding: 16px 17px 12px;
}

.booking-flow-panel .chat-log {
    min-height: 260px;
    max-height: min(54vh, 520px);
    padding: 12px 17px;
}

.booking-flow-panel .message {
    max-width: 100%;
}

.booking-flow-panel .composer {
    padding: 12px 17px;
}

.chat-booking-module {
    margin: 0 17px 17px;
}

.phone-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.phone-entry span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(215, 181, 109, 0.42);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 850;
}

.slot-choice-message {
    width: 100%;
}

.chat-slot-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.booking-flow-panel .quick-actions {
    padding: 0 17px 16px;
}

.starchat-compact {
    padding: 0;
}

.starchat-compact > summary {
    min-height: 58px;
    margin: 0;
    padding: 17px;
    cursor: pointer;
    list-style: none;
}

.starchat-compact > summary::-webkit-details-marker {
    display: none;
}

.starchat-compact > summary::after {
    content: "+";
    color: var(--gold);
    font-weight: 900;
}

.starchat-compact[open] > summary::after {
    content: "-";
}

.starchat-compact .panel-copy,
.starchat-compact .stack-form,
.starchat-compact .access-error {
    margin-left: 17px;
    margin-right: 17px;
}

.starchat-compact .stack-form {
    margin-bottom: 17px;
}

.module {
    padding: 17px;
}

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

.module-title strong {
    color: var(--gold);
}

.module-hint {
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.slot-list {
    display: grid;
    gap: 9px;
}

.slot {
    width: 100%;
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.slot span {
    color: var(--muted);
    font-size: 0.82rem;
}

.slot-empty {
    margin: 0;
    padding: 12px;
    color: var(--muted);
    line-height: 1.45;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.slot.selected {
    border-color: rgba(61, 181, 167, 0.8);
    background: rgba(61, 181, 167, 0.14);
}

.visual-advice p {
    margin: 13px 0 14px;
    color: var(--muted);
    line-height: 1.5;
}

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

.service-list .service-card {
    display: block;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.service-list .service-card.selected {
    padding: 12px;
    border: 1px solid rgba(61, 181, 167, 0.58);
    background: rgba(61, 181, 167, 0.1);
}

.service-list .service-card:last-child {
    border-bottom: 0;
}

.service-list .service-card > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.service-list strong {
    font-size: 0.95rem;
}

.service-list small {
    color: var(--muted);
    font-size: 0.84rem;
}

.service-list button {
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    color: var(--charcoal);
    background: var(--teal);
    cursor: pointer;
    font-weight: 800;
}

.priority-module {
    border-color: rgba(215, 181, 109, 0.28);
    background: rgba(18, 20, 22, 0.9);
}

.booking-module {
    border-color: rgba(61, 181, 167, 0.36);
    background:
        linear-gradient(145deg, rgba(61, 181, 167, 0.08), rgba(18, 20, 22, 0.92)),
        var(--panel);
}

.face-preview {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(215, 181, 109, 0.18), rgba(61, 181, 167, 0.12));
    border: 1px solid var(--line);
}

.face-shape {
    position: absolute;
    width: 72px;
    height: 92px;
    left: calc(50% - 36px);
    bottom: 18px;
    border-radius: 45% 45% 50% 50%;
    background: #b77b5b;
}

.hair-shape {
    position: absolute;
    width: 104px;
    height: 64px;
    left: calc(50% - 52px);
    top: 28px;
    border-radius: 42px 42px 18px 18px;
    background: #15120f;
    z-index: 1;
}

.style-showcase {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #050607;
}

.style-showcase figure {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 420ms ease;
}

.style-showcase figure.is-active {
    opacity: 1;
}

.style-showcase img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.style-showcase figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 12px 12px;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 800;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 7, 0.88));
}

.style-hero-cta {
    display: grid;
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(61, 181, 167, 0.45);
    background: rgba(5, 7, 8, 0.72);
    backdrop-filter: blur(6px);
}

.style-hero-cta span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.style-hero-cta strong {
    color: var(--ink);
    font-size: 1.04rem;
}

.style-hero-cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.secondary-button {
    width: 100%;
    min-height: 42px;
    background: var(--teal);
}

.mobile-public-nav {
    display: none;
}

dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.booking-selection {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

dd {
    margin: 0;
    text-align: right;
}

.platform-shell,
.form-shell,
.panel-shell {
    min-height: 100vh;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar div {
    align-items: center;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar a,
.brand-link,
.hero-actions a,
.form-topline a {
    color: var(--ink);
    text-decoration: none;
}

.brand-link {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-link-with-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mini-logo {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(215, 181, 109, 0.45);
    color: var(--gold);
    font-size: 0.78rem;
}

.mini-logo img {
    object-fit: contain;
    padding: 2px;
}

.platform-brand-emblem {
    width: clamp(132px, 18vw, 188px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(215, 181, 109, 0.35);
    background: rgba(0, 0, 0, 0.22);
}

.platform-brand-emblem-main {
    width: clamp(168px, 22vw, 236px);
}

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

.brand-admin-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

.brand-admin-grid .signup-form {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.brand-preview-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.brand-preview-card img,
.brand-preview-card > span {
    width: 112px;
    height: 112px;
    object-fit: contain;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 181, 109, 0.35);
    color: var(--gold);
    font-weight: 900;
    font-size: 1.6rem;
}

.admin-brand-preview img,
.admin-brand-preview > span {
    max-width: 112px;
    max-height: 112px;
    min-width: 112px;
    min-height: 112px;
}

.brand-preview-card p,
.brand-admin-panel small {
    color: var(--muted);
    line-height: 1.55;
}

.field-error {
    color: #ff9a9a;
    font-size: 0.86rem;
}

.brand-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
    gap: 14px;
    margin-top: 18px;
    align-items: start;
}

.brand-library-grid article {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 12px;
    display: grid;
    gap: 10px;
    max-width: 220px;
    overflow: hidden;
}

.brand-library-grid article.current {
    border-color: rgba(215, 181, 109, 0.75);
}

.brand-library-thumb {
    width: 100%;
    max-width: 196px;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-library-grid img {
    width: 100%;
    height: 100%;
    max-width: 196px;
    max-height: 196px;
    object-fit: contain;
    display: block;
}

.brand-library-grid strong {
    color: var(--gold);
}

.brand-library-grid span,
.brand-library-grid small {
    display: block;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.brand-library-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.brand-library-actions form,
.brand-library-actions button {
    width: 100%;
}

.brand-library-actions button {
    min-height: 42px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.brand-library-actions .danger-button {
    border-color: rgba(255, 90, 90, 0.65);
    color: #ffd1d1;
}

.platform-hero,
.panel-header {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 34px;
}

.operational-header {
    min-height: 220px;
    margin-top: 20px;
}

.operational-header h1 {
    margin-bottom: 12px;
}

.operations-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.operations-toolbar a {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--panel);
}

.operations-toolbar span {
    color: var(--muted);
    font-size: 0.82rem;
}

.platform-hero h1,
.panel-header h1,
.form-panel h1 {
    max-width: 12ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.primary-link,
.secondary-link,
.signup-form button,
.link-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    font-weight: 800;
}

.primary-link,
.signup-form button {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
}

.secondary-link {
    background: var(--soft);
}

.link-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.network-panel,
.public-link-box,
.metric-grid article,
.plan-card,
.form-panel,
.notice,
.flow-band article,
.barbershop-card {
    background: var(--panel);
    border: 1px solid var(--line);
}

.network-panel {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.network-panel div,
.metric-grid article,
.plan-card,
.flow-band article {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.network-panel span,
.metric-grid span,
.plan-card span,
.public-link-box span,
.section-title span,
.flow-band span {
    color: var(--muted);
    font-size: 0.86rem;
}

.plans-band,
.panel-columns,
.flow-band,
.action-grid,
.barbershop-discovery {
    margin-top: 28px;
}

.barbershop-discovery {
    padding: 22px;
    border: 1px solid rgba(61, 181, 167, 0.35);
    background: linear-gradient(145deg, rgba(61, 181, 167, 0.12), rgba(18, 20, 22, 0.88));
}

.discovery-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.discovery-head span {
    display: block;
    color: var(--gold);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.discovery-head strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.discovery-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.plan-grid,
.metric-grid,
.panel-columns,
.flow-band,
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.metric-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

.form-shell {
    display: grid;
    place-items: center;
}

.form-panel {
    width: min(720px, 100%);
    padding: 28px;
}

.wide-panel {
    width: 100%;
}

.auth-panel {
    width: min(560px, 100%);
}

.form-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

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

.signup-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
}

.signup-form input,
.signup-form select,
.stack-form input,
.stack-form select,
.hours-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    padding: 0 12px;
}

.signup-form option,
.stack-form option {
    color: #111;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup-form button {
    grid-column: 1 / -1;
    border: 0;
    cursor: pointer;
}

.full-span {
    grid-column: 1 / -1;
}

.location-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.location-note span {
    color: var(--muted);
}

.location-note strong {
    color: var(--gold);
}

.check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
}

.check-row input {
    width: 17px;
    min-height: 17px;
}

.stack-form,
.hours-form {
    display: grid;
    gap: 12px;
}

.stack-form label,
.hours-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
}

.stack-form button,
.hours-form button,
.row-actions button {
    min-height: 42px;
    border: 0;
    background: var(--gold);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 800;
}

.editable-list {
    display: grid;
    gap: 16px;
}

.list-form {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.row-actions .danger-button {
    background: rgba(214, 95, 87, 0.18);
    color: var(--ink);
    border: 1px solid rgba(214, 95, 87, 0.5);
}

.hours-row {
    display: grid;
    grid-template-columns: 1fr 160px 160px 120px;
    align-items: end;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.hours-row > strong {
    padding-bottom: 11px;
}

.hours-bulk-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 150px 130px 150px;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(215, 181, 109, 0.35);
    background: rgba(215, 181, 109, 0.07);
}

.hours-bulk-panel strong {
    display: block;
    color: var(--ink);
}

.hours-bulk-panel span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.hours-bulk-panel button {
    min-height: 46px;
}

.compact-header {
    min-height: 280px;
}

.action-grid a {
    min-height: 122px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px;
    color: var(--ink);
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--line);
}

.action-grid span {
    color: var(--muted);
    font-size: 0.86rem;
}

.notice {
    margin: 14px 0;
    padding: 14px;
}

.notice.error {
    border-color: rgba(214, 95, 87, 0.65);
}

.operation-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    border-color: rgba(215, 181, 109, 0.45);
    color: var(--muted);
}

.operation-notice strong {
    flex: 0 0 auto;
    color: var(--gold);
}

.operation-notice.live {
    border-color: rgba(73, 180, 162, 0.55);
}

.operation-notice.live strong {
    color: #7dd2c5;
}

.operation-pill {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(215, 181, 109, 0.45);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 600;
    vertical-align: middle;
}

.operation-pill.live {
    border-color: rgba(73, 180, 162, 0.55);
    color: #7dd2c5;
}

.launch-readiness {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.launch-checklist {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 12px;
}

.launch-checklist article {
    min-height: 88px;
    padding: 12px;
    border: 1px solid var(--line);
    display: grid;
    gap: 7px;
    align-content: start;
}

.launch-checklist article.ready {
    border-color: rgba(73, 180, 162, 0.38);
}

.launch-checklist article.pending {
    border-color: rgba(215, 181, 109, 0.5);
}

.launch-checklist strong {
    font-size: 0.84rem;
    color: var(--text);
}

.launch-checklist article.ready strong {
    color: #7dd2c5;
}

.launch-checklist article.pending strong {
    color: var(--gold);
}

.launch-checklist span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.access-error {
    margin: 12px 0 0;
    color: #ffb2ab;
    font-size: 0.88rem;
    line-height: 1.45;
}

.public-link-box {
    padding: 20px;
    overflow-wrap: anywhere;
}

.public-link-box strong {
    display: block;
    margin-top: 8px;
    color: var(--gold);
}

.billing-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 18px 0;
    border: 1px solid rgba(215, 181, 109, 0.36);
    background: rgba(215, 181, 109, 0.18);
}

.billing-strip > div {
    min-height: 126px;
    padding: 18px;
    background: rgba(12, 14, 16, 0.94);
}

.billing-strip span {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-strip strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    line-height: 1.05;
}

.billing-strip p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.billing-strip.blocked {
    border-color: rgba(214, 95, 87, 0.62);
    background: rgba(214, 95, 87, 0.18);
}

.admin-shell .form-panel {
    margin-top: 18px;
}

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

.admin-card,
.admin-table article {
    border: 1px solid var(--line);
    background: var(--soft);
}

.admin-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.admin-account-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.admin-account-head span,
.admin-account-head p {
    margin: 0;
    color: var(--muted);
}

.admin-account-head strong {
    display: block;
    margin-top: 4px;
    font-size: 1.15rem;
}

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

.admin-account-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.admin-account-form button {
    align-self: end;
}

.inline-admin-action {
    padding: 0 16px 16px;
}

.inline-admin-action button,
.appointments-list form button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(215, 181, 109, 0.5);
    background: rgba(215, 181, 109, 0.13);
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.brand-media-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.brand-media-preview p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.logo-preview {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(215, 181, 109, 0.52);
    color: var(--gold);
    font-weight: 900;
}

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

.media-manager-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(215, 181, 109, 0.28);
    background: rgba(255, 255, 255, 0.035);
}

.media-manager-head strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}

.media-manager-head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.media-library figure,
.gallery-module figure {
    margin: 0;
}

.media-library-admin {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.media-admin-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    padding: 10px;
}

.media-library img,
.media-library video {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    background: #050607;
    border: 1px solid var(--line);
}

.media-quota-panel,
.media-ai-note {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(215, 181, 109, 0.28);
    background: rgba(215, 181, 109, 0.06);
}

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

.media-quota-panel div {
    display: grid;
    gap: 4px;
}

.media-quota-panel span,
.media-ai-note strong {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.media-quota-panel strong {
    font-size: 1.35rem;
}

.media-quota-panel p,
.media-ai-note p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.media-library figcaption {
    min-height: 40px;
    display: grid;
    gap: 8px;
    padding: 10px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.media-library figcaption span {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.media-library figcaption strong {
    color: var(--muted);
    font-size: 0.86rem;
}

.media-library figcaption input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    padding: 0 10px;
}

.media-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.media-library button {
    min-height: 30px;
    border: 1px solid rgba(214, 95, 87, 0.5);
    background: rgba(214, 95, 87, 0.16);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    padding: 0 10px;
}

.media-admin-actions button:first-child {
    border-color: rgba(215, 181, 109, 0.48);
    background: rgba(215, 181, 109, 0.14);
}

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

.public-gallery img,
.public-gallery video {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    background: #050607;
    border: 1px solid var(--line);
}

.public-media-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78%, 1fr);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.public-photo-track img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #050607;
    border: 1px solid var(--line);
    scroll-snap-align: start;
}

.public-video-track {
    grid-auto-columns: minmax(86%, 1fr);
}

.public-media-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.public-media-controls button {
    min-height: 40px;
    border: 1px solid rgba(215, 181, 109, 0.34);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 850;
    cursor: pointer;
}

.cover-module img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #050607;
}

.panel-copy {
    color: var(--muted);
    line-height: 1.6;
}

.payment-connect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    padding: 12px 18px;
    background: #00a650;
    border: 1px solid #00a650;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.payment-connect-button:hover {
    background: #078943;
    border-color: #078943;
}

.payment-result-shell {
    min-height: 100vh;
    padding: 28px;
}

.payment-result-panel h1 {
    margin: 14px 0;
}

.payment-result-summary {
    display: grid;
    gap: 0;
    margin: 26px 0;
    border: 1px solid var(--line);
}

.payment-result-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.payment-result-summary div:last-child {
    border-bottom: 0;
}

.payment-result-summary dt {
    color: var(--muted);
}

.payment-result-summary dd {
    margin: 0;
    font-weight: 700;
}

.payment-return-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

.chat-payment-link {
    display: inline-flex;
    margin: 10px 0 4px;
    padding: 10px 14px;
    background: #00a650;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.payment-settings-panel {
    margin-top: 22px;
}

.agenda-panel {
    padding: 20px;
    border-color: rgba(215, 181, 109, .32);
}

.management-details {
    margin-top: 18px;
}

.management-details > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--line);
    background: var(--panel);
}

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

.management-details > summary strong::before {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-right: 12px;
    border: 1px solid var(--line);
    color: var(--gold);
}

.management-details[open] > summary strong::before {
    content: "-";
}

.management-details > summary span {
    color: var(--muted);
    font-size: .9rem;
}

.management-details .metric-grid {
    margin-top: 18px;
}

.business-kpis {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    border: 1px solid var(--line);
    background: var(--line);
}

.closeout-panel {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(215, 181, 109, .35);
    background: var(--panel);
}

.closeout-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.closeout-list article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.closeout-list article div:first-child {
    display: grid;
    gap: 5px;
}

.closeout-list span {
    color: var(--muted);
    font-size: .86rem;
}

.business-kpis > * {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 100px;
    padding: 14px;
    background: var(--panel);
}

.business-kpis span,
.business-kpis small {
    color: var(--muted);
    font-size: .8rem;
}

.business-kpis strong {
    font-size: 1.15rem;
}

.business-kpis .kpi-heading strong {
    color: var(--gold);
}

.finance-summary-panel {
    margin-top: 18px;
}

.wallet-ledger {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.wallet-ledger article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.wallet-ledger article div {
    display: grid;
    gap: 5px;
}

.wallet-ledger span {
    color: var(--muted);
    font-size: .82rem;
}

.wallet-ledger .credit {
    color: var(--teal);
}

.wallet-ledger .debit {
    color: var(--gold);
}

.accounting-panel {
    margin-top: 18px;
}

.accounting-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.accounting-grid article {
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.accounting-grid span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.accounting-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 1.25rem;
}

.accounting-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.4;
    font-size: .86rem;
}

.payment-currency-ledger {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.payment-currency-ledger article {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.payment-currency-ledger article span,
.payment-currency-ledger .module-title small {
    color: var(--muted);
}

.review-panel {
    margin-top: 18px;
}

.report-table article {
    padding: 16px;
}

.report-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.report-head span,
.report-head p {
    display: block;
    margin: 5px 0 0;
    color: var(--muted);
}

.report-head small {
    align-self: start;
    padding: 7px 9px;
    border: 1px solid var(--line);
    color: var(--gold);
}

.report-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.report-actions form {
    display: flex;
    gap: 8px;
}

.report-actions input {
    flex: 1;
    min-height: 40px;
    padding: 0 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--soft);
}

.report-actions button {
    min-height: 40px;
    padding: 0 12px;
}

.report-actions .danger-button {
    color: #ffb2ab;
    border-color: rgba(214, 95, 87, .55);
    background: transparent;
}

.report-resolution {
    margin-top: 12px !important;
}

.customer-contact-panel {
    display: grid;
    gap: 12px;
    margin-top: 15px;
    padding: 14px;
    border: 1px solid rgba(61, 181, 167, .32);
    background: rgba(61, 181, 167, .05);
}

.customer-contact-panel p {
    margin: 5px 0 0;
    color: var(--muted);
}

.customer-contact-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
}

.customer-contact-panel textarea {
    min-height: 74px;
    resize: vertical;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--soft);
    font: inherit;
}

.whatsapp-contact-link {
    width: fit-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(61, 181, 167, .55);
    color: var(--ink);
    text-decoration: none;
}

.payment-setup-grid {
    display: grid;
    grid-template-columns: minmax(260px, .92fr) minmax(280px, 1.08fr);
    gap: 24px;
    margin-top: 18px;
}

.payment-guidance {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.payment-guidance p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.5;
}

.wallet-balance {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px solid rgba(215, 181, 109, .34);
}

.wallet-balance span,
.payments-explainer span {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wallet-balance strong {
    font-size: 1.7rem;
}

.wallet-balance small {
    color: var(--muted);
}

.credits-hub {
    display: grid;
    grid-template-columns: minmax(230px, .78fr) minmax(420px, 1.6fr);
    gap: 14px;
    margin-bottom: 18px;
}

.credits-balance,
.credit-packages {
    padding: 18px;
    border: 1px solid rgba(215, 181, 109, .42);
    background: var(--soft);
}

.credits-balance span {
    display: block;
    color: var(--gold);
    font-size: .78rem;
    text-transform: uppercase;
}

.credits-balance strong {
    display: block;
    margin: 12px 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.credits-balance p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.credit-package-grid form {
    display: grid;
    gap: 9px;
    min-height: 158px;
    padding: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}

.credit-package-grid span,
.credit-package-grid small {
    color: var(--muted);
}

.credit-package-grid strong {
    font-size: 1.2rem;
    color: var(--ink);
}

.credit-package-grid button {
    align-self: end;
    min-height: 40px;
    font-size: .82rem;
}

.credit-request-history {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.credit-request-history span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .78rem;
}

.payments-explainer {
    display: grid;
    grid-template-columns: .82fr 1.35fr auto;
    gap: 26px;
    align-items: center;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(215, 181, 109, .34);
    background: var(--panel);
}

.payments-explainer strong {
    display: block;
    margin-top: 7px;
    font-size: 1.45rem;
}

.payments-explainer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.payments-explainer a {
    padding: 14px 18px;
    background: var(--gold);
    color: #101214;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.payment-methods {
    display: grid;
    gap: 9px;
    margin: 4px 0 8px;
    padding: 0;
    border: 0;
}

.payment-methods legend {
    margin-bottom: 8px;
    color: var(--muted);
}

.payment-method {
    display: flex !important;
    flex-direction: row !important;
    align-items: start;
    gap: 12px !important;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.payment-method input {
    width: auto !important;
    min-height: auto !important;
    margin-top: 5px;
}

.payment-method span {
    display: grid;
    gap: 4px;
}

.payment-method small,
.payment-unavailable {
    color: var(--muted);
    line-height: 1.4;
}

.wallet-credit-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.wallet-credit-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: .84rem;
}

.wallet-credit-form input {
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
}

.flow-band p,
.plan-card p,
.barbershop-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.plan-features {
    display: grid;
    gap: 7px;
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.45;
}

.barbershop-card .location-line {
    color: var(--ink);
}

.barbershop-card .location-detail {
    font-size: 0.88rem;
}

.card-media {
    position: relative;
    height: 126px;
    margin: -22px -22px 2px;
    overflow: hidden;
    background: var(--soft);
}

.card-media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.card-media span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(10, 11, 12, 0.86);
}

.discovery-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.discovery-toolbar button,
.barbershop-card a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--teal);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 800;
    padding: 0 14px;
    text-decoration: none;
}

#findNearbyButton,
#permissionButton {
    box-shadow: 0 12px 30px rgba(61, 181, 167, 0.2);
}

#findNearbyButton {
    font-size: 1rem;
}

.discovery-toolbar span,
.barbershop-card span,
.barbershop-card small {
    color: var(--muted);
    font-size: 0.86rem;
}

.location-dialog {
    width: min(520px, calc(100vw - 28px));
    padding: 0;
    color: var(--ink);
    border: 1px solid rgba(215, 181, 109, 0.55);
    background: rgba(15, 17, 19, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.style-dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: min(88vh, 900px);
    padding: 0;
    color: var(--ink);
    border: 1px solid rgba(61, 181, 167, 0.52);
    background: rgba(15, 17, 19, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    overflow: auto;
}

.style-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.style-dialog:not([open]):not(.is-open) {
    display: none;
}

.style-dialog.is-open {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 30;
    display: block;
    transform: translate(-50%, -50%);
}

.style-dialog form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
}

.style-dialog-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.style-dialog-topbar .secondary-link,
.style-dialog-topbar .muted-button {
    min-height: 40px;
    padding: 0 14px;
}

.style-dialog-topbar .muted-button {
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.style-dialog label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
}

.style-dialog input,
.style-dialog select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    padding: 0 12px;
}

.style-dialog option {
    color: #111;
}

.style-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.style-shot-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.style-shot-tabs button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
}

.style-shot-tabs button span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.style-shot-tabs button.selected {
    border-color: rgba(61, 181, 167, 0.9);
    background: rgba(61, 181, 167, 0.2);
}

.style-shot-tabs button.is-ready span {
    border-color: rgba(61, 181, 167, 0.9);
    background: rgba(61, 181, 167, 0.24);
    color: var(--teal);
}

.style-shot-tabs button.needs-retake {
    border-color: rgba(215, 181, 109, 0.95);
    background: rgba(215, 181, 109, 0.16);
}

.style-camera {
    min-height: 360px;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(61, 181, 167, 0.08), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.05);
}

.style-camera video,
.style-camera img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.style-camera-empty {
    display: grid;
    gap: 8px;
    text-align: center;
    color: var(--muted);
}

.style-camera-empty strong {
    color: var(--ink);
    font-size: 1.25rem;
}

.style-capture-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(15, 17, 19, 0), rgba(15, 17, 19, 0.98) 28%);
}

.style-capture-actions button,
.style-choice-group button {
    min-height: 52px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    padding: 0 13px;
}

.style-capture-actions button:first-child {
    background: var(--teal);
    color: var(--charcoal);
    border: 0;
    font-size: 1rem;
}

.style-capture-actions button:disabled,
.style-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

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

.style-choice-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.style-choice-group span {
    width: 100%;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
}

.style-choice-group button.selected {
    border-color: rgba(61, 181, 167, 0.8);
    background: rgba(61, 181, 167, 0.18);
}

.style-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.style-actions button {
    min-height: 46px;
    border: 0;
    background: var(--teal);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 800;
    padding: 0 16px;
}

.style-actions .muted-button {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
}

.style-result {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(61, 181, 167, 0.45);
    background: rgba(61, 181, 167, 0.1);
    color: var(--muted);
    line-height: 1.45;
}

.style-result.needs-retake {
    border-color: rgba(215, 181, 109, 0.65);
    background: rgba(215, 181, 109, 0.1);
}

.style-result strong {
    color: var(--ink);
    font-size: 1.02rem;
}

.style-result span {
    color: var(--gold);
    font-weight: 800;
}

.style-result ul {
    margin: 0;
    padding-left: 18px;
}

.style-result p {
    margin: 0;
}

.style-result small {
    color: var(--muted);
    font-weight: 800;
}

.style-preview-button {
    min-height: 46px;
    border: 0;
    background: var(--gold);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 900;
    padding: 0 16px;
}

.style-preview-button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.style-preview-result {
    width: 100%;
    display: block;
    border: 1px solid rgba(215, 181, 109, 0.42);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.26);
}

.location-dialog::backdrop {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
}

.location-dialog:not([open]):not(.is-open) {
    display: none;
}

.location-dialog.is-open {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 30;
    display: block;
    transform: translate(-50%, -50%);
}

.location-dialog form {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.location-dialog span {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.location-dialog strong {
    display: block;
    margin-top: 7px;
    font-size: 1.55rem;
    line-height: 1.05;
}

.location-dialog p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.dialog-actions button {
    min-height: 46px;
    border: 0;
    background: var(--gold);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 800;
    padding: 0 16px;
}

.dialog-actions .muted-button {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
}

.barbershop-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}

.barbershop-card {
    min-height: 220px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
    scroll-snap-align: start;
    transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.barbershop-card.is-featured {
    border-color: rgba(215, 181, 109, 0.72);
    background: linear-gradient(145deg, rgba(215, 181, 109, 0.14), rgba(18, 20, 22, 0.88));
}

.barbershop-card strong {
    font-size: 1.45rem;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.carousel-controls button {
    min-height: 38px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    padding: 0 14px;
}

.geo-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.geo-tools button {
    min-height: 40px;
    border: 0;
    background: var(--teal);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 800;
    padding: 0 14px;
}

.geo-tools button + button {
    background: var(--gold);
}

.geo-tools span {
    color: var(--muted);
}

.map-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.chat-shell {
    width: min(1280px, 100%);
}

.chat-return-bar {
    margin: 6px 0 14px;
    display: flex;
    justify-content: flex-start;
}

.chat-room-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
}

.appointment-side h1 {
    max-width: 10ch;
    margin-bottom: 24px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.chat-room-card {
    min-height: min(720px, calc(100vh - 140px));
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.star-chat-log {
    min-height: 420px;
    max-height: min(560px, calc(100vh - 300px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    padding-right: 4px;
}

.chat-bubble {
    width: fit-content;
    max-width: min(78%, 620px);
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    line-height: 1.45;
}

.chat-bubble.own {
    align-self: flex-end;
    background: rgba(61, 181, 167, 0.16);
    border-color: rgba(61, 181, 167, 0.38);
}

.chat-bubble.platform {
    border-color: rgba(215, 181, 109, .55);
    background: rgba(215, 181, 109, .09);
}

.chat-bubble span,
.chat-bubble small {
    display: block;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-bubble small {
    margin-top: 8px;
    color: var(--muted);
    text-transform: none;
}

.chat-bubble p {
    margin: 7px 0 0;
}

.chat-bubble img {
    width: min(360px, 100%);
    max-height: 360px;
    display: block;
    margin-top: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.star-chat-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.star-chat-form input[type="text"],
.star-chat-form input[name="message"],
.star-chat-form > input {
    min-width: 0;
    min-height: 46px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    padding: 0 12px;
}

.chat-file-button,
.star-chat-form button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    background: var(--teal);
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 800;
}

.chat-file-button input {
    display: none;
}

.star-chat-form button:disabled,
.chat-file-button:has(input:disabled) {
    cursor: progress;
    opacity: 0.62;
    transform: none;
}

.chat-upload-status {
    min-height: 20px;
    grid-column: 1 / -1;
    color: var(--gold);
    font-size: 0.84rem;
    font-weight: 800;
}

.chat-inbox-list {
    display: grid;
    gap: 12px;
}

.chat-inbox-list a {
    display: grid;
    gap: 7px;
    padding: 16px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--soft);
}

.chat-inbox-list span,
.chat-inbox-list p {
    margin: 0;
    color: var(--muted);
}

.readable-datetime {
    font-size: 0.94rem;
    line-height: 1.35;
    color: var(--ink);
}

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

.appointments-list article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.appointments-list article.requires-action {
    border-color: rgba(215, 181, 109, .48);
    background: rgba(215, 181, 109, .07);
}

.appointments-list span,
.appointments-list p {
    margin: 0;
    color: var(--muted);
}

.appointments-list .readable-datetime {
    color: var(--ink);
    font-weight: 700;
}

.appointments-list strong {
    display: block;
    margin-top: 4px;
}

.appointments-list p {
    margin-top: 6px;
}

.appointment-meta {
    display: grid;
    gap: 6px;
    align-content: start;
    justify-items: end;
}

.appointment-meta small {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.03);
}

.appointment-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.appointment-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.appointment-quick-actions a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid rgba(215, 181, 109, 0.34);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
}

.appointment-actions button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.appointment-actions .danger-button {
    color: var(--ink);
    border-color: rgba(221, 106, 88, 0.6);
    background: transparent;
}

.visit-checkin {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(215, 181, 109, .4);
    background: rgba(215, 181, 109, .06);
}

.visit-checkin span {
    color: var(--gold);
    font-size: .76rem;
    text-transform: uppercase;
}

.visit-checkin strong {
    font-size: 1.08rem;
}

.visit-checkin p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.visit-checkin form {
    display: grid;
    gap: 8px;
}

.visit-checkin button {
    min-height: 44px;
}

.visit-checkin .text-button {
    color: var(--ink);
    border: 1px solid var(--line);
    background: transparent;
}

.compact-notice {
    margin-bottom: 14px;
}

.error-notice {
    border-color: rgba(214, 95, 87, .55);
}

.report-evidence {
    display: block;
    margin-top: 10px;
    color: #7dd2c5;
    font-size: .84rem;
}

.report-evidence.waiting {
    color: var(--gold);
}

.evidence-lock {
    padding: 10px 12px;
    border: 1px solid var(--line);
}

.appointment-reschedule {
    width: min(300px, 100%);
}

.appointment-reschedule summary {
    padding: 8px 10px;
    cursor: pointer;
    color: var(--ink);
    font-size: .82rem;
    border: 1px solid var(--line);
    background: transparent;
}

.appointment-reschedule form {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.appointment-reschedule input {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--soft);
}

.appointment-reschedule button,
.text-danger-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: .8rem;
}

.text-danger-button {
    color: #ffb2ab;
    border: 1px solid rgba(214, 95, 87, .55);
    background: transparent;
}

#barbershopMap {
    min-height: 340px;
    width: 100%;
    background: var(--soft);
    border: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.leaflet-container {
    min-height: 320px;
    width: 100%;
}

@media (max-width: 1100px) {
    .workspace,
    .public-workspace {
        grid-template-columns: 1fr;
    }

    .public-workspace .brand-panel {
        order: 2;
    }

    .public-workspace .side-panel {
        order: 1;
    }

    .public-workspace .chat-panel {
        order: 3;
    }

    .platform-hero,
    .panel-header,
    .discovery-head,
    .plan-grid,
    .admin-plan-grid,
    .metric-grid,
    .billing-strip,
    .panel-columns,
    .flow-band,
    .action-grid,
    .operations-toolbar,
    .chat-room-layout,
    .hours-row,
    .payment-setup-grid,
    .payments-explainer,
    .credits-hub {
        grid-template-columns: 1fr;
    }

    .business-kpis,
    .accounting-grid,
    .report-actions,
    .credit-package-grid,
    .launch-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-panel,
    .side-panel {
        border: 0;
    }

    .brand-panel {
        min-height: 520px;
    }

    .public-brand-panel {
        min-height: auto;
    }

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

    .public-workspace > .chat-panel,
    .public-workspace .side-panel {
        min-height: auto;
        max-height: none;
    }

    .public-workspace > .chat-panel .chat-log {
        min-height: 300px;
    }

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

@media (max-width: 640px) {
    .shell {
        padding: 0 0 76px;
    }

    .panel-shell,
    .form-shell,
    .platform-shell {
        width: 100%;
        padding: 12px;
    }

    .topbar {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 8px 0 12px;
    }

    .topbar div {
        width: 100%;
        gap: 10px;
    }

    .topbar a:not(.brand-link) {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 10px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.05);
    }

    .panel-header,
    .platform-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 14px 0;
    }

    .compact-header {
        min-height: auto;
    }

    .panel-header h1,
    .form-panel h1 {
        max-width: none;
        font-size: clamp(2.3rem, 13vw, 4rem);
        line-height: 0.95;
    }

    .panel-header .lead,
    .form-panel .lead {
        font-size: 1rem;
        line-height: 1.45;
    }

    .operations-toolbar {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(146px, 46vw);
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 8px;
        margin: 8px 0 14px;
    }

    .operations-toolbar a {
        min-height: 82px;
        scroll-snap-align: start;
        padding: 13px;
    }

    .operations-toolbar strong {
        font-size: 1rem;
    }

    .form-panel {
        padding: 14px;
    }

    .workspace {
        min-height: 100vh;
        border: 0;
    }

    .brand-panel {
        min-height: 470px;
        padding: 24px;
    }

    .public-brand-panel {
        min-height: auto;
        padding: 20px;
    }

    .public-brand-top {
        align-items: flex-start;
    }

    .public-logo {
        width: 124px;
        height: 124px;
        padding: 10px;
    }

    .public-brand-top {
        gap: 14px;
    }

    .public-brand-top strong {
        font-size: 1.65rem;
        line-height: 1.08;
    }

    .public-hero-copy {
        margin-top: 12px;
    }

    .public-hero-copy h1 {
        max-width: 11ch;
        font-size: 2.85rem;
        line-height: 0.92;
    }

    .public-hero-actions {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .primary-public-action,
    .ghost-public-action {
        min-height: 46px;
    }

    .lead {
        margin-top: 16px;
    }

    .brand-video {
        max-height: 190px;
    }

    .public-signal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .public-signal-grid div {
        min-height: 72px;
        padding: 10px;
    }

    h1 {
        font-size: 3.5rem;
    }

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

    .admin-account-head,
    .admin-account-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .operation-notice {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .launch-checklist {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 92%;
    }

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

    .booking-flow-panel .chat-log {
        min-height: 104px;
        max-height: none;
    }

    .public-flow-panel .booking-flow-panel .chat-log {
        min-height: 300px;
    }

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

    .composer button {
        min-height: 44px;
    }

    .service-list .service-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .service-list button {
        width: 100%;
    }

    .mobile-public-nav {
        position: fixed;
        z-index: 20;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        padding: 8px;
        background: rgba(8, 9, 10, 0.94);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .mobile-public-nav button {
        min-height: 46px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        color: var(--ink);
        background: rgba(255, 255, 255, 0.08);
        font-weight: 850;
    }

    .mobile-public-nav button:first-child {
        color: var(--charcoal);
        background: var(--teal);
        border-color: transparent;
    }

    .public-conversation-page .mobile-public-nav {
        display: none;
    }

    .appointments-list article {
        position: relative;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        border-color: rgba(255, 255, 255, 0.13);
    }

    .appointment-meta {
        justify-items: stretch;
        grid-auto-flow: row;
        grid-auto-columns: unset;
        gap: 10px;
    }

    .appointment-meta:has(.appointment-actions) {
        grid-auto-flow: row;
    }

    .appointment-meta small {
        width: max-content;
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .appointment-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .appointment-actions form,
    .appointment-actions button,
    .appointment-reschedule,
    .appointment-reschedule form,
    .appointment-reschedule button,
    .text-danger-button {
        width: 100%;
    }

    .appointment-actions button,
    .appointment-reschedule summary,
    .appointment-reschedule button,
    .text-danger-button {
        min-height: 46px;
        font-size: 0.95rem;
    }

    .appointment-reschedule summary {
        display: grid;
        place-items: center;
        font-weight: 850;
    }

    .appointment-reschedule input {
        min-height: 48px;
        font-size: 1rem;
    }

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

    .appointment-quick-actions a {
        min-height: 44px;
        font-size: 0.92rem;
    }

    .hours-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 16px 0;
    }

    .hours-bulk-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .hours-row > strong {
        padding-bottom: 0;
        font-size: 1.05rem;
    }

    .hours-form button,
    .row-actions button {
        width: 100%;
        min-height: 48px;
    }

    .chat-room-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .appointment-side h1 {
        max-width: none;
        margin-bottom: 12px;
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .chat-room-card {
        min-height: calc(100vh - 220px);
    }

    .star-chat-log {
        min-height: 320px;
        max-height: calc(100vh - 300px);
    }

    .chat-bubble {
        max-width: 90%;
    }

    .star-chat-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chat-file-button,
    .star-chat-form button {
        min-height: 48px;
        width: 100%;
    }

    .appointments-list .readable-datetime {
        font-size: 1rem;
    }

    .appointments-list strong {
        font-size: 1.1rem;
    }

    .appointments-list p {
        line-height: 1.45;
    }

    .management-details > summary {
        align-items: start;
        flex-direction: column;
    }

    .business-kpis,
    .accounting-grid,
    .brand-admin-grid,
    .report-actions,
    .credit-package-grid {
        grid-template-columns: 1fr;
    }

    .wallet-ledger article {
        align-items: start;
        flex-direction: column;
    }

    .closeout-list article {
        align-items: start;
        flex-direction: column;
    }

    .report-head,
    .report-actions form,
    .customer-contact-panel form {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .signup-form {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 14px;
    }

    .signup-form label {
        font-size: 0.88rem;
    }

    .signup-form input,
    .signup-form select,
    .stack-form input,
    .stack-form select,
    .hours-form input,
    .media-library figcaption input {
        min-height: 48px;
        font-size: 1rem;
    }

    .signup-form button,
    .primary-link,
    .secondary-link {
        min-height: 50px;
        width: 100%;
    }

    .brand-media-preview,
    .media-library {
        grid-template-columns: 1fr;
    }

    .brand-media-preview {
        align-items: start;
        padding: 12px;
    }

    .media-quota-panel {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .media-manager-head {
        padding: 12px;
    }

    .media-library-admin {
        gap: 14px;
    }

    .media-admin-card {
        padding: 12px;
    }

    .media-library img,
    .media-library video {
        aspect-ratio: 4 / 3;
    }

    .media-library figcaption {
        gap: 10px;
    }

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

    .media-library button {
        min-height: 46px;
        width: 100%;
        font-size: 0.96rem;
    }

    .media-ai-note,
    .media-quota-panel {
        font-size: 0.92rem;
    }

    .geo-tools,
    .location-note {
        align-items: stretch;
        flex-direction: column;
    }

    .map-panel #barbershopMap {
        min-height: 260px;
    }

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

    .style-dialog form,
    .style-actions {
        grid-template-columns: 1fr;
    }

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

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

    .style-dialog {
        width: calc(100vw - 18px);
        max-height: 88vh;
    }

    .style-dialog form {
        padding: 16px;
    }

    .style-camera {
        min-height: min(62vh, 460px);
        aspect-ratio: 3 / 4;
    }

    .platform-shell,
    .form-shell,
    .panel-shell {
        padding: 18px;
    }

    .platform-hero,
    .panel-header {
        min-height: auto;
        padding: 38px 0 24px;
    }

    .barbershop-discovery {
        padding: 16px;
        margin-left: -8px;
        margin-right: -8px;
    }

    .barbershop-carousel {
        grid-auto-columns: minmax(82vw, 1fr);
    }

    .carousel-controls {
        justify-content: stretch;
    }

    .carousel-controls button {
        flex: 1;
    }

    #barbershopMap {
        min-height: 360px;
    }
}
