/* Naptic mobile-first UI foundation */
:root {
    color-scheme: dark;

    --app-width: 480px;

    --bg-deep: #071012;
    --bg-surface: #111719;
    --bg-surface-soft: #172123;

    --text-main: #f7f7f8;
    --text-muted: #a7abb3;
    --text-faint: #6f747d;

    --accent: #12c8bd;
    --accent-hot: #19e0d1;
    --accent-soft: rgba(18, 200, 189, 0.18);
    --accent-warm: #ff8a1f;

    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-bg-strong: rgba(255, 255, 255, 0.085);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-highlight: rgba(255, 255, 255, 0.18);

    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.38);
    --shadow-accent: 0 12px 30px rgba(18, 200, 189, 0.24);

    --radius-panel: 16px;
    --radius-control: 12px;
    --bottom-nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="light"] {
    color-scheme: light;

    --bg-deep: #eef4f3;
    --bg-surface: #ffffff;
    --bg-surface-soft: #e5eeec;

    --text-main: #101719;
    --text-muted: #526064;
    --text-faint: #7a8588;

    --accent-soft: rgba(18, 200, 189, 0.16);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(14, 30, 34, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.72);

    --shadow-soft: 0 16px 36px rgba(20, 43, 48, 0.12);
    --shadow-accent: 0 12px 28px rgba(18, 200, 189, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--bg-deep);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

[hidden] {
    display: none !important;
}

body {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 0 calc(var(--bottom-nav-height) + var(--safe-bottom) + 18px);
    position: relative;
    overflow-x: hidden;
    color: var(--text-main);
    font-family: var(--font-system);
    background:
        radial-gradient(circle at 50% -10%, rgba(18, 200, 189, 0.2), transparent 34%),
        linear-gradient(180deg, #15191d 0%, var(--bg-deep) 42%, #050708 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 50% -10%, rgba(18, 200, 189, 0.2), transparent 34%),
        linear-gradient(180deg, #f8fbfb 0%, #eef4f3 46%, #dce8e6 100%);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(14, 30, 34, 0.14);
}

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

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

button {
    cursor: pointer;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    inline-size: 100%;
    max-width: 100%;
    max-inline-size: 100%;
    min-width: 0;
    min-inline-size: 0;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    outline: none;
}

input,
select {
    min-height: 48px;
    padding: 0 14px;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="search"],
input[type="text"] {
    display: block;
    width: 100%;
    inline-size: 100%;
    max-width: 100%;
    max-inline-size: 100%;
    min-width: 0;
    min-inline-size: 0;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}

textarea {
    min-height: 112px;
    padding: 14px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(18, 200, 189, 0.7);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

::placeholder {
    color: var(--text-faint);
}

#app-content {
    width: 100%;
    padding: 18px 14px 0;
}

.auth-screen {
    min-height: 100vh;
    padding-bottom: 28px;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 28px 14px;
}

.brand-block {
    padding: 0 4px;
    text-align: center;
}

.login-icon {
    width: 108px;
    height: 108px;
    margin: 0 auto 20px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 38px rgba(18, 200, 189, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.brand-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-line img {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(18, 200, 189, 0.18);
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    font-size: 32px;
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    font-size: 21px;
    line-height: 1.18;
    letter-spacing: 0;
}

.lead {
    max-width: 320px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.45;
}

.brand-block .lead {
    margin-right: auto;
    margin-left: auto;
}

.lead.compact {
    margin-top: 5px;
    font-size: 14px;
}

.today-hero {
    min-height: 170px;
    margin-top: 22px;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(7, 16, 18, 0.78)),
        radial-gradient(circle at 78% 20%, rgba(18, 200, 189, 0.28), transparent 34%),
        linear-gradient(135deg, #303536, #0b1214 68%);
    box-shadow: var(--shadow-soft);
}

.hero-copy {
    max-width: 320px;
}

.hero-copy p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.42;
}

.date-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 800;
}

.section-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.empty-orbit {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 200, 189, 0.35);
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 24px;
    font-weight: 900;
}

.appointment-card {
    min-height: 122px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: rgba(238, 248, 247, 0.86);
    color: #121719;
    box-shadow: var(--shadow-soft);
}

.time-chip {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    font-size: 16px;
    font-weight: 850;
}

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

.appointment-main h2 {
    margin-top: 2px;
    color: #111719;
}

.appointment-main p {
    margin-top: 4px;
    color: #586165;
    font-size: 14px;
}

.appointment-main .status-pill {
    margin-top: 10px;
}

.appointment-card .btn-compact {
    grid-column: 1 / -1;
    min-height: 44px;
    text-decoration: none;
}

.agenda-hero {
    min-height: 142px;
    margin-top: 22px;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(18, 200, 189, 0.26);
    border-radius: 24px;
    background:
        radial-gradient(circle at 74% 18%, rgba(18, 200, 189, 0.26), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(7, 16, 18, 0.82)),
        var(--bg-surface);
    box-shadow: var(--shadow-soft);
}

.agenda-hero h2 {
    margin-top: 12px;
    font-size: 30px;
}

.agenda-hero p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 14px;
}

.day-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.day-switcher a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--glass-bg);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.day-switcher .current {
    color: var(--accent);
    background: var(--accent-soft);
}

