/* Master workspace redesign — 2026-10-29.
   Staff-only styles. No photography, fake appointments, or changes to APIs. */
.master-workspace{background:#f9f9f6}
.master-workspace .main{min-width:0}
.master-workspace .app-top{
  background:#fffefa;border-bottom:1px solid #e7ebe6;
  min-height:76px;padding:0 clamp(19px,3.2vw,45px);
}
.master-workspace .app-top>.muted{font-size:.83rem!important;color:#718476;line-height:1.45}
.master-workspace .app-top>.muted b{color:#245a43;font-size:.94rem}
.master-workspace .inbox-top-link{background:#f6f8f4;color:#285e46;border-color:#e2eae2}
.master-workspace .inbox-top-link:hover{background:#eaf5ec}
.master-workspace #logoutTop{display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:10px;color:#688271;background:#f5f7f2;border:1px solid #e5ebe3}
.master-workspace #logoutTop:hover{color:#2e6247;background:#eaf3ec}
.master-workspace .page{
  max-width:1300px;padding:29px clamp(17px,3vw,45px) 100px;gap:0;
}
.master-premium-dashboard{display:grid;gap:22px;color:#263e32;min-width:0}
.master-premium-dashboard .sp-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.master-premium-hero{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;justify-content:space-between;
  min-height:242px;padding:37px 43px;border:1px solid #e3eae1;
  border-radius:26px;background:
    radial-gradient(ellipse 35% 145% at 100% 10%,#d6e7d9 0%,transparent 100%),
    linear-gradient(110deg,#f3f5ed 0%,#edf3ec 68%,#e7eee4 100%);
  box-shadow:0 14px 40px #2f5b4110;
}
.master-premium-hero-copy{position:relative;z-index:1;display:grid;justify-items:start;gap:12px}
.master-premium-eyebrow{display:inline-block;letter-spacing:.18em;font-size:.68rem;
  color:#57846b;font-weight:900;text-transform:uppercase}
.master-premium-hero h1{font-size:clamp(2rem,3.2vw,2.9rem);line-height:1.12;letter-spacing:-.065em;
  color:#1e4936;font-weight:800;margin:0}
.master-premium-hero p{font-size:.9rem;color:#738777;line-height:1.65;max-width:480px}
.master-premium-new{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  background:#27654c;color:#fff;min-height:51px;margin-top:10px;
  border-radius:14px;padding:13px 25px;font-size:.95rem;font-weight:850;
  box-shadow:0 12px 27px #205e4229;
}
.master-premium-new:hover{background:#194936;transform:translateY(-1px)}
.master-premium-hero-decor{position:absolute;right:1%;top:-15px;bottom:-15px;width:32%;
  display:grid;place-items:center;pointer-events:none;opacity:.78}
.master-premium-orbit{position:absolute;width:185px;height:185px;border-radius:50%;
  border:2px solid #91b99a80;box-shadow:0 0 0 28px #d8e6d73d,0 0 0 70px #f3f8f13a}
.master-premium-orbit.orbit-two{width:110px;height:110px;border:1px solid #a4c5a9;transform:translate(52px,30px)}
.master-premium-decor-icon{position:relative;z-index:1;display:grid;place-items:center;
  width:90px;height:90px;background:#ffffff99;border-radius:30px;transform:rotate(-8deg);
  box-shadow:0 20px 35px #26634319;color:#387c58}
.master-premium-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.master-premium-stat{
  position:relative;display:grid;align-content:start;gap:7px;overflow:hidden;
  min-height:156px;padding:20px 24px;border:1px solid #e1e9e1;
  border-radius:22px;background:#fff;
  box-shadow:0 12px 35px #2853410b;
}
.master-premium-stat:after{content:"";position:absolute;right:-37px;bottom:-58px;width:135px;height:135px;border-radius:50%;background:#e2f1e83b}
.master-premium-stat-icon{display:grid;place-items:center;width:43px;height:43px;
  background:#e6f3e9;border-radius:14px;color:#276c4f;margin-bottom:3px}
.master-premium-stat-week .master-premium-stat-icon{background:#fcf2e4;color:#9b723e}
.master-premium-stat-done .master-premium-stat-icon{background:#f6eae7;color:#a3645c}
.master-premium-stat-label{font-size:.82rem;line-height:1.5;color:#65746a;font-weight:750;max-width:230px}
.master-premium-stat strong{font-size:2.1rem;font-weight:850;line-height:1.12;
  letter-spacing:-.06em;color:#213e32;z-index:1}
.master-premium-diary{
  padding:25px;border:1px solid #e5e9e3;border-radius:25px;background:#fff;
  box-shadow:0 16px 48px #2853410a;
}
.master-premium-diary-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.master-premium-diary-head h2{font-size:1.45rem;letter-spacing:-.05em;margin:6px 0;color:#234d38}
.master-premium-day-label{color:#507660;background:#f0f5ef;border-radius:11px;padding:9px 12px;font-size:.81rem;font-weight:750}
.master-premium-calendar-filter{display:flex;flex-wrap:wrap;gap:13px;align-items:center;
  justify-content:space-between;margin:0 0 27px!important}
.master-premium-date-row{display:flex;gap:9px;align-items:center;flex:0 1 430px;min-width:0}
.master-premium-arrow{display:grid;place-items:center;width:49px;height:49px;flex:0 0 49px;
  background:#fff;border:1px solid #dde6dc;border-radius:14px;color:#285c42;cursor:pointer}
.master-premium-arrow:hover{background:#eaf4ec;border-color:#b1d0bc}
.master-premium-date-field{display:flex;align-items:center;gap:9px;background:#fcfefa;
  border:1px solid #dbe5db;border-radius:14px;padding:0 12px;flex:1;min-width:0;min-height:49px;
  color:#508162}
.master-premium-date-field input[type=date]{
  min-width:0;width:100%;max-width:none!important;flex:1;border:0!important;
  box-shadow:none!important;outline-offset:0;padding:7px 0;min-height:47px;
  background:transparent;color:#2b483a;font-size:1rem;font-weight:750;
}
.master-premium-date-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.master-premium-date-quick{display:inline-flex;gap:8px;align-items:center;justify-content:center;
  min-height:46px;padding:10px 16px;background:#f4f8f2;border:1px solid #dfe8dc;border-radius:12px;
  color:#2d6247;font-size:.82rem;font-weight:800;cursor:pointer}
.master-premium-date-quick:hover{background:#e9f4e9;border-color:#b7d4ba}
.master-premium-visits-header{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-top:19px;border-top:1px solid #e7ebe5;margin-bottom:15px}
.master-premium-visits-header h2{margin:0;font-size:1.2rem;letter-spacing:-.04em;color:#244a38}
.master-premium-visits-count{display:inline-flex;padding:7px 12px;color:#65816c;
  background:#f0f5ef;font-size:.74rem;font-weight:750;border-radius:20px;white-space:nowrap}
.master-premium-visits.master-visits{display:grid;grid-template-columns:1fr;gap:11px}
.master-premium-visit.master-visit{
  display:grid;grid-template-columns:112px minmax(0,1fr);padding:20px;gap:19px;
  border:1px solid #e4ebe3;border-left:4px solid #6bae83;border-radius:17px;
  background:#fffefa;box-shadow:0 8px 26px #264d360a;
}
.master-premium-visit.master-visit.completed{border-left-color:#318c67}
.master-premium-visit.master-visit.no_show{border-left-color:#ba8067}
.master-premium-visit.master-visit.cancelled{border-left-color:#bbc4bb}
.master-premium-visit-time{display:grid;align-content:start;gap:3px;padding-right:17px;border-right:1px solid #e7ece5}
.master-premium-visit-time strong{font-size:1.38rem;color:#254c38;letter-spacing:-.05em}
.master-premium-visit-time span{font-size:.78rem;color:#85988a}
.master-premium-visit-detail{display:grid;gap:11px;min-width:0}
.master-premium-client-row{display:flex;align-items:center;gap:13px}
.master-premium-client-avatar{flex:0 0 43px;display:grid;place-items:center;height:43px;
  width:43px;border-radius:14px;background:linear-gradient(130deg,#d9e9db,#c2dcca);
  font-weight:850;font-size:1.2rem;color:#366b50}
.master-premium-client-name{display:grid;gap:3px;min-width:0}
.master-premium-client-name strong{font-size:1rem;color:#2b4839;overflow-wrap:anywhere}
.master-premium-client-name>span{font-size:.84rem;color:#718476;overflow-wrap:anywhere}
.master-premium-visit-meta{display:flex;align-items:center;gap:9px 13px;flex-wrap:wrap}
.master-premium-visit-meta .status{padding:6px 10px;font-size:.71rem}
.master-premium-visit-meta a{display:inline-flex;gap:5px;align-items:center;color:#396e52;font-size:.8rem;font-weight:750}
.master-premium-visit .master-actions{margin-top:3px;gap:8px}
.master-premium-visit .master-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  font-size:.8rem;min-height:36px;padding:8px 13px;border-radius:10px;flex:0 1 auto}
.master-premium-empty{display:grid;justify-items:center;gap:11px;background:linear-gradient(145deg,#fafcf8,#f3f8f2);
  text-align:center;padding:36px 24px;border:1px dashed #c9decd;border-radius:19px}
.master-premium-empty-icon{display:grid;place-items:center;width:70px;height:70px;border-radius:21px;
  color:#448b64;background:#e4f1e7}
.master-premium-empty h3{font-size:1.13rem;color:#28563e;margin:3px 0 0}
.master-premium-empty p{color:#829486;font-size:.84rem;line-height:1.7;max-width:430px}
.master-premium-empty .button{margin-top:5px}
.master-premium-next-panel.master-next-panel{margin:0;max-width:none;padding:24px;
  border:1px solid #e3e9e0;border-radius:23px;background:#fffefa;box-shadow:0 11px 35px #264d360a}
.master-premium-next-head{display:flex;align-items:center;gap:13px;margin-bottom:17px}
.master-premium-next-symbol{display:grid;place-items:center;width:45px;height:45px;
  background:#e7f1e8;color:#347554;border-radius:14px}
.master-premium-next-head h2{margin:0 0 4px;font-size:1.11rem;letter-spacing:-.03em;color:#2a523d}
.master-premium-next-head small{color:#8b9d8f;font-size:.74rem}
.master-premium-next-stack{display:grid;gap:9px}
.master-premium-next-item{display:flex;align-items:center;gap:13px;padding:13px 15px;
  border-radius:13px;background:#f6f9f5;border:1px solid #e7eee6}
.master-premium-next-icon{color:#5b9570}
.master-premium-next-item>div{display:grid;gap:3px;min-width:0}
.master-premium-next-item strong{color:#355a45;font-size:.85rem}
.master-premium-next-item small{color:#758879;font-size:.79rem;overflow-wrap:anywhere}
.master-premium-payment-info{border:1px solid #e5eae3;background:#f6f9f4;border-radius:16px;padding:15px 18px}
.master-premium-payment-info summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:.8rem;
  font-weight:800;color:#51715a}
.master-premium-payment-info summary::marker{content:""}
.master-premium-payment-info p{margin-top:13px;color:#778b7b;font-size:.82rem;line-height:1.65}
.master-workspace .bottomnav .ico{width:25px;height:25px;display:flex;align-items:center;justify-content:center}
.master-workspace .bottomnav .ico svg{width:22px;height:22px;stroke-width:1.8}
.master-workspace .bottomnav a.active .ico{color:#255d45}
.master-workspace .bottomnav a.active:after{content:"";width:19px;height:3px;background:#2c7050;border-radius:2px;margin-top:1px}
.master-workspace :is(.master-premium-arrow,.master-premium-date-quick,.master-premium-new):focus-visible{outline:3px solid #7db99d;outline-offset:3px}
@media(max-width:900px){
 .master-premium-hero{padding:30px}
 .master-premium-hero-decor{width:23%}
 .master-premium-calendar-filter{align-items:stretch}
 .master-premium-date-row{flex:1 1 100%}
 .master-premium-date-actions{width:100%}
}
@media(max-width:650px){
 .master-workspace .app-top{height:auto;min-height:70px;padding:9px 13px;gap:8px}
 .master-workspace .mobile-brand{min-width:0;flex:0 1 auto}
 .master-workspace .mobile-brand .brand{font-size:.95rem;gap:6px;letter-spacing:-.045em}
 .master-workspace .mobile-brand .brand-mark{width:31px;height:31px;flex:0 0 31px}
 .master-workspace .mobile-brand .brand-name{display:block;white-space:normal;max-width:101px;line-height:1.13}
 .master-workspace .mobile-brand .brand-name>span{display:block}
 .master-workspace .app-top>.muted{font-size:.68rem!important;flex:1 1 auto;min-width:0}
 .master-workspace .app-top>.muted b{display:block;font-size:.84rem;overflow-wrap:anywhere}
 .master-workspace .app-top .top-actions{gap:5px;flex-shrink:0}
 .master-workspace .app-top .lang{font-size:.69rem;padding:7px 8px;min-height:37px}
 .master-workspace .inbox-top-link{width:36px;height:36px}
 .master-workspace #logoutTop{width:27px;height:32px;border:none;background:transparent;padding:2px}
 .master-workspace #logoutTop svg{width:17px;height:17px}
 .master-workspace .page{padding:15px 13px calc(104px + env(safe-area-inset-bottom));max-width:none}
 .master-premium-dashboard{gap:17px}
 .master-premium-hero{border-radius:22px;min-height:218px;padding:26px 22px}
 .master-premium-eyebrow{font-size:.65rem;letter-spacing:.14em}
 .master-premium-hero h1{font-size:clamp(1.9rem,7vw,2.4rem)}
 .master-premium-hero p{font-size:.82rem;max-width:290px}
 .master-premium-hero-decor{right:-70px;opacity:.38;width:185px}
 .master-premium-decor-icon{width:70px;height:70px}
 .master-premium-new{width:100%;max-width:300px;font-size:.91rem;margin-top:4px}
 .master-premium-stats{gap:9px}
 .master-premium-stat{padding:13px 12px;min-height:145px;border-radius:17px;gap:6px}
 .master-premium-stat-icon{width:36px;height:36px;border-radius:12px}
 .master-premium-stat-icon svg{width:19px;height:19px}
 .master-premium-stat-label{font-size:.7rem;line-height:1.3;min-height:37px}
 .master-premium-stat strong{font-size:1.8rem}
 .master-premium-diary{padding:18px 13px;border-radius:20px}
 .master-premium-diary-head{align-items:flex-start;margin-bottom:17px}
 .master-premium-diary-head h2{font-size:1.31rem}
 .master-premium-day-label{font-size:.67rem;padding:7px 9px;max-width:132px;text-align:right}
 .master-premium-calendar-filter{margin:0 0 21px!important;gap:10px}
 .master-premium-date-row{gap:7px}
 .master-premium-arrow{width:43px;height:47px;flex-basis:43px;border-radius:12px}
 .master-premium-date-field{padding:0 10px;min-height:47px}
 .master-premium-date-field svg{width:18px}
 .master-premium-date-field input[type=date]{font-size:.91rem;min-height:44px}
 .master-premium-date-quick{min-height:43px;padding:8px 12px;flex:1;font-size:.77rem}
 .master-premium-visits-header h2{font-size:1.1rem}
 .master-premium-visits-count{font-size:.69rem}
 .master-premium-visit.master-visit{grid-template-columns:72px minmax(0,1fr);gap:11px;
    padding:14px 11px;border-radius:15px}
 .master-premium-visit-time{padding-right:8px}
 .master-premium-visit-time strong{font-size:1.13rem}
 .master-premium-visit-time span{font-size:.69rem}
 .master-premium-client-avatar{width:36px;height:36px;flex-basis:36px;border-radius:11px;font-size:1rem}
 .master-premium-client-row{gap:8px}
 .master-premium-client-name strong{font-size:.89rem}
 .master-premium-client-name>span{font-size:.75rem}
 .master-premium-visit-meta{gap:7px}
 .master-premium-visit-meta a{font-size:.7rem}
 .master-premium-visit .master-actions{gap:7px}
 .master-premium-visit .master-actions .button{font-size:.72rem;flex:1 1 auto;min-height:36px;padding:8px}
 .master-premium-next-panel.master-next-panel{padding:18px 15px;border-radius:19px}
 .master-premium-next-item{padding:12px}
 .master-premium-payment-info{padding:13px 15px}
 .master-workspace .bottomnav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
   justify-content:space-between;gap:3px;padding:8px 5px max(8px,env(safe-area-inset-bottom));
   box-shadow:0 -7px 25px #2346330c}
 .master-workspace .bottomnav>a,
 .master-workspace .bottomnav>.mobile-more-trigger{
   min-width:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
   gap:5px;text-align:center;padding:2px 2px;font-size:.65rem;line-height:1.2;overflow-wrap:anywhere}
 .master-workspace .bottomnav .mobile-more-trigger svg{width:22px;height:22px}
 .master-workspace .mobile-more-panel:not([hidden]){bottom:calc(82px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){
 .master-workspace .app-top{padding:8px 9px;gap:5px}
 .master-workspace .mobile-brand .brand{font-size:.83rem;gap:4px}
 .master-workspace .mobile-brand .brand-mark{width:27px;height:27px;flex-basis:27px}
 .master-workspace .mobile-brand .brand-name{max-width:87px}
 .master-workspace .app-top>.muted{font-size:.62rem!important}
 .master-workspace .app-top>.muted b{font-size:.76rem}
 .master-workspace .app-top .lang{font-size:.61rem;padding:7px 5px}
 .master-workspace .inbox-top-link{width:31px;height:31px}
 .master-workspace .inbox-top-link svg{width:17px;height:17px}
 .master-premium-hero{padding:22px 17px}
 .master-premium-stat{padding:11px 9px}
 .master-premium-stat-label{font-size:.64rem}
 .master-premium-date-row{gap:4px}
 .master-premium-arrow{width:39px;flex-basis:39px}
 .master-premium-date-field{padding:0 6px}
 .master-premium-date-field input[type=date]{font-size:.84rem}
}
@media(prefers-reduced-motion:reduce){.master-premium-dashboard *{transition:none!important}}
