:root {
    color-scheme: light;
    --ink: #17191c;
    --muted: #667085;
    --line: #e4e7ec;
    --soft: #f7f8fa;
    --panel: #ffffff;
    --brand: #635BFF;
    --brand-dark: #554DE8;
    --brand-soft: #F0EFFF;
    --accent: #18BFA4;
    --accent-soft: #E8FAF6;
    --warning: #F79009;
    --danger: #F04438;
    --shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

/* MyZapis business workspace v2 */
.admin-v2 {
    --admin-bg: #f7f8fa;
    --admin-ink: #17191c;
    --admin-muted: #667085;
    --admin-line: #e4e7ec;
    --admin-green: #18BFA4;
    --admin-coral: #F04438;
    --admin-amber: #F79009;
    --admin-blue: #635BFF;
    --business-accent: #635BFF;
    background: var(--admin-bg);
}

.admin-v2 .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.admin-v2 .admin-shell {
    grid-template-columns: 236px minmax(0, 1fr);
}

.admin-v2 .admin-sidebar {
    z-index: 20;
    padding: 22px 16px 18px;
    border-color: var(--admin-line);
}

.admin-v2 .admin-brand {
    padding: 0 6px 22px;
}

.admin-v2 .business-switcher {
    padding: 16px 6px;
}

.admin-v2 .business-switcher select {
    min-height: 40px;
    color: var(--admin-ink);
    background: #f1f3f2;
    border: 1px solid transparent;
}

.admin-v2 .admin-nav {
    gap: 2px;
    margin-top: 18px;
}

.admin-v2 .admin-nav-label {
    margin: 14px 10px 5px;
    color: #929b98;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-v2 .admin-nav-label:first-child {
    margin-top: 0;
}

.admin-v2 .admin-nav-item {
    min-height: 40px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: #515b58;
    border-radius: 6px;
    font-size: 13px;
}

.admin-v2 .nav-indicator {
    width: 3px;
    height: 14px;
    display: block;
    background: #aeb6b3;
    border-radius: 2px;
}

.admin-v2 [data-admin-view="calendar"] .nav-indicator,
.admin-v2 [data-admin-view="services"] .nav-indicator {
    background: var(--admin-blue);
}

.admin-v2 [data-admin-view="clients"] .nav-indicator,
.admin-v2 [data-admin-view="staff"] .nav-indicator {
    background: var(--admin-amber);
}

.admin-v2 [data-admin-view="business"] .nav-indicator {
    background: var(--admin-coral);
}

.admin-v2 .admin-nav-item.active {
    color: #0f594e;
    background: #e7f1ee;
}

.admin-v2 .sidebar-help {
    padding: 14px 12px;
    background: #f2f4f3;
    border: 1px solid var(--admin-line);
    box-shadow: none;
}

.admin-v2 .admin-content {
    width: 100%;
    max-width: 1480px;
    padding: 30px 36px 56px;
}

.admin-v2 .admin-topbar {
    min-height: 70px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-v2 .admin-heading .eyebrow {
    margin-bottom: 5px;
    color: var(--business-accent);
}

.admin-v2 .admin-topbar h1 {
    margin-bottom: 4px;
    font-size: 26px;
}

.admin-v2 .top-public-link {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 12px;
    text-decoration: none;
}

.admin-v2 .metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
}

.admin-v2 .metric {
    min-height: 94px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    gap: 3px 10px;
    padding: 16px 20px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--admin-line);
    border-radius: 0;
}

.admin-v2 .metric:last-child {
    border-right: 0;
}

.admin-v2 .metric span,
.admin-v2 .metric small {
    color: var(--admin-muted);
    font-size: 11px;
}

.admin-v2 .metric strong {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    color: var(--admin-ink);
    font-size: 30px;
}

.admin-v2 .metric:nth-child(1) strong {
    color: var(--admin-green);
}

.admin-v2 .metric:nth-child(2) strong {
    color: var(--admin-coral);
}

.admin-v2 .metric:nth-child(3) strong {
    color: var(--admin-blue);
}

.admin-v2 .metric:nth-child(4) strong {
    color: var(--admin-amber);
}

.admin-v2 .setup-band {
    margin-bottom: 22px;
    padding: 22px;
    background: #232b29;
    border-radius: 6px;
    color: #ffffff;
}

.admin-v2 .setup-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2px 20px;
}

.admin-v2 .setup-copy .eyebrow {
    grid-column: 1 / -1;
    color: #89c1b7;
}

.admin-v2 .setup-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.admin-v2 .setup-copy p {
    margin: 0;
    color: #c8d0cd;
    font-size: 12px;
}

.admin-v2 .setup-progress {
    height: 4px;
    margin: 16px 0;
    overflow: hidden;
    background: #46504d;
    border-radius: 2px;
}

.admin-v2 .setup-progress span {
    height: 100%;
    display: block;
    background: #64ad9f;
    transition: width 180ms ease;
}

.admin-v2 .setup-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-v2 .setup-step {
    min-width: 0;
    min-height: 66px;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px;
    color: #ffffff;
    text-align: left;
    background: #303a37;
    border: 1px solid #46504d;
    border-radius: 5px;
    cursor: pointer;
}

.admin-v2 .setup-step:hover {
    border-color: #74938c;
}

.admin-v2 .setup-step-state {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #1f2926;
    background: #d9dfdd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
}

.admin-v2 .setup-step.complete .setup-step-state {
    color: #ffffff;
    background: var(--admin-green);
}

.admin-v2 .setup-step > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.admin-v2 .setup-step strong,
.admin-v2 .setup-step small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .setup-step strong {
    font-size: 11px;
}

.admin-v2 .setup-step small {
    color: #adb8b4;
    font-size: 9px;
}

.admin-v2 .setup-step-arrow {
    color: #87938f;
    font-size: 18px;
}

.admin-v2 .workspace-section {
    margin: 0 0 22px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    box-shadow: none;
}

.admin-v2 .section-head {
    min-height: 46px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-v2 .section-head h2 {
    margin-bottom: 4px;
    font-size: 18px;
}

.admin-v2 .section-head p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-v2 .schedule-filters {
    flex-wrap: wrap;
}

.admin-v2 .schedule-filters input {
    min-height: 38px;
}

.admin-v2 .appointment-row {
    min-height: 82px;
    grid-template-columns: 76px minmax(150px, 0.8fr) minmax(220px, 1.2fr) auto;
    gap: 18px;
    padding: 14px 4px;
    cursor: pointer;
}

.admin-v2 .appointment-row:hover {
    background: #f8faf9;
}

.admin-v2 .appointment-time strong {
    color: var(--admin-green);
}

.admin-v2 .appointment-client a {
    color: var(--admin-muted);
    font-size: 11px;
    text-decoration: none;
}

.admin-v2 .appointment-status {
    color: #8a5b14;
    background: #fff2d9;
}

.admin-v2 .appointment-status.confirmed,
.admin-v2 .status-badge.confirmed {
    color: #0f6255;
    background: #e4f2ee;
}

.admin-v2 .appointment-status.completed {
    color: #4f6470;
    background: #eaf0f2;
}

.admin-v2 .appointment-status.cancelled {
    color: #a53f34;
    background: #fbe9e6;
}

.admin-v2 .appointment-actions button {
    min-height: 28px;
    padding: 5px 7px;
    border-radius: 4px;
}

.admin-v2 .appointment-actions button:hover {
    background: #edf3f1;
}

.admin-v2 .schedule-empty {
    min-height: 180px;
    place-content: center;
    justify-items: center;
    border: 0;
    border-top: 1px solid var(--admin-line);
    border-radius: 0;
    background: transparent;
}

.admin-v2 .calendar-section {
    padding: 0;
    overflow: hidden;
}

.admin-v2 .calendar-toolbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .calendar-date-controls {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-v2 .calendar-date-controls strong {
    margin-left: 6px;
    font-size: 14px;
    text-transform: capitalize;
}

.admin-v2 .icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #3f4a46;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.admin-v2 .icon-button:hover {
    color: var(--admin-green);
    background: #f1f6f4;
}

.admin-v2 .segmented-control {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    background: #eef1f0;
    border-radius: 6px;
}

.admin-v2 .segmented-control button {
    min-height: 32px;
    padding: 6px 12px;
    color: var(--admin-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.admin-v2 .segmented-control button.active {
    color: var(--admin-ink);
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(23, 28, 26, 0.12);
}

.admin-v2 .calendar-legend {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 18px;
    color: var(--admin-muted);
    border-bottom: 1px solid var(--admin-line);
    font-size: 10px;
}

.admin-v2 .calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-v2 .legend-dot {
    width: 9px;
    height: 9px;
    display: block;
    background: #e7b45d;
    border-radius: 2px;
}

.admin-v2 .legend-dot.confirmed {
    background: #59a899;
}

.admin-v2 .legend-dot.completed {
    background: #7894a1;
}

.admin-v2 .calendar-viewport {
    max-height: calc(100vh - 250px);
    min-height: 520px;
    overflow: auto;
    background: #ffffff;
}

.admin-v2 .calendar-board {
    min-width: calc(64px + var(--calendar-columns) * 180px);
}

.admin-v2 .calendar-board-head {
    position: sticky;
    z-index: 8;
    top: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    background: #ffffff;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .calendar-corner {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 6px;
    color: #929b98;
    border-right: 1px solid var(--admin-line);
    font-size: 9px;
}

.admin-v2 .calendar-column-heads,
.admin-v2 .calendar-columns {
    display: grid;
    grid-template-columns: repeat(var(--calendar-columns), minmax(180px, 1fr));
}

.admin-v2 .calendar-column-head {
    min-height: 56px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 9px 12px;
    border-right: 1px solid var(--admin-line);
}

.admin-v2 .calendar-column-head strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-v2 .calendar-column-head span {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .calendar-column-head.today {
    box-shadow: inset 0 3px 0 var(--admin-green);
}

.admin-v2 .calendar-column-head.closed,
.admin-v2 .calendar-column.closed {
    background-color: #f7f8f7;
}

.admin-v2 .calendar-board-body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
}

.admin-v2 .calendar-time-rail {
    position: relative;
    border-right: 1px solid var(--admin-line);
}

.admin-v2 .calendar-time-rail span {
    position: absolute;
    right: 9px;
    color: #929b98;
    font-size: 9px;
    transform: translateY(-50%);
}

.admin-v2 .calendar-column {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, transparent 68px, #e9eeec 69px);
    background-size: 100% 69px;
    border-right: 1px solid var(--admin-line);
}

.admin-v2 .calendar-now-line {
    position: absolute;
    z-index: 5;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--admin-coral);
    pointer-events: none;
}

.admin-v2 .calendar-now-line::before {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--admin-coral);
    border-radius: 2px;
}

.admin-v2 .calendar-appointment {
    position: absolute;
    z-index: 3;
    right: 6px;
    left: 6px;
    min-height: 30px;
    display: grid;
    align-content: start;
    gap: 2px;
    overflow: hidden;
    padding: 7px 8px;
    color: #5d4216;
    text-align: left;
    background: #fff0d2;
    border: 0;
    border-left: 3px solid #d99a36;
    border-radius: 5px;
    cursor: pointer;
}

.admin-v2 .calendar-appointment.confirmed {
    color: #124f46;
    background: #dff1ec;
    border-left-color: #3b9585;
}

.admin-v2 .calendar-appointment.completed {
    color: #425b67;
    background: #e6eef1;
    border-left-color: #668895;
}

.admin-v2 .calendar-appointment.cancelled {
    color: #965047;
    background: #f8e8e5;
    border-left-color: #d26a5b;
    opacity: 0.68;
}

.admin-v2 .calendar-appointment:hover {
    filter: brightness(0.97);
}

.admin-v2 .calendar-appointment strong,
.admin-v2 .calendar-appointment span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .calendar-appointment strong {
    font-size: 10px;
}

.admin-v2 .calendar-appointment span {
    font-size: 9px;
}

.admin-v2 .calendar-appointment.compact {
    padding: 5px 6px;
}

.admin-v2 .calendar-zero-state {
    min-height: 520px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--admin-muted);
    text-align: center;
}

.admin-v2 .calendar-zero-state strong {
    color: var(--admin-ink);
    font-size: 18px;
}

.admin-v2 .calendar-zero-state span {
    max-width: 380px;
    font-size: 12px;
    line-height: 1.5;
}

.admin-v2 .client-tools {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-v2 .search-field input {
    width: 230px;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
}

.admin-v2 .client-list {
    display: grid;
}

.admin-v2 .client-row {
    min-width: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px minmax(150px, 1fr) minmax(210px, 1.4fr) auto 18px;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    color: var(--admin-ink);
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--admin-line);
    cursor: pointer;
}

.admin-v2 .client-row:hover {
    background: #f8faf9;
}