.daily-strip {
    margin-top: 10px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.daily-strip span {
    grid-row: 1 / 3;
    min-width: 42px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 900;
}

.daily-strip strong {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.2;
}

.daily-strip p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.2;
}

.agenda-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 12px;
    position: relative;
    border: 1px solid rgba(18, 200, 189, 0.24);
    border-radius: var(--radius-panel);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
        rgba(8, 17, 19, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.agenda-time {
    width: 52px;
    height: 52px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    font-weight: 900;
}

.agenda-time strong {
    font-size: 14px;
    line-height: 1;
}

.agenda-time span {
    font-size: 11px;
    line-height: 1;
    opacity: 0.86;
}

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

.agenda-main h2 {
    overflow: hidden;
    color: var(--text-main);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-main p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.agenda-main .status-pill {
    margin-top: 9px;
}

.btn-mini {
    grid-column: 1 / -1;
    min-height: 42px;
    text-decoration: none;
    font-size: 15px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.search-panel .btn-secondary {
    min-height: 44px;
}

.guest-create {
    margin-top: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.guest-create summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    list-style: none;
}

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

.guest-create summary strong {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    font-size: 20px;
    line-height: 1;
}

.guest-create[open] summary {
    border-bottom: 1px solid var(--glass-border);
}

.guest-create .stacked-form {
    padding: 14px;
}

.guest-create p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.stacked-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 0;
}

.list-heading a,
.list-heading span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.guest-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    color: var(--text-main);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.guest-open {
    min-height: 72px;
    display: grid;
    grid-template-columns: 54px 1fr 38px;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

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

.guest-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.guest-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-editor {
    margin-top: 22px;
}

.settings-accordion,
.service-create-menu,
.schedule-menu {
    margin-top: 14px;
}

.accordion-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

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

.accordion-summary > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.accordion-summary strong,
.accordion-summary small {
    display: block;
}

.accordion-summary strong {
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.22;
}

.accordion-summary small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.35;
}

.round-plus {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 200, 189, 0.34);
    border-radius: 50%;
    color: #061314;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    box-shadow: var(--shadow-accent);
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
    transition: transform 160ms ease;
}

details[open] > .accordion-summary .round-plus {
    transform: rotate(45deg);
}

.settings-accordion > form,
.service-create-menu > form,
.schedule-menu > form,
.schedule-menu > .schedule-block-list,
.schedule-menu > .form-alert {
    margin-top: 14px;
}

.service-editor p,
.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.service-card.is-archived {
    opacity: 0.68;
}

.service-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.service-summary-button {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-control);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

.service-summary-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-summary-main strong {
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.25;
}

.service-summary-main small {
    max-width: 100%;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-summary-meta span {
    padding: 5px 8px;
    border: 1px solid rgba(18, 200, 189, 0.22);
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 800;
}

.service-summary-action {
    flex: 0 0 42px;
}

.service-summary-button[aria-expanded="true"] .service-summary-action {
    color: #061314;
    background: var(--accent);
}

.service-edit-form {
    margin-top: 2px;
}

.service-delete-form {
    display: flex;
}

.service-delete-form .icon-action {
    height: 100%;
    min-height: 54px;
}

.danger-button {
    border-color: rgba(255, 86, 86, 0.32);
    color: #ff8f8f;
    background: rgba(255, 86, 86, 0.08);
}

.icon-action {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 200, 189, 0.26);
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
}

.icon-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.danger-icon {
    color: #ff8f8f;
    border-color: rgba(255, 86, 86, 0.32);
    background: rgba(255, 86, 86, 0.08);
}

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

.service-card-head h2 {
    margin-top: 8px;
    color: var(--text-main);
    font-size: 20px;
}

.service-card-head strong {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 14px;
}

.service-actions,
.service-archive-form {
    display: flex;
}

.service-archive-form {
    margin-top: -2px;
}

.service-actions .btn-secondary,
.service-archive-form .btn-secondary {
    width: 100%;
}

.service-select-summary {
    display: none;
    padding: 12px;
    border: 1px solid rgba(18, 200, 189, 0.24);
    border-radius: var(--radius-control);
    color: var(--text-muted);
    background: rgba(18, 200, 189, 0.08);
    font-size: 13px;
    line-height: 1.4;
}

.service-select-summary.is-visible {
    display: block;
}

.appointment-form-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.guest-picker {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inline-guest-create {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px dashed rgba(18, 200, 189, 0.32);
    border-radius: var(--radius-control);
    background:
        linear-gradient(180deg, rgba(18, 200, 189, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(18, 200, 189, 0.07);
}

.inline-guest-create h2 {
    color: var(--text-main);
    font-size: 16px;
}

.inline-guest-create p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.picker-selected {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: var(--radius-control);
    background: var(--accent-soft);
}

.picker-selected strong {
    color: var(--text-main);
    font-size: 15px;
}

.picker-selected span {
    color: var(--text-muted);
    font-size: 13px;
}

.picker-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.picker-option {
    width: 100%;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.065);
    text-align: left;
}

.picker-option strong {
    font-size: 15px;
}

.picker-option span,
.picker-empty {
    color: var(--text-muted);
    font-size: 13px;
}

.picker-empty {
    padding: 12px 14px;
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.035);
}

.close-success {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(18, 200, 189, 0.36);
    border-radius: var(--radius-panel);
    background: var(--accent-soft);
    box-shadow: var(--shadow-soft);
}

.close-success p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.close-summary {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(18, 200, 189, 0.26);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 18%, rgba(18, 200, 189, 0.24), transparent 38%),
        var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.close-summary p:not(.eyebrow) {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 14px;
}

.close-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.close-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.close-section p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

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

.uploaded-image {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.055);
}

.uploaded-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.uploaded-image figcaption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px 10px;
}

