:root{font-family:Arial,Helvetica,sans-serif;color:#311621;background:#fcfaf7;--red:#60152b;--blue:#67172e}*{box-sizing:border-box}body{margin:0}.portal-header{background:#111;color:#fff;padding:16px 4%;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:4px solid var(--red)}.portal-brand{display:flex;gap:14px;align-items:center;color:inherit;text-decoration:none;font-weight:bold;letter-spacing:2px}.portal-brand img{width:72px;height:72px;object-fit:contain}.portal-brand small{display:block;font-size:9px;letter-spacing:1px;margin-top:8px;color:#bbb}.header-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}button,input,select,textarea{font:inherit}button,a.button{cursor:pointer;min-height:42px;border:1px solid #dfd2ce;border-radius:6px;background:white;padding:10px 15px;color:inherit;font-size:14px}button:hover{border-color:var(--red)}button:disabled{opacity:.5;cursor:wait}.header-tools button{background:transparent;color:#fff;border-color:#666}.header-tools button[aria-pressed=true]{border-color:#fff;background:#333}#portal{max-width:1450px;margin:auto;padding:34px 4% 80px}h1{font-size:32px;margin:0 0 12px}h2{font-size:21px;margin-top:0}.subtle{color:#705762;line-height:1.6}.tabs{display:flex;gap:10px;border-bottom:1px solid #ddd;padding:20px 0;margin-bottom:24px}.tabs button[aria-selected=true]{background:#481d36;color:white;border-color:#481d36}.panel,.login-card{background:white;border:1px solid #ddd;border-radius:10px;padding:26px}.login-card{max-width:460px;margin:30px auto}.login-card .logo{width:110px;display:block;margin:0 auto 25px}.login-card h1{font-family:Georgia,serif}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:14px;font-weight:bold}input,select,textarea{width:100%;padding:11px;border:1px solid #b99ea3;border-radius:5px;background:#fff;color:#481d36;min-height:44px}textarea{resize:vertical}.primary{background:var(--red);border-color:var(--red);color:white}.login-card .primary{width:100%}.text-button{border:0;background:transparent;color:var(--blue);padding-left:0}.password-wrap{display:flex;gap:7px}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.filters label{font-size:12px;color:#705762;min-width:135px;flex:1}.filters input,.filters select{margin-top:6px}.table-wrap{overflow:auto;border:1px solid #dfd2ce;border-radius:8px;background:#fff}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{text-align:left;background:#f3eae5;font-size:11px;text-transform:uppercase;letter-spacing:.7px;padding:14px}td{padding:13px 14px;border-top:1px solid #e6e8eb;vertical-align:top}tr:hover td{background:#fafbfc}td small{display:block;color:#705762;margin-top:5px}td a{color:var(--blue)}td select{min-width:125px;font-size:12px;padding:7px;min-height:36px}td textarea{min-width:150px;font-size:12px;height:60px}td button{font-size:12px;min-height:36px;padding:8px}.money{font-weight:bold}.badge{display:inline-block;padding:5px 9px;border-radius:20px;background:#f3eae5;font-size:11px}.locked{color:#67172e;font-weight:bold}.prices{display:grid;grid-template-columns:1fr 1fr;gap:20px}.price-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.price-fields .field:last-child{grid-column:1/-1}.invite-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pager{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.empty{text-align:center;padding:40px;white-space:normal;color:#705762}#notice:not(:empty){position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#481d36;color:white;padding:15px 22px;border-radius:8px;max-width:90vw;box-shadow:0 5px 25px #0003;z-index:10}#notice.error{background:#9e1420}:focus-visible{outline:3px solid #9c6777;outline-offset:3px}.invite-panel{margin:22px 0}#logout[hidden]{display:none}@media(max-width:700px){.portal-header{padding:12px 16px;gap:12px;align-items:flex-start}.portal-brand img{width:55px;height:55px}.portal-brand span{font-size:13px}.portal-brand small{max-width:100px;line-height:1.4}.header-tools{max-width:160px;justify-content:flex-end}.header-tools button{font-size:12px;padding:8px;min-height:36px}#portal{padding:24px 16px 70px}h1{font-size:27px}.tabs{gap:6px}.tabs button{padding:10px;font-size:13px;flex:1}.panel,.login-card{padding:20px}.prices,.price-fields,.invite-fields{grid-template-columns:1fr}.price-fields .field:last-child{grid-column:auto}.filters label{min-width:120px}.subtle{font-size:14px}.table-wrap{max-width:100%}}

/* Appointment workspace: compact desktop rows, readable small-screen cards. */
#portal{max-width:1600px;padding-left:clamp(16px,3vw,48px);padding-right:clamp(16px,3vw,48px)}
#content{min-width:0}.tabs{flex-wrap:wrap}.filters{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr)) auto auto;gap:12px}.filters label{min-width:0}.filters input,.filters select{min-width:0;max-width:100%}
.appointments-wrap{overflow:visible}.appointments-table{table-layout:fixed;white-space:normal;line-height:1.5}.appointments-table th:nth-child(1){width:12%}.appointments-table th:nth-child(2){width:21%}.appointments-table th:nth-child(3){width:14%}.appointments-table th:nth-child(4){width:19%}.appointments-table th:nth-child(5){width:17%}.appointments-table th:nth-child(6){width:17%}
.appointments-table td,.appointments-table th{padding:16px 12px;overflow-wrap:anywhere}.appointments-table td{font-size:14px}.appointments-table td a{display:block;margin-top:7px}.appointments-table td small{font-size:12px}.appointment-price{display:block;margin-top:8px}.appointments-table label{display:block;font-size:12px;font-weight:600;color:#705762}.appointments-table label+label{margin-top:12px}.appointments-table select,.appointments-table textarea{display:block;margin-top:5px;min-width:0;width:100%;font-size:14px;min-height:44px}.appointments-table textarea{height:110px}.appointments-table button{display:block;width:100%;min-height:44px;white-space:normal;line-height:1.4;font-size:13px;padding:10px;margin-top:10px}.appointments-table .primary{background:#60152b;color:#fff;border-color:#60152b}.appointments-table .badge{white-space:normal;font-size:11px}.confirmation-state{display:block;color:#17643b;font-weight:600;margin-top:10px}.pager{gap:12px;flex-wrap:wrap}.pager span{text-align:center;font-size:14px}
@media(max-width:1100px){
.filters{grid-template-columns:repeat(4,minmax(0,1fr))}.filters label:first-child{grid-column:span 2}.filters button{align-self:end}
.appointments-wrap{border:0;background:transparent}.appointments-table,.appointments-table tbody{display:block;width:100%}.appointments-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.appointments-table tr{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:20px;background:#fff;border:1px solid #dfd2ce;border-radius:12px;padding:22px;margin-bottom:18px}.appointments-table td{display:block;min-width:0;padding:0;border:0}.appointments-table tr:hover td{background:transparent}.appointments-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#705762;margin-bottom:8px}.appointments-table .appointment-actions{border-top:1px solid #e6e8eb;padding-top:12px}.appointments-table .empty{grid-column:1/-1;padding:24px}.appointments-table textarea{height:110px}
}
@media(max-width:600px){
.portal-header{align-items:center;gap:10px}.portal-brand{gap:8px;letter-spacing:1px}.header-tools{gap:5px;max-width:145px}.portal-brand small{max-width:95px}#portal{padding-top:24px}.tabs button{min-width:0;font-size:12px;padding:10px 8px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters label:first-child,.filters label:nth-child(4){grid-column:1/-1}.filters button{width:100%}.appointments-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:18px;gap:20px 14px}.appointment-customer{grid-column:1/-1;grid-row:1}.appointment-service{grid-column:2;grid-row:2}.appointment-date{grid-column:1;grid-row:2}.appointment-manage,.appointment-notes,.appointment-actions{grid-column:1/-1}.appointment-manage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.appointments-table label+label{margin-top:0}.appointments-table select,.appointments-table textarea{font-size:16px}.appointments-table button{font-size:14px;min-height:46px}.pager{justify-content:space-between}.pager span{order:-1;width:100%}.appointments-table .appointment-customer strong{font-size:18px}.appointments-table textarea{height:84px}
}
@media(max-width:380px){.appointment-manage{grid-template-columns:minmax(0,1fr)}.appointments-table .appointment-manage label+label{margin-top:0}}

.portal-header{background:#fffdfb;color:#311621;border-bottom:1px solid #dfd2ce}
.portal-brand img{width:clamp(135px,16vw,198px);height:auto}
.portal-brand span{display:none}
.header-tools button{color:#481d36;border-color:#b99ea3;border-radius:22px}
.header-tools button[aria-pressed=true]{color:white;background:#481d36;border-color:#481d36}
h1,h2{font-family:Georgia,serif;font-weight:500}
.tabs button,.primary{border-radius:22px}
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:16px;align-items:start}
.team-card{min-width:0}.team-card p{margin:5px 0;color:#705762}.team-email{overflow-wrap:anywhere}
.team-card summary{color:#60152b;font-weight:bold;cursor:pointer;padding:14px 0}
.team-card details{margin-top:12px;border-top:1px solid #dfd2ce}
.member-edit{padding-bottom:12px}.team-card h2{margin:0;font-size:24px}
@media(max-width:700px){.header-tools{max-width:none}.portal-header{flex-wrap:wrap}.member-edit input,.member-edit select{font-size:16px}.team-grid{grid-template-columns:1fr}}

.create-panel{margin-bottom:1rem}.create-panel summary{cursor:pointer;font-weight:700;color:#65263f}.create-panel form{margin-top:1rem}.create-panel button{margin-top:.75rem}
