* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 14px/1.6 var(--font); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: var(--primary); text-decoration: none; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 28px; line-height: 1.35; letter-spacing: -.5px; }
h2 { font-size: 19px; line-height: 1.5; }
h3 { font-size: 16px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100dvh; }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 26px 17px 20px; border-right: 1px solid var(--border); background: #F0F5F1; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 10px 33px; }
.brand img { width: 40px; height: 40px; }
.brand strong { font-size: 20px; display: block; letter-spacing: .6px; }
.brand small { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; }
.nav-label { color: var(--muted); font-size: 11px; margin: 22px 15px 10px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 13px 16px; margin-bottom: 5px; border-radius: var(--radius-sm); color: #50655B; font-weight: 500; }
.nav-item.active { color: var(--primary); background: #DCEBE2; font-weight: 700; }
.nav-item:hover { background: #E2ECE5; }
.sidebar-bottom { margin-top: auto; padding: 16px 10px 0; }
.help-note { border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); font-size: 12px; }
.help-note strong { color: var(--ink); display: block; margin-bottom: 5px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 34px; background: var(--surface); border-bottom: 1px solid var(--border); }
.store-label { display: flex; align-items: center; gap: 12px; }
.store-label .icon-box { background: var(--mint); }
.store-label strong { font-size: 14px; }
.store-label small { color: var(--muted); display: block; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip span { width: 34px; height: 34px; background: var(--peach); color: #785538; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.user-chip small { display: block; font-size: 10px; color: var(--muted); }
.demo-chip { background: #EDF3F0; color: var(--primary); border: 1px solid var(--border); border-radius: 20px; padding: 5px 11px; font-size: 11px; white-space: nowrap; }
.main-content { max-width: 1580px; padding: 30px 34px 48px; margin: auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading p { margin-top: 7px; color: var(--muted); }
.eyebrow { font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--primary); color: white; font-weight: 600; transition: background .15s; white-space: nowrap; }
.btn:hover { background: #1C594E; }
.btn.secondary { background: white; color: var(--ink); border-color: var(--border); }
.btn.secondary:hover { background: var(--mint); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--mint); }
.btn.danger { background: var(--danger); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 12px; }
.icon-btn { border: 0; background: transparent; border-radius: var(--radius-sm); width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.icon-btn:hover { background: var(--mint); color: var(--primary); }
.icon-box { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--background); border-radius: 10px; color: var(--primary); }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.metric { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 19px 21px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: var(--muted); font-size: 12px; }
.metric-value { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.metric-value small { font-size: 12px; font-weight: 400; color: var(--muted); padding-left: 5px; }
.metric-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 21px 23px 16px; }
.panel-heading small { color: var(--muted); }
.panel-body { padding: 0 23px 23px; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; padding: 0 22px 13px; gap: 10px; }
.date-control { display: flex; align-items: center; gap: 8px; }
.date-control input { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: white; color: var(--ink); min-height: 38px; }
.week-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; padding: 0 22px 18px; border-bottom: 1px solid var(--border); }
.day-button { border: 0; background: var(--background); color: var(--muted); padding: 10px 0; border-radius: 9px; min-height: 60px; }
.day-button span { display: block; font-size: 11px; }
.day-button strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.day-button.active { background: var(--primary); color: #D9E8E2; }
.day-button.active strong { color: white; }
.schedule-list { padding: 5px 23px 15px; }
.schedule-row { display: grid; grid-template-columns: 57px minmax(0,1fr); gap: 12px; margin-top: 15px; }
.schedule-time { padding-top: 18px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.appointment { border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 16px; background: #FCFEFD; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.appointment.in_service { border-left-color: #A07738; background: #FFFCF7; }
.appointment.ready { border-left-color: #5D72A5; background: #FAFBFF; }
.appointment.cancelled,.appointment.completed,.appointment.no_show { border-left-color: #ADB9B2; }
.pet-summary { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pet-summary strong { font-size: 14px; }
.pet-summary p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.pet-avatar { width: 47px; height: 47px; border-radius: 14px; background: #F3EDE0; display: inline-flex; flex: 0 0 auto; overflow: hidden; }
.pet-avatar.cat { background: var(--peach); }
.pet-avatar svg { width: 100%; height: 100%; }
.pet-avatar.large { width: 78px; height: 78px; border-radius: 22px; }
.appointment-right { display: flex; align-items: center; gap: 12px; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 7px; font-size: 11px; background: var(--mint); color: var(--primary); white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending { background: #FFF0DC; color: var(--warning); }
.badge.in_service { background: #FFF0DC; color: var(--warning); }
.badge.ready { background: #EBEEF9; color: #435D9A; }
.badge.completed,.badge.cancelled,.badge.no_show { background: #EFF2F0; color: var(--muted); }
.today-note { background: var(--mint); padding: 21px; border-radius: var(--radius); margin-bottom: 19px; }
.today-note .note-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.today-note h3 { font-size: 17px; }
.today-note p { color: #4A695B; font-size: 12px; }
.today-note .note-count { font-size: 30px; font-weight: 700; line-height: 1.4; }
.mini-pet { display: flex; align-items: center; gap: 11px; padding: 15px 20px; border-top: 1px solid var(--border); }
.mini-pet p { color: var(--muted); font-size: 11px; }
.mini-pet button { margin-left: auto; }
.activity-item { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.activity-item small { color: var(--muted); display: block; margin-top: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .field { margin-bottom: 0; }
.search { position: relative; display: flex; align-items: center; max-width: 380px; min-width: 230px; }
.search>svg { position: absolute; left: 13px; color: var(--muted); }
.search input { padding: 11px 44px 11px 43px; border: 1px solid var(--border); border-radius: 9px; width: 100%; min-height: 44px; background: white; }
.search .icon-btn { position: absolute; right: 0; width: 42px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--border); border-radius: 7px; background: white; padding: 8px 13px; color: var(--muted); min-height: 36px; }
.filter-chip.active { background: var(--mint); color: var(--primary); border-color: #BCD6C8; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); background: #F9FBF9; padding: 12px 19px; border-bottom: 1px solid var(--border); }
td { padding: 15px 19px; border-bottom: 1px solid #ECF0ED; vertical-align: middle; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--muted); display: block; font-size: 11px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.pet-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 21px; background: white; }
.pet-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }
.pet-card-top h3 { font-size: 19px; }
.pet-card-top p { font-size: 12px; color: var(--muted); }
.pet-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0 0 17px; font-size: 12px; }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 2px 0 0; }
.pet-note { background: #F6F8F6; padding: 9px 11px; border-radius: 7px; font-size: 11px; color: var(--muted); min-height: 38px; margin-bottom: 15px; }
.card-actions { display: flex; justify-content: space-between; gap: 7px; }
.membership { background: linear-gradient(125deg,#246C5F,#345D4E); color: white; border-radius: 15px; padding: 25px; min-height: 210px; }
.membership small { opacity: .75; }
.membership h3 { font-size: 20px; margin: 17px 0 3px; }
.membership .card-count { font-size: 34px; margin: 9px 0 3px; }
.membership .card-count span { font-size: 12px; }
.member-details { background: white; border: 1px solid var(--border); padding: 14px 20px; border-radius: 0 0 12px 12px; margin-top: -10px; }
.detail-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 14px; }
.detail-row span { color: var(--muted); font-size: 12px; }
.detail-row strong { font-size: 13px; font-weight: 500; text-align: right; }
.card-section { margin-top: 24px; }
.card-section>h2 { margin-bottom: 14px; }
.backdrop { position: fixed; inset: 0; background: #12291E66; display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; backdrop-filter: blur(3px); }
.dialog { background: white; border-radius: 18px; width: min(640px,100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: 0 24px 80px #142C2433; }
.dialog-wide { width: min(860px,100%); }
.dialog>header { display: flex; align-items: center; justify-content: space-between; padding: 17px 24px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.dialog-body { padding: 24px; overflow-y: auto; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal-open { overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; }
.field { margin-bottom: 13px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 6px; }
.field input,.field select,.field textarea { width: 100%; border: 1px solid #D5E0D9; background: white; border-radius: 8px; min-height: 44px; padding: 10px 12px; color: var(--ink); }
.field textarea { resize: none; min-height: 95px; }
.field input[aria-invalid=true] { border-color: var(--danger); }
.field-error { min-height: 16px; display: block; color: var(--danger); font-size: 11px; }
.field-help { color: var(--muted); font-size: 11px; display: block; }
.required { color: var(--danger); }
.form-status { min-height: 23px; color: var(--muted); font-size: 12px; }
.error { color: var(--danger); }
.slot-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 12px 0 18px; max-height: 248px; overflow-y: auto; padding: 4px; }
.slot-button { min-height: 48px; padding: 8px 4px; border: 1px solid var(--border); background: white; border-radius: 8px; color: var(--ink); }
.slot-button small { display: block; color: var(--muted); font-size: 10px; }
.slot-button.selected { background: var(--mint); border-color: var(--primary); color: var(--primary); }
.quote-box { padding: 17px 19px; background: var(--background); border-radius: 10px; margin: 14px 0; }
.quote-box strong { color: var(--primary); }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 8px 0; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.hint { font-size: 12px; color: var(--muted); padding: 13px 15px; background: #F4F7F4; border-radius: 8px; margin: 12px 0; }
.hint.warning { background: #FFF4E6; color: var(--warning); }
.progress-track { display: flex; justify-content: space-between; position: relative; margin: 28px 5px; }
.progress-track::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--border); }
.progress-step { z-index: 1; font-size: 10px; color: var(--muted); text-align: center; }
.progress-step i { display: block; width: 23px; height: 23px; margin: 0 auto 7px; background: #E7EDE9; border-radius: 50%; border: 4px solid white; }
.progress-step.done { color: var(--primary); }
.progress-step.done i { background: var(--primary); }
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-photos figure { margin: 0; }
.report-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.report-photos figcaption { text-align: center; color: var(--muted); font-size: 11px; margin-top: 4px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 14px 20px; display: flex; align-items: center; gap: 12px; background: var(--ink); color: white; border-radius: 10px; box-shadow: 0 8px 30px #142C2433; max-width: min(480px,calc(100vw - 32px)); }
.toast.error { background: var(--danger); color: white; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 45px 20px; color: var(--muted); text-align: center; }
.empty-state h3 { margin-top: 13px; color: var(--ink); }
.empty-state p { margin-top: 7px; font-size: 12px; }
.loading { min-height: 280px; display: grid; place-items: center; color: var(--muted); }
.initial-load { display: grid; place-items: center; min-height: 100dvh; }
.error-state { padding: 32px; border: 1px solid #EDD3D3; background: #FFF7F7; border-radius: 12px; }
.error-state p { margin: 10px 0 20px; color: var(--muted); }
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; background: white; }
.login-story { padding: 70px 8vw; background: #E8F1EB; display: flex; flex-direction: column; justify-content: center; }
.login-story .brand { margin: 0 0 70px; }
.login-story h1 { font-size: 42px; margin-bottom: 24px; }
.login-story>p { font-size: 16px; color: #506C5C; max-width: 440px; }
.login-pets { display: flex; align-items: center; gap: 16px; margin: 45px 0; }
.login-pets .pet-avatar { width: 90px; height: 90px; border-radius: 25px; transform: rotate(-6deg); }
.login-pets .cat { transform: rotate(8deg); }
.login-form { padding: 70px 8vw; display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { font-size: 26px; margin-bottom: 8px; }
.login-form>p { color: var(--muted); margin-bottom: 28px; }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.login-divider { border-top: 1px solid var(--border); margin: 30px 0 0; padding-top: 22px; }
.consumer-shell { max-width: 480px; margin: auto; min-height: 100dvh; background: #F7FAF7; padding-bottom: calc(88px + env(safe-area-inset-bottom)); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.consumer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 23px; background: white; }
.consumer-header .brand { margin: 0; gap: 9px; }
.consumer-header .brand strong { font-size: 19px; }
.consumer-header .brand img { width: 34px; height: 34px; }
.consumer-main { padding: 23px 21px; }
.consumer-hero { border-radius: 19px; background: #DFEEE4; padding: 26px 24px; margin-bottom: 23px; position: relative; overflow: hidden; }
.consumer-hero h1 { font-size: 27px; max-width: 230px; line-height: 1.4; position: relative; z-index: 1; }
.consumer-hero p { color: #547061; font-size: 12px; margin: 10px 0 22px; }
.consumer-hero .pet-avatar { position: absolute; right: -8px; top: 30px; width: 95px; height: 95px; transform: rotate(-12deg); }
.consumer-hero .btn { position: relative; z-index: 1; }
.consumer-section { margin-top: 26px; }
.consumer-section>header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.consumer-pets { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; }
.consumer-pet { display: flex; align-items: center; gap: 11px; padding: 14px; background: white; border: 1px solid var(--border); border-radius: 13px; min-width: 176px; text-align: left; color: var(--ink); }
.consumer-pet small { display: block; font-size: 10px; color: var(--muted); }
.service-item { display: flex; gap: 13px; align-items: center; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 11px; }
.service-item>div:nth-child(2) { flex: 1; }
.service-item p { font-size: 11px; color: var(--muted); margin: 4px 0; }
.service-item .price { color: var(--primary); font-weight: 600; }
.service-item .price small { font-size: 10px; font-weight: 400; }
.consumer-nav { position: fixed; bottom: 0; width: min(480px,100%); background: #FFFFFFFA; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4,1fr); padding: 9px 0 calc(9px + env(safe-area-inset-bottom)); z-index: 20; }
.consumer-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; padding: 7px; }
.consumer-nav a.active { color: var(--primary); font-weight: 700; }
.consumer-order { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin: 15px 0; }
.consumer-order .pet-summary { margin-bottom: 16px; }
.consumer-order .row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.consumer-order .card-actions { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--border); }
.consumer-shell .card-grid { grid-template-columns: 1fr; }
.inline-flex { display: flex; align-items: center; gap: 10px; }
.password-input { display: flex; align-items: center; gap: 6px; }
.password-input input { flex: 1; min-width: 0; }
.discard-warning { margin-bottom: 18px; }
.muted { color: var(--muted); }
.text-small { font-size: 12px; }
.space-top { margin-top: 22px; }
.section-description { color: var(--muted); font-size: 12px; margin: 5px 0 18px; }
@media (max-width: 1200px) { .dashboard-grid { grid-template-columns: 1fr; } .dashboard-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .today-note { margin-bottom: 0; } .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .shell { grid-template-columns: 190px minmax(0,1fr); } .sidebar { padding-left: 10px; padding-right: 10px; } .main-content { padding: 24px 20px; } .topbar { padding: 0 20px; } .metrics { grid-template-columns: repeat(2,1fr); } .topbar .user-chip { display: none; } .appointment-right { flex-direction: column; gap: 7px; } .login-story { padding: 50px 5vw; } .login-form { padding: 50px 5vw; } }
@media (max-width: 760px) { .shell { display: block; } .sidebar { height: auto; position: static; padding: 14px 17px 0; border-right: 0; border-bottom: 1px solid var(--border); } .sidebar .brand { margin: 0 0 12px; } .sidebar nav { display: flex; overflow-x: auto; padding-bottom: 4px; } .nav-item { padding: 9px 12px; white-space: nowrap; font-size: 12px; } .nav-label,.sidebar-bottom { display: none; } .topbar { height: 65px; padding: 0 18px; } .topbar-actions { gap: 5px; } .topbar .demo-chip { display: none; } .main-content { padding: 23px 17px 40px; } h1 { font-size: 25px; } .page-heading { align-items: center; } .page-heading .btn { padding: 9px 12px; font-size: 12px; } .metrics { gap: 10px; } .metric { padding: 15px; } .metric-value { font-size: 25px; } .dashboard-aside { display: block; } .dashboard-aside>.panel { margin-top: 20px; } .card-grid { grid-template-columns: 1fr; } .panel-heading { padding: 18px; } .calendar-nav { padding: 0 15px 12px; } .week-strip { padding: 0 14px 15px; gap: 4px; } .schedule-list { padding: 0 12px 15px; } .schedule-row { grid-template-columns: 40px minmax(0,1fr); gap: 8px; } .schedule-time { font-size: 11px; } .appointment { padding: 12px; gap: 8px; } .appointment .pet-avatar { width: 37px; height: 37px; } .pet-summary { gap: 8px; } .appointment .pet-summary strong { font-size: 12px; } .appointment .pet-summary p { font-size: 10px; } .appointment-right .btn { font-size: 10px; min-height: 32px; padding: 5px 8px; } .login-page { grid-template-columns: 1fr; } .login-story { padding: 30px 25px; } .login-story .brand { margin-bottom: 30px; } .login-story h1 { font-size: 31px; } .login-pets { display: none; } .login-form { padding: 35px 25px; } .backdrop { padding: 12px; align-items: flex-end; } .dialog { max-height: calc(100dvh - 24px); border-radius: 17px; } .dialog>header { padding: 14px 18px; } .dialog-body { padding: 19px; } .form-grid { grid-template-columns: 1fr; } .slot-grid { grid-template-columns: repeat(3,1fr); } .toast { bottom: 90px; right: 16px; } .search { max-width: none; flex: 1; } .toolbar { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none!important; animation: none!important; scroll-behavior: auto!important; } }