.uploaded-image strong {
    color: var(--text-main);
    font-size: 12px;
    line-height: 1.2;
}

.uploaded-image span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}

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

.next-repeat-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 10px;
    align-items: end;
}

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

.custom-next-fields p {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 10px 12px;
    border: 1px dashed rgba(18, 200, 189, 0.28);
    border-radius: var(--radius-control);
    background: rgba(18, 200, 189, 0.08);
}

input[type="file"] {
    min-height: auto;
    padding: 12px;
    color: var(--text-muted);
}

input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.guest-avatar,
.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    box-shadow: var(--shadow-accent);
    font-weight: 900;
}

.guest-avatar {
    width: 54px;
    height: 54px;
    font-size: 21px;
}

.guest-info {
    min-width: 0;
}

.guest-info h2 {
    overflow: hidden;
    color: var(--text-main);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-info p,
.guest-info span {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-count {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 900;
}

.profile-panel {
    margin-top: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(18, 200, 189, 0.26);
    border-radius: 24px;
    background:
        radial-gradient(circle at 16% 20%, rgba(18, 200, 189, 0.22), transparent 36%),
        var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.profile-avatar {
    width: 74px;
    height: 74px;
    font-size: 30px;
}

.profile-panel h2 {
    margin-top: 0;
}

.profile-panel p:not(.eyebrow) {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 14px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.quick-actions a {
    text-decoration: none;
}

.quick-actions form {
    min-width: 0;
}

.quick-actions button {
    min-height: 50px;
}

.history-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: rgba(238, 248, 247, 0.88);
    color: #111719;
    box-shadow: var(--shadow-soft);
}

.history-card h2 {
    color: #111719;
    font-size: 19px;
}

.history-card p:not(.eyebrow) {
    margin-top: 6px;
    color: #586165;
    font-size: 14px;
}

body.guest-portal-page {
    padding-bottom: 32px;
}

.guest-login-wrap {
    justify-content: center;
}

.auth-card .muted-copy {
    text-align: center;
}

.guest-portal-content {
    position: relative;
    overflow: hidden;
    padding-top: 18px;
}

.guest-portal-content > *:not(.guest-brand-backdrop) {
    position: relative;
    z-index: 1;
}

.guest-brand-backdrop {
    position: absolute;
    top: -18px;
    right: -14px;
    left: -14px;
    height: 300px;
    overflow: hidden;
    pointer-events: none;
}

.guest-brand-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(145%) contrast(106%);
    opacity: 0.78;
    transform: scale(1.04);
}

.guest-brand-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 16, 18, 0.1) 0%, rgba(7, 16, 18, 0.48) 56%, var(--bg-deep) 100%);
}

