:root {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #382b32;
    background: #fbf6f3;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #fbf6f3; }
body { font-size: 15px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.admin-frame { min-height: 100vh; }
.login-shell { min-height: 100vh; max-width: 1180px; margin: auto; padding: 52px 34px; display: grid; grid-template-columns: 1fr 430px; gap: 65px; align-items: center; }
.login-intro { padding: 20px; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: #8d536c; color: white; font-size: 26px; margin-bottom: 34px; }
.eyebrow { color: #8d536c; font-size: 11px; font-weight: 800; letter-spacing: .13em; margin: 0 0 10px; text-transform: uppercase; }
.login-intro h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; margin: 0; color: #382b32; }
.login-copy { margin-top: 22px; max-width: 390px; color: #786a71; font-size: 17px; line-height: 1.6; }
.login-footnote { margin-top: 60px; color: #8c7e84; font-size: 12px; }
.login-card { padding: 34px; border: 1px solid #f0e6e3; border-radius: 26px; background: #fff; box-shadow: 0 18px 55px #65445112; }
.login-card h2 { font-size: 24px; margin: 0 0 6px; }
.muted { color: #81737a; line-height: 1.5; font-size: 13px; margin: 0 0 22px; }
.login-card form { display: grid; gap: 15px; }
.login-card label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: #51424a; }
.login-card input, .dashboard-toolbar input, .salon-select { width: 100%; border: 1px solid #eee3e7; border-radius: 12px; background: #fcf9f8; padding: 12px 13px; outline: none; color: #382b32; }
.login-card input:focus, .dashboard-toolbar input:focus, .salon-select:focus { border-color: #ba8ea0; box-shadow: 0 0 0 3px #8d536c16; }
.primary-button { min-height: 48px; border: 0; border-radius: 13px; background: #8d536c; color: #fff; font-weight: 700; padding: 0 18px; margin-top: 5px; }
.primary-button:hover { background: #754158; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.text-button { border: 0; background: transparent; color: #8d536c; font-weight: 700; margin-top: 19px; padding: 0; }
.notice-box { padding: 12px 14px; margin-top: 18px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.notice-error { background: #fff0ef; color: #8f3035; }
.notice-success { background: #ecf8f0; color: #2d6c49; }
.admin-loading { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: #786a71; }
.dashboard-shell { max-width: 1240px; padding: 30px 30px 52px; margin: auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 24px; }
.dashboard-header h1 { margin: 0; font-size: 31px; letter-spacing: -.035em; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.salon-select { min-width: 220px; width: auto; }
.outline-button, .icon-button { background: white; border: 1px solid #eee3e7; border-radius: 12px; color: #57464e; font-weight: 700; min-height: 42px; padding: 0 15px; }
.outline-button:hover, .icon-button:hover { border-color: #ba8ea0; color: #8d536c; }
.icon-button { width: 42px; padding: 0; font-size: 24px; }
.dashboard-toolbar { display: flex; align-items: end; gap: 13px; padding: 16px; border: 1px solid #f0e6e3; background: #fff; border-radius: 18px; }
.dashboard-toolbar > div:first-child { width: 215px; }
.dashboard-toolbar label { display: block; font-size: 11px; color: #786a71; font-weight: 700; margin: 0 0 6px 2px; }
.dashboard-toolbar input { min-height: 42px; }
.date-stepper { display: flex; gap: 7px; align-items: center; }
.refresh-button { margin-left: auto; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 17px 0; }
.metric-card { min-height: 92px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #f0e6e3; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span { color: #81737a; font-size: 12px; }
.metric-card strong { font-size: 23px; letter-spacing: -.03em; }
.agenda-panel { border: 1px solid #f0e6e3; background: #fff; border-radius: 22px; padding: 23px; }
.agenda-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f2e9ec; padding-bottom: 17px; margin-bottom: 2px; }
.agenda-heading h2 { font-size: 18px; margin: 0; }
.agenda-heading .eyebrow { margin-bottom: 6px; text-transform: capitalize; }
.appointment-list { display: grid; }
.appointment-card { display: grid; grid-template-columns: 90px 1fr 130px auto; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid #f2e9ec; }
.appointment-card:last-child { border-bottom: 0; }
.appointment-time { color: #8d536c; font-size: 20px; font-weight: 800; }
.appointment-time small { display: block; color: #988991; font-size: 11px; font-weight: 500; margin-top: 3px; }
.appointment-person { display: grid; gap: 3px; }
.appointment-person strong { font-size: 14px; }
.appointment-person span, .appointment-person a { color: #786a71; font-size: 12px; text-decoration: none; }
.appointment-person a:hover { text-decoration: underline; }
.appointment-meta { display: grid; justify-items: end; gap: 6px; }
.status-pill { border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.status-confirmed { background: #f8edf2; color: #8d536c; }
.status-done { background: #eaf6ee; color: #347351; }
.status-noshow { background: #fff0ed; color: #a44e40; }
.appointment-actions { display: flex; gap: 5px; }
.appointment-actions button { width: 31px; height: 31px; border: 1px solid #efe5e8; background: #fff; border-radius: 9px; color: #786a71; font-weight: 800; }
.appointment-actions button:hover { border-color: #8d536c; color: #8d536c; }
.empty-agenda { min-height: 235px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #786a71; text-align: center; gap: 6px; }
.empty-agenda span { font-size: 34px; color: #bd93a3; margin-bottom: 7px; }
.empty-agenda strong { color: #382b32; }
.empty-agenda p { font-size: 13px; margin: 0; }
.payment-note { border-top: 1px solid #f2e9ec; padding-top: 14px; margin: 3px 0 0; color: #8b7c84; font-size: 11px; line-height: 1.5; }
.manager-tabs { display: flex; gap: 7px; border-bottom: 1px solid #eee3e7; margin-bottom: 17px; }
.manager-tabs button { border: 0; background: transparent; color: #786a71; padding: 11px 14px; font-weight: 700; border-bottom: 2px solid transparent; }
.manager-tabs button.active { color: #8d536c; border-bottom-color: #8d536c; }
.phone-booking-toggle { margin: 4px 0 14px; border-color: #e5cbd6; color: #7b405a; }
.phone-booking-panel { background: #fff; border: 1px solid #eee3e7; border-radius: 18px; padding: 20px; margin: 0 0 20px; box-shadow: 0 8px 24px #49323a0a; }
.phone-booking-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.phone-booking-heading h2 { margin: 0; }
.phone-booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 16px 0; }
.phone-booking-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: #55464d; }
.phone-booking-fields input, .phone-booking-fields select { width: 100%; border: 1px solid #eadfe3; border-radius: 10px; padding: 10px 12px; background: #fff; color: #382b32; }
.phone-slots { display: flex; flex-direction: column; gap: 12px; padding: 13px 0; }
.slot-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.slot-choice { display: flex; flex-direction: column; gap: 4px; min-width: 118px; padding: 10px 12px; border: 1px solid #eadfe3; border-radius: 12px; background: #fff; color: #382b32; text-align: left; }
.slot-choice span { color: #786a71; font-size: 12px; }
.slot-choice.selected { border-color: #8d536c; background: #fbf4f7; box-shadow: 0 0 0 2px #8d536c20; }
.book-phone-button { width: auto; min-width: 240px; }
.employee-filter { max-width: 210px; min-height: 42px; border: 1px solid #eee3e7; border-radius: 12px; background: #fff; color: #57464e; padding: 0 12px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); gap: 9px; overflow-x: auto; padding: 13px 0; }
.week-day { min-height: 170px; background: #fcf9f8; border: 1px solid #f1e8eb; border-radius: 14px; padding: 10px; }
.week-day h3 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin: 1px 0 10px; text-transform: capitalize; }
.week-day h3 span { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: #f1e4ea; color: #8d536c; font-size: 10px; }
.week-appointment { display: grid; gap: 3px; padding: 8px; margin-bottom: 7px; border-left: 3px solid #8d536c; border-radius: 8px; background: #fff; font-size: 10px; overflow-wrap: anywhere; }
.week-appointment time { color: #8d536c; font-size: 12px; font-weight: 800; }
.week-appointment strong { color: #382b32; font-size: 11px; }
.week-appointment span, .week-appointment small { color: #786a71; }
.week-actions { display: flex; gap: 4px; margin-top: 3px; }
.week-actions button { width: 22px; height: 22px; border: 1px solid #eee3e7; background: white; border-radius: 6px; color: #8d536c; font-size: 11px; }
.week-empty { color: #b4a7ad; font-size: 10px; margin: 9px 0; }
.management-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(400px, 1.2fr); gap: 16px; align-items: start; }
.management-card { padding: 22px; background: white; border: 1px solid #f0e6e3; border-radius: 20px; }
.management-card h2 { font-size: 18px; margin: 0 0 7px; }
.management-card .pending-invites-heading { margin-top: 28px; padding-top: 20px; border-top: 1px solid #f2e9ec; }
.invite-link-box { display: grid; gap: 8px; margin-top: 18px; padding: 14px; border: 1px solid #eadfe3; border-radius: 13px; background: #fcf9f8; }
.invite-link-box strong { font-size: 12px; }
.invite-link-box textarea { width: 100%; resize: vertical; border: 1px solid #eee3e7; border-radius: 9px; padding: 9px; color: #57464e; font: 12px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.invite-link-box .muted { margin: 0; font-size: 11px; }
.access-empty { margin-top: 15px; }
.invite-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.invite-card { width: min(100%, 470px); padding: 34px; background: #fff; border: 1px solid #f0e6e3; border-radius: 24px; box-shadow: 0 18px 55px #65445112; }
.invite-card h1 { margin: 0 0 12px; font-size: 29px; letter-spacing: -.035em; }
.invite-card form { display: grid; gap: 15px; }
.invite-card label { display: grid; gap: 7px; color: #51424a; font-size: 12px; font-weight: 700; }
.invite-card input { width: 100%; min-height: 42px; border: 1px solid #eee3e7; border-radius: 10px; background: #fcf9f8; color: #382b32; padding: 9px 11px; }
.invite-card .primary-button { width: 100%; }
.invite-login-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.management-card h3 { font-size: 13px; margin: 20px 0 10px; }
.management-card label { display: grid; gap: 7px; margin: 12px 0; color: #51424a; font-size: 12px; font-weight: 700; }
.management-card input:not([type=checkbox]), .management-card select { width: 100%; min-height: 40px; border: 1px solid #eee3e7; border-radius: 10px; background: #fcf9f8; color: #382b32; padding: 8px 11px; }
.management-card input[type=checkbox] { accent-color: #8d536c; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.management-card .primary-button { width: 100%; }
.field-label { margin-bottom: 16px !important; }
.service-checks { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 4px 12px; margin-bottom: 17px; }
.service-checks label, .check-line { display: flex !important; align-items: center; gap: 9px !important; margin: 8px 0 !important; font-size: 12px !important; }
.shift-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shift-heading h3 { margin-bottom: 8px; }
.shift-heading .muted { margin: 0; font-size: 11px; }
.shift-day { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 9px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid #f2e9ec; }
.shift-day > strong { font-size: 12px; }
.shift-inputs { display: flex; align-items: center; gap: 7px; }
.shift-inputs input { min-height: 34px !important; max-width: 116px; padding: 5px 8px !important; }
.remove-shift, .add-shift { border: 0; background: transparent; color: #8d536c; font-weight: 700; }
.remove-shift { font-size: 18px; }
.add-shift { grid-column: 2; justify-self: start; padding: 4px 0; font-size: 11px; }
.services-management { grid-template-columns: minmax(320px, .9fr) minmax(350px, 1.1fr); }
.time-off-section { margin-top: 24px; padding-top: 13px; border-top: 1px solid #f2e9ec; }
.time-off-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.time-off-form label { min-width: 0; }
.time-off-section > .outline-button { width: 100%; }
.time-off-list { display: grid; gap: 8px; margin-top: 14px; }
.time-off-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #f0e6e3; border-radius: 12px; background: #fcf9f8; }
.time-off-row > div { display: grid; gap: 4px; min-width: 0; }
.time-off-row strong { color: #51424a; font-size: 12px; }
.time-off-row span { color: #786a71; font-size: 11px; overflow-wrap: anywhere; }
.time-off-empty { margin: 12px 0 0; }
.service-list { display: grid; }
.service-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f2e9ec; }
.service-admin-row:last-child { border-bottom: 0; }
.service-admin-row > div { display: grid; gap: 4px; }
.service-admin-row strong { font-size: 13px; }
.service-admin-row span:not(.status-pill) { color: #786a71; font-size: 11px; }
.service-actions { display: flex; align-items: center; gap: 8px; }
.edit-service-button { border: 1px solid #eadfe3; border-radius: 9px; background: #fff; color: #7b405a; padding: 7px 10px; font-size: 11px; font-weight: 700; }
#blazor-error-ui { display: none; }

@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; gap: 20px; padding: 30px 18px; }
    .login-intro { padding: 12px 7px 0; }
    .brand-mark { margin-bottom: 20px; }
    .login-intro h1 { font-size: 39px; }
    .login-copy { margin-top: 14px; font-size: 14px; }
    .login-footnote { margin-top: 20px; }
    .login-card { padding: 25px 20px; }
    .dashboard-shell { padding: 21px 15px 36px; }
    .dashboard-header { align-items: flex-start; flex-direction: column; }
    .dashboard-header h1 { font-size: 26px; }
    .header-actions { width: 100%; }
    .salon-select { flex: 1; min-width: 0; }
    .dashboard-toolbar { flex-wrap: wrap; }
    .dashboard-toolbar > div:first-child { width: 100%; }
    .refresh-button { margin-left: 0; }
    .employee-filter { max-width: none; width: 100%; }
    .metric-row { grid-template-columns: 1fr; }
    .metric-card { min-height: 74px; }
    .agenda-panel { padding: 17px 14px; }
    .appointment-card { grid-template-columns: 59px 1fr auto; gap: 10px; }
    .appointment-meta { grid-column: 2; justify-items: start; display: flex; align-items: center; }
    .appointment-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }
    .appointment-time { font-size: 18px; }
    .week-grid { grid-template-columns: 1fr; overflow: visible; }
    .management-grid, .services-management { grid-template-columns: 1fr; }
    .phone-booking-fields { grid-template-columns: 1fr; }
    .time-off-form { grid-template-columns: 1fr; gap: 0; }
    .book-phone-button { width: 100%; }
    .management-card { padding: 18px; }
    .shift-day { grid-template-columns: 74px 1fr; }
    .shift-inputs { gap: 5px; }
    .shift-inputs input { max-width: 101px; }
}