.admin-v2 .client-main,
.admin-v2 .client-visit {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.admin-v2 .client-main strong,
.admin-v2 .client-main small,
.admin-v2 .client-visit strong,
.admin-v2 .client-visit small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .client-main strong,
.admin-v2 .client-visit strong {
    font-size: 12px;
}

.admin-v2 .client-main small,
.admin-v2 .client-visit small {
    color: var(--admin-muted);
    font-size: 10px;
}

.admin-v2 .client-spend {
    color: #3a4541;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-v2 .client-arrow {
    color: #929b98;
    font-size: 20px;
}

.admin-v2 .catalog-section {
    max-width: 960px;
}

.admin-v2 .catalog-editor {
    border-color: var(--admin-line);
}

.admin-v2 .catalog-editor summary {
    min-height: 72px;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 13px 4px;
}

.admin-v2 #staffList .catalog-editor summary {
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.admin-v2 .catalog-color {
    width: 4px;
    height: 34px;
    display: block;
    background: var(--admin-green);
    border-radius: 2px;
}

.admin-v2 .catalog-color.tone-1 {
    background: var(--admin-coral);
}

.admin-v2 .catalog-color.tone-2 {
    background: var(--admin-amber);
}

.admin-v2 .catalog-color.tone-3 {
    background: var(--admin-blue);
}

.admin-v2 .catalog-summary-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.admin-v2 .catalog-summary-meta b {
    font-size: 12px;
}

.admin-v2 .catalog-summary-meta i {
    color: #909996;
    font-size: 20px;
    font-style: normal;
    transition: transform 140ms ease;
}

.admin-v2 .catalog-editor[open] .catalog-summary-meta i {
    transform: rotate(90deg);
}

.admin-v2 .catalog-editor > form {
    margin: 0 0 14px 16px;
    padding: 18px;
    background: #f4f6f5;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
}

.admin-v2 .catalog-editor-actions {
    justify-content: space-between;
}

.admin-v2 .danger-action {
    min-height: 34px;
    padding: 7px 10px;
    color: #a34036;
    background: transparent;
    border: 1px solid #e8c2bd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.admin-v2 .danger-action:hover {
    background: #fbecea;
}

.admin-v2 .catalog-zero-state {
    min-height: 190px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 5px;
    color: var(--admin-muted);
    border-top: 1px solid var(--admin-line);
    text-align: center;
}

.admin-v2 .catalog-zero-state strong {
    color: var(--admin-ink);
    font-size: 14px;
}

.admin-v2 .catalog-zero-state span {
    font-size: 11px;
}

.admin-v2 .settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    align-items: start;
    gap: 20px;
}

.admin-v2 .branch-section {
    position: sticky;
    top: 20px;
}

.admin-v2 .logo-settings {
    margin-bottom: 20px;
    padding: 16px;
    background: #f5f7f6;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
}

.admin-v2 .color-field-row input[type="color"] {
    width: 100%;
}

.admin-v2 .admin-drawer-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    background: rgba(23, 28, 26, 0.38);
    backdrop-filter: blur(2px);
}

.admin-v2 .admin-drawer {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    width: min(440px, 100vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-left: 1px solid var(--admin-line);
    box-shadow: -18px 0 50px rgba(23, 28, 26, 0.16);
}

.admin-v2 .drawer-head {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .drawer-head .eyebrow {
    margin-bottom: 4px;
    color: var(--admin-green);
}

.admin-v2 .drawer-head h2 {
    margin: 0;
    font-size: 20px;
}

.admin-v2 .drawer-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 20px 28px;
}

.admin-v2 .drawer-footer {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 9px;
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .drawer-footer .button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12px;
}

.admin-v2 .template-choice {
    width: 100%;
    min-height: 68px;
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 13px 14px;
    color: #215d72;
    text-align: left;
    background: #edf4f6;
    border: 1px solid #c8dde3;
    border-radius: 6px;
    cursor: pointer;
}

.admin-v2 .template-choice strong {
    font-size: 12px;
}

.admin-v2 .template-choice span {
    color: #617983;
    font-size: 10px;
}

.admin-v2 .template-choice.danger-choice {
    color: #9c4439;
    background: #fbefed;
    border-color: #ebc9c4;
}

.admin-v2 .template-choice.danger-choice span {
    color: #82645f;
}

.admin-v2.overlay-open {
    overflow: hidden;
}

.admin-v2 .client-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-line);
    font-size: 14px;
    font-weight: 800;
}

.admin-v2 .client-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0 22px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
}

.admin-v2 .client-metrics > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 13px 10px;
    border-right: 1px solid var(--admin-line);
}

.admin-v2 .client-metrics > div:last-child {
    border-right: 0;
}

.admin-v2 .client-metrics strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .client-metrics span {
    color: var(--admin-muted);
    font-size: 9px;
}

.admin-v2 .client-note-form {
    margin-bottom: 26px;
    padding: 16px;
    background: #f4f6f5;
    border-radius: 6px;
}

.admin-v2 .client-note-form textarea {
    margin: 8px 0 10px;
}

.admin-v2 .drawer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.admin-v2 .drawer-section-head h3 {
    margin: 0;
    font-size: 14px;
}

.admin-v2 .drawer-section-head span {
    color: var(--admin-muted);
    font-size: 11px;
}

.admin-v2 .client-history {
    display: grid;
}

.admin-v2 .client-history-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .client-history-row > span:not(.appointment-status) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.admin-v2 .client-history-row strong,
.admin-v2 .client-history-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .client-history-row strong {
    font-size: 11px;
}

.admin-v2 .client-history-row small {
    color: var(--admin-muted);
    font-size: 9px;
}

.admin-v2 .appointment-detail-status {
    margin-bottom: 18px;
}

.admin-v2 .appointment-details {
    margin: 0;
}

.admin-v2 .appointment-details > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .appointment-details dt {
    color: var(--admin-muted);
    font-size: 11px;
}