.guest-portal-hero {
    margin-top: 18px;
}

.guest-upcoming-card h2 {
    font-size: 24px;
}

.guest-calendar-actions {
    margin-top: 0;
}

.guest-history-card {
    color: var(--text-main);
    background: var(--glass-bg);
    border-color: var(--glass-border);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.guest-history-card h2 {
    color: var(--text-main);
}

.guest-history-card p:not(.eyebrow) {
    color: var(--text-muted);
}

.calendar-panel {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 16% 10%, rgba(18, 200, 189, 0.2), transparent 34%),
        var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.calendar-top {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
}

.calendar-top h2 {
    text-align: center;
    font-size: 18px;
}

.calendar-top a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
}

.calendar-weekdays,
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-top: 14px;
}

.calendar-weekdays span {
    color: var(--text-faint);
    text-align: center;
    font-size: 11px;
    font-weight: 850;
}

.month-grid {
    margin-top: 8px;
}

.month-day {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.month-day strong {
    font-size: 13px;
    line-height: 1;
}

.month-day span {
    min-width: 18px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #061113;
    background: var(--accent);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.month-day i {
    width: 5px;
    height: 5px;
    display: block;
    border-radius: 50%;
    background: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12);
}

.month-day.muted {
    color: var(--text-faint);
    opacity: 0.62;
}

.month-day.blocked {
    border-color: rgba(255, 138, 31, 0.2);
}

.month-day.today {
    border-color: rgba(255, 255, 255, 0.22);
}

.month-day.selected {
    color: #061113;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
}

.day-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-control {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.schedule-control .stacked-form {
    gap: 11px;
}

.schedule-control .field {
    min-width: 0;
}

.schedule-control p,
.muted-copy {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.schedule-time-fields {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.schedule-control input,
.schedule-control select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
}

.schedule-time-fields .field {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.schedule-time-fields input[type="time"] {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    -webkit-appearance: none;
    appearance: none;
}

.schedule-block-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-block-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 138, 31, 0.25);
    border-radius: var(--radius-control);
    background: rgba(255, 138, 31, 0.08);
}

.schedule-block-card > div {
    min-width: 0;
}

.schedule-block-card form {
    justify-self: end;
}

.schedule-block-card strong,
.schedule-block-card span {
    display: block;
    overflow-wrap: anywhere;
}

.schedule-block-card strong {
    color: var(--text-main);
    font-size: 14px;
}

.schedule-block-card span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

.schedule-block-card button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 86, 86, 0.28);
    border-radius: 999px;
    color: #ff9c9c;
    background: rgba(255, 86, 86, 0.1);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.timeline-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: start;
}

.timeline-row time {
    padding-top: 10px;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 850;
}

.timeline-hour-link {
    color: inherit;
    text-decoration: none;
}

.timeline-row-open time {
    color: var(--accent);
}

.timeline-items {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 7px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-empty {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: var(--text-faint);
    font-size: 13px;
}

.timeline-add {
    justify-content: center;
    border: 1px dashed rgba(18, 200, 189, 0.32);
    border-radius: var(--radius-control);
    color: var(--accent);
    background: rgba(18, 200, 189, 0.08);
    text-decoration: none;
    font-weight: 800;
}

.timeline-appointment {
    padding: 10px 12px;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: var(--radius-control);
    color: var(--text-main);
    background: rgba(18, 200, 189, 0.13);
    text-decoration: none;
}

.timeline-block {
    padding: 10px 12px;
    border: 1px solid rgba(255, 138, 31, 0.28);
    border-radius: var(--radius-control);
    color: var(--text-main);
    background: rgba(255, 138, 31, 0.1);
}

.timeline-appointment strong,
.timeline-appointment span,
.timeline-block strong,
.timeline-block span {
    display: block;
}

.timeline-appointment strong,
.timeline-block strong {
    font-size: 14px;
}

.timeline-appointment span,
.timeline-block span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.danger-zone {
    border-color: rgba(255, 86, 86, 0.28);
    background: rgba(255, 86, 86, 0.08);
}

.btn-danger {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 86, 86, 0.36);
    border-radius: var(--radius-control);
    color: #fff;
    background: linear-gradient(135deg, #d63f3f, #ff6969);
    font-size: 15px;
    font-weight: 800;
}

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

.theme-choice button {
    min-height: 46px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    color: var(--text-main);
    background: var(--glass-bg-strong);
    font-weight: 800;
}

.theme-choice button.active {
    border-color: rgba(18, 200, 189, 0.55);
    color: var(--accent);
    background: var(--accent-soft);
}

.admin-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.business-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.business-panel p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.business-profile-card {
    padding: 14px;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: var(--radius-control);
    background: rgba(18, 200, 189, 0.09);
}

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

.business-profile-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.business-profile-card strong {
    margin-top: 6px;
    color: var(--text-main);
    font-size: 18px;
}

.business-profile-card p {
    margin-top: 5px;
}

.settings-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.settings-link-grid a {
    text-decoration: none;
}

.brand-image-preview {
    overflow: hidden;
    border: 1px solid rgba(18, 200, 189, 0.26);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.055);
}

.brand-image-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.brand-image-preview figcaption {
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.brand-image-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-image-actions form {
    width: 100%;
}

.working-hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.working-hour-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.045);
}

.compact-toggle {
    grid-template-columns: 34px 1fr;
    padding: 10px;
}

.compact-toggle input {
    margin-top: 0;
}

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

.notification-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(18, 200, 189, 0.24);
    border-radius: var(--radius-panel);
    color: var(--text-main);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.notification-card.is-failed {
    border-color: rgba(255, 86, 86, 0.32);
    background: rgba(255, 86, 86, 0.08);
}

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

.notification-topline span,
.notification-topline strong {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.notification-topline span {
    color: var(--accent);
    background: var(--accent-soft);
}

.notification-topline strong {
    color: #d8fffb;
    background: rgba(18, 200, 189, 0.16);
}

.notification-card.is-failed .notification-topline strong {
    color: #ffd8d8;
    background: rgba(255, 86, 86, 0.18);
}

.notification-card h2 {
    font-size: 18px;
}

.notification-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.42;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.notification-meta span {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 6px 8px;
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
}

.notification-response {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.04);
}

.notification-response summary {
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.notification-response p {
    padding: 0 12px 12px;
    overflow-wrap: anywhere;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.admin-panel p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.cron-panel {
    gap: 12px;
}

.cron-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cron-info span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cron-info code {
    display: block;
    width: 100%;
    padding: 12px;
    overflow-wrap: anywhere;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    color: #d8fffb;
    background: rgba(0, 0, 0, 0.22);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.45;
}

.cron-info small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.success-alert {
    color: #d8fffb;
    border-color: rgba(18, 200, 189, 0.36);
    background: rgba(18, 200, 189, 0.16);
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.045);
}

.user-row div {
    min-width: 0;
}

.user-row strong,
.user-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-row strong {
    color: var(--text-main);
    font-size: 14px;
}

.user-row span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.user-row em {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

html[data-theme="light"] .today-hero,
html[data-theme="light"] .agenda-hero,
html[data-theme="light"] .close-summary,
html[data-theme="light"] .profile-panel,
html[data-theme="light"] .calendar-panel,
html[data-theme="light"] .credit-panel {
    background:
        radial-gradient(circle at 75% 12%, rgba(18, 200, 189, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .agenda-card,
html[data-theme="light"] .guest-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .search-panel,
html[data-theme="light"] .guest-create,
html[data-theme="light"] .picker-option,
html[data-theme="light"] .picker-empty,
html[data-theme="light"] .uploaded-image,
html[data-theme="light"] .month-day,
html[data-theme="light"] .timeline-appointment {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(14, 30, 34, 0.12);
}

html[data-theme="light"] .agenda-main h2,
html[data-theme="light"] .guest-info h2 {
    color: var(--text-main);
}

html[data-theme="light"] .menu-icon {
    background: rgba(14, 30, 34, 0.06);
}

.credit-panel {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(18, 200, 189, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(18, 200, 189, 0.24), rgba(255, 255, 255, 0.055)),
        rgba(8, 17, 19, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.credit-panel h2 {
    margin-top: 12px;
}

.credit-panel p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.plan-card {
    padding: 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.plan-card.featured {
    border-color: rgba(18, 200, 189, 0.42);
    background:
        linear-gradient(180deg, rgba(18, 200, 189, 0.16), rgba(255, 255, 255, 0.06)),
        var(--glass-bg);
}

.plan-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plan-price {
    margin-top: 14px;
    color: var(--text-main);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 850;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-link {
    display: inline-flex;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 650;
}

.field > input,
.field > textarea,
.field > select {
    align-self: stretch;
    flex: 0 1 auto;
}

@supports (-webkit-touch-callout: none) {
    .field > input,
    .field > textarea,
    .field > select {
        width: -webkit-fill-available;
        max-width: -webkit-fill-available;
    }
}

.toggle-field {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(18, 200, 189, 0.26);
    border-radius: var(--radius-control);
    background: rgba(18, 200, 189, 0.08);
    color: var(--text-main);
}

.toggle-field input {
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 2px auto 0;
    accent-color: var(--accent);
}

.toggle-field strong,
.toggle-field small {
    display: block;
}

.toggle-field strong {
    font-size: 14px;
}

.toggle-field small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.form-alert {
    padding: 12px 14px;
    border: 1px solid rgba(18, 200, 189, 0.32);
    border-radius: var(--radius-control);
    color: #d8fffb;
    background: rgba(18, 200, 189, 0.12);
    font-size: 14px;
    line-height: 1.35;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 2px 2px;
}

.icon-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--glass-bg);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.power-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glass-panel {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    background: var(--glass-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--glass-highlight), transparent 42%);
    opacity: 0.45;
}

.glass-panel > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-control);
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    box-shadow: var(--shadow-accent);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.btn-primary:active {
    transform: scale(0.98);
    filter: brightness(0.94);
    box-shadow: 0 8px 20px rgba(18, 200, 189, 0.18);
}

.btn-secondary {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-control);
    color: var(--text-main);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0;
}

.bottom-menu {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    max-width: var(--app-width);
    height: calc(var(--bottom-nav-height) + var(--safe-bottom));
    padding: 8px 10px calc(8px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    transform: translateX(-50%);
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 11, 14, 0.76);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);
}

html[data-theme="light"] .bottom-menu {
    background: rgba(248, 252, 251, 0.82);
    box-shadow: 0 -14px 34px rgba(20, 43, 48, 0.12);
}

@media (max-width: 430px) {
    :root {
        --bottom-nav-height: 66px;
    }

    #app-content {
        padding-right: 10px;
        padding-left: 10px;
    }

    .bottom-menu {
        padding-right: 6px;
        padding-left: 6px;
    }

    .menu-item {
        min-height: 50px;
        gap: 3px;
        border-radius: 12px;
        font-size: 10px;
    }

    .menu-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    h1 {
        font-size: 29px;
    }

    .app-header {
        gap: 10px;
    }

    .icon-link {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* Final light-mode polish: keep these last so mobile/menu rules cannot override them. */
html[data-theme="light"] .glass-panel,
html[data-theme="light"] .search-panel,
html[data-theme="light"] .guest-create,
html[data-theme="light"] .guest-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .agenda-card,
html[data-theme="light"] .appointment-card,
html[data-theme="light"] .history-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .calendar-panel,
html[data-theme="light"] .close-summary,
html[data-theme="light"] .profile-panel,
html[data-theme="light"] .credit-panel,
html[data-theme="light"] .today-hero,
html[data-theme="light"] .agenda-hero,
html[data-theme="light"] .notification-card,
html[data-theme="light"] .working-hour-row,
html[data-theme="light"] .brand-image-preview {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.76);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
        rgba(225, 245, 243, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 18px 42px rgba(31, 59, 64, 0.13);
    backdrop-filter: blur(20px) saturate(155%);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
}

html[data-theme="light"] .agenda-main h2,
html[data-theme="light"] .appointment-main h2,
html[data-theme="light"] .guest-info h2,
html[data-theme="light"] .history-card h2,
html[data-theme="light"] .profile-panel h2,
html[data-theme="light"] .plan-card h2,
html[data-theme="light"] .calendar-panel h2,
html[data-theme="light"] .close-summary h2,
html[data-theme="light"] .close-section h2 {
    color: #102124;
}

html[data-theme="light"] .agenda-main p,
html[data-theme="light"] .appointment-main p,
html[data-theme="light"] .guest-info p,
html[data-theme="light"] .guest-info span,
html[data-theme="light"] .history-card p:not(.eyebrow),
html[data-theme="light"] .profile-panel p:not(.eyebrow),
html[data-theme="light"] .close-section p,
html[data-theme="light"] .lead,
html[data-theme="light"] .field,
html[data-theme="light"] .feature-list li,
html[data-theme="light"] .timeline-appointment span {
    color: #50686d;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .inline-guest-create,
html[data-theme="light"] .picker-option,
html[data-theme="light"] .picker-empty,
html[data-theme="light"] .uploaded-image,
html[data-theme="light"] .month-day,
html[data-theme="light"] .timeline-appointment,
html[data-theme="light"] .timeline-block,
html[data-theme="light"] .timeline-add,
html[data-theme="light"] .schedule-block-card,
html[data-theme="light"] .daily-strip,
html[data-theme="light"] .user-row,
html[data-theme="light"] .toggle-field,
html[data-theme="light"] .theme-choice button,
html[data-theme="light"] .cron-info code,
html[data-theme="light"] .service-summary-button,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .icon-link,
html[data-theme="light"] .day-switcher a {
    color: #102124;
    border-color: rgba(31, 59, 64, 0.13);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .danger-button {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.08);
}

html[data-theme="light"] .form-alert,
html[data-theme="light"] .close-success {
    color: #123d3e;
    border-color: rgba(18, 200, 189, 0.28);
    background: rgba(18, 200, 189, 0.13);
}

html[data-theme="light"] .bottom-menu {
    border-top-color: rgba(255, 255, 255, 0.78);
    background: rgba(247, 252, 251, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 -14px 34px rgba(31, 59, 64, 0.13);
}

html[data-theme="light"] .menu-icon {
    background: rgba(31, 59, 64, 0.06);
}

html[data-theme="light"] .menu-item.active {
    color: #07998f;
    background: rgba(18, 200, 189, 0.15);
}

html[data-theme="light"] .status-pill,
html[data-theme="light"] .date-pill,
html[data-theme="light"] .guest-count {
    color: #087f78;
    background: rgba(18, 200, 189, 0.14);
}

html[data-theme="light"] .notification-topline strong {
    color: #087f78;
    background: rgba(18, 200, 189, 0.14);
}

html[data-theme="light"] .notification-card.is-failed .notification-topline strong {
    color: #b42318;
    background: rgba(180, 35, 24, 0.1);
}

html[data-theme="light"] {
    --bg-deep: #eaf3f2;
    --bg-surface: #f8fcfb;
    --bg-surface-soft: #dcebea;
    --text-main: #102124;
    --text-muted: #50686d;
    --text-faint: #7d8d91;
    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-bg-strong: rgba(255, 255, 255, 0.74);
    --glass-border: rgba(31, 59, 64, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.86);
    --shadow-soft: 0 18px 42px rgba(31, 59, 64, 0.13);
    --shadow-accent: 0 12px 28px rgba(18, 200, 189, 0.16);
}

html[data-theme="light"] body {
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% -6%, rgba(18, 200, 189, 0.28), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(255, 138, 31, 0.14), transparent 28%),
        linear-gradient(180deg, #fbfefd 0%, #edf7f6 44%, #dcebea 100%);
}

html[data-theme="light"] .glass-panel,
html[data-theme="light"] .search-panel,
html[data-theme="light"] .guest-create,
html[data-theme="light"] .guest-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .agenda-card,
html[data-theme="light"] .appointment-card,
html[data-theme="light"] .history-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .calendar-panel,
html[data-theme="light"] .close-summary,
html[data-theme="light"] .profile-panel,
html[data-theme="light"] .credit-panel,
html[data-theme="light"] .today-hero,
html[data-theme="light"] .agenda-hero,
html[data-theme="light"] .notification-card,
html[data-theme="light"] .working-hour-row,
html[data-theme="light"] .brand-image-preview {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.74);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
        rgba(225, 245, 243, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 18px 42px rgba(31, 59, 64, 0.13);
    backdrop-filter: blur(20px) saturate(155%);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
}

html[data-theme="light"] .glass-panel::before {
    opacity: 0.72;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 48%),
        radial-gradient(circle at 100% 0%, rgba(18, 200, 189, 0.12), transparent 38%);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .inline-guest-create,
html[data-theme="light"] .picker-option,
html[data-theme="light"] .picker-empty,
html[data-theme="light"] .uploaded-image,
html[data-theme="light"] .month-day,
html[data-theme="light"] .timeline-appointment,
html[data-theme="light"] .theme-choice button,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .icon-action,
html[data-theme="light"] .icon-link,
html[data-theme="light"] .day-switcher a,
html[data-theme="light"] .notification-response,
html[data-theme="light"] .notification-meta span {
    color: var(--text-main);
    border-color: rgba(31, 59, 64, 0.13);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .agenda-main h2,
html[data-theme="light"] .appointment-main h2,
html[data-theme="light"] .guest-info h2,
html[data-theme="light"] .history-card h2,
html[data-theme="light"] .profile-panel h2,
html[data-theme="light"] .plan-card h2,
html[data-theme="light"] .calendar-panel h2,
html[data-theme="light"] .close-summary h2,
html[data-theme="light"] .close-section h2 {
    color: var(--text-main);
}

html[data-theme="light"] .agenda-main p,
html[data-theme="light"] .appointment-main p,
html[data-theme="light"] .guest-info p,
html[data-theme="light"] .guest-info span,
html[data-theme="light"] .history-card p:not(.eyebrow),
html[data-theme="light"] .profile-panel p:not(.eyebrow),
html[data-theme="light"] .close-section p,
html[data-theme="light"] .lead,
html[data-theme="light"] .field,
html[data-theme="light"] .feature-list li,
html[data-theme="light"] .timeline-appointment span,
html[data-theme="light"] .timeline-block span,
html[data-theme="light"] .schedule-control p,
html[data-theme="light"] .schedule-block-card span,
html[data-theme="light"] .admin-panel p,
html[data-theme="light"] .user-row span,
html[data-theme="light"] .toggle-field small,
html[data-theme="light"] .muted-copy,
html[data-theme="light"] .brand-image-preview figcaption,
html[data-theme="light"] .notification-card p,
html[data-theme="light"] .notification-response summary {
    color: var(--text-muted);
}

html[data-theme="light"] .form-alert,
html[data-theme="light"] .close-success {
    color: #123d3e;
    border-color: rgba(18, 200, 189, 0.28);
    background: rgba(18, 200, 189, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), var(--shadow-soft);
}

html[data-theme="light"] .form-alert p,
html[data-theme="light"] .close-success p {
    color: #406266;
}

html[data-theme="light"] .bottom-menu {
    border-top-color: rgba(255, 255, 255, 0.78);
    background: rgba(247, 252, 251, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 -14px 34px rgba(31, 59, 64, 0.13);
}

html[data-theme="light"] .guest-brand-backdrop::after {
    background: linear-gradient(180deg, rgba(238, 247, 246, 0.12) 0%, rgba(238, 247, 246, 0.48) 58%, var(--bg-deep) 100%);
}

html[data-theme="light"] .menu-icon {
    color: currentColor;
    background: rgba(31, 59, 64, 0.06);
}

html[data-theme="light"] .menu-item.active {
    color: #07998f;
    background: rgba(18, 200, 189, 0.15);
}

html[data-theme="light"] .status-pill,
html[data-theme="light"] .date-pill,
html[data-theme="light"] .guest-count {
    color: #087f78;
    background: rgba(18, 200, 189, 0.14);
}

html[data-theme="light"] .timeline-empty,
html[data-theme="light"] .calendar-weekdays span,
html[data-theme="light"] .timeline-row time {
    color: var(--text-faint);
}

html[data-theme="light"] .danger-zone {
    border-color: rgba(214, 63, 63, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 241, 0.5)),
        rgba(255, 86, 86, 0.08);
}

.menu-item {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.menu-item span {
    line-height: 1;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: currentColor;
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 850;
}

.menu-item.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.menu-item:active {
    transform: scale(0.96);
}

@media (max-width: 430px) {
    :root {
        --bottom-nav-height: 66px;
    }

    #app-content {
        padding-right: 10px;
        padding-left: 10px;
    }

    .glass-panel {
        padding: 14px;
    }

    .two-column-fields,
    .custom-next-fields,
    .next-repeat-fields,
    .settings-link-grid,
    .time-pair {
        grid-template-columns: 1fr;
    }

    .schedule-block-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .service-card-top {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .service-delete-form .icon-action {
        width: 44px;
        min-width: 44px;
        min-height: 52px;
    }

    .schedule-block-card form {
        justify-self: start;
    }

    .bottom-menu {
        padding-right: 6px;
        padding-left: 6px;
    }

    .menu-item {
        min-height: 50px;
        gap: 3px;
        border-radius: 12px;
        font-size: 10px;
    }

    .menu-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    h1 {
        font-size: 29px;
    }

    .app-header {
        gap: 10px;
    }

    .icon-link {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}