.admin-v2 .appointment-details dd {
    margin: 0;
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.admin-v2 .appointment-drawer-actions {
    justify-content: flex-start;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .appointment-drawer-actions button {
    min-height: 38px;
    padding: 8px 11px;
    background: #edf4f2;
}

.admin-v2 .mobile-bottom-nav,
.admin-v2 .mobile-more-menu {
    display: none;
}

@media (max-width: 1080px) {
    .admin-v2 .admin-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .admin-v2 .admin-content {
        padding: 26px 24px 48px;
    }

    .admin-v2 .setup-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-v2 .settings-layout {
        grid-template-columns: 1fr;
    }

    .admin-v2 .branch-section {
        position: static;
    }
}

@media (max-width: 760px) {
    .admin-v2 {
        padding-top: 62px;
        padding-bottom: 70px;
    }

    .admin-v2 .mobile-admin-header {
        min-height: 62px;
        display: flex;
        box-shadow: none;
    }

    .admin-v2 .admin-shell {
        display: block;
    }

    .admin-v2 .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        display: block;
        padding: 8px 14px;
        border: 0;
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .admin-brand,
    .admin-v2 .admin-nav,
    .admin-v2 .sidebar-help,
    .admin-v2 .sidebar-account,
    .admin-v2 .platform-admin-link {
        display: none;
    }

    .admin-v2 .business-switcher {
        padding: 0;
        border: 0;
    }

    .admin-v2 .business-switcher label {
        display: none;
    }

    .admin-v2 .business-switcher select {
        min-height: 40px;
    }

    .admin-v2 .admin-content {
        width: 100%;
        padding: 20px 14px 30px;
    }

    .admin-v2 .admin-topbar {
        min-height: 0;
        margin-bottom: 17px;
    }

    .admin-v2 .admin-topbar h1 {
        font-size: 22px;
    }

    .admin-v2 .admin-topbar p {
        max-width: 220px;
        font-size: 11px;
    }

    .admin-v2 .top-public-link {
        min-height: 38px;
        padding: 8px 9px;
        font-size: 10px;
    }

    .admin-v2 .metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-v2 .metric {
        min-height: 80px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .metric:nth-child(2) {
        border-right: 0;
    }

    .admin-v2 .metric:nth-child(3),
    .admin-v2 .metric:nth-child(4) {
        border-bottom: 0;
    }

    .admin-v2 .metric strong {
        font-size: 25px;
    }

    .admin-v2 .setup-band {
        padding: 18px 14px;
    }

    .admin-v2 .setup-copy {
        grid-template-columns: 1fr;
    }

    .admin-v2 .setup-copy h2 {
        font-size: 16px;
    }

    .admin-v2 .setup-copy p {
        margin-top: 5px;
    }

    .admin-v2 .setup-steps {
        grid-template-columns: 1fr;
    }

    .admin-v2 .workspace-section {
        padding: 17px 14px;
    }

    .admin-v2 .section-head {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .admin-v2 .section-head h2 {
        font-size: 17px;
    }

    .admin-v2 .panel-head-actions,
    .admin-v2 .client-tools {
        width: 100%;
        justify-content: space-between;
    }

    .admin-v2 .search-field {
        flex: 1 1 auto;
    }

    .admin-v2 .search-field input {
        width: 100%;
    }

    .admin-v2 .schedule-filters {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .admin-v2 .appointment-row {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 13px 2px;
    }

    .admin-v2 .appointment-client {
        grid-column: 2;
    }

    .admin-v2 .appointment-service {
        grid-column: 2 / -1;
    }

    .admin-v2 .appointment-controls {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: start;
    }

    .admin-v2 .appointment-actions {
        max-width: 112px;
    }

    .admin-v2 .calendar-section {
        margin-right: -14px;
        margin-left: -14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .admin-v2 .calendar-toolbar {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-v2 .calendar-date-controls {
        display: grid;
        grid-template-columns: 38px auto 38px minmax(0, 1fr);
    }

    .admin-v2 .calendar-date-controls strong {
        overflow: hidden;
        margin-left: 0;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-v2 .segmented-control {
        width: 100%;
    }

    .admin-v2 .calendar-viewport {
        max-height: none;
        min-height: 500px;
    }

    .admin-v2 .client-row {
        grid-template-columns: 38px minmax(0, 1fr) auto 14px;
        gap: 9px;
    }

    .admin-v2 .client-row .avatar {
        width: 38px;
        height: 38px;
    }

    .admin-v2 .client-visit {
        grid-column: 2 / -1;
    }

    .admin-v2 .client-spend {
        grid-column: 3;
        grid-row: 1;
    }

    .admin-v2 .client-arrow {
        grid-column: 4;
        grid-row: 1;
    }

    .admin-v2 .catalog-editor summary {
        grid-template-columns: 8px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .admin-v2 #staffList .catalog-editor summary {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .admin-v2 .catalog-summary-meta {
        gap: 8px;
    }

    .admin-v2 .catalog-editor > form {
        margin-left: 0;
        padding: 14px;
    }

    .admin-v2 .split-fields {
        grid-template-columns: 1fr;
    }

    .admin-v2 .three-fields {
        grid-template-columns: 1fr 1fr;
    }

    .admin-v2 .three-fields .form-row:last-child {
        grid-column: 1 / -1;
    }

    .admin-v2 .admin-drawer {
        top: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: 88dvh;
        border-top: 1px solid var(--admin-line);
        border-left: 0;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -18px 50px rgba(23, 28, 26, 0.18);
    }

    .admin-v2 .drawer-head {
        min-height: 70px;
        padding: 13px 16px;
    }

    .admin-v2 .drawer-head h2 {
        font-size: 18px;
    }

    .admin-v2 .drawer-body {
        padding: 18px 16px 24px;
    }

    .admin-v2 .drawer-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .admin-v2 .mobile-bottom-nav {
        position: fixed;
        z-index: 70;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 64px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-top: 1px solid var(--admin-line);
        box-shadow: 0 -5px 18px rgba(23, 28, 26, 0.08);
    }

    .admin-v2 .mobile-bottom-nav button {
        min-width: 0;
        min-height: 44px;
        padding: 6px 3px;
        color: #6a7471;
        background: transparent;
        border: 0;
        border-top: 3px solid transparent;
        cursor: pointer;
        font-size: 10px;
        font-weight: 800;
    }

    .admin-v2 .mobile-bottom-nav button.active {
        color: var(--admin-green);
        border-top-color: var(--admin-green);
    }

    .admin-v2 .mobile-more-menu {
        position: fixed;
        z-index: 65;
        top: 62px;
        right: 0;
        bottom: calc(64px + env(safe-area-inset-bottom));
        left: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        background: #f4f6f5;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .admin-v2 .mobile-more-menu[hidden] {
        display: none;
    }

    .admin-v2 .mobile-more-head {
        min-height: 74px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 12px 16px;
        background: #ffffff;
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .mobile-more-head .eyebrow {
        margin-bottom: 3px;
        color: var(--business-accent);
        font-size: 9px;
    }

    .admin-v2 .mobile-more-head h2 {
        margin: 0;
        font-size: 20px;
    }

    .admin-v2 .mobile-more-content {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        padding-bottom: 22px;
        overscroll-behavior: contain;
    }

    .admin-v2 .mobile-more-business {
        padding: 18px 16px;
        background: #ffffff;
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .mobile-more-business-select {
        display: grid;
        gap: 6px;
    }

    .admin-v2 .mobile-more-business-select > span,
    .admin-v2 .mobile-more-booking-link > span,
    .admin-v2 .mobile-more-account > span {
        color: var(--admin-muted);
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase;
    }

    .admin-v2 .mobile-more-business-select select {
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        color: var(--admin-ink);
        background: #f1f3f2;
        border: 1px solid transparent;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 800;
    }

    .admin-v2 .mobile-more-booking-link {
        min-width: 0;
        display: grid;
        gap: 5px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--admin-line);
    }

    .admin-v2 .mobile-more-booking-link strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-v2 .mobile-more-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 15px;
    }

    .admin-v2 .mobile-more-quick-actions .button {
        min-width: 0;
        min-height: 44px;
        padding: 9px 8px;
        font-size: 10px;
        text-align: center;
        white-space: normal;
    }

    .admin-v2 .mobile-copy-link {
        width: 100%;
        min-height: 36px;
        margin-top: 6px;
        padding: 7px 8px;
        color: var(--business-accent);
        background: transparent;
        border: 0;
        cursor: pointer;
        font-size: 10px;
        font-weight: 800;
    }

    .admin-v2 .mobile-more-section {
        margin-top: 10px;
        padding: 16px;
        background: #ffffff;
        border-top: 1px solid var(--admin-line);
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .mobile-more-section h3 {
        margin: 0 0 8px;
        color: var(--admin-muted);
        font-size: 10px;
        text-transform: uppercase;
    }

    .admin-v2 .mobile-management-list {
        display: grid;
    }

    .admin-v2 .mobile-management-item {
        width: 100%;
        min-height: 68px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 4px 12px 14px;
        color: var(--admin-ink);
        text-align: left;
        background: transparent;
        border: 0;
        border-top: 1px solid var(--admin-line);
        box-shadow: inset 3px 0 #aeb6b3;
        cursor: pointer;
    }

    .admin-v2 .mobile-management-item:first-child {
        border-top: 0;
    }

    .admin-v2 .mobile-management-item.tone-blue {
        box-shadow: inset 3px 0 var(--admin-blue);
    }

    .admin-v2 .mobile-management-item.tone-amber {
        box-shadow: inset 3px 0 var(--admin-amber);
    }

    .admin-v2 .mobile-management-item.tone-coral {
        box-shadow: inset 3px 0 var(--admin-coral);
    }

    .admin-v2 .mobile-management-item.tone-green {
        box-shadow: inset 3px 0 var(--admin-green);
    }

    .admin-v2 .mobile-management-item > span:first-child {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .admin-v2 .mobile-management-item strong {
        font-size: 13px;
    }

    .admin-v2 .mobile-management-item small {
        overflow: hidden;
        color: var(--admin-muted);
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-v2 .mobile-management-meta {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .admin-v2 .mobile-management-meta b {
        min-width: 25px;
        min-height: 25px;
        display: grid;
        place-items: center;
        padding: 3px 6px;
        color: var(--admin-green);
        background: #e8f1ef;
        border-radius: 5px;
        font-size: 10px;
    }

    .admin-v2 .mobile-management-meta i {
        color: #8c9692;
        font-size: 21px;
        font-style: normal;
        line-height: 1;
    }

    .admin-v2 .mobile-more-account {
        display: grid;
        gap: 4px;
        margin-top: 10px;
        padding: 17px 16px 20px;
        background: #ffffff;
        border-top: 1px solid var(--admin-line);
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .mobile-more-account strong {
        margin-top: 4px;
        font-size: 13px;
    }

    .admin-v2 .mobile-more-account small {
        color: var(--admin-muted);
        font-size: 10px;
    }

    .admin-v2 .mobile-more-account a {
        width: fit-content;
        margin-top: 10px;
        color: var(--admin-green);
        font-size: 11px;
        font-weight: 800;
    }
}

@media (max-width: 420px) {
    .admin-v2 .admin-topbar {
        gap: 10px;
    }

    .admin-v2 .top-public-link {
        max-width: 112px;
        white-space: normal;
    }

    .admin-v2 .appointment-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .admin-v2 .appointment-controls {
        grid-column: 2;
        grid-row: auto;
        justify-items: start;
    }

    .admin-v2 .appointment-actions {
        max-width: none;
        justify-content: flex-start;
    }

    .admin-v2 .catalog-summary-meta b {
        max-width: 78px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-v2 .client-metrics strong {
        font-size: 12px;
    }

    .admin-v2 .drawer-footer {
        grid-template-columns: 1fr 1.35fr;
    }
}

/* Client appointment management */
.manage-page {
    min-height: 100vh;
}

.manage-shell {
    width: min(760px, calc(100% - 40px));
    min-height: calc(100vh - 180px);
    margin: 34px auto 52px;
}

.manage-business {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding: 4px 2px 18px;
    border-bottom: 1px solid var(--line);
}

.manage-business h1 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: 0;
}

.manage-business p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.manage-logo {
    width: 52px;
    height: 52px;
}

.manage-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.manage-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    color: #4f5b57;
    background: #eef2f0;
    border: 1px solid #d9e1de;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.manage-notice.success {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: #afd1ca;
}

.manage-notice.error {
    color: var(--danger);
    background: #fbecec;
    border-color: #efc1c1;
}

.manage-appointment,
.manage-panel {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(24, 33, 31, 0.07);
}

.manage-appointment-head,
.manage-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.manage-appointment-head h2,
.manage-panel-head h2,
.cancel-panel h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0;
}

.manage-appointment .appointment-status {
    flex: 0 0 auto;
    padding: 6px 8px;
    color: #875913;
    background: #fff0d4;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
}

.manage-appointment .appointment-status.confirmed {
    color: #155f54;
    background: #e4f2ee;
}

.manage-appointment .appointment-status.completed {
    color: #4d626b;
    background: #eaf0f2;
}

.manage-appointment .appointment-status.cancelled {
    color: #a44036;
    background: #f9e8e5;
}

.manage-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}

.manage-details > div {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 16px 12px 16px 0;
    border-bottom: 1px solid var(--line);
}

.manage-details > div:nth-child(even) {
    padding-right: 0;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.manage-details dt {
    color: var(--muted);
    font-size: 11px;
}

.manage-details dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.manage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.manage-actions .button {
    width: 100%;
}

.danger-outline {
    color: var(--danger) !important;
    border-color: #e5b9b9 !important;
}

.danger-button {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.manage-panel {
    margin-top: 16px;
}

.manage-panel .manage-slots {
    margin-bottom: 20px;
}

.manage-submit {
    width: 100%;
}

.cancel-panel {
    border-color: #e7bdb8;
}

.cancel-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .manage-shell {
        width: min(100% - 24px, 760px);
        margin-top: 20px;
    }

    .manage-business {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .manage-business > .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .manage-logo {
        width: 46px;
        height: 46px;
    }

    .manage-appointment,
    .manage-panel {
        padding: 19px 15px;
    }

    .manage-appointment-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .manage-appointment-head h2,
    .manage-panel-head h2,
    .cancel-panel h2 {
        font-size: 19px;
    }

    .manage-details {
        grid-template-columns: 1fr;
    }

    .manage-details > div,
    .manage-details > div:nth-child(even) {
        padding: 13px 0;
        border-left: 0;
    }

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

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f3f5f4;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(23, 107, 95, 0.22);
    outline-offset: 2px;
}

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

a {
    color: inherit;
}

.button {
    min-height: 46px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    padding: 11px 18px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 750;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

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

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

.button.secondary {
    color: #ffffff;
    background: #293532;
    border-color: #293532;
}

.button.ghost {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

.button.ghost:hover:not(:disabled) {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: #a9cfc7;
}

.booking-page {
    background: #f4f6f5;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px max(24px, calc((100vw - 1320px) / 2));
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.product-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
}

.product-logo {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--brand);
}

.secure-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.public-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 34px auto 56px;
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.venue {
    position: sticky;
    top: 102px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(24, 33, 31, 0.07);
}

.venue-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #293532;
    background-image: url("https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=1200&q=84");
    background-position: center;
    background-size: cover;
}

.venue-content {
    padding: 24px;
}

.venue-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.venue-monogram {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--accent);
    font-size: 21px;
    font-weight: 850;
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--brand);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.venue h1 {
    margin-bottom: 0;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: 0;
}

.venue-content > p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.55;
}

.venue-facts {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}

.venue-facts > div {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.venue-facts dt,
.summary-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.venue-facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.trust-row span {
    padding: 7px 9px;
    border-radius: 6px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 700;
}

.booking-tool {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    scroll-margin-top: 94px;
}

.booking-main {
    min-width: 0;
    padding: 32px;
}

.booking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.booking-head h2 {
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: 0;
}

.step-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--muted);
    background: var(--soft);
    font-size: 12px;
    font-weight: 750;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 28px 0 34px;
    padding: 0;
    list-style: none;
}

.stepper li {
    position: relative;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #929b98;
    font-size: 12px;
    font-weight: 700;
}

.stepper li::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--line);
}

.stepper li:last-child::after {
    display: none;
}

.stepper span {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: #7f8985;
    background: #ffffff;
    font-size: 12px;
}

.stepper li.active,
.stepper li.done {
    color: var(--brand-dark);
}

.stepper li.active span {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.stepper li.done span {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #9dc9c0;
}

.stepper li.done::after {
    background: #9dc9c0;
}

.section-title {
    margin-bottom: 20px;
}

.section-title h3 {
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
}

.section-title p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

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

.choice-row {
    position: relative;
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    text-align: left;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.choice-row:hover {
    border-color: #9dc9c0;
    box-shadow: 0 5px 15px rgba(24, 33, 31, 0.06);
}

.choice-row.active {
    background: var(--brand-soft);
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.choice-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.choice-copy strong {
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.choice-copy small {
    color: var(--muted);
    font-size: 13px;
}

.choice-price {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
}

.choice-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: transparent;
    background: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.choice-row.active .choice-check {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.staff-choice {
    grid-template-columns: 46px minmax(0, 1fr) 24px;
}

.avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #7a4810;
    background: #f9e6c7;
    font-size: 13px;
    font-weight: 850;
}

.any-avatar {
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: 21px;
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.step-actions.end {
    justify-content: flex-end;
}

.date-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.date-picker-label {
    flex: 0 0 auto;
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.date-picker-label input {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
}

.date-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(68px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 8px;
}

.date-option {
    min-width: 68px;
    min-height: 66px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 8px 5px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.date-option span {
    color: var(--muted);
    font-size: 11px;
    text-transform: capitalize;
}

.date-option strong {
    font-size: 13px;
    white-space: nowrap;
}

.date-option.active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.date-option.active span {
    color: rgba(255, 255, 255, 0.78);
}

.time-heading {
    margin: 22px 0 12px;
    font-size: 13px;
    font-weight: 800;
}

.slots {
    min-height: 54px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 9px;
}

.slot {
    min-width: 0;
    min-height: 44px;
    padding: 9px 7px;
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid #add0c9;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.slot:hover {
    background: var(--brand-soft);
}

.slot.active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

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

.form-row {
    display: grid;
    align-content: start;
    gap: 7px;
    margin-bottom: 12px;
}

.form-row.full {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 750;
}

.optional {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #b6c2be;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}

.consent input {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--brand);
}

.booking-summary {
    min-width: 0;
    padding: 32px 22px;
    background: #f7f9f8;
    border-left: 1px solid var(--line);
}

.summary-title {
    margin-bottom: 22px;
    font-size: 16px;
    font-weight: 850;
}

.summary-empty {
    padding: 18px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.summary-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.summary-list > div {
    display: grid;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.summary-list dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.summary-list .summary-total {
    margin-top: 8px;
    border-bottom: 0;
}

.summary-total dd {
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 850;
}

.summary-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.notice {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #b9d8d2;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.notice.error {
    color: var(--danger);
    background: #fbecec;
    border-color: #efc1c1;
}

.empty {
    grid-column: 1 / -1;
    padding: 18px;
    color: var(--muted);
    background: var(--soft);
    border: 1px dashed #c7d0cd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.loading {
    border-style: solid;
}

.success-view {
    max-width: 470px;
    margin: 52px auto;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand);
    font-size: 28px;
    font-weight: 850;
}

.success-view h2 {
    margin-bottom: 10px;
    font-size: 29px;
}

.success-view p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.6;
}

.success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.success-actions .button {
    min-width: 160px;
    text-decoration: none;
}

.public-footer {
    padding: 0 24px 36px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.workspace {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar h2,
.panel h2,
.panel h3 {
    margin-bottom: 5px;
    letter-spacing: 0;
}

.panel {
    margin-bottom: 18px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(24, 33, 31, 0.06);
}

.admin-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.admin-layout > aside {
    position: sticky;
    top: 18px;
}

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

.item {
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.item strong {
    display: block;
    margin-bottom: 5px;
}

.muted {
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.admin-page {
    background: #f4f6f5;
}

.mobile-admin-header {
    display: none;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    background: #ffffff;
    border-right: 1px solid var(--line);
}

.admin-brand {
    padding: 0 6px 26px;
}

.business-switcher {
    display: grid;
    gap: 7px;
    padding: 18px 6px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.business-switcher label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.business-switcher select {
    min-height: 42px;
    padding: 9px 10px;
    background: var(--soft);
    border-color: transparent;
    font-size: 13px;
    font-weight: 750;
}

.admin-nav {
    display: grid;
    gap: 5px;
    margin-top: 22px;
}

.admin-nav-item {
    min-height: 43px;
    padding: 10px 12px;
    color: #52605c;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.admin-nav-item:hover {
    color: var(--brand-dark);
    background: var(--soft);
}

.admin-nav-item.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.sidebar-help {
    min-width: 0;
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding: 16px 12px;
    background: var(--soft);
    border-radius: 8px;
}

.sidebar-help strong {
    font-size: 12px;
}

.sidebar-help > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-actions {
    display: flex;
    gap: 12px;
}

.text-button {
    padding: 0;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.text-button:hover {
    text-decoration: underline;
}

button.confirming {
    min-height: 28px;
    padding: 5px 8px !important;
    color: var(--danger) !important;
    background: #fbecec !important;
    border: 1px solid #efc1c1 !important;
    border-radius: 6px;
    text-decoration: none !important;
}

.admin-content {
    min-width: 0;
    width: min(1180px, 100%);
    padding: 32px 36px 52px;
}

.admin-topbar {
    min-height: 74px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.admin-topbar h1 {
    margin-bottom: 5px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.admin-topbar p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-notice {
    position: fixed;
    z-index: 30;
    top: 20px;
    right: 24px;
    max-width: min(420px, calc(100vw - 40px));
    padding: 12px 15px;
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid #acd0c8;
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
    font-size: 13px;
    font-weight: 700;
}

.admin-notice.visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-notice.error {
    color: var(--danger);
    border-color: #e7b3b3;
}

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

.metric {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    padding: 17px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 8px;
}

.metric:nth-child(2) {
    border-top-color: var(--accent);
}

.metric:nth-child(3) {
    border-top-color: #c18a2b;
}

.metric span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.metric strong {
    font-size: 30px;
    line-height: 1;
}

.accent-metric {
    background: #25302d;
    border-color: #25302d;
    border-top-color: #f2c163;
}

.accent-metric span {
    color: #cdd6d3;
}

.accent-metric strong {
    color: #ffffff;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-head h2,
.panel-head h3 {
    margin-bottom: 4px;
}

.panel-head p {
    margin-bottom: 0;
    font-size: 12px;
}

.panel-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.panel-create-button {
    min-height: 32px;
}

.panel-create-button[hidden] {
    display: none;
}

.schedule-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-filters label {
    color: var(--muted);
    font-size: 11px;
}

.schedule-filters input {
    width: 145px;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 12px;
}

.button.compact {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
}

.appointment-list {
    display: grid;
}

.appointment-row {
    min-height: 76px;
    display: grid;
    grid-template-columns: 82px minmax(140px, 0.7fr) minmax(220px, 1.3fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 2px;
    border-top: 1px solid var(--line);
}

.appointment-time,
.appointment-client,
.appointment-service {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.appointment-time strong {
    color: var(--brand-dark);
    font-size: 17px;
}

.appointment-time small,
.appointment-client span,
.appointment-service span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-client strong,
.appointment-service strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-status,
.status-badge,
.count-badge,
.online-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.appointment-status {
    color: var(--warning);
    background: #fff4df;
}

.appointment-status.cancelled {
    color: var(--danger);
    background: #fbecec;
}

.schedule-empty {
    display: grid;
    gap: 5px;
    text-align: center;
}

.schedule-empty strong {
    color: var(--ink);
}

.section-intro {
    margin-bottom: 20px;
}

.section-intro h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

.section-intro p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.count-badge {
    min-width: 28px;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.catalog-list {
    display: grid;
}

.catalog-item {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

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

.catalog-item strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-item span {
    color: var(--muted);
    font-size: 11px;
}

.catalog-item b {
    white-space: nowrap;
    font-size: 13px;
}

.staff-catalog-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.staff-catalog-item .avatar {
    width: 42px;
    height: 42px;
}

.online-dot {
    color: var(--brand-dark) !important;
    background: var(--brand-soft);
}

.inline-create {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.inline-create[hidden] {
    display: none;
}

.inline-create-top {
    margin: 0 0 18px;
    padding: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    scroll-margin-top: 76px;
}

.inline-create h4 {
    margin: 0 0 16px;
    font-size: 14px;
}

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

.catalog-editor-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.catalog-editor-actions .text-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.catalog-empty-message {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

#serviceForm:not([hidden]) + #serviceList .catalog-empty-message,
#staffForm:not([hidden]) + #staffList .catalog-empty-message {
    display: none;
}

.template-inline-action {
    margin-top: 14px;
}

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

.business-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.status-badge {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.profile-list {
    display: grid;
    margin: 0;
}

.profile-list > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.profile-list dt {
    color: var(--muted);
    font-size: 12px;
}

.profile-list dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.slug-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.slug-input:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 107, 95, 0.14);
}

.field-status {
    min-height: 17px;
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.field-status.checking {
    color: #66716d;
}

.field-status.available {
    color: var(--brand);
    font-weight: 700;
}

.field-status.unavailable {
    color: var(--danger);
    font-weight: 700;
}

.slug-input span {
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0 10px;
    color: var(--muted);
    background: var(--soft);
    border-right: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
}

.slug-input input {
    border: 0;
    border-radius: 0;
    outline: 0;
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .admin-content {
        padding: 28px 24px 44px;
    }

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

    .management-grid,
    .business-grid {
        grid-template-columns: 1fr;
    }

    .appointment-row {
        grid-template-columns: 72px minmax(120px, 0.8fr) minmax(180px, 1.2fr);
    }

    .appointment-status {
        grid-column: 2 / -1;
        justify-self: start;
        margin-top: -8px;
    }
}

@media (max-width: 720px) {
    .admin-page {
        padding-top: 62px;
    }

    .mobile-admin-header {
        position: fixed;
        z-index: 50;
        top: 0;
        right: 0;
        left: 0;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 8px 16px;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 4px 16px rgba(24, 33, 31, 0.08);
    }

    .mobile-logout-button {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        color: var(--danger);
        background: #ffffff;
        border: 1px solid #e6c8c8;
        border-radius: 6px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-logout-button:disabled {
        cursor: wait;
        opacity: 0.65;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 14px 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-brand {
        display: none;
    }

    .business-switcher {
        padding: 12px 0;
    }

    .admin-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        margin-top: 8px;
        padding-bottom: 8px;
    }

    .admin-nav-item {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .sidebar-help {
        display: none;
    }

    .admin-content {
        width: 100%;
        padding: 22px 16px 40px;
    }

    .admin-topbar {
        min-height: 0;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .admin-topbar h1 {
        font-size: 23px;
    }

    .admin-topbar .button {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .admin-notice {
        top: 72px;
        right: 16px;
    }

    .panel {
        padding: 17px 14px;
    }

    .panel-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .panel-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .schedule-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .schedule-filters label {
        grid-column: 1 / -1;
    }

    .schedule-filters input {
        width: 100%;
    }

    .appointment-row {
        width: 100%;
        min-width: 0;
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
    }

    .appointment-row > * {
        min-width: 0;
    }

    .appointment-service {
        grid-column: 2;
    }

    .appointment-status {
        grid-column: 2;
        margin-top: 0;
    }

    .appointment-controls {
        width: 100%;
        grid-column: 2;
        justify-items: start;
    }

    .appointment-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1080px) {
    .public-shell {
        grid-template-columns: 300px minmax(0, 1fr);
    }

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

    .booking-summary {
        padding: 22px 32px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .summary-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .summary-note {
        margin-bottom: 0;
    }
}

@media (max-width: 820px) {
    .public-shell {
        width: min(680px, calc(100% - 32px));
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .venue {
        position: static;
        display: grid;
        grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    }

    .venue-cover {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .venue-content {
        padding: 20px;
    }

    .venue-facts > div {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .workspace {
        width: min(100% - 32px, 720px);
    }

    .admin-layout,
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout > aside {
        position: static;
    }
}

@media (max-width: 620px) {
    .public-header {
        min-height: 60px;
        padding: 10px 16px;
    }

    .secure-label {
        max-width: 135px;
        text-align: right;
        line-height: 1.3;
    }

    .public-shell {
        width: 100%;
        margin: 0 auto 36px;
        gap: 12px;
    }

    .venue,
    .booking-tool {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .venue {
        display: block;
    }

    .venue-cover {
        min-height: 190px;
        aspect-ratio: 16 / 8;
    }

    .venue-content {
        padding: 18px 16px;
    }

    .venue h1 {
        font-size: 23px;
    }

    .venue-facts {
        display: none;
    }

    .booking-main {
        padding: 24px 16px;
    }

    .booking-head h2 {
        font-size: 22px;
    }

    .stepper {
        margin: 24px 0 30px;
    }

    .stepper small {
        display: none;
    }

    .stepper li {
        gap: 0;
    }

    .choice-row {
        grid-template-columns: minmax(0, 1fr) auto 22px;
        gap: 10px;
        padding: 13px 12px;
    }

    .staff-choice {
        grid-template-columns: 42px minmax(0, 1fr) 22px;
    }

    .avatar {
        width: 42px;
        height: 42px;
    }

    .date-title {
        display: grid;
    }

    .date-picker-label {
        width: 100%;
    }

    .date-strip {
        grid-template-columns: repeat(7, 72px);
    }

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

    .form-row.full {
        grid-column: auto;
    }

    .step-actions .button {
        flex: 1 1 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .booking-summary {
        padding: 22px 16px;
    }

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

    .public-footer {
        padding-bottom: 24px;
    }

    .workspace {
        width: calc(100% - 24px);
        padding-top: 18px;
    }

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

.consent a,
.auth-switch a,
.auth-form-meta a,
.auth-footer a,
.legal-document a {
    color: var(--brand-dark);
    font-weight: 750;
}

.sidebar-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 6px 0;
}

.sidebar-account > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.sidebar-account strong,
.sidebar-account span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account strong {
    font-size: 12px;
}

.sidebar-account span {
    color: var(--muted);
    font-size: 10px;
}

.danger-text {
    color: var(--danger) !important;
}

.catalog-editor {
    border-top: 1px solid var(--line);
}

.catalog-editor.inactive {
    opacity: 0.62;
}

.catalog-editor summary {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 2px;
    cursor: pointer;
    list-style: none;
}

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

.catalog-editor summary:focus-visible {
    outline: 3px solid rgba(23, 107, 95, 0.2);
    outline-offset: 2px;
}

.catalog-editor summary .avatar {
    width: 42px;
    height: 42px;
}

#staffList .catalog-editor summary {
    grid-template-columns: 42px minmax(0, 1fr);
}

.catalog-summary-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.catalog-summary-copy strong,
.catalog-summary-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-summary-copy strong {
    font-size: 13px;
}

.catalog-summary-copy small {
    color: var(--muted);
    font-size: 11px;
}

.catalog-summary-price {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.catalog-editor > form {
    padding: 16px;
    background: var(--soft);
    border-radius: 8px;
    margin-bottom: 12px;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.switch-row input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--brand);
}

.appointment-controls {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.appointment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.appointment-actions button {
    padding: 0;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.appointment-client a {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-status.confirmed {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.appointment-status.completed {
    color: #4f5956;
    background: #e9edeb;
}

.settings-divider {
    margin: 18px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
}

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

.weekday-fieldset {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.weekday-fieldset legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 750;
}

.weekday-options {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(38px, 1fr));
    gap: 5px;
}

.weekday-options label {
    position: relative;
    min-height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
    font-size: 11px;
}

.weekday-options input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.weekday-options label:has(input:checked) {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.auth-page {
    background: #ffffff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 0.8fr) minmax(520px, 1.2fr);
}

.auth-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    overflow: hidden;
    color: #ffffff;
    background-color: #25302d;
    background-image: url("https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=1400&q=86");
    background-position: center;
    background-size: cover;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(19, 35, 31, 0.76);
}

.auth-brand,
.auth-visual-copy {
    position: relative;
    z-index: 1;
}

.auth-brand {
    color: #ffffff;
}

.auth-visual-copy {
    max-width: 470px;
}

.auth-visual-copy .eyebrow {
    color: #bde1d9;
}

.auth-visual-copy h1 {
    margin-bottom: 16px;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: 0;
}

.auth-visual-copy p {
    max-width: 400px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.auth-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px max(32px, 7vw) 24px;
}

.auth-form-wrap {
    width: min(100%, 650px);
    margin: auto;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    margin-bottom: 8px;
    font-size: 29px;
    letter-spacing: 0;
}

.auth-heading p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.5;
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.password-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.password-toggle input {
    width: 16px;
    min-height: 16px;
    margin: 0;
    accent-color: var(--brand);
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
}

.demo-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: var(--brand-soft);
    border: 1px solid #bfdcd6;
    border-radius: 8px;
}

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

.demo-access strong {
    font-size: 12px;
}

.demo-access span {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 11px;
}

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

.auth-fields .full {
    grid-column: 1 / -1;
}

.auth-divider {
    position: relative;
    margin: 8px 0 20px;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    position: relative;
    padding: 0 10px;
    color: var(--muted);
    background: #ffffff;
    font-size: 11px;
    font-weight: 750;
}

.auth-consent {
    margin-top: 4px;
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 11px;
}

.legal-page {
    background: #ffffff;
}

.legal-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(24px, calc((100vw - 900px) / 2));
    border-bottom: 1px solid var(--line);
}

.legal-document {
    width: min(850px, calc(100% - 40px));
    margin: 48px auto 80px;
}

.legal-document h1 {
    max-width: 680px;
    margin-bottom: 16px;
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: 0;
}

.legal-lead {
    max-width: 720px;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.legal-document section {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.legal-document h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.legal-document section p {
    margin-bottom: 10px;
    color: #46514e;
    line-height: 1.7;
}

@media (max-width: 920px) {
    .auth-shell {
        grid-template-columns: minmax(280px, 0.7fr) minmax(460px, 1.3fr);
    }

    .auth-visual-copy h1 {
        font-size: 36px;
    }

    .appointment-row {
        grid-template-columns: 72px minmax(120px, 0.7fr) minmax(170px, 1fr);
    }

    .appointment-controls {
        grid-column: 2 / -1;
        justify-items: start;
    }

    .appointment-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        display: block;
    }

    .auth-visual {
        position: relative;
        height: 270px;
        padding: 24px 20px;
    }

    .auth-visual-copy h1 {
        max-width: 420px;
        font-size: 31px;
    }

    .auth-visual-copy p {
        display: none;
    }

    .auth-content {
        padding: 30px 20px 24px;
    }

    .auth-fields {
        grid-template-columns: 1fr;
    }

    .auth-fields .full {
        grid-column: auto;
    }

    .auth-divider {
        grid-column: auto;
    }

    .sidebar-account {
        display: none;
    }

    .three-fields {
        grid-template-columns: 1fr 1fr;
    }

    .three-fields .form-row:last-child {
        grid-column: 1 / -1;
    }

    .appointment-row {
        width: 100%;
        min-width: 0;
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
    }

    .appointment-row > * {
        min-width: 0;
    }

    .appointment-service,
    .appointment-status,
    .appointment-controls {
        width: 100%;
        grid-column: 2;
        justify-items: start;
    }

    .appointment-status {
        margin-top: 0;
    }

    .appointment-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-visual {
        height: 230px;
    }

    .auth-visual-copy h1 {
        font-size: 27px;
    }

    .auth-heading h2 {
        font-size: 25px;
    }

    .weekday-options {
        grid-template-columns: repeat(4, minmax(45px, 1fr));
    }

    .legal-document h1 {
        font-size: 30px;
    }
}

/* Business identity and categories */
.venue-monogram {
    overflow: hidden;
}

.venue-monogram img,
.business-logo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.booking-page[data-category="barbershop"] .venue-cover {
    background-image: url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1200&q=84");
}

.booking-page[data-category="cosmetology"] .venue-cover {
    background-image: url("https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1200&q=84");
}

.booking-page[data-category="nails"] .venue-cover {
    background-image: url("https://images.unsplash.com/photo-1604654894610-df63bc536371?auto=format&fit=crop&w=1200&q=84");
}

.booking-page[data-category="massage"] .venue-cover {
    background-image: url("https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1200&q=84");
}

.booking-page[data-category="wellness"] .venue-cover {
    background-image: url("https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1200&q=84");
}

.booking-page[data-category="beauty"] .venue-cover {
    background-image: url("https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=1200&q=84");
}

.platform-admin-link {
    display: block;
    margin: 12px 0;
    padding: 11px 12px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
}

.logo-settings {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--line);
}

.business-logo-preview {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 28px;
    font-weight: 850;
}

.logo-settings-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.logo-settings-copy > span {
    color: var(--muted);
    font-size: 12px;
}

.logo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
}

input[type="color"] {
    width: 100%;
    min-height: 46px;
    padding: 5px;
    cursor: pointer;
}

/* Marketing site */
.landing-page {
    background: #ffffff;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-nav > a:not(.button) {
    color: #4c5955;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.landing-hero {
    position: relative;
    min-height: min(720px, calc(100svh - 180px));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #ffffff;
    background-color: #24312e;
    background-image: url("https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=2000&q=88");
    background-position: center 45%;
    background-size: cover;
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 28, 25, 0.62);
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0 58px;
}

.hero-kicker {
    margin-bottom: 12px;
    color: #bce0d7;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin-bottom: 14px;
    font-size: 76px;
    line-height: 0.98;
    letter-spacing: 0;
}

.landing-hero p {
    max-width: 680px;
    margin-bottom: 28px;
    color: #eef5f3;
    font-size: 20px;
    line-height: 1.5;
}

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

.hero-actions .button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.hero-primary {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.hero-primary:hover {
    color: #ffffff;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.hero-secondary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.72);
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 38px;
    color: #dce8e5;
    font-size: 12px;
    font-weight: 700;
}

.hero-facts span {
    padding-left: 14px;
    border-left: 3px solid #ef6847;
}

.business-types,
.connection-section,
.self-service-band {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.business-types {
    padding: 74px 0 82px;
}

.landing-section-head {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 32px;
}

.landing-section-head h2,
.connection-copy h2,
.self-service-band h2 {
    margin-bottom: 0;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0;
}

.landing-section-head p,
.connection-copy > p,
.self-service-band p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.type-grid article {
    min-height: 130px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.type-grid strong {
    font-size: 17px;
}

.type-grid span {
    color: var(--muted);
    font-size: 13px;
}

.connection-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
    gap: 80px;
    align-items: start;
    padding: 76px 0;
    border-top: 1px solid var(--line);
}

.connection-copy > p {
    margin: 18px 0 30px;
}

.connection-steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.connection-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.connection-steps li > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.connection-steps div {
    display: grid;
    gap: 4px;
}

.connection-steps small {
    color: var(--muted);
}

.lead-form {
    padding: 28px;
    background: #f5f7f6;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.lead-form .button {
    width: 100%;
    margin-top: 8px;
}

.self-service-band {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 78px;
    padding: 38px 42px;
    color: #ffffff;
    background: #24312e;
    border-radius: 8px;
}

.self-service-band .eyebrow {
    color: #9dd1c5;
}

.self-service-band p {
    max-width: 640px;
    margin-top: 12px;
    color: #cfdad7;
}

.self-service-band .button {
    flex: 0 0 auto;
    text-decoration: none;
    background: #ef6847;
    border-color: #ef6847;
}

.landing-footer {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px max(24px, calc((100vw - 1180px) / 2));
    border-top: 1px solid var(--line);
}

.landing-footer > div {
    display: flex;
    gap: 20px;
}

.landing-footer > div a,
.landing-footer > a {
    color: var(--muted);
    font-size: 12px;
}

/* Platform operations */
.platform-page {
    background: #f3f5f4;
}

.platform-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(24px, calc((100vw - 1240px) / 2));
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.platform-header-actions {
    display: flex;
    gap: 8px;
}

.platform-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 38px auto 70px;
}

.platform-title-row,
.platform-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.platform-title-row h1 {
    margin-bottom: 7px;
    font-size: 32px;
}

.platform-title-row p,
.platform-section-head p {
    margin-bottom: 0;
    color: var(--muted);
}

.platform-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 28px 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.platform-metrics article {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 20px;
    border-right: 1px solid var(--line);
}

.platform-metrics article:last-child {
    border-right: 0;
}

.platform-metrics span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.platform-metrics strong {
    font-size: 28px;
}

.platform-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.platform-tabs button {
    min-height: 44px;
    padding: 0 17px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    font-weight: 750;
    cursor: pointer;
}

.platform-tabs button.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.platform-tab-badge {
    min-width: 20px;
    display: inline-grid;
    place-items: center;
    margin-left: 5px;
    padding: 2px 5px;
    color: #ffffff;
    background: var(--danger);
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.4;
}

.platform-section-head {
    margin-bottom: 15px;
}

.platform-section-head h2 {
    margin-bottom: 5px;
    font-size: 21px;
}

.platform-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.platform-list > .empty {
    margin: 0;
    padding: 26px 20px;
    background: #ffffff;
    border: 0;
    border-radius: 0;
}

.platform-row {
    display: grid;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.platform-row:last-child {
    border-bottom: 0;
}

.lead-row {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.45fr) 150px;
}

.business-row {
    grid-template-columns: minmax(260px, 1fr) repeat(3, 82px) auto;
}

.platform-row-main,
.lead-contact,
.business-stat {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.platform-row-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.platform-row-main > span,
.platform-row-main small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
}

.lead-contact a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 750;
}

.business-stat {
    justify-items: center;
}

.business-stat strong {
    font-size: 20px;
}

.business-stat span {
    color: var(--muted);
    font-size: 10px;
}

.lead-status {
    padding: 4px 7px;
    border-radius: 5px;
    color: #80520c;
    background: #fff3d8;
    font-size: 10px;
    font-weight: 800;
}

.lead-status.contacted {
    color: #1c5a7a;
    background: #e5f4fb;
}

.lead-status.connected {
    color: #027a48;
    background: #ecfdf3;
}

.lead-status.rejected {
    color: #7b4747;
    background: #f8eaea;
}

.system-health {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 750;
}

.system-health i {
    width: 9px;
    height: 9px;
    background: #269376;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #def1eb;
}

.platform-system-alert {
    margin-bottom: 16px;
    padding: 15px 17px;
    color: #70480b;
    background: #fff5dc;
    border: 1px solid #ead29b;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.platform-system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.platform-system-grid article {
    min-width: 0;
    min-height: 132px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 20px;
    border-right: 1px solid var(--line);
}

.platform-system-grid article:last-child {
    border-right: 0;
}

.platform-system-grid span,
.platform-system-grid small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 11px;
}

.platform-system-grid span {
    font-weight: 700;
}

.platform-system-grid strong {
    overflow-wrap: anywhere;
    font-size: 24px;
}

.platform-system-grid .system-value-good {
    color: var(--brand-dark);
}

.platform-system-grid .system-value-danger {
    color: var(--danger);
}

.system-events-head {
    margin-top: 30px;
}

.system-event-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.success-empty {
    color: var(--brand-dark);
}

@media (max-width: 900px) {
    .landing-section-head,
    .connection-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .platform-metrics article:nth-child(2) {
        border-right: 0;
    }

    .platform-metrics article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

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

    .platform-system-grid article:nth-child(2) {
        border-right: 0;
    }

    .platform-system-grid article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .lead-row,
    .business-row {
        grid-template-columns: 1fr 1fr;
    }

    .business-row .platform-row-main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .landing-header {
        min-height: 62px;
        padding: 9px 16px;
    }

    .landing-nav > a:not(.button) {
        display: none;
    }

    .landing-hero {
        min-height: calc(100svh - 135px);
        background-position: 58% center;
    }

    .landing-hero-content {
        width: min(100% - 32px, 1180px);
        padding: 70px 0 34px;
    }

    .landing-hero h1 {
        font-size: 50px;
    }

    .landing-hero p {
        font-size: 17px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        justify-content: center;
    }

    .hero-facts {
        gap: 12px;
        margin-top: 26px;
    }

    .business-types,
    .connection-section,
    .self-service-band {
        width: calc(100% - 32px);
    }

    .business-types,
    .connection-section {
        padding: 52px 0;
    }

    .landing-section-head h2,
    .connection-copy h2,
    .self-service-band h2 {
        font-size: 29px;
    }

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

    .type-grid article {
        min-height: 104px;
    }

    .lead-form {
        padding: 20px;
    }

    .landing-page .lead-form .split-fields {
        grid-template-columns: 1fr;
    }

    .self-service-band {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 52px;
        padding: 28px 22px;
    }

    .self-service-band .button {
        text-align: center;
    }

    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 16px;
    }

    .platform-header {
        align-items: flex-start;
        padding: 12px 16px;
    }

    .platform-header-actions .button:first-child {
        display: none;
    }

    .platform-shell {
        width: calc(100% - 32px);
        margin-top: 26px;
    }

    .platform-title-row,
    .platform-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .platform-metrics article {
        min-height: 94px;
        padding: 14px;
    }

    .lead-row,
    .business-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .business-row .platform-row-main {
        grid-column: auto;
    }

    .system-event-row {
        grid-template-columns: 1fr;
    }

    .business-stat {
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: baseline;
    }

    .logo-settings {
        align-items: flex-start;
    }
}

/* Workspace and booking polish */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ui-icon,
.nav-icon,
.secure-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.admin-v2 {
    --admin-bg: #edf1ef;
    --admin-ink: #16211e;
    --admin-muted: #64716c;
    --admin-line: #d5ded9;
    --admin-deep: #1c2c28;
    --admin-green: #1b7869;
    --admin-coral: #d46049;
    --admin-amber: #bd8125;
    --admin-blue: #347b91;
    background: var(--admin-bg);
}

.admin-v2 .admin-shell {
    grid-template-columns: 248px minmax(0, 1fr);
}

.admin-v2 .admin-sidebar {
    padding: 22px 16px 18px;
    color: #eef5f2;
    background: var(--admin-deep);
    border-right-color: #243833;
}

.admin-v2 .admin-brand {
    color: #ffffff;
}

.admin-v2 .admin-brand .product-logo {
    color: #1d2926;
    background: #f0bf5b;
}

.admin-v2 .business-switcher {
    border-color: rgba(231, 242, 238, 0.14);
}

.admin-v2 .business-switcher label {
    color: #93aaa4;
}

.admin-v2 .business-switcher select {
    color: #f7faf9;
    background-color: #2a403a;
    border-color: #395149;
}

.admin-v2 .admin-nav-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    color: #bdcbc7;
    border-radius: 7px;
}

.admin-v2 .admin-nav-item:hover {
    color: #ffffff;
    background: #263a35;
}

.admin-v2 .admin-nav-item.active {
    color: #163b34;
    background: #f2f7f5;
    box-shadow: inset 3px 0 var(--admin-green);
}

.admin-v2 .admin-nav-label {
    color: #718982;
}

.admin-v2 .nav-icon {
    width: 17px;
    height: 17px;
    color: #7fa39a;
}

.admin-v2 [data-admin-view="calendar"] .nav-icon,
.admin-v2 [data-admin-view="services"] .nav-icon {
    color: #70a9ba;
}

.admin-v2 [data-admin-view="clients"] .nav-icon,
.admin-v2 [data-admin-view="staff"] .nav-icon {
    color: #d2a24f;
}

.admin-v2 [data-admin-view="business"] .nav-icon {
    color: #df7d69;
}

.admin-v2 .admin-nav-item.active .nav-icon {
    color: currentColor;
}

.admin-v2 .sidebar-help {
    color: #edf4f1;
    background: #263a35;
    border-color: #3a504a;
}

.admin-v2 .sidebar-help > span,
.admin-v2 .sidebar-account span {
    color: #8fa49e;
}

.admin-v2 .sidebar-help .text-button,
.admin-v2 .platform-admin-link {
    color: #94cec2;
}

.admin-v2 .sidebar-account {
    color: #f4f8f6;
}

.admin-v2 .sidebar-account .danger-text {
    color: #f39a89;
}

.admin-v2 .admin-content {
    max-width: 1520px;
    padding: 30px 38px 60px;
}

.admin-v2 .admin-topbar {
    min-height: 76px;
    margin-bottom: 20px;
}

.admin-v2 .admin-topbar h1 {
    font-size: 28px;
    line-height: 1.08;
}

.admin-v2 .admin-heading .eyebrow {
    font-size: 10px;
}

.admin-v2 .admin-topbar-actions {
    padding: 4px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(213, 222, 217, 0.9);
    border-radius: 8px;
}

.admin-v2 .button,
.admin-v2 .notification-button,
.admin-v2 .top-public-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.admin-v2 .top-appointment-button {
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 6px;
    font-size: 11px;
}

.admin-v2 .notification-button,
.admin-v2 .top-public-link {
    border-color: transparent;
    background: transparent;
}

.admin-v2 .notification-button:hover,
.admin-v2 .notification-button[aria-expanded="true"],
.admin-v2 .top-public-link:hover:not(:disabled) {
    border-color: transparent;
    background: #edf4f1;
}

.admin-v2 .metric-strip {
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.admin-v2 .metric {
    min-height: 100px;
    padding: 18px 19px;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-top: 3px solid var(--admin-green);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(26, 44, 39, 0.04);
}

.admin-v2 .metric:nth-child(2) {
    border-top-color: var(--admin-coral);
}

.admin-v2 .metric:nth-child(3) {
    border-top-color: var(--admin-blue);
}

.admin-v2 .metric:nth-child(4) {
    border-top-color: var(--admin-amber);
}

.admin-v2 .metric:last-child {
    border-right: 1px solid var(--admin-line);
}

.admin-v2 .metric strong {
    font-size: 32px;
}

.admin-v2 .setup-band {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: #24312e;
    border: 1px solid #354640;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 37, 33, 0.09);
}

.admin-v2 .setup-band::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: #efb94e;
}

.admin-v2 .workspace-section {
    border-color: var(--admin-line);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(26, 44, 39, 0.035);
}

.admin-v2 .section-head h2 {
    font-size: 19px;
}

.admin-v2 .appointment-row {
    padding: 14px 10px;
    border-radius: 6px;
}

.admin-v2 .appointment-row:hover {
    background: #f4f8f6;
    box-shadow: inset 3px 0 var(--business-accent);
}

.admin-v2 .appointment-time {
    min-height: 50px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 8px 9px;
    background: #eaf4f1;
    border: 1px solid #d4e6e1;
    border-radius: 6px;
}

.admin-v2 .appointment-time strong {
    font-size: 15px;
}

.admin-v2 .appointment-actions button {
    border: 1px solid transparent;
}

.admin-v2 .appointment-actions button:first-child {
    color: #145f53;
    background: #e6f2ef;
    border-color: #cce3dd;
}

.admin-v2 .client-table-head {
    display: grid;
    grid-template-columns: 42px minmax(150px, 1fr) minmax(210px, 1.4fr) auto 18px;
    gap: 14px;
    padding: 10px 14px;
    color: #87928e;
    background: #f5f7f6;
    border-top: 1px solid var(--admin-line);
    border-bottom: 1px solid var(--admin-line);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-v2 .client-table-head span:nth-child(1) {
    grid-column: 2;
}

.admin-v2 .client-table-head span:nth-child(2) {
    grid-column: 3;
}

.admin-v2 .client-table-head span:nth-child(3) {
    grid-column: 4;
    justify-self: end;
}

.admin-v2 .client-row {
    padding: 13px 14px;
}

.admin-v2 .client-row:hover {
    background: #f4f8f6;
}

.admin-v2 .client-row:nth-child(4n + 1) .avatar {
    color: #8c4b3e;
    background: #f8dfda;
}

.admin-v2 .client-row:nth-child(4n + 2) .avatar {
    color: #315d69;
    background: #dfeef1;
}

.admin-v2 .client-row:nth-child(4n + 3) .avatar {
    color: #6e5728;
    background: #f3e8c9;
}

.admin-v2 .client-row:nth-child(4n) .avatar {
    color: #285f54;
    background: #dceee9;
}

.admin-v2 .catalog-section {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-v2 .catalog-section > .section-head {
    margin-bottom: 16px;
}

.admin-v2 .catalog-editor {
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(26, 44, 39, 0.035);
}

.admin-v2 .catalog-editor summary {
    padding: 14px 16px;
}

.admin-v2 .catalog-editor > form {
    margin: 0;
    padding: 20px 22px;
    background: #f7f9f8;
    border: 0;
    border-top: 1px solid var(--admin-line);
    border-radius: 0;
}

.admin-v2 .admin-drawer {
    width: min(480px, 100vw);
}

.admin-v2 .drawer-head {
    background: #f4f7f5;
}

.admin-v2 .drawer-footer {
    background: #f8faf9;
}

.admin-v2 .admin-drawer-backdrop {
    background: rgba(20, 31, 28, 0.48);
}

/* Public booking surface */
.booking-page {
    background: #edf1ef;
}

.booking-page .public-header {
    color: #f7faf8;
    background: rgba(28, 44, 40, 0.98);
    border-bottom-color: #30463f;
}

.booking-page .product-mark {
    color: #ffffff;
}

.booking-page .product-logo {
    color: #1c2c28;
    background: #f2bf58;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7d6d1;
}

.secure-icon {
    width: 17px;
    height: 17px;
}

.booking-page .public-shell {
    margin-top: 28px;
}

.booking-page .venue,
.booking-page .booking-tool {
    border-color: #d1dbd6;
    box-shadow: 0 16px 42px rgba(24, 42, 37, 0.08);
}

.booking-page .venue-cover {
    border-bottom: 4px solid var(--brand);
}

.booking-page .venue-content {
    padding: 26px;
}

.booking-page .venue-monogram {
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.booking-page .trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, white);
}

.booking-page .trust-row span::before {
    content: "✓";
    font-size: 11px;
    font-weight: 900;
}

.booking-page .booking-main {
    padding: 34px 36px;
}

.booking-page .booking-head {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.booking-page .stepper {
    margin-top: 24px;
}

.booking-page .choice-row {
    border-left: 4px solid transparent;
}

.booking-page .choice-row:hover {
    border-left-color: color-mix(in srgb, var(--brand) 45%, white);
}

.booking-page .choice-row.active {
    border-left-color: var(--brand);
}

.booking-page .choice-check {
    border-width: 2px;
}

.booking-page .booking-summary {
    color: #eef5f2;
    background: #21312d;
    border-left-color: #354942;
}

.booking-page .summary-title {
    color: #ffffff;
}

.booking-page .summary-empty,
.booking-page .summary-note,
.booking-page .summary-list dt {
    color: #aebfba;
}

.booking-page .summary-list > div {
    border-bottom-color: #3a4d47;
}

.booking-page .summary-total dd {
    color: #f3c465;
}

.booking-page .public-footer {
    color: #71807b;
}

@media (max-width: 1080px) {
    .booking-page .booking-summary {
        border-top-color: #354942;
    }
}

@media (max-width: 760px) {
    .admin-v2 {
        padding-top: 62px;
    }

    .admin-v2 .mobile-admin-header {
        color: #ffffff;
        background: var(--admin-deep);
        border-bottom-color: #30443f;
    }

    .admin-v2 .mobile-admin-header .product-mark {
        color: #ffffff;
    }

    .admin-v2 .mobile-admin-header .product-logo {
        color: #1d2926;
        background: #f0bf5b;
    }

    .admin-v2 .mobile-logout-button {
        color: #f2a091;
        background: #263b36;
        border-color: #4d5b57;
    }

    .admin-v2 .admin-sidebar {
        padding: 8px 14px;
        background: #ffffff;
        border-bottom-color: var(--admin-line);
    }

    .admin-v2 .business-switcher select {
        color: var(--admin-ink);
        background: #edf2ef;
        border-color: #dde5e1;
    }

    .admin-v2 .admin-content {
        padding: 20px 14px 34px;
    }

    .admin-v2 .admin-topbar-actions {
        min-width: 112px;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .admin-v2 .top-appointment-button {
        display: none;
    }

    .admin-v2 .metric-strip {
        gap: 8px;
    }

    .admin-v2 .metric {
        min-height: 82px;
        padding: 12px 14px;
        border-right: 1px solid var(--admin-line);
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .metric:nth-child(2),
    .admin-v2 .metric:nth-child(3),
    .admin-v2 .metric:nth-child(4) {
        border-right: 1px solid var(--admin-line);
        border-bottom: 1px solid var(--admin-line);
    }

    .admin-v2 .workspace-section {
        padding: 17px 14px;
    }

    .admin-v2 .client-table-head {
        display: none;
    }

    .admin-v2 .client-row {
        padding: 13px 2px;
    }

    .admin-v2 .catalog-section {
        padding: 0;
    }

    .admin-v2 .catalog-section > .section-head {
        padding: 0 2px;
    }

    .admin-v2 .catalog-editor summary {
        padding: 13px 12px;
    }

    .admin-v2 .catalog-editor > form {
        padding: 16px 14px;
    }

    .admin-v2 .mobile-bottom-nav button {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
    }

    .admin-v2 .mobile-bottom-nav .nav-icon {
        width: 18px;
        height: 18px;
        color: currentColor;
    }
}

@media (max-width: 620px) {
    .booking-page {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .booking-page .public-header {
        min-height: 62px;
    }

    .booking-page .secure-label {
        max-width: none;
        font-size: 11px;
        text-align: left;
    }

    .booking-page .secure-label span {
        max-width: 92px;
        line-height: 1.2;
    }

    .booking-page .venue-cover {
        min-height: 180px;
    }

    .booking-page .venue-content {
        padding: 20px 16px;
    }

    .booking-page .venue-content > p {
        margin-bottom: 16px;
    }

    .booking-page .venue-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .booking-page .venue-facts > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 11px 0;
    }

    .booking-page .venue-facts > div:first-child {
        padding-right: 12px;
    }

    .booking-page .venue-facts > div:nth-child(2) {
        padding-left: 12px;
        border-left: 1px solid var(--line);
    }

    .booking-page .venue-facts > div:last-child {
        display: none;
    }

    .booking-page .venue-facts dd {
        font-size: 12px;
    }

    .booking-page .booking-main {
        padding: 24px 16px 30px;
    }

    .booking-page .booking-head {
        padding-bottom: 18px;
    }

    .booking-page .step-actions {
        position: fixed;
        z-index: 45;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 72px;
        margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #d7dfdb;
        box-shadow: 0 -8px 24px rgba(24, 42, 37, 0.1);
        backdrop-filter: blur(12px);
    }

    .booking-page .step-actions.end .button {
        width: 100%;
    }

    .booking-page .step-actions.end:has(.button:disabled) {
        display: none;
    }

    .booking-page:has(.booking-step[data-step="1"]:not([hidden]) [data-next]:disabled) {
        padding-bottom: 0;
    }

    .booking-page .booking-summary:has(.summary-list[hidden]) {
        display: none;
    }

    .booking-page .booking-summary {
        padding-bottom: 26px;
    }

    .booking-page .public-footer {
        padding-bottom: 12px;
    }
}

@media (max-width: 390px) {
    .booking-page .secure-label span {
        display: none;
    }
}

/* Booking operations: manual appointments, absences, and notifications */
.admin-v2 .admin-topbar-actions,
.admin-v2 .calendar-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-v2 .notification-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #3f4b47;
    background: #fff;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.admin-v2 .notification-button:hover,
.admin-v2 .notification-button[aria-expanded="true"] {
    color: #155f54;
    background: #edf5f2;
    border-color: #9bc2ba;
}

.admin-v2 .notification-button strong {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: var(--admin-coral);
    border-radius: 4px;
    font-size: 10px;
}

.admin-v2 .absence-section {
    max-width: 960px;
}

.admin-v2 .time-off-list {
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .time-off-row {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .time-off-kind {
    width: fit-content;
    padding: 5px 7px;
    color: #315b67;
    background: #e9f1f3;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 850;
}

.admin-v2 .time-off-kind.kind-vacation {
    color: #87561b;
    background: #fff0d8;
}

.admin-v2 .time-off-kind.kind-sick {
    color: #9a4339;
    background: #f9e9e6;
}

.admin-v2 .time-off-kind.kind-break {
    color: #4e5475;
    background: #ececf5;
}

.admin-v2 .time-off-person {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.admin-v2 .time-off-person strong,
.admin-v2 .time-off-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .time-off-person strong {
    color: var(--admin-ink);
    font-size: 12px;
}

.admin-v2 .time-off-person small {
    color: var(--admin-muted);
    font-size: 10px;
}

.admin-v2 .compact-danger {
    min-height: 31px;
    padding: 5px 8px;
}

.admin-v2 .compact-zero-state {
    min-height: 110px;
}

.admin-v2 .calendar-time-off {
    position: absolute;
    z-index: 2;
    right: 9px;
    left: 9px;
    min-height: 28px;
    display: grid;
    align-content: start;
    gap: 2px;
    overflow: hidden;
    padding: 6px 7px;
    color: #3e5861;
    background: #edf2f3;
    border: 1px dashed #8da8af;
    border-radius: 4px;
    pointer-events: none;
}

.admin-v2 .calendar-time-off.kind-vacation {
    color: #79521f;
    background: #fff3df;
    border-color: #d6ad6e;
}

.admin-v2 .calendar-time-off.kind-sick {
    color: #8b463d;
    background: #f9ece9;
    border-color: #d89b93;
}

.admin-v2 .calendar-time-off.kind-break {
    color: #4d5270;
    background: #eeeeF5;
    border-color: #a4a6bd;
}

.admin-v2 .calendar-time-off strong,
.admin-v2 .calendar-time-off span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .calendar-time-off strong {
    font-size: 9px;
}

.admin-v2 .calendar-time-off span {
    font-size: 8px;
}

.admin-v2 .notification-settings {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .notification-settings small {
    color: var(--admin-muted);
    font-size: 10px;
    line-height: 1.45;
}

.admin-v2 .form-inline-message {
    min-height: 17px;
    margin: -5px 0 8px;
    color: var(--admin-coral);
    font-size: 10px;
}

.admin-v2 .appointment-tool-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .appointment-tool-actions:empty {
    display: none;
}

.admin-v2 .appointment-drawer-actions {
    margin-top: 12px;
}

.admin-v2 .notification-drawer-tools {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    background: #f7f8f7;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .notification-list {
    padding-top: 0;
}

.admin-v2 .notification-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 2px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .notification-item.unread {
    background: #f3f8f6;
}

.admin-v2 .notification-state {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    background: #c4ccc9;
    border-radius: 50%;
}

.admin-v2 .notification-item.unread .notification-state {
    background: var(--admin-coral);
}

.admin-v2 .notification-item > div {
    min-width: 0;
}

.admin-v2 .notification-item strong {
    color: var(--admin-ink);
    font-size: 12px;
}

.admin-v2 .notification-item p {
    margin: 5px 0 7px;
    color: #4f5b57;
    font-size: 11px;
    line-height: 1.5;
}

.admin-v2 .notification-item time {
    color: #8b9591;
    font-size: 9px;
}

@media (max-width: 760px) {
    .admin-v2 .admin-topbar-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .admin-v2 .notification-button,
    .admin-v2 .top-public-link {
        min-height: 34px;
        justify-content: center;
    }

    .admin-v2 .notification-button {
        padding: 6px 8px;
        font-size: 9px;
    }

    .admin-v2 .calendar-toolbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-v2 .schedule-filters {
        grid-template-columns: 1fr 1fr;
    }

    .admin-v2 .schedule-filters input {
        grid-column: 1 / -1;
    }

    .admin-v2 .schedule-filters .button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .admin-v2 .time-off-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
    }

    .admin-v2 .time-off-kind {
        grid-column: 1;
    }

    .admin-v2 .time-off-person {
        grid-column: 1;
        grid-row: 2;
    }

    .admin-v2 .time-off-row .danger-action {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .admin-v2 .appointment-tool-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .admin-v2 .calendar-toolbar-actions {
        grid-template-columns: 1fr;
    }

    .admin-v2 .notification-button span {
        font-size: 0;
    }

    .admin-v2 .notification-button span::after {
        content: "События";
        font-size: 9px;
    }
}

/* Staff services and individual weekly schedules */
.admin-v2 .staff-config-fieldset {
    min-width: 0;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .staff-config-fieldset legend {
    padding: 0;
    color: var(--admin-ink);
    font-size: 13px;
    font-weight: 800;
}

.admin-v2 .staff-service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.admin-v2 .staff-service-option {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: var(--admin-ink);
    background: #fff;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    cursor: pointer;
}

.admin-v2 .staff-service-option:has(input:checked) {
    background: #edf6f3;
    border-color: #87b9ae;
}

.admin-v2 .staff-service-option.inactive {
    opacity: 0.58;
}

.admin-v2 .staff-service-option input,
.admin-v2 .staff-day-toggle input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--admin-green);
}

.admin-v2 .staff-service-option span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.admin-v2 .staff-service-option strong,
.admin-v2 .staff-service-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-v2 .staff-service-option strong {
    font-size: 12px;
}

.admin-v2 .staff-service-option small,
.admin-v2 .staff-config-empty {
    color: var(--admin-muted);
    font-size: 11px;
}

.admin-v2 .staff-config-empty {
    grid-column: 1 / -1;
    padding: 12px;
    background: #f1f3f2;
    border-radius: 6px;
}

.admin-v2 .staff-schedule-fields {
    margin-top: 10px;
    border-top: 1px solid var(--admin-line);
}

.admin-v2 .staff-schedule-row {
    min-height: 49px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--admin-line);
}

.admin-v2 .staff-day-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-v2 .staff-day-toggle strong {
    font-size: 12px;
}

.admin-v2 .staff-schedule-times {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(96px, 1fr) 12px minmax(96px, 1fr);
    align-items: center;
    gap: 7px;
}

.admin-v2 .staff-schedule-times input {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
}

.admin-v2 .staff-schedule-times span {
    color: var(--admin-muted);
    text-align: center;
}

.admin-v2 .staff-schedule-row.off .staff-schedule-times {
    opacity: 0.42;
}

@media (max-width: 640px) {
    .admin-v2 .staff-service-options {
        grid-template-columns: 1fr;
    }

    .admin-v2 .staff-schedule-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px;
    }

    .admin-v2 .staff-schedule-times {
        grid-template-columns: minmax(82px, 1fr) 8px minmax(82px, 1fr);
        gap: 4px;
    }
}

/* MyZapis Calm Premium refresh */
:root {
    --ink: #17191c;
    --muted: #667085;
    --tertiary: #98a2b3;
    --line: #e4e7ec;
    --line-strong: #d0d5dd;
    --soft: #f7f8fa;
    --panel: #ffffff;
    --brand: #635bff;
    --brand-dark: #554de8;
    --brand-pressed: #4841cc;
    --brand-soft: #f0efff;
    --accent: #18bfa4;
    --accent-soft: #e8faf6;
    --warning: #f79009;
    --danger: #f04438;
    --info: #2e90fa;
    --success: #12b76a;
    --business-brand: #635bff;
    --business-brand-dark: #554de8;
    --business-brand-soft: #f0efff;
    --shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

body {
    font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(99, 91, 255, 0.2);
    outline-offset: 2px;
}

.button {
    min-height: 44px;
    padding: 10px 16px;
    border-color: var(--brand);
    border-radius: 10px;
    background: var(--brand);
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.button:hover:not(:disabled) {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.button:active:not(:disabled) {
    background: var(--brand-pressed);
    border-color: var(--brand-pressed);
}

.button.secondary,
.button.ghost {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
    box-shadow: none;
}

.button.secondary:hover:not(:disabled),
.button.ghost:hover:not(:disabled) {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: #cbc8ff;
}

input,
select,
textarea {
    min-height: 46px;
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.14);
}

label {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.empty,
.admin-v2 .catalog-zero-state,
.admin-v2 .calendar-zero-state,
.schedule-empty {
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
}

.notice,
.admin-notice {
    color: var(--brand-dark);
    background: #ffffff;
    border-color: #cbc8ff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.notice.error,
.admin-notice.error {
    color: #b42318;
    background: #fff5f5;
    border-color: #fecdca;
}

button.confirming {
    min-height: 34px;
    color: #b42318 !important;
    background: #fff5f5 !important;
    border-color: #fecdca !important;
    border-radius: 10px;
}

.danger-text,
.admin-v2 .sidebar-account .danger-text {
    color: #d92d20 !important;
}

.admin-v2 {
    --admin-bg: #f7f8fa;
    --admin-ink: #17191c;
    --admin-muted: #667085;
    --admin-line: #e4e7ec;
    --admin-deep: #17191c;
    --admin-green: #18bfa4;
    --admin-coral: #f04438;
    --admin-amber: #f79009;
    --admin-blue: #635bff;
    --business-accent: #635bff;
    background: var(--admin-bg);
}

.admin-v2 .admin-shell {
    grid-template-columns: 244px minmax(0, 1fr);
}

.admin-v2 .admin-sidebar {
    color: #f9fafb;
    background: #17191c;
    border-right-color: #262a30;
}

.admin-v2 .admin-brand .product-logo,
.admin-v2 .mobile-admin-header .product-logo,
.booking-page .product-logo {
    color: #ffffff;
    background: var(--brand);
}

.admin-v2 .business-switcher {
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-v2 .business-switcher label,
.admin-v2 .admin-nav-label {
    color: #98a2b3;
}

.admin-v2 .business-switcher select {
    color: #ffffff;
    background: #24272d;
    border-color: #343842;
    border-radius: 10px;
}

.admin-v2 .admin-nav {
    gap: 4px;
}

.admin-v2 .admin-nav-item {
    min-height: 42px;
    color: #d0d5dd;
    border-radius: 10px;
    font-weight: 700;
}

.admin-v2 .admin-nav-item:hover {
    color: #ffffff;
    background: #24272d;
}

.admin-v2 .admin-nav-item.active {
    color: #ffffff;
    background: var(--brand);
    box-shadow: none;
}

.admin-v2 .nav-icon,
.admin-v2 [data-admin-view="calendar"] .nav-icon,
.admin-v2 [data-admin-view="services"] .nav-icon,
.admin-v2 [data-admin-view="clients"] .nav-icon,
.admin-v2 [data-admin-view="staff"] .nav-icon,
.admin-v2 [data-admin-view="business"] .nav-icon {
    color: currentColor;
}

.admin-v2 .sidebar-help {
    color: #ffffff;
    background: #24272d;
    border-color: #343842;
    border-radius: 12px;
}

.admin-v2 .sidebar-help > span,
.admin-v2 .sidebar-account span {
    color: #98a2b3;
}

.admin-v2 .sidebar-help .text-button,
.admin-v2 .platform-admin-link,
.admin-v2 .mobile-copy-link,
.admin-v2 .mobile-more-account a,
.text-button {
    color: var(--brand-dark);
}

.admin-v2 .sidebar-help .text-button {
    color: #c7c4ff;
}

.admin-v2 .admin-content {
    max-width: 1500px;
    padding: 32px 40px 64px;
}

.admin-v2 .admin-topbar h1 {
    color: var(--admin-ink);
    font-size: 30px;
    font-weight: 800;
}

.admin-v2 .admin-heading .eyebrow,
.admin-v2 .drawer-head .eyebrow,
.eyebrow {
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-v2 .admin-topbar-actions {
    background: #ffffff;
    border-color: var(--admin-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-v2 .notification-button,
.admin-v2 .top-public-link {
    color: #344054;
    border-radius: 10px;
}

.admin-v2 .notification-button:hover,
.admin-v2 .notification-button[aria-expanded="true"],
.admin-v2 .top-public-link:hover:not(:disabled) {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.admin-v2 .notification-button strong {
    background: var(--danger);
    border-radius: 999px;
}

.admin-v2 .top-appointment-button,
.admin-v2 .button.compact {
    border-radius: 10px;
}

.admin-v2 .metric-strip {
    gap: 12px;
}

.admin-v2 .metric {
    min-height: 104px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-top: 0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-v2 .metric::before {
    width: 36px;
    height: 4px;
    content: "";
    display: block;
    grid-column: 1 / -1;
    background: var(--brand);
    border-radius: 999px;
}

.admin-v2 .metric:nth-child(2)::before {
    background: var(--accent);
}

.admin-v2 .metric:nth-child(3)::before {
    background: var(--info);
}

.admin-v2 .metric:nth-child(4)::before {
    background: var(--warning);
}

.admin-v2 .metric strong,
.admin-v2 .metric:nth-child(1) strong,
.admin-v2 .metric:nth-child(2) strong,
.admin-v2 .metric:nth-child(3) strong,
.admin-v2 .metric:nth-child(4) strong {
    color: var(--admin-ink);
    font-weight: 800;
}

.admin-v2 .setup-band {
    background: #ffffff;
    border-color: var(--admin-line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.admin-v2 .setup-band::before {
    background: var(--brand);
}

.admin-v2 .setup-copy h2 {
    color: var(--admin-ink);
}

.admin-v2 .setup-copy p {
    color: var(--admin-muted);
}

.admin-v2 .setup-copy .eyebrow {
    color: var(--brand);
}

.admin-v2 .setup-progress {
    background: var(--brand-soft);
}

.admin-v2 .setup-progress span {
    background: var(--brand);
}

.admin-v2 .setup-step {
    color: var(--admin-ink);
    background: var(--soft);
    border-color: var(--admin-line);
    border-radius: 12px;
}

.admin-v2 .setup-step:hover {
    border-color: #cbc8ff;
    background: var(--brand-soft);
}

.admin-v2 .setup-step-state {
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid #cbc8ff;
    border-radius: 8px;
}

.admin-v2 .setup-step.complete .setup-step-state {
    color: #ffffff;
    background: var(--success);
    border-color: var(--success);
}

.admin-v2 .setup-step small {
    color: var(--admin-muted);
}

.admin-v2 .workspace-section,
.admin-v2 .catalog-editor {
    background: #ffffff;
    border-color: var(--admin-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-v2 .catalog-section {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-v2 .section-head h2 {
    color: var(--admin-ink);
    font-size: 20px;
    font-weight: 800;
}

.admin-v2 .section-head p,
.admin-v2 .client-main small,
.admin-v2 .client-visit small,
.admin-v2 .catalog-summary-copy small,
.admin-v2 .time-off-person small {
    color: var(--admin-muted);
}

.admin-v2 .appointment-row,
.admin-v2 .client-row {
    border-top-color: var(--admin-line);
    border-radius: 12px;
}

.admin-v2 .appointment-row:hover,
.admin-v2 .client-row:hover {
    background: var(--brand-soft);
    box-shadow: inset 3px 0 var(--brand);
}

.admin-v2 .appointment-time {
    background: var(--brand-soft);
    border-color: #cbc8ff;
    border-radius: 12px;
}

.admin-v2 .appointment-time strong {
    color: var(--brand-dark);
}

.appointment-status,
.status-badge,
.count-badge,
.online-dot,
.admin-v2 .appointment-status {
    min-height: 28px;
    border-radius: 999px;
    font-weight: 800;
}

.admin-v2 .appointment-status,
.appointment-status {
    color: #b54708;
    background: #fffaeb;
}

.admin-v2 .appointment-status.confirmed,
.admin-v2 .status-badge.confirmed {
    color: #027a48;
    background: #ecfdf3;
}

.admin-v2 .appointment-status.completed {
    color: #344054;
    background: #f2f4f7;
}

.admin-v2 .appointment-status.cancelled,
.appointment-status.cancelled {
    color: #b42318;
    background: #fff5f5;
}

.admin-v2 .count-badge,
.count-badge,
.online-dot {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.admin-v2 .client-table-head {
    color: var(--tertiary);
    background: #f9fafb;
    border-color: var(--admin-line);
    border-radius: 12px;
}

.admin-v2 .avatar,
.avatar {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.admin-v2 .client-row:nth-child(4n + 1) .avatar,
.admin-v2 .client-row:nth-child(4n + 2) .avatar,
.admin-v2 .client-row:nth-child(4n + 3) .avatar,
.admin-v2 .client-row:nth-child(4n) .avatar {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.admin-v2 .catalog-color,
.admin-v2 .catalog-color.tone-1,
.admin-v2 .catalog-color.tone-2,
.admin-v2 .catalog-color.tone-3 {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 999px;
}

.admin-v2 .catalog-editor summary {
    border-radius: 16px;
}

.admin-v2 .catalog-editor > form,
.admin-v2 .drawer-head,
.admin-v2 .drawer-footer,
.admin-v2 .logo-settings,
.admin-v2 .client-note-form,
.admin-v2 .notification-drawer-tools {
    background: #f9fafb;
}

.admin-v2 .danger-action {
    min-height: 36px;
    color: #b42318;
    background: #ffffff;
    border-color: #fecdca;
    border-radius: 10px;
}

.admin-v2 .danger-action:hover {
    background: #fff5f5;
}

.admin-v2 .template-choice {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: #cbc8ff;
    border-radius: 12px;
}

.admin-v2 .template-choice span {
    color: var(--admin-muted);
}

.admin-v2 .template-choice.danger-choice {
    color: #b42318;
    background: #fff5f5;
    border-color: #fecdca;
}

.admin-v2 .admin-drawer {
    width: min(500px, 100vw);
    border-left-color: var(--admin-line);
    box-shadow: -24px 0 60px rgba(16, 24, 40, 0.16);
}

.admin-v2 .drawer-head h2 {
    color: var(--admin-ink);
    font-weight: 800;
}

.admin-v2 .icon-button {
    color: #344054;
    background: #ffffff;
    border-color: var(--admin-line);
    border-radius: 10px;
}

.admin-v2 .icon-button:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.admin-v2 .segmented-control {
    background: #f2f4f7;
    border-radius: 10px;
}

.admin-v2 .segmented-control button {
    border-radius: 8px;
}

.admin-v2 .segmented-control button.active {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.admin-v2 .calendar-column-head.today {
    box-shadow: inset 0 3px 0 var(--brand);
}

.admin-v2 .calendar-now-line,
.admin-v2 .calendar-now-line::before {
    background: var(--danger);
}

.admin-v2 .calendar-appointment {
    color: #344054;
    background: var(--brand-soft);
    border-left-color: var(--brand);
    border-radius: 10px;
}

.admin-v2 .calendar-appointment.confirmed {
    color: #027a48;
    background: #ecfdf3;
    border-left-color: var(--success);
}

.admin-v2 .calendar-appointment.completed {
    color: #344054;
    background: #f2f4f7;
    border-left-color: #98a2b3;
}

.admin-v2 .calendar-appointment.cancelled {
    color: #b42318;
    background: #fff5f5;
    border-left-color: var(--danger);
}

.admin-v2 .time-off-kind,
.admin-v2 .calendar-time-off {
    border-radius: 10px;
}

.slug-input {
    border-color: var(--line);
    border-radius: 10px;
}

.slug-input:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.14);
}

.slug-input span {
    background: #f9fafb;
    border-right-color: var(--line);
}

.booking-page {
    background: var(--soft);
    overflow-anchor: none;
}

.booking-page .public-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px);
}

.booking-page .product-mark {
    color: var(--ink);
}

.secure-label {
    color: var(--muted);
}

.booking-page .public-shell {
    width: min(1180px, calc(100% - 48px));
}

.booking-page .venue,
.booking-page .booking-tool {
    border-color: var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.booking-page .venue-cover {
    border-bottom-color: var(--business-brand);
}

.booking-page .venue-monogram {
    border-radius: 16px;
    box-shadow: 0 0 0 4px var(--business-brand-soft);
}

.booking-page .trust-row span {
    color: var(--business-brand-dark);
    background: var(--business-brand-soft);
    border-color: color-mix(in srgb, var(--business-brand) 24%, white);
    border-radius: 999px;
}

.booking-page .booking-head {
    border-bottom-color: var(--line);
}

.booking-page .step-count {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #cbc8ff;
    border-radius: 999px;
}

.booking-page .stepper span {
    border-radius: 10px;
}

.booking-page .stepper li.active span,
.booking-page .stepper li.done span {
    background: var(--brand);
}

.booking-page .stepper li.active,
.booking-page .stepper li.done {
    color: var(--brand-dark);
}

.booking-page .stepper li.done::after {
    background: var(--brand);
}

.booking-page .choice-row {
    min-height: 72px;
    border-color: var(--line);
    border-left-width: 1px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.booking-page .choice-row:hover {
    background: #ffffff;
    border-color: #cbc8ff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.booking-page .choice-row.active {
    background: var(--brand-soft);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.booking-page .choice-price {
    color: var(--brand-dark);
}

.booking-page .choice-check {
    color: transparent;
    background: #ffffff;
    border-color: #cbc8ff;
    border-radius: 999px;
}

.booking-page .choice-row.active .choice-check {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.date-option,
.slot {
    border-color: var(--line);
    border-radius: 12px;
}

.date-option.active,
.slot.active {
    background: var(--brand);
    border-color: var(--brand);
}

.slot {
    color: var(--brand-dark);
    background: #ffffff;
}

.slot:hover {
    background: var(--brand-soft);
    border-color: #cbc8ff;
}

.booking-summary {
    background: #ffffff;
    border-left-color: var(--line);
}

.booking-page .booking-summary {
    color: var(--ink);
    background: #ffffff;
    border-left-color: var(--line);
}

.booking-page .summary-title {
    color: var(--ink);
}

.booking-page .summary-empty,
.booking-page .summary-note,
.booking-page .summary-list dt {
    color: var(--muted);
}

.booking-page .summary-list > div {
    border-bottom-color: var(--line);
}

.booking-page .summary-total dd,
.summary-total dd {
    color: var(--brand-dark);
}

.success-icon {
    background: var(--success);
}

.success-view {
    scroll-margin-top: 96px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.booking-page:has(.venue[hidden]) .public-shell {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    margin-top: 72px;
}

.booking-page:has(.booking-summary[hidden]) .booking-tool {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
}

.register-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.register-progress li {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.register-progress span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.register-progress small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-progress li.active,
.register-progress li.done {
    color: var(--brand-dark);
}

.register-progress li.active span,
.register-progress li.done span {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.register-step[hidden] {
    display: none !important;
}

.register-step.auth-fields {
    align-items: start;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.register-preview {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: var(--brand-soft);
    border: 1px solid #cbc8ff;
    border-radius: 12px;
}

.register-preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.register-preview strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--brand-dark);
    font-size: 18px;
}

.register-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.register-actions .button {
    min-width: 150px;
}

.success-hero {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 22px;
}

.success-view h2 {
    margin: 2px 0 8px;
    font-size: 32px;
    line-height: 1.1;
}

.success-view p {
    max-width: 560px;
    color: var(--muted);
}

.success-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.success-details div {
    min-width: 0;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.success-details dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.success-details dd {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.success-actions {
    align-items: stretch;
}

.success-actions .button {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

@media (max-width: 760px) {
    .admin-v2 .mobile-admin-header {
        color: #ffffff;
        background: #17191c;
        border-bottom-color: #262a30;
    }

    .admin-v2 .mobile-logout-button {
        color: #ffffff;
        background: #24272d;
        border-color: #343842;
        border-radius: 10px;
    }

    .admin-v2 .admin-sidebar {
        background: #ffffff;
        border-bottom-color: var(--admin-line);
    }

    .admin-v2 .business-switcher select {
        color: var(--admin-ink);
        background: #ffffff;
        border-color: var(--admin-line);
    }

    .admin-v2 .admin-content {
        padding: 22px 16px 34px;
    }

    .admin-v2 .admin-topbar h1 {
        font-size: 24px;
    }

    .admin-v2 .workspace-section,
    .admin-v2 .catalog-editor {
        border-radius: 14px;
    }

    .admin-v2 .admin-drawer {
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -20px 48px rgba(16, 24, 40, 0.16);
    }

    .admin-v2 .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.96);
        border-top-color: var(--admin-line);
        box-shadow: 0 -12px 28px rgba(16, 24, 40, 0.08);
        backdrop-filter: blur(14px);
    }

    .admin-v2 .mobile-bottom-nav button {
        color: #667085;
        border-radius: 10px;
        border-top: 0;
    }

    .admin-v2 .mobile-bottom-nav button.active {
        color: var(--brand-dark);
        background: var(--brand-soft);
        border-top-color: transparent;
    }

    .admin-v2 .mobile-more-menu {
        background: var(--soft);
    }

    .admin-v2 .mobile-more-head,
    .admin-v2 .mobile-more-business,
    .admin-v2 .mobile-more-section,
    .admin-v2 .mobile-more-account {
        background: #ffffff;
        border-color: var(--admin-line);
    }

    .admin-v2 .mobile-management-item {
        box-shadow: none;
    }

    .admin-v2 .mobile-management-item.tone-blue,
    .admin-v2 .mobile-management-item.tone-amber,
    .admin-v2 .mobile-management-item.tone-coral,
    .admin-v2 .mobile-management-item.tone-green {
        box-shadow: none;
    }

    .admin-v2 .mobile-management-meta b {
        color: var(--brand-dark);
        background: var(--brand-soft);
        border-radius: 999px;
    }
}

@media (max-width: 620px) {
    .booking-page .public-header {
        color: var(--ink);
        background: rgba(255, 255, 255, 0.96);
        border-bottom-color: var(--line);
    }

    .booking-page .venue,
    .booking-page .booking-tool {
        border-radius: 0;
    }

    .booking-page .step-actions {
        background: rgba(255, 255, 255, 0.97);
        border-top-color: var(--line);
    }

    .booking-page .step-actions .button {
        min-height: 50px;
    }

    .success-view {
        margin: 28px auto;
        padding: 88px 16px 24px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .booking-page:has(.venue[hidden]) .public-shell {
        margin-top: 54px;
    }

    .register-progress {
        gap: 6px;
    }

    .register-progress li {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 5px;
        text-align: center;
    }

    .register-step.auth-fields {
        padding: 16px;
        border-radius: 14px;
    }

    .register-actions {
        margin-top: 16px;
    }

    .register-actions .button {
        flex: 1 1 0;
        min-width: 0;
    }

    .success-hero {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .success-view h2 {
        font-size: 28px;
    }

    .success-details {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}
