


















:root {
  





  





















  --surface: var(--raised);
  --surface-in: var(--sunken);
  --surface-press: var(--press);

  

  --hatch: repeating-linear-gradient(135deg,
             transparent 0 7px, rgba(var(--ink-rgb), .045) 7px 14px);

  

  --press: rgba(var(--ink-rgb), .07);
  







  --ring-reach: 4px;
  













  --overlay: rgba(var(--scrim-rgb, var(--ink-rgb)), var(--scrim-a, .45));
  


  --rule: 1px solid var(--line);
  --rule-strong: 1px solid var(--line-strong);
  --raised-glass: rgba(var(--raised-rgb), .92);  
  

  --shadow: none;
  --shadow-panel: 0 8px 32px rgba(var(--ink-rgb), .16);

  --bar-h: 64px;             
  









  --sheet-dur: .25s;
  --sheet-ease: cubic-bezier(.22, .7, .2, 1);
  

  --top-h: env(safe-area-inset-top, 0px);
  --side-w: 240px;           
  --side-w-icons: 60px;      
  --side-w-full: 240px;      

  














  --nav-w: 60px;             
  --nav-open-w: 236px;       
  --nav-gap: var(--space-3); 
  --nav-btn-h: 42px;         
  



  --nav-glass: rgba(var(--raised-rgb), var(--glass-a, .22));
  --nav-glass-line: rgba(var(--ink-rgb), .09);
  --nav-blur: 5px;
  


  --nav-open-in: .45s;
  --nav-open-out: .35s;
  --nav-hold: .15s;          
  --nav-slide: .35s;         
  --nav-ease-in: cubic-bezier(.16, 1, .3, 1);
  --nav-ease-out: cubic-bezier(.65, 0, .35, 1);
  --nav-ease-move: cubic-bezier(.22, 1, .36, 1);

  




  





  --z-menu: 46;
  
  --z-nav: 45;
  --z-tabbar: 50;
  --z-sheet: 60;
  --z-panel-scrim: 65;
  --z-panel: 70;
  --z-alert: 80;
  --z-success: 120;
  --z-modal: 200;
  

  --z-toast: 250;
  









  --z-demo: 400;
  --z-ask: 300;
  















  --z-select: 310;
  

  --sheet-top-band: 240px;
}

* { box-sizing: border-box; }






[hidden] { display: none !important; }







.guide h3 { margin: var(--space-8) 0 var(--space-2); }
.guide h3:first-of-type { margin-top: var(--space-6); }
.guide h3 + p, .guide h3 + ul { margin-top: 0; }

.guide ul { margin: var(--space-2) 0 0; padding-left: var(--space-4); }
.guide li { margin-bottom: var(--space-1); }












fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset > legend {
  padding: 0; margin-bottom: var(--space-2);
  font-size: var(--text-caps); line-height: var(--line-caps); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink2);
}
fieldset.ro-lock { display: contents; }
fieldset.ro-lock :disabled { opacity: .75; cursor: default; }



















































html { scroll-behavior: smooth; scrollbar-gutter: stable both-edges; overscroll-behavior-y: contain; }



html { -webkit-tap-highlight-color: transparent; }












html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }














.btn, .act, .pick, .line-row {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: var(--radius-full);
  background: currentColor;    
  opacity: .22;
  transform: scale(0);
  pointer-events: none;
  animation: ripple-grow 320ms ease-out forwards;
}
@keyframes ripple-grow {
  to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  

  .ripple { display: none; }
}





@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; overscroll-behavior-y: contain; }
}













html { background: var(--page); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  

  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;  
}











button, input, select, textarea, optgroup { font-family: inherit; }








h1, h2, h3, .h {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}













h1 {
  font-family: var(--font-head);
  font-weight: var(--font-head-weight);
}
h1 { font-size: var(--text-title); line-height: var(--line-title); letter-spacing: -.01em; }
h2 { font-size: var(--text-section); line-height: var(--line-section); }
h3 { font-size: var(--text-section); line-height: var(--line-section); }


.eyebrow {
  font-family: var(--font);
  font-size: var(--text-micro); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink2);
}

.accent {
  font-family: var(--font);
  font-style: normal; font-weight: 500;
  font-weight: 500;
  color: var(--ink2);
}

a { color: var(--ink); }


.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--raised);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--text-control);
  line-height: .92;
  letter-spacing: .08em;
  text-align: center;
  flex-shrink: 0;
}
.logo span { display: block; }










.top { display: none; }









.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.side { display: none; }              
.work { min-width: 0; }

@media (min-width: 1000px) {
  .shell { grid-template-columns: var(--side-w) 1fr; }
  



  .shell-bare { grid-template-columns: 1fr; }
  .side {
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: 0;
    height: 100vh; overflow: auto;
    padding: var(--space-3) var(--space-2);
    padding-top: calc(var(--space-3) + env(safe-area-inset-top));
    background: var(--sidebar);
    border-right: 1px solid rgba(var(--sidebar-ink-rgb), .12);
  }
  .side-brand {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2); margin-bottom: var(--space-2);
    border-bottom: 1px solid rgba(var(--sidebar-ink-rgb), .12);
  }
  .side-brand .logo { width: 34px; height: 34px; margin: 0; }
  .side-brand .nm {
    

    font-weight: 500;
    font-size: var(--text-num); color: var(--sidebar-ink); letter-spacing: .02em;
  }
  .side-group {
    font-size: var(--text-micro); letter-spacing: .14em; text-transform: uppercase;
    color: rgba(var(--sidebar-ink-rgb), .45);
    padding: var(--space-3) var(--space-2) 2px;
  }
  





  .side a {
    display: flex; align-items: center; gap: 10px;
    





    flex: none;
    min-height: 34px; padding: 6px var(--space-2);
    border-radius: var(--radius-md);
    color: var(--sidebar-muted);
    text-decoration: none; font-size: var(--text-control);
  }
  .side a:hover { color: var(--sidebar-ink); background: rgba(var(--sidebar-ink-rgb), .08); }
  


  .side a.active {
    background: var(--sidebar-active); color: var(--sidebar-ink); font-weight: 500;
  }
  .side a svg { width: 18px; height: 18px; stroke-width: 1.7; flex: none; }
  .side .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  
  .side a .dot { margin-left: auto; position: static; }
  .side-foot { margin-top: auto; padding-top: var(--space-3);
               border-top: 1px solid rgba(var(--sidebar-ink-rgb), .12); }
  




  .side-foot a { justify-content: flex-start; }
  .side-me { display: flex; align-items: baseline; gap: 0;
             min-height: 40px; min-width: 0; }
  .side-me .label { font-weight: 500; color: var(--sidebar-ink);
                     flex: 1 1 auto; min-width: 0; }

  







  .side a.side-under {
    order: 1;
    margin-top: var(--space-2); padding-top: var(--space-2);
    border-top: 1px solid rgba(var(--sidebar-ink-rgb), .12);
    border-radius: 0;
    min-height: 28px;
    font-size: var(--text-meta); color: rgba(var(--sidebar-ink-rgb), .55);
  }
  .side a.side-under svg { width: 16px; height: 16px; }

  

















  .shell[data-side-mode="icons"],
  .shell[data-side-mode="hover"] { --side-w: var(--side-w-icons); }
  .shell[data-side-mode="icons"] .side,
  .shell[data-side-mode="hover"] .side {
    width: var(--side-w-icons); overflow-x: hidden;
  }
  











  .shell[data-side-mode="hover"] .side {
    z-index: var(--z-nav);
    transition: width .18s ease, box-shadow .18s ease;
  }
  .shell[data-side-mode="hover"] .side:hover,
  .shell[data-side-mode="hover"] .side:has(a:focus-visible) {
    width: var(--side-w-full);
    box-shadow: 8px 0 28px rgba(0, 0, 0, .28);
  }
  
  .shell[data-side-mode="icons"] .side .label,
  .shell[data-side-mode="icons"] .side-brand .nm,
  .shell[data-side-mode="hover"] .side .label,
  .shell[data-side-mode="hover"] .side-brand .nm {
    flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap;
    text-overflow: clip; opacity: 0;
  }
  .shell[data-side-mode="hover"] .side .label,
  .shell[data-side-mode="hover"] .side-brand .nm,
  .shell[data-side-mode="hover"] .side-group,
  .shell[data-side-mode="hover"] .side a .dot { transition: opacity .18s ease, color .18s ease, top .18s ease, right .18s ease, translate .18s ease; }
  .shell[data-side-mode="hover"] .side:hover .label,
  .shell[data-side-mode="hover"] .side:hover .side-brand .nm,
  .shell[data-side-mode="hover"] .side:has(a:focus-visible) .label,
  .shell[data-side-mode="hover"] .side:has(a:focus-visible) .side-brand .nm { opacity: 1; }
  
  .shell[data-side-mode="icons"] .side-group,
  .shell[data-side-mode="hover"] .side-group { white-space: nowrap; overflow: hidden; }
  .shell[data-side-mode="icons"] .side-group,
  .shell[data-side-mode="hover"] .side:not(:hover):not(:has(a:focus-visible)) .side-group {
    color: transparent;
  }
  


  .shell[data-side-mode="icons"] .side a,
  .shell[data-side-mode="hover"] .side a { position: relative; }
  .shell[data-side-mode="icons"] .side a .dot,
  .shell[data-side-mode="hover"] .side a .dot {
    position: absolute; top: 3px; right: 6px; margin: 0;
  }
  .shell[data-side-mode="hover"] .side:hover a .dot,
  .shell[data-side-mode="hover"] .side:has(a:focus-visible) a .dot {
    top: 50%; right: var(--space-2); translate: 0 -50%;
  }
  .shell[data-side-mode="hover"] .side a:has(.dot:not([hidden])) .label { padding-right: 32px; }
  


  .shell[data-side-mode="icons"] .side-me,
  .shell[data-side-mode="hover"] .side-me { align-items: center; gap: 10px; }
  .shell[data-side-mode="icons"] .side-me::before,
  .shell[data-side-mode="hover"] .side-me::before {
    content: attr(data-mono); flex: none; width: 18px; text-align: center;
    font-weight: 600; color: var(--sidebar-ink);
  }
  


  .side-tip {
    position: fixed; z-index: var(--z-tabbar); pointer-events: none;
    transform: translateY(-50%);
    padding: 6px 10px; border-radius: var(--radius-md);
    background: var(--sidebar); color: var(--sidebar-ink);
    border: 1px solid rgba(var(--sidebar-ink-rgb), .18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    font-size: var(--text-control); white-space: nowrap;
  }

  

  .wrap { padding: var(--space-6); padding-bottom: var(--space-8);
          max-width: calc(var(--content-max) + var(--space-6) * 2); }
}












.nav { display: none; }

@media (min-width: 1000px) {
  





  






  .shell.shell-nav {
    grid-template-columns: 1fr;
    padding-left: calc(var(--nav-w) + var(--nav-gap) * 2);
  }
  .nav {
    position: fixed; left: var(--nav-gap);
    top: 50%;
    



    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    width: var(--nav-w);
    


    max-height: calc(100vh - var(--nav-gap) * 2);
    padding: var(--space-2);
    overflow: hidden auto;
    z-index: var(--z-nav);
    background: var(--nav-glass);
    border: 1px solid var(--nav-glass-line);
    


    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(var(--ink-rgb), .10),
                0 1px 3px rgba(var(--ink-rgb), .06);
    -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(1.4);
    backdrop-filter: blur(var(--nav-blur)) saturate(1.4);
    

    transition: width var(--nav-open-out) var(--nav-ease-out) var(--nav-hold);
  }
  







  @supports (scrollbar-gutter: stable) {
    .nav { left: calc(var(--nav-gap) - var(--scrollbar-w)); }
  }
  .nav.is-open {
    width: var(--nav-open-w);
    transition: width var(--nav-open-in) var(--nav-ease-in) 0s;
  }

  

  .nav-lbl {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: var(--text-control);
    opacity: 0; transform: translateX(-6px);
    transition: opacity .2s ease var(--nav-hold),
                transform .3s var(--nav-ease-in) var(--nav-hold);
  }
  .nav.is-open .nav-lbl {
    opacity: 1; transform: none;
    transition: opacity .3s ease .12s, transform var(--nav-open-in) var(--nav-ease-in) .08s;
  }

  .nav-brand { display: flex; align-items: center; gap: var(--space-1);
               min-height: 36px; }
  .nav-logo { flex: 0 0 var(--nav-btn-h); display: grid; place-items: center;
              width: var(--nav-btn-h); height: 28px; }
  img.nav-logo { object-fit: contain; }
  


  .nav-mono {
    display: grid; place-items: center; width: 26px; height: 26px;
    border-radius: var(--radius-full);
    background: var(--ink); color: var(--raised);
    font-size: var(--text-meta); font-weight: 500; letter-spacing: .04em;
  }
  

  .nav-nm { font-weight: 500; font-size: var(--text-num); letter-spacing: .02em; }

  

  



  .nav-line { flex: none; height: 1px; width: 24px; margin: 6px 9px;
              background: var(--nav-glass-line);
              transition: width var(--nav-open-out) var(--nav-ease-out) var(--nav-hold); }
  .nav.is-open .nav-line { width: calc(100% - 18px);
              transition: width var(--nav-open-in) var(--nav-ease-in) 0s; }

  .nav-grp { position: relative; display: flex; flex-direction: column; gap: 2px; }
  .nav-tabs { transition: height var(--nav-slide) var(--nav-ease-move);
              overflow: hidden; }
  

  .nav-set { display: none; }
  .nav-set.is-shown { display: flex; }

  









  .nav-ind {
    position: absolute; left: 0; right: 0; top: 0; z-index: 0;
    height: var(--nav-btn-h); border-radius: 14px;
    












    background: var(--pill);
    transition: transform var(--nav-slide) var(--nav-ease-move);
    will-change: transform;
  }
  

  .nav-grp[data-nav-empty] .nav-ind { opacity: 0; }

  .nav-btn {
    position: relative; z-index: 1; flex: none;
    display: flex; align-items: center; gap: var(--space-1);
    width: 100%; height: var(--nav-btn-h); padding: 0;
    border: 0; border-radius: 14px; background: none;
    

    color: var(--ink); text-decoration: none; text-align: left;
    font: inherit; font-size: var(--text-control); cursor: pointer;
    transition: color var(--nav-slide);
  }
  .nav-btn:hover { color: var(--ink); background: var(--surface-press); }
  .nav-btn.on { color: var(--pill-ink); }
  .nav-btn.on:hover { background: none; }
  .nav-ico { flex: 0 0 var(--nav-btn-h); height: var(--nav-btn-h);
             display: flex; align-items: center; justify-content: center;
             position: relative; }
  .nav-ico svg { width: 20px; height: 20px; stroke-width: 1.7; }
  



  .nav-ico .dot {
    position: absolute; top: -2px; right: 0;
    min-width: 16px; height: 16px; padding: 0 4px;
    border: 1.5px solid var(--page);
  }
  .nav-btn.on .dot { background: var(--accent); color: var(--on-accent); }

  




  .nav-set { transition: opacity .16s ease, transform .16s ease, filter .16s ease; }
  .nav-set.is-leaving { opacity: 0; transform: translateY(-6px); filter: blur(2px); }

  

  .nav-theme .nav-ico svg { width: 20px; height: 20px; }
  .nav-clock { cursor: pointer; }
  


  .nav-time {
    display: block; width: var(--nav-btn-h); text-align: center;
    font-variant-numeric: tabular-nums; font-weight: 500;
    font-size: var(--text-meta); line-height: 1; letter-spacing: -.02em;
    transition: font-size var(--nav-open-in) var(--nav-ease-in),
                width var(--nav-open-in) var(--nav-ease-in);
  }
  .nav.is-open .nav-time { width: 190px; text-align: left;
                           font-size: 28px; letter-spacing: .02em; }

  .nav-foot { margin-top: var(--space-1); }
  .nav-me .nav-lbl { font-weight: 500; }
  

















  .nav-foot .nav-btn.on {
    background: var(--pill);
    color: var(--pill-ink);
    border-radius: 14px;
  }
  


  .nav-foot .nav-btn.on:hover { background: var(--pill); }

  



  .shell-nav .side { display: none; }
}









.dock { display: none; }

@media (max-width: 999px) {
  .dock {
    position: fixed; left: 50%; transform: translateX(-50%);
    






    bottom: calc(8px + var(--safe-b, env(safe-area-inset-bottom)));
    display: flex; align-items: stretch;
    width: calc(100% - 16px); max-width: 520px; height: 52px;
    padding: 5px; gap: 1px;
    z-index: var(--z-tabbar);
    border: 1px solid rgba(var(--ink-rgb), .12);
    border-radius: var(--radius-full);
    background: rgba(var(--raised-rgb), .94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 3px 14px rgba(var(--ink-rgb), .07);
    isolation: isolate; touch-action: pan-y; user-select: none;
    

    overflow: visible;
  }
  


  :root[data-keyboard="true"] .dock { display: none; }
  










  






  :root[data-keyboard="true"] .composer {
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
  }
  .dock-btn {
    position: relative; z-index: 1; flex: 1 1 0; min-width: 0;
    display: block; height: 40px; padding: 0;
    border: 0; background: none; border-radius: var(--radius-full);
    color: var(--ink2); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .dock-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .dock-face { display: flex; align-items: center; justify-content: center; height: 100%; }
  .dock-face svg { width: 23px; height: 23px; stroke-width: 1.7; }
  

  .dock-lit {
    position: absolute; inset: 0; color: var(--pill-ink); pointer-events: none;
    clip-path: inset(0 var(--lit-right, 100%) 0 var(--lit-left, 0));
  }
  






  html:not([data-glass]) .dock {
    background: var(--raised);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html:not([data-glass]) .sheet-scrim {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .dock-pill {
    position: absolute; left: 0; top: 5px; z-index: 0;
    height: 40px; border-radius: var(--radius-full);
    background: var(--pill); pointer-events: none;
    will-change: transform, width;
  }
  .dock .dot {
    position: absolute; top: 2px; right: 4px; z-index: 3;
    min-width: 18px; height: 18px; padding: 0 4px;
    border: 2px solid var(--page);
  }

  



  .sheet-scrim {
    position: fixed; inset: 0; z-index: var(--z-sheet);
    background: var(--overlay);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  .profile-sheet {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: calc(var(--z-sheet) + 1);
    





    max-height: calc(100dvh - 24px); overflow: hidden; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: calc(var(--space-3) * var(--ps-k));
    padding: calc(var(--space-4) * var(--ps-k));
    




    --ps-k: 1;
    background: var(--surface); border: var(--rule);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-panel);
    









    animation: profile-sheet-in var(--sheet-dur) var(--sheet-ease);
  }
  @keyframes profile-sheet-in { from { opacity: 0; transform: translateY(18px); } }
  .sheet-scrim[hidden], .profile-sheet[hidden] { display: none; }
  @media (max-width: 360px) {
    .profile-sheet { --ps-k: .86; }
  }
  



  .ps-mid { flex: 1 1 auto; min-height: 0; overflow: auto;
            overscroll-behavior: contain;
            display: flex; flex-direction: column;
            gap: calc(var(--space-3) * var(--ps-k)); }
  .ps-head { display: flex; align-items: center; flex: none;
             gap: calc(var(--space-3) * var(--ps-k));
             padding-bottom: calc(var(--space-3) * var(--ps-k));
             border-bottom: var(--rule); }
  .ps-out { flex: none; }
  .ps-ava { display: grid; place-items: center;
            width: calc(36px * var(--ps-k)); height: calc(36px * var(--ps-k));
            border-radius: var(--radius-full); flex: none;
            background: var(--pill); color: var(--pill-ink); font-weight: 500; }
  .ps-who { flex: 1; min-width: 0; }
  .ps-who b { display: block; font-size: var(--text-section); }
  .ps-who i { font-style: normal; font-size: var(--text-meta); color: var(--ink2); }
  




  .ps-day { display: flex; align-items: center; gap: var(--space-3);
            min-height: calc(42px * var(--ps-k));
            padding: calc(var(--space-2) * var(--ps-k)) var(--space-3);
            border: var(--rule); border-radius: var(--radius-md);
            font-size: var(--text-meta); color: var(--ink2);
            flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .ps-day > span { flex: none; }
  .ps-day b { color: var(--ink); font-variant-numeric: tabular-nums; }
  .ps-clock { margin-left: auto; font-size: var(--text-section); font-weight: 500;
              color: var(--ink); font-variant-numeric: tabular-nums; }
  .ps-row { display: flex; align-items: center; gap: var(--space-3);
            padding: var(--space-2) var(--space-3);
            border: var(--rule); border-radius: var(--radius-md); }
  .ps-row > span { flex: 1; }
  .ps-theme { width: 42px; height: 42px; flex: none;
              display: grid; place-items: center;
              border: var(--rule); border-radius: var(--radius-md);
              background: var(--page); color: var(--ink); cursor: pointer; }
  .ps-theme svg { width: 22px; height: 22px; }
  .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .ps-item { position: relative; display: flex; align-items: center; gap: var(--space-2);
             min-height: calc(var(--tap) * var(--ps-k));
             padding: calc(var(--space-2) * var(--ps-k)) var(--space-3);
             border: var(--rule); border-radius: var(--radius-md);
             color: var(--ink); text-decoration: none; font-size: var(--text-control); }
  .ps-item svg { width: 18px; height: 18px; flex: none; stroke-width: 1.7; }
  .ps-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ps-item.active { background: var(--accent-soft); color: var(--accent-ink); }
  .ps-item .dot { margin-left: auto; position: static; }
  .ps-out { display: block; text-align: center;
            min-height: calc(var(--tap) * var(--ps-k));
            line-height: calc(var(--tap) * var(--ps-k)); border-radius: var(--radius-md);
            border: 1px solid var(--alert-ink); color: var(--alert-ink);
            text-decoration: none; font-size: var(--text-control); }

  

  




  .shell .wrap {
    padding-bottom: calc(60px + var(--space-12) + env(safe-area-inset-bottom));
  }
  

  .shell .composer {
    padding-bottom: calc(60px + var(--space-3) + env(safe-area-inset-bottom));
  }
  
  .shell ~ .popups, .shell .popups {
    bottom: calc(60px + 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-sheet { animation: none; }
}




.clock-scrim {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  background: var(--overlay);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.clock-scrim[hidden] { display: none; }
.clock-modal {
  width: min(560px, 92vw);
  background: var(--surface); border: var(--rule);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-panel);
  animation: clock-in .25s cubic-bezier(.22, .7, .2, 1);
}
@keyframes clock-in { from { opacity: 0; transform: translateY(12px); } }
.clock-head { display: flex; align-items: center; justify-content: space-between;
              gap: var(--space-3); margin-bottom: var(--space-3); }
.clock-head .caps { font-size: var(--text-caps); letter-spacing: .12em;
                    text-transform: uppercase; color: var(--ink2); }




.lcd { background: var(--sidebar); border-radius: var(--radius-lg);
       padding: var(--space-6) var(--space-4) var(--space-4); text-align: center;
       color: var(--sidebar-ink); }
.lcd-seg { height: 96px; width: auto; max-width: 100%; }


.lcd .seg-on  { fill: var(--sidebar-ink); }
.lcd .seg-off { fill: rgba(var(--sidebar-ink-rgb), .10); }
.lcd-date { margin-top: var(--space-2); font-size: var(--text-control);
            color: var(--sidebar-muted); }
.lcd hr { border: 0; border-top: 1px solid rgba(var(--sidebar-ink-rgb), .18);
          margin: var(--space-3) var(--space-2); }
.lcd-next { font-size: var(--text-control); color: var(--sidebar-ink); }
.lcd-next i { font-style: normal; color: var(--sidebar-muted); }
@media (prefers-reduced-motion: reduce) { .clock-modal { animation: none; } }



@media (prefers-reduced-motion: reduce) {
  .nav, .nav-lbl, .nav-ind, .nav-btn, .nav-tabs, .nav-set, .nav-time,
  .nav-line { transition: none !important; }
}




.wrap {
  padding: var(--space-4);
  








  --wrap-pad: var(--space-4);
  















  padding-bottom: calc(var(--bar-h) + var(--space-12) + env(safe-area-inset-bottom));
  max-width: var(--content-max);
  margin: 0 auto;
}















@media (min-width: 1000px) {
  .wrap { margin-inline: 0 auto; }
}






.shell-bare .wrap {
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
  

  margin-inline: auto;
}



















.ph {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--control-h);
  margin-bottom: var(--space-3);
}
.ph > .page-title { flex: 1; min-width: 0; margin: 0; }




.ph-acts { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.bk-room-short { display: none; }


.bk-cancel-short { display: none; }
@media (max-width: 899px) {
  .bk-room-full, .bk-cancel-full { display: none; }
  .bk-room-short, .bk-cancel-short { display: inline; }
}
















.ctl {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--control-h);
  padding: var(--ring-reach);
  margin: calc(-1 * var(--ring-reach));
  margin-bottom: calc(var(--space-3) - var(--ring-reach));
  min-width: 0; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.ctl::-webkit-scrollbar { display: none; }
.ctl > * { flex: none; }


.ctl select, .ctl .sort-select { width: auto; }
.ctl-sp { flex: 1 1 auto; min-width: 0; }




























.ctl-switches { justify-content: flex-end; }


















.ctl.ctl-switches {
  padding: var(--ring-reach);
  margin: calc(-1 * var(--ring-reach));
  margin-bottom: calc(var(--space-3) - var(--ring-reach));
}
.ctl.ctl-switches > * { flex: 0 1 auto; min-width: 0; }









.ctl.ctl-switches-fill > * { flex: 1 1 auto; }
.ctl-switches-fill .seg-three { width: 100%; }
.ctl + .caps, .ctl + .list, .ctl + .mets, .ctl + .section,
.ph + .caps, .ph + .list, .ph + .mets { margin-top: var(--space-4); }
















.ctl-switches + .section, .ctl-switches + .caps,
.ctl-switches + .list, .ctl-switches + .mets {
  margin-top: calc(var(--space-3) - var(--ring-reach));
}


.page-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-head); font-weight: var(--font-head-weight);
  font-size: var(--text-title); line-height: var(--line-title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}




.ctl .search, .ctl .search-field { flex: 1 1 auto; min-width: 0; width: auto; }
@media (min-width: 1000px) {
  .ctl .search, .ctl .search-field { width: 260px; flex: none; }
  







  .ctl .search.search-wide,
  .ctl .search-field.search-wide { width: auto; flex: 1 1 auto; }
}




































.caps {
  margin: var(--space-6) 0 var(--space-3);
  font-size: var(--text-caps); line-height: var(--line-caps); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink2);
}

.caps:first-child { margin-top: 0; }


.section-head > .caps { margin-top: 0; }
.caps + .list { margin-top: 0; }

.caps + .caps { margin-top: 0; }







.block-note {
  margin: var(--space-2) 0 var(--space-6);
  font-size: var(--text-meta); line-height: var(--line-meta);
  color: var(--ink2);
}
.block-note:last-child { margin-bottom: 0; }































.block-hint {
  margin: var(--space-1) 0 var(--space-3);
  font-size: var(--text-meta); line-height: var(--line-meta);
  color: var(--ink2);
}
.block-name:has(+ .block-hint) { margin-bottom: 0; }










.block-name {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body); line-height: var(--line-body);
  font-weight: 500; color: var(--ink);
}



.block-note-lead { margin: 0 0 var(--space-2); max-width: 70ch; }



.section-head > h2 { font-size: var(--text-section); line-height: var(--line-section); }
.section-head > h2.caps { font-size: var(--text-caps); line-height: var(--line-caps);
                          letter-spacing: .06em; text-transform: uppercase;
                          color: var(--ink2); font-weight: 500; }









.mets {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  





  gap: var(--space-3); margin: 0 0 var(--space-6);
}
@media (min-width: 1000px) { .mets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mets { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.met {
  background: var(--surface); border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); min-width: 0;
}
.met small {
  display: block; font-size: var(--text-meta); line-height: var(--line-meta);
  color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.met b {
  display: block; margin-top: 2px;
  

  font-weight: 500;
  font-size: var(--text-num); line-height: var(--line-num);
  font-variant-numeric: tabular-nums;
}




.contacts { display: flex; gap: var(--space-3); flex-wrap: wrap;
            font-size: var(--text-control); min-width: 0; }
.contacts a { color: var(--ink); text-decoration: none;
              border-bottom: 1px solid var(--line-strong); }
.contacts a:hover { color: var(--accent); border-color: var(--accent); }
.contacts span { color: var(--ink3); }


































@media (max-width: 899px) {
  .ctl-contacts { flex-wrap: wrap; }
  .ctl-contacts > .contacts { order: 1; flex: 1 1 100%; min-width: 0; }
}

.section { margin-bottom: var(--space-6); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-3);
}


.section-head > .page-title { margin: 0; }


.section-head > .block-name { margin: 0; }
























.back {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: 6px 0; margin: 0 0 var(--space-2);
  color: var(--ink2); font-size: var(--text-control);
  text-decoration: none;
}
.back::before { content: "←"; font-size: var(--text-body); line-height: 1; }
.back:hover, .back:active { color: var(--ink); }
.muted { color: var(--ink2); font-size: var(--text-control); }




.sub-holder-none { color: var(--ink2); font-size: var(--text-body); }






.rate-doubt { display: block; margin-top: 2px; color: var(--wait-ink);
              font-size: var(--text-meta); }





.time-hint { margin: 6px 0 0; min-height: 1.2em; color: var(--ink2); }
.time-hint.is-bad { color: var(--alert-ink); }




.empty {
  padding: var(--space-6) 0; color: var(--ink2);
  background: none; border: 0;
}


.card {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}






.card.cream { background: var(--accent-soft); border-color: var(--accent); }






html[data-glass] .card.cream {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--accent-soft) 72%, transparent) 0%,
      color-mix(in srgb, var(--accent-soft) 54%, transparent) 100%);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: var(--pane-sheen), var(--pane-shade);
}














.note {
  margin: 0 0 var(--space-3); padding: var(--space-3);
  border: 1px solid; border-radius: var(--radius-lg);
  font-size: var(--text-control);
}
.note-ok { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ink); }
.note-error { background: var(--alert-bg); border-color: var(--alert-ink); color: var(--alert-ink); }



.note-warn { background: var(--wait-bg); border-color: var(--wait-ink); color: var(--ink); }

.card-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-3);
}




.slot-time {
  font-family: var(--font);
  font-weight: 500; font-size: var(--text-body); line-height: var(--line-body);
  font-variant-numeric: tabular-nums;
}
.slot-master {
  font-family: var(--font);
  font-style: normal; font-weight: 500; font-size: var(--text-body); color: var(--ink2);
}









.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 22px; padding: 0 var(--space-2);
  border: 0; border-radius: var(--radius-sm);
  font-size: var(--text-caps); line-height: var(--line-caps); font-weight: 500;
  white-space: nowrap; flex: none;
}
.badge-ok     { background: var(--ok-bg);    color: var(--ok-ink); }
.badge-warn   { background: var(--wait-bg);  color: var(--wait-ink); }
.badge-wait   { background: var(--wait-bg);  color: var(--wait-ink); }
.badge-danger { background: var(--alert-bg); color: var(--alert-ink); }
.badge-done   { background: var(--done-bg);  color: var(--done-ink); }


.badge-sub    { background: var(--accent-soft); color: var(--ink); }











.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  


  background: var(--accent-btn, var(--accent));
  color: var(--on-accent);
  font-family: var(--font);
  font-size: var(--text-control); font-weight: 500;
  line-height: var(--line-control);
  white-space: nowrap;              
  flex: none;                       
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;       
  transition: background var(--ease), opacity var(--ease);
}









.btn:hover  { background: var(--accent-hover); }
.btn:active { background: var(--accent-hover); filter: brightness(.96);
              transition-duration: .1s; }



.btn[disabled], .btn[disabled]:hover {
  background: var(--surface); color: var(--ink2);
  border-color: var(--line);
  opacity: 1; cursor: not-allowed;
}


.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover  { background: var(--surface-press); }
.btn-ghost:active { background: var(--surface-press); transition-duration: .1s; }













.btn-quiet {
  background: none; border-color: transparent; color: var(--ink2);
  padding: 0 var(--space-2);
}
.btn-quiet:hover  { background: var(--surface-press); color: var(--ink); }
.btn-quiet:active { background: var(--surface-press); transition-duration: .1s; }









.btn-ico {
  width: 40px; min-width: 40px; padding: 0;
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn-ico:hover { background: var(--surface-press); }


.btn-hero { width: 100%; min-height: 44px; font-size: var(--text-body); }








.ph > .btn { width: auto; flex: none; }




.btn.is-dirty { border-color: var(--accent); }
.btn.is-dirty::after {
  content: "есть несохранённое";
  font-size: var(--text-micro);
  opacity: .8;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn-row .btn { flex: 1 1 auto; }


label { display: block; font-size: var(--text-body); line-height: var(--line-body);
        font-weight: 500; margin-bottom: var(--space-1); }











input, select, textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 var(--space-3);
  font-size: 16px;                  
  font-family: inherit;
  line-height: var(--line-control);
  color: var(--ink);
  background: var(--surface);
  

  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
textarea { padding: var(--space-2) var(--space-3); line-height: var(--line-body); }




input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px;
  min-height: 0; padding: 0; margin: 0;
  


  border: 0; background: none;
  flex: none;
  


  accent-color: var(--accent);
  cursor: pointer;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; }

@media (max-width: 899px) {
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}





::placeholder { color: var(--ink2); opacity: .65; }
input:disabled, select:disabled, textarea:disabled {
  background: var(--surface-in);
  color: var(--ink2);
  opacity: .5;
  cursor: not-allowed;
}
input[readonly], textarea[readonly] {
  background: var(--surface-in);
  cursor: default;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field { margin-bottom: var(--space-3); }



.field > input[type="checkbox"] { width: auto; margin-right: var(--space-2); }
.ask-check { display: inline; cursor: pointer; }



.field-hint {
  color: var(--ink2);
  font-size: var(--text-meta);
  line-height: var(--line-meta);
  margin-top: var(--space-1);
}




.settings-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-4);
}
@media (max-width: 899px) { .settings-grid { grid-template-columns: 1fr; } }








.settings-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-4); align-items: start; }





.settings-block { min-width: 0; }
.settings-block > .block-name { padding: var(--space-3) var(--space-4) var(--space-2); margin: 0; }
@media (max-width: 899px) {
  .settings-groups { grid-template-columns: minmax(0, 1fr); }
  .settings-col { display: contents; }
  .settings-block { order: var(--order, 0); }
}



.settings-group {
  grid-column: 1 / -1; margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-body); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink2);
}
.settings-group:first-child { margin-top: 0; }








.settings-row {
  display: block;
}
.settings-row label {
  display: block; margin-bottom: var(--space-1);
  font-size: var(--text-body); line-height: var(--line-body); font-weight: 500;
}




.settings-row .field-q { margin-bottom: var(--space-1); }
.field-num { width: 120px; flex: none; }





.set-card { padding: var(--space-2) var(--space-4); }
.set-card > .settings-group { margin: var(--space-3) 0 var(--space-1); }
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: var(--rule);
}
.set-row:last-child { border-bottom: 0; }
.set-text { min-width: 0; flex: 1 1 auto; }
.set-text > label {
  display: inline-block; margin: 0;
  font-size: var(--text-body); line-height: var(--line-body); font-weight: 500;
}
.set-hint {
  margin: 2px 0 0; color: var(--ink2);
  font-size: var(--text-meta); line-height: var(--line-meta);
}
.set-control {
  display: flex; align-items: center; gap: var(--space-2); flex: none;
}
.set-control .field-num { width: 76px; text-align: center; }
.set-row-wide .set-control { flex: 0 1 320px; }
.set-row-wide .field-text { width: 100%; }
.set-unit { min-width: 2.2em; color: var(--ink2); font-size: var(--text-control); }
.set-add-row { padding: var(--space-2) 0; }
.set-add, .set-drop { padding-left: 0; padding-right: 0; color: var(--ink2); }
.set-drop { min-height: 0; margin-left: var(--space-2); font-size: var(--text-meta); }
.set-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-top: var(--space-2);
}
.set-saved { color: var(--ok-ink); font-size: var(--text-meta); }
@media (max-width: 899px) {
  .set-row-wide { flex-wrap: wrap; }
  .set-row-wide .set-control { flex: 1 1 100%; }
}



input.switch-box[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 0;
  position: relative; flex: none; cursor: pointer;
  width: 58px; height: 32px;
  border-radius: var(--radius-md); border: 1px solid var(--accent);
  background: var(--surface-in);
  transition: background var(--ease), border-color var(--ease);
}
input.switch-box[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: var(--radius-full);
  background: var(--accent);
  transition: transform var(--ease), background var(--ease);
}
input.switch-box[type="checkbox"]:checked { background: var(--accent-btn, var(--accent)); border-color: var(--accent-btn, var(--accent)); }
input.switch-box[type="checkbox"]:checked::after { transform: translateX(26px); background: var(--surface); }
input.switch-box[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }



.settings-preview {
  grid-column: 1 / -1; margin: 0 0 var(--space-3);
  color: var(--ink2); font-size: var(--text-control);
}






.field-text { width: 100%; min-width: 0; }


a:focus-visible, button:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}












.day-head.is-today { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.day-head .count { font-weight: 500; font-size: var(--text-meta); opacity: .8; letter-spacing: 0; }

.master-group { margin-bottom: var(--space-4); }
.master-name {
  font-family: var(--font);
  font-style: normal; font-weight: 500; font-size: var(--text-section);
  margin-bottom: var(--space-2);
  padding-left: 2px;
}


.grid-desktop { display: none; }


.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 var(--space-4) var(--space-6);
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline li.done::before { background: var(--ok-ink); border-color: var(--ok-ink); }
.timeline li.next::before { background: var(--ink); border-color: var(--ink); }



.timeline li.closed { opacity: .55; }
.timeline li.closed::before { background: var(--surface); border-color: var(--ink2); }
.timeline .t-title { font-weight: 500; font-size: var(--text-body); }
.timeline .t-meta { font-size: var(--text-meta); color: var(--ink2); }





.task-check {
  width: 20px; height: 20px; flex: none; padding: 0;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-full);
  background: var(--surface); cursor: pointer;
}
.task-check:hover { border-color: var(--accent); }
.task-check.is-done { background: var(--ok-bg); border-color: var(--ok-ink); }
.task-touch-mark {
  width: 20px; height: 20px; flex: none;
  color: var(--ink2); text-align: center; line-height: 20px;
}
.line-row.task.is-done { opacity: .6; }
.line-row.task .task-body, .line-row.task .task-pair { color: var(--ink3); }
.task-menu { flex: none; }





.acc { margin-bottom: var(--space-3); }
.acc-body { padding: var(--space-4) var(--space-4) var(--space-3); }



.acc-note {
  margin: 0 0 var(--space-3); color: var(--ink2);
  font-size: var(--text-control); line-height: 1.4;
}
















.acc-line .who { flex: 1 1 11rem; min-width: 0; }





.acc-line .nm {
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-line .line-sub {
  display: block; font-size: var(--text-meta); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sess-group .block-name .line-sub {
  display: block; font-weight: 400; font-size: var(--text-meta);
}
.acc-line .acc-role { flex: 0 1 8rem; font-size: var(--text-meta); }
.acc-line .acc-seen { flex: 0 1 9rem; font-size: var(--text-meta);
                      font-variant-numeric: tabular-nums; }





.acc-group { margin-bottom: var(--space-6); }
.acc-group .block-name {
  margin: 0; padding: var(--space-3) var(--space-4) var(--space-2);
}

.sess-group { margin-bottom: var(--space-6); }
.sess-group .block-name { margin-bottom: var(--space-2); }

.acc-name-field { margin-bottom: var(--space-3); }
.acc-name-field .btn-row { display: flex; gap: var(--space-2); }
.acc-name-field input { flex: 1; min-width: 0; }
@media (max-width: 899px) {
  




  .acc-line { flex-wrap: wrap; }
  .acc-line .who { flex: 1 1 60%; }
  .acc-line .acc-role, .acc-line .acc-seen { flex: 1 1 auto; }
}
.perm-group { margin-bottom: var(--space-3); }
.perm-group-h {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink2); margin: var(--space-3) 0 var(--space-2);
}
.perm-note { margin: 0 0 var(--space-2); font-size: var(--text-meta); }
.perm-danger .perm-group-h { color: var(--alert-ink); }
.perm-group-grid { display: grid; grid-template-columns: 1fr; gap: 2px var(--space-3); }
@media (min-width: 900px) {
  .perm-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.perm-foot { display: flex; gap: var(--space-2); justify-content: space-between; margin-top: var(--space-3); }























.ev-search { margin-bottom: calc(var(--space-2) - var(--ring-reach)); }





.ev-controls {
  display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap; margin-bottom: var(--space-3);
}
.ev-pick { margin: 0; }
.ev-pick-label { display: inline-flex; align-items: center; gap: var(--space-2); }







.ev-active { margin: 0 0 var(--space-3); }
.ev-dates { margin-bottom: var(--space-3); }



.ev-feed {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}


.ev-day-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: var(--text-meta); font-weight: 500; color: var(--ink2);
  text-transform: uppercase; letter-spacing: .04em;
}
.ev-feed > .ev-day-head:not(:first-child) { border-top: 1px solid var(--line); }
.ev-day-n { margin-left: auto; font-weight: 500; letter-spacing: 0; }

.ev-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3); border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.ev-row:last-child { border-bottom: 0; }
.ev-row:hover { background: var(--surface); }
.ev-time {
  flex: none; min-width: 42px;
  font-size: var(--text-meta); color: var(--ink2);
  font-variant-numeric: tabular-nums; padding-top: 2px;
}





.ev-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.ev-title { font-size: var(--text-control); }
.ev-body { font-size: var(--text-meta); color: var(--ink2); }





.ev-sys { color: var(--ink3); }



.ev-who { color: var(--ink3); }



.alert-who { margin-top: var(--space-2); font-size: var(--text-meta); }
.ev-meta {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  font-size: var(--text-meta); color: var(--ink2);
}



.ev-row.is-todo { border-left: 3px solid var(--accent); padding-left: calc(var(--space-3) - 3px); }
.ev-act { flex: none; }
.ev-act .btn { min-height: 36px; padding: 0 var(--space-3); }

@media (max-width: 899px) {
  

  .ev-row { flex-wrap: wrap; }
  .ev-act { width: 100%; padding-left: calc(42px + var(--space-3)); }
  .ev-act .btn { width: 100%; }
  

  




  .ev-pick .sort-select { min-width: 150px; }
}


.task-archive-link {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); margin-top: var(--space-2);
  border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 500; font-size: var(--text-control);
  text-decoration: none;
}
.task-archive-link:hover { color: var(--accent); }



.archive-panel { display: flex; gap: var(--space-2); flex-wrap: wrap;
                 margin-bottom: calc(var(--space-3) - var(--ring-reach)); }
.archive-panel .search { flex: 1 1 200px; }
.archive-panel .sort-select { width: auto; min-width: 160px; }
.archive-pages { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.archive-pages a:only-child { margin-left: auto; }





.task.is-done .task-title { text-decoration: line-through; }
.task-title { font-weight: 500; font-size: var(--text-body);
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



.task-client {
  position: relative;
  color: var(--ink);            
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 14ch;
}
.task-client::after {
  content: ''; position: absolute; left: -6px; right: -6px;
  top: 50%; height: var(--tap); transform: translateY(-50%);
}
.task-client:hover { text-decoration: underline; }

.task[data-open] { cursor: pointer; }
.task[data-open]:hover { background: var(--surface-in); }
.task-meta { font-size: var(--text-meta); color: var(--ink2); }

















.rows {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.rows > .line-row {
  border: 0; border-top: var(--rule); border-radius: 0; margin: 0;
}








.rows > .line-row:first-child {
  border-top: 0;
  border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
}
.rows > .line-row:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.line-row {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  

  transition: background var(--ease), box-shadow var(--ease);
}

.line-row.is-sel { background: var(--accent-soft); }


.line-when {
  width: 72px; flex: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.line-when b { display: block; font-weight: 500; }
.line-when span { display: block; font-size: var(--text-meta); color: var(--ink3); }

.line-tx { flex: 1; min-width: 0; }
.line-tx .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-tx em {
  font-style: normal; display: block;
  font-size: var(--text-meta); line-height: var(--line-meta); color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.line-val {
  flex: none; color: var(--ink3);
  font-size: var(--text-meta); font-variant-numeric: tabular-nums;
}

.line-av {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface-in); color: var(--ink2);
  font-size: var(--text-control); font-weight: 500;
}



.client-line .who { flex: 1; min-width: 0; }
.client-line .nm { font-weight: 500; }






.clients-head .search { flex: 1 1 120px; min-width: 120px; }


.clients-bar { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }





.clients-chips {
  display: flex; align-items: center; gap: var(--space-2);
  flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}



.seg.clients-chips {
  padding: var(--ring-reach); margin: calc(-1 * var(--ring-reach));
}
.clients-chips::-webkit-scrollbar { display: none; }
.clients-chips .filter-chip { flex: none; }
.chip-more { position: relative; flex: none; }
.chip-more summary { list-style: none; display: inline-flex; cursor: pointer; }
.chip-more summary::-webkit-details-marker { display: none; }
.chip-menu {
  --pop-align: right;
  position: absolute; right: 0; top: calc(100% + 6px);
  z-index: var(--z-panel);
  min-width: 230px;
  display: flex; flex-direction: column;
  padding: var(--space-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .06), 0 8px 24px rgba(var(--ink-rgb), .14);
}
.chip-menu a {
  display: flex; align-items: center; min-height: var(--tap);
  padding: 0 var(--space-3); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip-menu a:hover { background: var(--surface-press); }
.chip-menu .muted { margin: 2px 0 var(--space-1); padding: 0 var(--space-3); font-size: var(--text-meta); }



.client-group {
  font-size: var(--text-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink2);
  margin: var(--space-4) 2px var(--space-2);
}
.client-grid > .client-group:first-child { margin-top: 0; }

.client-line .line-sub {
  display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.client-line .when {
  flex: none; font-size: var(--text-meta); color: var(--ink2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}





.client-line .line-tx .n {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.client-line .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-line .tag-archived { flex: none; }
.chans { display: inline-flex; align-items: center; gap: 4px; flex: none; }















.chan { display: inline-flex; color: var(--ink2); opacity: .38; }
.chan svg { width: 16px; height: 16px; }
.chan.is-live { opacity: 1; }
.clients-more { width: 100%; }
.clients-found { margin: 0 0 var(--space-2); }

.avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 500; font-size: var(--text-body);
  flex-shrink: 0;
}






















.popups {
  



  position: fixed; left: 50%;
  bottom: calc(var(--bar-h) + 16px);
  transform: translateX(-50%);
  z-index: var(--z-demo);
  display: flex; flex-direction: column-reverse; align-items: center;
  gap: var(--space-2);
  width: min(420px, calc(100vw - 2 * var(--space-4)));
  pointer-events: none;
}
.popups > * { pointer-events: auto; }


.toast {
  


  transform: translateY(20px);
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--ink); color: var(--raised);
  border-radius: var(--radius-lg);
  font-size: var(--text-control);
  opacity: 0; pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--alert-ink); }


.login-page {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  background: linear-gradient(160deg, var(--accent-soft) 0%, var(--raised) 55%);
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.login-card .logo { width: 68px; height: 68px; border-radius: var(--radius-lg); font-size: var(--text-num);
                    margin: 0 auto var(--space-4); }
.login-card h1 { font-size: var(--text-section); margin-bottom: 4px; }
.login-card .accent { display: block; margin-bottom: var(--space-6); font-size: var(--text-section); }
.login-card form { text-align: left; }
.login-card .btn { width: 100%; margin-top: var(--space-2); }
.login-help { margin: var(--space-4) 0; text-align: left; color: var(--ink-2); font-size: var(--text-meta); }
.login-help summary { cursor: pointer; }
.login-help p { margin: var(--space-2) 0 0; }
.login-error {
  margin-bottom: var(--space-3); padding: var(--space-3);
  background: var(--alert-bg); border: 1px solid var(--alert-ink); color: var(--alert-ink);
  border-radius: var(--radius-lg); font-size: var(--text-control); text-align: left;
}




.login-note {
  margin-bottom: var(--space-3); padding: var(--space-3);
  background: var(--ok-bg); border: 1px solid var(--ok-ink); color: var(--ink);
  border-radius: var(--radius-lg); font-size: var(--text-control); text-align: left;
}




@media (min-width: 1000px) {
  


  .wrap { padding: var(--space-6); padding-bottom: var(--space-12); }
  h1 { font-size: var(--text-title); }

  .toast { bottom: 28px; }

  
  .cards-mobile { display: none; }
  .grid-desktop { display: block; }

  .grid-scroll { overflow-x: auto; padding-bottom: var(--space-2); }
  table.grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  table.grid th, table.grid td {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: var(--space-2);
    vertical-align: top;
    text-align: left;
  }
  table.grid th {
    background: var(--accent-soft);
    font-family: var(--font);
    font-size: var(--text-meta); font-weight: 500;
    text-transform: uppercase; letter-spacing: .04em;
    position: sticky; top: 0; z-index: 5;
  }
  table.grid th.is-today { background: var(--accent-soft); color: var(--ink); }
  table.grid th:first-child, table.grid td:first-child {
    width: 140px; background: var(--surface-in); font-weight: 500;
    position: sticky; left: 0; z-index: 4;
  }
  table.grid th:first-child { z-index: 6; }
  table.grid tr:last-child td { border-bottom: none; }
  table.grid td:last-child, table.grid th:last-child { border-right: none; }

  .cell-empty { color: var(--ink2); opacity: .55; font-size: var(--text-meta); }
  .mini {
    background: var(--surface-in);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--text-meta);
  }
  .mini:last-child { margin-bottom: 0; }
  .mini.came { border-left-color: var(--ok-ink); }
  .mini.no_show { border-left-color: var(--alert-ink); }
  .mini .t { font-weight: 500; font-variant-numeric: tabular-nums; }
  .mini .btn { min-height: 34px; padding: 4px 10px; font-size: var(--text-meta); width: 100%; }

  .two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-6); align-items: start; }
  

}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}









.login-page { background: var(--page); position: relative; }
.login-card { background: var(--surface); border-color: var(--line); }




.wrap { padding-top: var(--space-4); }







.btn {
  transition: background var(--ease), color var(--ease), opacity var(--ease);
}




@media (hover: hover) {
  

  .line-row:hover { background: var(--surface-in); }
}





.line-row:active { background: var(--surface-in); transition-duration: .1s; }


.sub-progress {
  height: 6px;
  margin-top: 10px;
  background: var(--surface-in);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sub-progress i {
  display: block; height: 100%;
  width: var(--fill, 100%);
  border-radius: var(--radius-sm);
  





  background: var(--bar-fill, var(--accent));
  transition: width 700ms cubic-bezier(.2, .7, .3, 1);
}


.num-flash { animation: num-flash 700ms ease-out; }
@keyframes num-flash {
  0%   { transform: scale(1);    color: var(--ink); }
  35%  { transform: scale(1.14); color: var(--ok-ink); }
  100% { transform: scale(1);    color: var(--ink); }
}


.success-pop {
  position: fixed; inset: 0; z-index: var(--z-success);
  display: grid; place-items: center;
  pointer-events: none;
  background: rgba(var(--ink-rgb), .10);
  opacity: 0;
  animation: pop-fade 1500ms ease forwards;
}
.success-pop .ring {
  width: 108px; height: 108px;
  background: rgba(var(--raised-rgb), .96);
  border-radius: var(--radius-full);
  display: grid; place-items: center;
  transform: scale(.86);
  animation: ring-in 420ms cubic-bezier(.2, .8, .3, 1) forwards;
}
.success-pop svg { width: 56px; height: 56px; }
.success-pop .circle {
  fill: none; stroke: var(--accent); stroke-width: 2.4;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: draw 520ms cubic-bezier(.4, 0, .2, 1) 80ms forwards;
}
.success-pop .tick {
  fill: none; stroke: var(--ink); stroke-width: 3.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: draw 360ms cubic-bezier(.4, 0, .2, 1) 380ms forwards;
}
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes ring-in { to { transform: scale(1); } }
@keyframes pop-fade {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}


.sync {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--ease), transform var(--ease);
  pointer-events: none;
}
.sync.show { opacity: 1; transform: none; }
.sync i {
  width: 6px; height: 6px; border-radius: var(--radius-full);
  background: var(--accent);
  animation: dot 1200ms ease-in-out infinite;
}
.sync i:nth-child(2) { animation-delay: 160ms; }
.sync i:nth-child(3) { animation-delay: 320ms; }
@keyframes dot {
  0%, 100% { opacity: .35; transform: translateY(0) scale(.9); }
  40%      { opacity: 1;   transform: translateY(-3px) scale(1); background: var(--ink); }
}















.empty .say {
  font-family: var(--font);
  font-style: normal; font-weight: 500; font-size: var(--text-section); color: var(--ink2);
  max-width: min(64ch, 100%); line-height: 1.45;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}


.timeline li { --line-fill: 0%; }
.timeline li::after {
  content: '';
  position: absolute; left: -2px; top: 0;
  width: 2px; height: var(--line-fill);
  background: var(--ink);
  transition: height var(--grow-line, 650ms) var(--grow-ease) 200ms;
}
.timeline li.done { --line-fill: 100%; }
.timeline li.next { --line-fill: 45%; }
.timeline li::before {
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.timeline li.next::before {
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ink-rgb), .26); }
  50%      { box-shadow: 0 0 0 7px rgba(var(--ink-rgb), 0); }
}


.toast {
  border: 1px solid rgba(var(--accent-rgb), .35);
  border: var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.toast::before {
  content: '';
  width: 7px; height: 7px; border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
}
.toast.error::before { background: var(--alert-bg); }


@media (max-width: 899px) {
  
  .toast { bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); }
  .success-pop .ring { width: 96px; height: 96px; }
  .success-pop svg { width: 50px; height: 50px; }
}

@media (min-width: 900px) {
  .sync { bottom: 24px; right: 24px; }
}


@media (prefers-reduced-motion: reduce) {
  .card, .client-line, .acc, .day-block,
  .login-card, .login-card .logo,
  .empty svg, .timeline li.next::before { animation: none !important; }
  .sub-progress i, .timeline li::after { transition: none !important; }
  .success-pop { animation: pop-fade-static 1200ms ease forwards; }
  @keyframes pop-fade-static { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
  .success-pop .circle, .success-pop .tick { stroke-dashoffset: 0; animation: none; }
  .success-pop .ring { transform: scale(1); animation: none; }
}


.build-mark {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-micro);
  letter-spacing: .06em;
  color: var(--ink2);    
  user-select: all;            
}
.build-mark.login {
  position: fixed; left: 0; right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  margin: 0;
  color: var(--ink2);
  opacity: .6;
}






.dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-lg);
  background: var(--ink); color: var(--raised);
  font-size: var(--text-micro); font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}





.int-do {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: var(--rule);
}
.int-do-second { margin-left: auto; }





.int-do .btn { min-width: 0; }
@media (max-width: 420px) {
  .int-do { gap: var(--space-2); }
  .int-do form { min-width: 0; }
}














.wrap-dialogs { padding-bottom: var(--space-4); }
.dialogs { display: block; }






@media (max-width: 999px) {
  







  .page-title { font-size: var(--text-section); line-height: var(--line-section); }
  .section-head { justify-content: space-between; }
  


  .section-head > .head-actions { justify-content: flex-end; }
  .wrap-dialogs .build-mark { display: none; }
  





  .wrap-dialogs.thread-open .ph { display: none; }
  .dlg-thread { display: none; }
  .wrap-dialogs.thread-open .dlg-list { display: none; }
  .wrap-dialogs.thread-open .dlg-thread { display: flex; flex-direction: column; }
  .thread-blank { display: none; }
}






.dlg-item {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  text-decoration: none; color: var(--ink);
}




.dlg-item .line-tx .n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dlg-item .line-tx .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
























.dlg-tx { display: flex; flex-direction: column; gap: 2px; }
.dlg-row1, .dlg-row2 { display: flex; align-items: center; min-width: 0; gap: var(--space-2); }
.dlg-row1 .n { flex: 1; }
.dlg-row2 em { flex: 1; min-width: 0; }

.dlg-tail { flex: none; display: flex; align-items: center; gap: 6px; }


.dlg-tail .dlg-win { margin: 0; }



.dlg-dot { flex: none; }
.dlg-dot-none { visibility: hidden; }















.bar-problem, .fold-overdue > summary { box-shadow: inset 3px 0 0 var(--alert-ink); }
.bar-wait { box-shadow: inset 3px 0 0 var(--wait-ink); }





.dlg-when { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.dlg-who { display: inline-flex; color: var(--ink3); }
.dlg-who svg { width: 16px; height: 16px; }





.dlg-who-bot { color: var(--ink3); }
.dlg-who-human { color: var(--ink); }

.ch { width: 15px; height: 15px; flex-shrink: 0; }
.ch-tg { color: var(--ink2); }
.ch-wa { color: var(--ink2); }


.dlg-thread { min-height: 60vh; }

.thread-head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
  



  position: sticky; top: calc(var(--top-h) + var(--demo-bar-h, 0px)); z-index: 30;
  background: var(--page);
}
@media (min-width: 1000px) {
  

  .thread-head { top: 0; background: var(--surface); }
}
.thread-back {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap);
  border-radius: var(--radius-md);
  color: var(--ink); flex-shrink: 0;
}
.thread-back:hover { background: var(--surface-press); }
.thread-who { flex: 1; min-width: 0; }
.thread-who .nm { display: flex; align-items: center; gap: 7px; font-weight: 500; min-width: 0; }



.thread-nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.thread-ad { font-size: var(--text-micro); color: var(--ink2); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }




.thread-card, .thread-head .own-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap); padding: 0; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.thread-card:hover, .thread-head .own-btn:hover { background: var(--surface-press); }


.thread-head .own-btn .own-hand { display: none; }
.thread-head .own-btn.is-mine .own-robot { display: none; }
.thread-head .own-btn.is-mine .own-hand { display: block; }
.thread-head .own-btn.is-mine { background: var(--accent-soft); border-color: var(--accent); }



.own-word { font-size: var(--text-micro); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.own-word-solo {
  flex-shrink: 0; padding: 3px 9px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink2);
}
.own-word-solo.is-mine { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }


.thread-head .own-btn { gap: 5px; padding: 0 8px; }
.thread-head .thread-who .nm { gap: 6px; }
@media (max-width: 999px) {
  


  .thread-head { gap: 6px; }
}





.stage-note {
  padding: 0;
  margin-bottom: var(--space-3);
  font-size: var(--text-meta); line-height: var(--line-meta); color: var(--ink2);
}







.thread {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-2) 0 var(--space-4);
  flex: 1;
  overflow-y: auto;
}
.msg { max-width: 78%; padding: 10px 13px; border-radius: var(--radius-lg); font-size: var(--text-body);
       animation: rise 260ms cubic-bezier(.2,.7,.3,1) both; }
.msg.in  { align-self: flex-start; background: var(--surface); border: 1px solid var(--line);
           }
.msg.out { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--accent);
           }
.msg.out.by-admin { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.msg-text { white-space: pre-wrap; word-break: break-word; }
.msg-meta { margin-top: 4px; font-size: var(--text-micro); opacity: .65; }











.msg:not(:has(.msg-media)) .msg-text { display: inline; }
.msg:not(:has(.msg-media)) .msg-meta {
  float: right; margin: 0 0 0 10px; padding-top: 6px;
  line-height: 1;
}


.msg::after { content: ""; display: block; clear: both; }




.msg-media + .msg-media { margin-top: var(--space-2); }
.msg-media img, .msg-media video {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: var(--radius-lg); background: var(--accent-soft);
}


.msg-media-link { display: none; word-break: break-all; }
.msg-media.is-broken img, .msg-media.is-broken video { display: none; }
.msg-media.is-broken .msg-media-link { display: inline-block; }







.msg-media.is-file .msg-media-link { display: inline-block; }







.msg-media-lost { display: block; font-size: var(--text-xs);
  color: var(--alert-ink); word-break: break-word; }


.composer {
  position: sticky; bottom: 0;
  display: flex; align-items: flex-end; gap: var(--space-2);
  padding: var(--space-2) 0 calc(var(--bar-h) + var(--space-3) + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(var(--page-rgb),0), var(--page) 22%);
}
.composer textarea {
  flex: 1; resize: none; max-height: 130px;
  border-radius: var(--radius-md); padding: 11px var(--space-4);
  line-height: 1.4;
}





































.wrap-dialogs.thread-open .composer:not(.disabled) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-rows: var(--tap) minmax(50px, auto);
  gap: var(--space-2);
  align-items: stretch;
}
.wrap-dialogs.thread-open .composer textarea {
  grid-column: 1; grid-row: 1 / 3;
  min-height: calc(var(--tap) + var(--space-2) + 50px);
}
.wrap-dialogs.thread-open .composer .composer-tpl {
  display: inline-flex;
  grid-column: 2; grid-row: 1;
  height: var(--tap); min-height: var(--tap);
  padding: 0 var(--space-2);
}
.wrap-dialogs.thread-open .composer > button[type="submit"].btn {
  grid-column: 2; grid-row: 2; align-self: end;
  height: 50px; min-height: 50px; min-width: 0; padding: 0;
  border-radius: var(--radius-md);
}















.composer.disabled { display: block; background: none; }
.composer-note {
  padding: var(--space-3);
  background: var(--surface); border: var(--rule);
  border-radius: var(--radius-lg);
  font-size: var(--text-control); color: var(--ink2); text-align: center;
}


.switch {
  width: 58px; height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--surface-in);
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease);
}
.switch .knob {
  display: block; width: 24px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--accent);
  transition: transform var(--ease), background var(--ease);
}
.switch.on { background: var(--accent-btn, var(--accent)); border-color: var(--accent-btn, var(--accent)); }
.switch.on .knob { transform: translateX(26px); background: var(--surface); }

.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }


.cards-grid { display: grid; gap: var(--space-3); }
.integration.stage2 { opacity: .92; }





.int-title { flex: 1; min-width: 0; }














.int-fact {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}













.int-lines { margin: var(--space-3) 0 0; display: grid; gap: var(--space-1); }
.int-line {
  display: flex; align-items: baseline; gap: var(--space-2);
  font-size: var(--text-meta); line-height: var(--line-meta); color: var(--ink2);
}
.int-line dt { flex: none; }
.int-line dd {
  margin: 0; min-width: 0; flex: 1; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.int-line dd { color: var(--ink); }









.card.integration { display: flex; flex-direction: column; }
.int-actions {
  margin-top: auto; padding-top: var(--space-3);
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-self: flex-start;
}







.int-when {
  margin: 6px 0 0;
  font-size: var(--text-meta); line-height: var(--line-meta);
  color: var(--ink2);
}











.int-dl {
  margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px;
  font-size: var(--text-meta); line-height: var(--line-meta);
}
.int-dl dt { color: var(--ink-2); }
.int-dl dd { margin: 0; overflow-wrap: anywhere; }

.live-dot {
  width: 7px; height: 7px; border-radius: var(--radius-full);
  background: var(--ok-ink);
  animation: live 2.4s ease-in-out infinite;
}
@keyframes live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ok-ink-rgb), .5); }
  50%      { box-shadow: 0 0 0 6px rgba(var(--ok-ink-rgb), 0); }
}


@media (min-width: 1000px) {
  


  












  .wrap-dialogs {
    display: flex; flex-direction: column;
    height: calc(100dvh - var(--demo-bar-h, 0px)); box-sizing: border-box;
  }
  .dialogs {
    display: grid;
    





    grid-template-columns: 360px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: stretch;
    flex: 1; min-height: 0;
  }
    

.dlg-list {
    min-height: 0; overflow-y: auto;
    padding-inline: var(--ring-reach);
    margin-inline: calc(var(--ring-reach) * -1);
  }
  
























  .dlg-list > [data-live-swap="list"] {
    min-height: 100%;
    display: flex; flex-direction: column;
  }
  .dlg-list .rows, .dlg-list .empty-state { flex: 1; }
  .dlg-list .rows { margin-bottom: 0; }
  .dlg-thread {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0 var(--space-4);
    min-height: 0;
  }
  .wrap-dialogs .build-mark { flex: none; }
  .thread-back { display: none; }
  
















  .thread {
    max-height: none;
    padding-inline: var(--space-4);
    margin-inline: calc(var(--space-4) * -1);
  }
  .composer { padding-bottom: var(--space-3); background: var(--surface); }
  


  .composer.disabled { background: none; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  




  .int-dl { grid-template-columns: max-content 1fr; gap: 4px var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  .msg, .switch .knob, .live-dot { animation: none !important; }
}






.logo {
  display: block;
  width: 46px; height: 46px;
  border-radius: var(--radius-full);
  background: none;
  object-fit: cover;
  flex-shrink: 0;
  
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .18), 0 2px 8px rgba(var(--ink-rgb), .10);
}
.login-card .logo {
  width: 88px; height: 88px;
  margin: 0 auto var(--space-4);
  box-shadow: 0 0 0 1.5px rgba(var(--ink-rgb), .22), 0 10px 26px rgba(var(--ink-rgb), .18);
}


.nav-row { display: flex; gap: var(--space-1); }








.dlg-filter { display: flex; gap: 6px; margin-bottom: var(--space-3); }


.dlg-hint { margin: calc(-1 * var(--space-2)) 0 var(--space-3); font-size: var(--text-meta); line-height: 1.35; }
.dlg-filter .filter-chip {
  flex: 1 1 0; min-width: 0; justify-content: center;
  padding: 0 var(--space-2); gap: 6px;
}





.filter-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink2);
  font-size: var(--text-control); font-weight: 500;
  line-height: var(--line-control);
  white-space: nowrap; flex: none;
  text-decoration: none;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip .chip-dot {
  width: var(--space-2); height: var(--space-2);
  border-radius: var(--radius-full); background: var(--accent);
}

.filter-chip.is-on {
  background: var(--accent-soft); border-color: var(--accent); color: var(--ink);
}
.filter-chip.is-on .chip-dot { background: var(--accent); }


.filter-chip .chip-count {
  color: var(--ink3); font-weight: 400; background: none; padding: 0; border: 0;
}














[data-live-swap].is-live-wait,
[data-live-page].is-live-wait { opacity: .55; transition: opacity .2s; }
html[data-glass] [data-live-page].is-live-wait {
  opacity: 0; filter: blur(var(--open-out-blur));
  transition: opacity var(--open-out) linear,
              filter var(--open-out) linear;
}
@media (prefers-reduced-motion: reduce) {
  html[data-glass] [data-live-page].is-live-wait {
    opacity: .55; filter: none; transition: opacity .2s;
  }
}
html[data-opaque="1"][data-glass] [data-live-page].is-live-wait {
  opacity: .55; filter: none; transition: opacity .2s;
}

.dlg-status {
  display: inline-block; margin-top: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-micro); font-weight: 500; letter-spacing: .06em;
  border: 1px solid transparent;
}
.st-bot     { background: var(--surface); border-color: var(--line); color: var(--ink2); }
.st-admin   { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.st-waiting { background: var(--alert-bg); border-color: var(--alert-ink); color: var(--alert-ink); }



.dlg-win {
  display: inline-block; margin-top: 5px; margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-micro); font-weight: 500; letter-spacing: .06em;
  border: 1px solid transparent;
}
.dlg-win-hot    { background: var(--alert-bg); border-color: var(--alert-ink); color: var(--alert-ink); }
.dlg-win-closed { background: var(--surface); border-color: var(--line); color: var(--ink2); }



















.thread-acts {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); flex-wrap: nowrap;
  padding: var(--space-2) var(--space-3) 0;
}
.thread-act {
  min-width: 0; height: 32px; min-height: 32px; padding: 0 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}







.thread-acts:not(:has(#close-no-reply)) { display: none; }
.thread-acts-note {
  display: block; flex: 1 1 auto; min-width: 0;
  font-size: var(--text-control); color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.msg-system {
  align-self: center;
  max-width: 90%;
  padding: 2px 0;
  background: none;
  color: var(--ink2);
  font-size: var(--text-meta);
  text-align: center;
}




.thread-day {
  align-self: center;
  margin: var(--space-2) 0 2px;
  padding: 2px 10px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--ink2);
  font-size: var(--text-micro); font-weight: 500;
  letter-spacing: .02em;
}


.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }









.pair-no {
  color: var(--ink2); font-variant-numeric: tabular-nums;
}


body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: var(--space-4);
}

.modal-scrim {
  position: absolute; inset: 0;
  



  background: var(--overlay);
  animation: fade-in 200ms ease both;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;      
  max-height: 86vh; overflow-y: auto;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--ink);       
  border-radius: var(--radius-lg);
}






.modal-card.has-foot {
  display: flex; flex-direction: column;
  padding: 0;                 
  overflow: hidden;           
}
.modal-card.has-foot .panel-body { flex: 1 1 auto; overflow-y: auto; }
.modal-card.has-foot .panel-foot { flex: 0 0 auto; background: var(--surface); }










html[data-glass] .panel-foot {
  background: none;
  border-top: 1px solid rgba(var(--ink-rgb), .08);
  


  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }




.modal-card > h2 { font-size: var(--text-section); margin-bottom: var(--space-2); }







.modal-card:not(.has-foot) > .btn-row {
  position: sticky; bottom: calc(-1 * var(--space-4));
  margin-top: var(--space-4);
  padding: var(--space-3) 0 0;
  background: var(--surface);
  border-top: var(--rule);
}

.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--space-3); margin: var(--space-4) 0 0; }
.summary dt { color: var(--ink2); font-size: var(--text-control); }
.summary dd { margin: 0; font-weight: 500; text-align: right; }

.just-sold { animation: just-sold 1600ms ease both; }
@keyframes just-sold {
  0%   { transform: scale(.98); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .8); }
  35%  { transform: scale(1);   box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
  100% { transform: none;       }
}

@media (max-width: 899px) {
  .two-fields { grid-template-columns: 1fr; }
  


  .modal-card { padding: var(--space-4); }
  .modal .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-card, .modal-scrim, .just-sold { animation: none !important; }
}


.user-card.is-off { opacity: .6; }
.role-select {
  width: auto; min-width: 150px;
  min-height: 40px; padding: 6px var(--space-3);
  font-size: var(--text-control);
  flex-shrink: 0;
}
.session-card.is-revoked { opacity: .62; }
.session-card .badge { white-space: nowrap; }




.sess-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sess-name { font-weight: 500; }
.sess-side {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: var(--space-2); flex: none;
}
.session-card .row-acts { margin-top: 0; }


.session-badges {
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap; justify-content: flex-end;
}


.badge-quiet { background: var(--surface-in); color: var(--ink2); }



.old-sessions { margin-top: var(--space-3); }
.old-sessions-body {
  padding: 0 var(--space-3) var(--space-3);
  max-height: 60vh; overflow-y: auto;
}

.pass-box {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: var(--text-num); font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

@media (max-width: 899px) {
  
  .user-card .card-row { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .role-select { width: 100%; min-height: var(--tap); }
  .pass-box { font-size: var(--text-section); }
  #pass-copy { min-height: 52px; }
}













.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .02em;
  word-break: break-all;
}













.pm-row {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  min-height: 56px; padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); margin-bottom: var(--space-2);
}










.pm-row.is-off .pm-name,
.pm-row.is-off .pm-label { opacity: .6; }
.pm-row.pm-system .pm-label { color: var(--ink2); }
.pm-row .pm-name { flex: 1 1 160px; min-width: 0; }
.pm-row .pm-name input { width: 100%; }
.pm-row .pm-label { flex: 1 1 160px; min-width: 0; font-weight: 500; }
.pm-row .pm-side { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.pm-add { display: flex; gap: var(--space-2); align-items: flex-end; flex-wrap: wrap; }
.pm-add .field { flex: 1 1 200px; margin-bottom: 0; }

.report-table tr.is-clickable { cursor: pointer; }
.report-table tr.is-clickable:hover > td { background: var(--surface-in); }
.report-table tr.is-clickable:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}






.task-action { margin-top: 10px; }
.task-action .btn { width: 100%; justify-content: flex-start; gap: 10px; }
.mini-link { font-size: var(--text-meta); }
















.subs-alert {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--wait-ink); border-radius: var(--radius-lg);
  background: var(--pending-bg); color: var(--ink);
  font-size: var(--text-meta);
}
.subs-alert-say { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.subs-alert-say b { font-weight: 500; }
.subs-alert-say span { color: var(--ink2); }
.subs-alert .btn { margin-left: auto; flex: none; }
.subs-alert-grace, .subs-alert-card_failed {
  border-color: var(--alert-ink); background: var(--alert-bg); color: var(--alert-ink);
}
.subs-alert-grace .subs-alert-say span,
.subs-alert-card_failed .subs-alert-say span { color: inherit; opacity: .85; }
@media (max-width: 560px) {
  .subs-alert { align-items: stretch; flex-direction: column; gap: var(--space-2); }
  .subs-alert .btn { margin-left: 0; width: 100%; }
}

.task-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px var(--space-3);
  margin-bottom: var(--space-3);
  background: var(--alert-bg);
  border: 1px solid var(--alert-ink);
  border-radius: var(--radius-lg);
  color: var(--alert-ink);
  font-size: var(--text-meta); font-weight: 500;
  text-decoration: none;
}
.task-strip-go { margin-left: auto; opacity: .75; font-weight: 500; }







.lead-stage {
  padding: 9px var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink2);
  font-size: var(--text-meta);
}
.lead-stage.is-done { color: var(--ok-ink); border-color: var(--ok-ink); }













.plans { display: grid; gap: var(--space-3); }



















.plans-four {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}










.plan-year-note {
  margin: 0;
  font-size: var(--text-body); line-height: var(--line-body);
  color: var(--ink); font-weight: 500;
}
.ctl > .plan-year-note { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; }
.plan { display: flex; flex-direction: column; }
.plan.accent {
  







  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--accent-soft);
  












  color: var(--ink);
}
.plan-head { display: flex; align-items: center; gap: var(--space-2); }
.plan-head h2 { font-size: var(--text-body); }
.plan-badge {
  padding: 3px 10px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--raised);
  font-size: var(--text-micro); font-weight: 500; letter-spacing: .04em;
}









.plan-badge-blank {
  visibility: hidden;
  width: 0; padding-inline: 0;
  margin-inline-start: calc(-1 * var(--space-2));
}
.plan-price {
  font-family: var(--font);
  font-weight: 500; font-size: 34px;
  margin-top: var(--space-3);
  line-height: 1;
}
.plan-price-note { font-size: var(--text-meta); font-weight: 500; color: var(--ink2); }




.alts { display: inline-grid; vertical-align: top; max-width: 100%; }
.alts > .alt { grid-area: 1 / 1; white-space: nowrap; }
.alts > .alt:not(.on) { visibility: hidden; }


.plan-price > .plan-price-was { display: block; margin-right: 0; }


[data-extra-line] .alts > .alt { white-space: normal; }


.plan-price-was { font-size: .55em; color: var(--ink2); text-decoration: line-through; margin-right: 6px; }














.plan-price-was .alts > .alt { text-decoration: line-through; }

[data-plan-price] .plan-price-was { font-size: inherit; margin-right: 2px; }
.plan-was-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; clip-path: inset(50%);
}
.plan-discount-note {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body); line-height: var(--line-body);
  color: var(--ink); font-weight: 500; max-width: 78ch;
}
.plan-recurring {
  font-family: var(--font);
  font-style: normal; font-weight: 500; font-size: var(--text-num); color: var(--ink2);
  margin-top: 4px;
}
.plan-points { margin: var(--space-4) 0 0; padding: 0; list-style: none; }








.plan > p:last-child { margin-top: auto; margin-bottom: 0; padding-top: var(--space-3); }
.plan-points li {
  position: relative; padding-left: 22px; margin-bottom: 8px; font-size: var(--text-control);
}
.plan-points li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 7px; height: 7px; border-radius: var(--radius-full);
  background: var(--accent);
}
.plan.accent .plan-points li::before { background: var(--ink); }

.fineprint {
  margin: var(--space-6) 0 0;
  font-size: var(--text-meta); color: var(--ink2); text-align: center;
}


.bar-row { margin-bottom: var(--space-3); }
.bar-row:last-child { margin-bottom: 0; }

















.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
             
             gap: var(--space-3); margin-bottom: var(--space-6); }









.stat { display: flex; flex-direction: column; justify-content: flex-start;
        text-align: left; padding: var(--space-3) var(--space-4);
        margin-bottom: 0; }






a.stat-link { text-decoration: none; color: inherit; cursor: pointer;
              transition: border-color .12s ease, background .12s ease; }
a.stat-link:hover { border-color: var(--accent); background: var(--surface); }
a.stat-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


a.stat-link .stat-label::after { content: " ›"; color: var(--accent); font-weight: 600; }
.stat-num {
  font-family: var(--font); font-weight: 500;
  font-size: var(--text-num); line-height: var(--line-num);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  







  white-space: nowrap;
}
.stat-label { font-size: var(--text-meta); line-height: var(--line-meta);
              color: var(--ink2); white-space: nowrap;
              overflow: hidden; text-overflow: ellipsis; }







.stat-week {
  font-family: var(--font); font-style: normal; font-weight: 400;
  font-size: var(--text-meta); line-height: var(--line-meta);
  color: var(--ink2); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.link-box {
  display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3); padding: var(--space-3);
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
}
.link-box code { flex: 1; min-width: 0; font-size: var(--text-meta); word-break: break-all; }
.link-preset { display: flex; align-items: center; gap: var(--space-3); }
.preset-url {
  display: block; font-size: var(--text-meta); color: var(--ink2);
  word-break: break-all; margin-top: 2px;
}








.src-tiles {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}
.src-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: var(--tap);
  padding: var(--space-3);
  text-align: left; font: inherit; color: var(--ink);
  background: var(--surface); border: var(--rule); border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--ease);
}
.src-tile:hover { background: var(--surface-press); }


html[data-glass] .src-tile:hover,
html[data-glass] .src-tile.is-system:hover { background: var(--pane-grad-press, var(--pane-grad)); }
.src-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.src-tile.is-system { cursor: default; }
.src-tile.is-system:hover { background: var(--surface); }
.src-tile.is-unknown .src-tile-name { color: var(--wait-ink); }
.src-tile-name { font-weight: 500; overflow-wrap: anywhere; }
.src-tile-num {
  font-size: var(--text-section); line-height: var(--line-section);
  font-variant-numeric: tabular-nums;
}
.src-tile-meta { font-size: var(--text-meta); color: var(--ink2); overflow-wrap: anywhere; }
.src-group-head { margin: var(--space-4) 0 var(--space-1); font-size: var(--text-body); }
.src-group-note { margin: 0 0 var(--space-2); font-size: var(--text-meta); }





.src-labels { display: flex; flex-direction: column; gap: var(--space-2); }
.src-label { padding: var(--space-2) 0; border-top: var(--rule); }
.src-label-key { font-size: var(--text-meta); color: var(--ink2); word-break: break-all; }
.src-label-acts { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.src-label-acts .btn.is-danger { color: var(--alert-ink); }



.btn-ico.is-copied { border-color: var(--accent); background: var(--accent-soft); }
.btn-ico.is-copy-failed { border-color: var(--wait-ink); background: var(--wait-bg); }


.btn-ico.is-empty { border: none; background: none; pointer-events: none; }


























.paid-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-3); margin-top: var(--space-3);
}
.paid-nums {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  font-size: var(--text-meta); color: var(--ink2); min-width: 0;
}


.paid-left { color: var(--wait-ink); }

.payline {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3);
  padding: 10px var(--space-3);
  border-bottom: var(--rule);
}
.payline:last-child { border-bottom: none; }



.payline-who { flex: 1 1 10rem; min-width: 0; }
.payline-name {
  font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
a.payline-name:hover { border-color: var(--ink); }

span.payline-name { border-bottom: none; }
.payline-meta {
  font-size: var(--text-meta); color: var(--ink2); margin-top: 2px;
}


.payline-sum {
  font-variant-numeric: tabular-nums; font-weight: 500;
  font-size: var(--text-section); white-space: nowrap; flex-shrink: 0;
}


.payline-sum.is-quiet { color: var(--ink2); font-weight: 500; }
.payline.is-total {
  background: var(--surface-in); border-top: var(--rule);
  border-bottom: none;
}
.payline.is-total .payline-name { font-weight: 500; }
.payline.is-total .payline-sum { font-weight: 500; }







.payout-lines > summary { cursor: pointer; list-style: none; }
.payout-lines > summary::-webkit-details-marker { display: none; }
.payout-lines > summary:hover { color: var(--ink); }
.payout-lines[open] > summary { margin-bottom: 4px; }








.payout-line {
  display: flex; align-items: baseline; gap: 0 var(--space-3);
  font-size: var(--text-meta); color: var(--ink2);
  padding: 3px var(--space-3); border-top: var(--rule);
}
.payout-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payout-line .pl-day { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.payout-line .pl-who { flex: 1 1 30%; min-width: 0; color: var(--ink); }


.payout-line .pl-note { flex: 1 1 20%; min-width: 0; }
.payout-line .pl-min,
.payout-line .pl-sum { flex: 0 0 auto; font-variant-numeric: tabular-nums; text-align: right; }
.payout-line .pl-min { min-width: 7ch; }
.payout-line .pl-sum { min-width: 9ch; color: var(--ink); }





.row-menu { position: relative; }
.row-menu > summary { list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list {
  


  --pop-align: right;
  position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--z-menu);
  min-width: 232px; padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .06),
              0 8px 24px rgba(var(--ink-rgb), .14);
}
.row-menu-item {
  display: flex; align-items: center; width: 100%;
  min-height: var(--tap); padding: 0 var(--space-3);
  background: none; border: none; border-radius: var(--radius-md);
  color: var(--ink); font: inherit; font-size: var(--text-control);
  text-align: left; cursor: pointer;
}
.row-menu-item:hover { background: var(--surface-press); }
.row-menu-item.is-danger { color: var(--alert-ink); }
@media (max-width: 899px) {
  




  .row-menu-list { top: auto; bottom: calc(100% + 4px); }
}

@media (min-width: 900px) {
  





  


  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  



  .plans-four { grid-template-columns: repeat(2, minmax(0, 420px)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  





  .stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}




@media (min-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  


  .plan-badge-blank { display: none; }
  .task-action .btn { min-height: 48px; }
  .link-preset { flex-direction: column; align-items: stretch; }
  .link-preset .btn { width: 100%; }
  .plan-price { font-size: var(--text-title); }
}

@media (prefers-reduced-motion: reduce) {
  .bar i { transition: none !important; }
}





.pick {
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-btn, var(--accent));
  background: var(--accent-btn, var(--accent));
  color: var(--on-accent);
  font-family: var(--font);
  font-size: var(--text-meta); font-weight: 500; letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background var(--ease), color var(--ease);
}
.pick:active { background: var(--accent-btn, var(--accent)); transition-duration: .1s; }
.pick .pick-off { display: none; }
.pick:not(.on) {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
}
.pick:not(.on):active { background: var(--surface-press); }
.pick:not(.on) .pick-on { display: none; }
.pick:not(.on) .pick-off { display: inline; }


.plan-allin {
  margin-top: 8px;
  font-family: var(--font);
  font-style: normal; font-weight: 500; font-size: var(--text-section);
  color: var(--ink2);
}
.plan.accent .plan-allin { color: var(--ink); }

@media (max-width: 899px) {
  .pick { min-height: var(--tap); font-size: var(--text-meta); padding: 0 var(--space-4); }
  .feat-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .feat-foot .badge { align-self: flex-start; }
  .pick { width: 100%; }

  

  .total-line {
    position: sticky;
    bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    z-index: 30;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: var(--space-3) var(--space-4);
  }
}






.only-mobile { display: none; }

@media (max-width: 899px) {
  .only-desktop { display: none !important; }
  .only-mobile  { display: inline; }

  




  :root { --bar-h: 62px; }

  




  .search input { font-size: 16px; }

  






  


  
  .task { padding: 10px 0; gap: 10px; }
  .task-title { font-size: var(--text-control); line-height: 1.35; }

  
  .task-body {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--text-meta);
    margin-top: 2px;
    cursor: pointer;
  }
  .task.is-open .task-body { -webkit-line-clamp: unset; }

  
  .task-line {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: var(--text-meta);
  }
  .task-line .badge { font-size: var(--text-micro); padding: 2px 7px; }
  .task-due { font-variant-numeric: tabular-nums; }
  .mini-link { font-size: var(--text-meta); }

  
  .task-go {
    margin-left: auto;
    min-height: 34px;             
    background: var(--accent-soft);     
    border-color: var(--accent);
    padding: 0 12px;
    font-size: var(--text-meta);
    gap: 6px;
    border-radius: var(--radius-md);
    position: relative;
  }
  .task-go::after {               
    content: '';
    position: absolute; left: 0; right: 0;
    top: -5px; bottom: -5px;
  }
  .task-go svg { width: 15px; height: 15px; }

  .acc-body { padding: var(--space-4) var(--space-3) var(--space-2); }

  
  .client-line { min-height: 52px; padding: 10px var(--space-3); gap: 10px; }
  .client-line .avatar { width: 34px; height: 34px; font-size: var(--text-meta); }
  .client-line .nm { font-size: var(--text-control); }
  .client-line .muted { font-size: var(--text-meta); }
  .client-grid { gap: 6px; }

  
  .card { padding: var(--space-3); }
  .day-head { padding: 7px var(--space-3); font-size: var(--text-meta); margin-bottom: 10px; }
  .slot-time { font-size: var(--text-section); }
  .slot-master { font-size: var(--text-control); }
  .master-name { font-size: var(--text-body); margin-bottom: 6px; }
  .master-group { margin-bottom: var(--space-3); }

  
  .card .muted { font-size: var(--text-meta); }

  
  .dlg-item { min-height: 58px; padding: 10px var(--space-3); gap: 10px; }
  .dlg-item .avatar { width: 34px; height: 34px; font-size: var(--text-meta); }
  .dlg-name { font-size: var(--text-control); }
  .dlg-last { font-size: var(--text-meta); margin-top: 1px; }
  .dlg-time { font-size: var(--text-micro); }
  .dlg-status { font-size: 9px; padding: 1px 6px; margin-top: 3px; }

  
  .muted { font-size: var(--text-meta); }
  .section { margin-bottom: var(--space-4); }
  h2 { font-size: var(--text-body); }
}















.line-row.task .line-val { max-width: 110px; white-space: normal;
                           text-align: right; line-height: var(--line-meta); }
.due-short { display: none; }
@media (max-width: 899px) {
  .due-full { display: none; }
  .due-short { display: inline; }
  .line-row.task .line-val { max-width: 56px; white-space: nowrap; }
}



@media (min-width: 900px) {
  
  .task-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .task-line > .task-go { margin-left: auto; }

  

  .task-go {
    min-height: 29px;
    padding: 0 11px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-meta); font-weight: 500;
    letter-spacing: .01em;
    gap: 6px;
    box-shadow: none;
    transition: background var(--ease), border-color var(--ease);
  }
  .task-go:hover { background: var(--surface-press); border-color: var(--ink); transform: none; }
  .task-go svg { width: 14px; height: 14px; }
}
.attempts {
  color: var(--ink2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


.task-acts {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.act {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  font-family: var(--font);
  font-size: var(--text-meta); font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.act:hover { background: var(--surface-press); color: var(--ink); }
.act:active { background: var(--surface-in); transition-duration: .1s; }
.act[disabled] { opacity: .5; }
.act-done { border-color: var(--accent); color: var(--ink); }
.act-done:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }


.act-later { position: relative; }


.row-menu-sep {
  padding: var(--space-2) var(--space-3) var(--space-1);
  font-size: var(--text-caps); line-height: var(--line-caps); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink2);
}




.chips { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.chip-n {
  














  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: var(--space-1);
  border-radius: var(--radius-full);
  background: var(--sunken);
  color: var(--ink2);
  font-size: var(--text-micro); font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.sort-wrap { display: flex; align-items: center; gap: var(--space-2); margin: 0; }








.sort-select { width: auto; min-width: 190px; min-height: var(--control-h);
               font-size: var(--text-control); }

















.sel {
  position: relative; display: inline-flex;
  width: 100%; min-width: 0; max-width: 100%;   
}


.sel-control { width: auto; min-width: 190px; }
.sel-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  width: 100%; min-height: var(--control-h);
  padding: 0 var(--space-3);
  background: var(--surface); border: var(--rule-strong);
  border-radius: var(--radius-md);
  font: inherit; font-size: var(--text-control); color: var(--ink);
  text-align: left; cursor: pointer;
}
.sel-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.sel-btn[aria-expanded="true"] { border-color: var(--accent); }
.sel-btn:disabled { opacity: .75; cursor: not-allowed; }
.sel-val {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sel-arrow { flex: none; width: 14px; height: 14px; color: var(--ink2); }
.sel-native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}





.sel-list {
  position: fixed; z-index: var(--z-select);
  margin: 0; padding: 5px; list-style: none;
  background: var(--surface); border: var(--rule-strong);
  border-radius: var(--pane-radius-card, 16px);
  box-shadow: var(--shadow-panel);
  max-height: min(50vh, 320px); overflow-y: auto;
  overscroll-behavior: contain;
  animation: sel-in 180ms var(--open-title-ease, ease) both;
}
@keyframes sel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sel-list { animation: none; } }
html[data-opaque="1"] .sel-list { animation: none; }
.sel-opt {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-3);
  border-radius: 11px;
  font-size: var(--text-control); color: var(--ink);
  cursor: pointer; white-space: nowrap;
}


.sel-opt.is-active { background: var(--surface-press); }
.sel-opt[aria-selected="true"] { font-weight: 600; color: var(--accent); }
.sel-opt[aria-selected="true"]::after {
  content: "✓"; margin-left: auto; color: var(--accent);
}
.sel-opt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }


@media (max-width: 899px) {
  .sel-opt { white-space: normal; }
}






.period-bar { margin: 0 0 var(--space-3); }


.hint-q { position: relative; flex: none; }
.hint-q > summary { list-style: none; cursor: pointer; }
.hint-q > summary::-webkit-details-marker { display: none; }
.hint-q-body {
  --pop-align: right;
  position: absolute; right: 0; top: calc(var(--control-h) + var(--space-1));
  z-index: var(--z-menu); width: min(340px, 86vw);
  padding: var(--space-3); background: var(--surface);
  border: var(--rule); border-radius: var(--radius-lg);
  font-size: var(--text-meta); line-height: var(--line-meta); color: var(--ink2);
}
.hint-q-body p { margin: 0 0 var(--space-2); }
.hint-q-body p:last-child { margin-bottom: 0; }


.hint-q-block { display: block; margin-bottom: var(--space-3); }
.hint-q-block .hint-q-body { position: static; width: auto; margin-top: var(--space-2); }







.caps-q { display: flex; align-items: center; gap: var(--space-2); }
.caps-q .hint-q > summary {
  min-height: 0; height: var(--line-caps); padding: 0 6px;
  font-size: var(--text-caps); line-height: var(--line-caps);
  color: var(--ink3); border-radius: var(--radius-sm);
}
.caps-q .hint-q > summary:hover { color: var(--ink); background: var(--surface-in); }





.field-q, .head-q { display: flex; align-items: center; gap: var(--space-2); }
.field-q label { margin-bottom: 0; }
.field-q .hint-q > summary, .head-q .hint-q > summary {
  min-height: 0; height: var(--line-body); padding: 0 6px;
  font-size: var(--text-meta); line-height: var(--line-body); color: var(--ink3);
  border-radius: var(--radius-sm);
}
.field-q .hint-q > summary:hover, .head-q .hint-q > summary:hover {
  color: var(--ink); background: var(--surface-in);
}
.field-q .hint-q-body, .head-q .hint-q-body {
  --pop-align: left;
  right: auto; left: 0; top: calc(var(--line-body) + var(--space-1));
}

.caps-q .hint-q-body {
  --pop-align: left;
  right: auto; left: 0; top: calc(var(--line-caps) + var(--space-1));
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.period-bar-label { display: inline-flex; align-items: center; gap: var(--space-2); }
.period-dates { margin: 0 0 var(--space-3); }

@media (max-width: 899px) {
  .task-acts { gap: 4px; }
  .act {
    min-height: 44px;          
    padding: 0 10px;
    font-size: var(--text-micro);
    gap: 4px;
  }
  .act span { display: none; }  
  .act svg { width: 19px; height: 19px; }
  .act-done { background: var(--surface-press); }

  












  .section-head { flex-wrap: wrap; }

  






  .ctl .back-ico { order: -2; }
  .ctl .card-write { order: -1; }

  

  .sort-select { min-width: 150px; }
  



  .period-bar .sort-select { min-width: 150px; }
}


.brand {
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--text-num);
  letter-spacing: .14em;
  line-height: 1.1;
  color: var(--ink);
}
.top .title .sub { margin-top: 1px; }



.page-note {
  margin: 0 0 var(--space-3);
  font-family: var(--font);
  font-style: normal; font-weight: 500;
  font-size: var(--text-body);
  color: var(--ink2);
}

@media (max-width: 899px) {
  .brand { font-size: var(--text-section); letter-spacing: .12em; }
  .top .title .sub { font-size: var(--text-meta); }
  .page-note { font-size: var(--text-control); margin-bottom: var(--space-2); }
}









@media (max-width: 999px) {
  .top {
    min-height: 44px;
    padding-top: calc(4px + env(safe-area-inset-top));
    padding-bottom: 4px;
  }
  .top .logo { width: 28px; height: 28px; font-size: var(--text-meta); }
  .brand { font-size: var(--text-body); }
  .top .me, .top .exit { min-height: 36px; min-width: 36px; }
}









@media (max-width: 479px) {
  .top .title .sub { display: none; }
}


.cols { display: block; }

@media (min-width: 900px) {
  







  .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: start;
  }
  .col { min-width: 0; }
  .col .section:last-child { margin-bottom: 0; }
}
















.fn-wrap { overflow-x: auto; }
.fn, .ad { width: 100%; border-collapse: collapse; }

.fn-c-name { width: 100%; }
.fn th, .ad th {
  font-size: var(--text-caps); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2); font-weight: 500; text-align: right;
  white-space: nowrap; padding: 0 0 var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.fn th.fn-c-name, .ad th.fn-c-name { text-align: left; padding-left: 0; }
.fn td, .ad td {
  font-size: var(--text-control); padding: 10px 0 10px var(--space-3);
  vertical-align: baseline;
}
.fn td.fn-c-name, .ad td.fn-c-name { padding-left: 0; }
.fn tbody tr > td { border-bottom: 1px solid var(--line); }
.fn tbody tr.fn-barrow > td, .fn tbody tr.fn-adsrow > td { border-bottom: 0; }
.fn tbody tr:last-child > td { border-bottom: 0; }


.fn-n {
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fn-pct { color: var(--ink2); font-size: var(--text-meta); }
.fn-organic > td { opacity: .82; }

.fn tfoot td {
  border-top: 1px solid var(--line-strong, var(--line));
  font-weight: 500; padding-top: var(--space-3);
}
.fn-barrow > td { padding-top: 0; padding-bottom: 10px; }


.ad-fold > summary {
  list-style: none; cursor: pointer;
  font-size: var(--text-meta); color: var(--ink2);
  padding: 2px 0 var(--space-3);
}
.ad-fold > summary::-webkit-details-marker { display: none; }
.ad-sub { display: block; color: var(--ink2); font-size: var(--text-meta); }

.ad-l1 { padding-left: var(--space-3) !important; }
.ad-l2 { padding-left: calc(var(--space-3) * 2) !important; }
.ad-l3 { padding-left: calc(var(--space-3) * 3) !important; }
.ad-l4 { padding-left: calc(var(--space-3) * 4) !important; color: var(--ink2); }




.ad-board .ad-l4 { color: inherit; }


.seg-short { display: none; }



.ad-dates {
  margin: calc(-1 * var(--space-1)) 0 var(--space-3);
  text-align: right; font-size: var(--text-meta, 12.5px); color: var(--ink2);
}

@media (max-width: 700px) {
  


  .fn, .ad { font-size: var(--text-meta); }
  .fn th, .ad th, .fn td, .ad td { padding-left: var(--space-2); }
  .fn-pct { display: block; }
  






  .ad-board { width: auto; min-width: 100%; }
  .ad-board .fn-c-name { width: auto; max-width: 9.5em; }
  


  .ad-board th.fn-c-name { white-space: normal; }
}

.fn-bar {
  display: flex; height: 6px; border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 7px;
  background: var(--surface-in);
}
.fn-seg {
  display: block; height: 100%; flex: none;
  width: var(--fill, 0%);
  transition: width 700ms cubic-bezier(.2,.7,.3,1);
}





.fn-seg-reached { background: var(--bar-fill, var(--accent)); }
.fn-seg-booked  { background: color-mix(in srgb, var(--bar-fill, var(--accent)) 45%, var(--sunken)); }










@media (max-width: 899px) {
  .fn-pct  { font-size: var(--text-meta); }
}

@media (prefers-reduced-motion: reduce) {
  .fn-seg { transition: none !important; }
}


.row-acts {
  display: flex; justify-content: flex-end; gap: var(--space-2);
  margin-top: var(--space-3); flex-wrap: wrap;
}
.row-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-meta);
  box-shadow: none;
}
.row-btn:hover { background: var(--surface-press); border-color: var(--ink); transform: none; }
.row-btn[disabled] { opacity: .45; }

@media (max-width: 899px) {
  
  .row-acts { flex-direction: column; }
  .row-acts form { width: 100%; }
  .row-btn { width: 100%; min-height: var(--tap); font-size: var(--text-meta); }
}











.sub {
  padding: 28px 32px;
  border-radius: 14px;
  background: var(--surface);
  border: var(--rule);
  


  margin: 0 0 56px;
}
.sub-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
.sub-lbl {
  font-size: 12px; line-height: 1.2; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px;
}
.sub-val { font-size: 22px; font-weight: 600; line-height: 1.25; }
.sub-note { font-size: 15px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }

.sub-ok { color: var(--ok-ink); }
.sub-wait { color: var(--wait-ink); }
.sub-alert { color: var(--alert-ink); }
.sub-invoice { margin-top: 20px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.sub-actions {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.sub-pay {
  
  flex: 0 0 auto; width: auto;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; line-height: 1.2;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-weight: 500; cursor: pointer;
}
.sub-pay:hover { filter: brightness(.96); }






a.sub-pay { display: inline-block; text-decoration: none; }
.sub-link { font-size: 15px; line-height: 1.4; color: var(--accent); text-decoration: underline; }

@media (min-width: 640px) {
  .sub-cols { grid-template-columns: 1fr 1fr; }
}

.bill-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bill-old { color: var(--muted); font-size: var(--text-num); text-decoration-thickness: 2px; }
.bill-now { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.bill-note {
  margin: 8px 0 0; font-family: var(--font);
  font-style: normal; font-weight: 500; color: var(--accent); font-size: var(--text-body);
}
.bill-list {
  margin: var(--space-3) 0 0; padding-left: 18px;
  display: grid; gap: 6px; font-size: var(--text-control);
}
.bill-list li { color: var(--ink); }


.perm-grid {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.perm-grid.is-hidden { display: none; }
.perm-head {
  font-size: var(--text-meta); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-2);
}
.perm-item {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap);            
  padding: 0 4px; cursor: pointer; font-size: var(--text-control);
}
.perm-foot {
  display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap; margin-top: var(--space-2);
}
@media (min-width: 700px) {
  .perm-grid { grid-template-columns: 1fr 1fr; }
  .perm-head, .perm-foot { grid-column: 1 / -1; }
}






.plan-devices {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--text-control); font-weight: 500;
}
.plan.accent .plan-devices { border-top-color: var(--accent); }

.ico-dev { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink2); }
.plan.accent .ico-dev { color: var(--ink); }


.plan-includes {
  margin-top: var(--space-4);
  font-family: var(--font);
  font-style: normal; font-weight: 500; font-size: var(--text-section); color: var(--ink2);
}
.plan-includes + .plan-points { margin-top: var(--space-2); }




.plan-single { display: block; margin-top: var(--space-4); }
.plan-single-cols {
  display: grid; gap: var(--space-4); margin-top: var(--space-4);
  align-items: start;   
}
.plan-single .plan-points { margin: 0; }
.plan-single .infra { align-self: start; }


.infra {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-in);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.infra-title {
  font-family: var(--font); font-weight: 500;
 letter-spacing: .05em; font-size: var(--text-meta);
  color: var(--ink2);
  margin-bottom: var(--space-2);
}
.infra-list { margin: 0; padding: 0; list-style: none; }
.infra-list li {
  position: relative; padding-left: 16px; margin-bottom: 6px;
  font-size: var(--text-meta); line-height: 1.5;
}
.infra-list li:last-child { margin-bottom: 0; }
.infra-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 1.5px; background: var(--accent);
}

.plan-notes { margin-top: var(--space-4); }
.plan-note {
  margin: 0 0 var(--space-2);
  font-size: var(--text-meta); line-height: 1.5; color: var(--ink2);
  max-width: 78ch;
}
.plan-note:last-child { margin-bottom: 0; }


.devices-line {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4);
  background: var(--surface-in);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.devices-body { min-width: 0; }
.devices-count { font-size: var(--text-control); }
.devices-count b { font-variant-numeric: tabular-nums; }
.devices-sub { margin-top: 3px; font-size: var(--text-meta); color: var(--ink2); }


.devices-line.is-over {
  background: rgba(var(--accent-rgb), .10);
  border-color: var(--ink2);
}
.devices-line.is-over .ico-dev,
.devices-line.is-over .devices-count b { color: var(--accent); }
.devices-warn {
  margin-top: 3px; font-size: var(--text-meta); line-height: 1.5;
  color: var(--accent); font-weight: 500;
}



@media (min-width: 1100px) {
  .plan-single-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  
  .plan-includes { font-size: var(--text-body); }
  .plan-note { font-size: var(--text-meta); }
  .devices-line { padding: var(--space-3); }
}




.card-side { flex-shrink: 0; text-align: right; }

.sub-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 0;
  margin-top: 10px;
}
.sub-meta span { white-space: nowrap; }
.sub-meta span + span::before {
  content: '·';
  margin: 0 7px;
  color: var(--accent);
}








.code-big {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-in);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-weight: 500; font-size: 34px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  word-break: break-all;
}

@media (max-width: 899px) {
  .code-big { font-size: var(--text-title); }
}








.sched-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
  
  margin-bottom: calc(var(--space-3) - var(--ring-reach));
}




@media (max-width: 999px) {
  .sched-nav { flex-wrap: nowrap; }
  .sched-nav .sched-nav-month { display: none; }
  .sched-nav .sched-today { margin-left: auto; }
}
.sched-nav-group { display: flex; align-items: center; gap: var(--space-2); }







.sched-period {
  font-weight: 500; white-space: nowrap; flex: none;
  font-size: var(--text-control);
  width: 13em; text-align: center;
}
.sched-period { font-variant-numeric: tabular-nums; }
.sched-month { color: var(--ink2); width: 9.5em; text-align: center; }







[data-sched-box].is-loading { opacity: .55; transition: opacity var(--ease); }


.sched-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  

  scrollbar-width: none;
  



  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.sched-scroll::-webkit-scrollbar { height: 0; }


.sched-bar {
  height: 10px; margin-top: var(--space-2);
  background: var(--surface-in);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  position: relative; touch-action: none;
}
.sched-bar-thumb {
  position: absolute; top: -1px; bottom: -1px; left: 0;
  min-width: 40px; border-radius: var(--radius-sm);
  background: var(--accent); border: 1px solid var(--accent);
  cursor: grab;
}
.sched-bar-thumb:hover { background: var(--ink2); border-color: var(--ink2); }
.sched-bar-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sched-bar.is-drag .sched-bar-thumb { cursor: grabbing; background: var(--ink2); }

.sched { border-collapse: separate; border-spacing: 0; width: 100%; }



.sched-day.is-past { opacity: .55; }
.sched-cell.is-past .cell { opacity: .5; }
.sched-cell.is-past .cell:hover { opacity: .8; }






.sched { table-layout: fixed; }
.sched tr.is-off-duty { opacity: .62; }

.sched-master {
  background: var(--accent-soft);
  text-align: left;
}
.sched-name {
  









  font-family: var(--font); font-weight: 500;
  font-size: var(--text-body); letter-spacing: .01em; line-height: 1.22;
  color: var(--ink); background: none; border: 0; padding: 0;
  cursor: pointer; min-height: 0;
}
.sched-badge {
  

  display: inline-block; white-space: nowrap;
  font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .04em;
  color: var(--wait-ink); border: 1px solid currentColor;
  border-radius: var(--radius-sm); padding: 1px 8px;   
}

.sched-cell {
  padding: 0; height: 38px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}




.sched-cell.is-past .cell { opacity: .5; }



.cell {
  position: relative; display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0; background: none;
  font: inherit; cursor: pointer;
}


.cell-off, .cell-empty { background: var(--hatch); }
.cell:hover::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--accent); pointer-events: none;
}



.plate {
  position: absolute; inset: 3px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-micro); font-weight: 500; line-height: 1.2;
  font-variant-numeric: tabular-nums; color: var(--ink);
  overflow: hidden; white-space: nowrap;
}
.t-full span { display: block; text-align: center; }


.sched tr:has(.plate-multi) .sched-cell { height: 50px; }
.plate-multi .t-full { display: flex; flex-direction: column; gap: 3px; }
.t-short { display: none; }

.plate-own { border: 1.5px dashed var(--accent); }




.vac {
  position: absolute; top: 3px; bottom: 3px; left: -1px; right: -1px;
  background: var(--hatch);
}
.vac-first { left: 3px; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.vac-last { right: 3px; border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
.vac-first.vac-last { border-radius: var(--radius-md); }
.vac-label {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  left: 8px; max-width: calc(var(--run) * 100% - 16px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-micro); font-weight: 500; color: var(--ink);
  pointer-events: none;
}


.sched-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-size: var(--text-meta); color: var(--ink2); margin-top: var(--space-3);
}
.lg { width: 22px; height: 14px; display: inline-block; }
.lg-plate {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}
.lg-own   { border: 1.5px dashed var(--accent); }
.lg-hatch { background: var(--hatch); border: 1px solid var(--line); }
.sched-legend .lg:not(:first-child) { margin-left: var(--space-3); }











.master-grid {
  display: grid;
  



  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-3);
}







.master-card {
  display: flex; flex-direction: column; margin-bottom: 0; padding: 0;
  position: relative; overflow: hidden;
}
.master-card.is-off-duty { opacity: .68; }


.mc-top { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-3) var(--space-2); }
.mc-who { min-width: 0; flex: 1; }
.mc-who h2 {
  margin: 0; font-size: var(--text-body); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-sub {
  margin: 0; font-size: var(--text-meta); color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.mc-rate {
  margin: 2px 0 0; font-size: var(--text-meta); color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.mc-rate.is-on { color: var(--accent); }





.mc-review { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }



.mc-ratings-toggle {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2);
  margin: 0 0 var(--space-3); font-size: var(--text-meta);
}
.mc-ratings-toggle label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}







.master-ava {
  width: 44px; height: 44px; border-radius: var(--radius-full); object-fit: cover;
  background: var(--accent-soft); flex: none; display: block;
}




.mc-states {
  display: flex; align-items: center; gap: 10px; height: 26px;
  padding: 0 var(--space-3) var(--space-2); font-size: var(--text-meta); color: var(--ink2);
  white-space: nowrap; overflow: hidden;
}
.mc-st { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.mc-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; flex: none; }
.mc-st.is-ok { color: var(--ok-ink); }
.mc-st.is-warn { color: var(--wait-ink); }
.mc-st.is-mute { color: var(--ink2); }
.mc-st.is-mute .mc-dot { background: var(--accent); }
.mc-sep { color: var(--line); flex: none; }



.mc-sched { padding: 0 var(--space-3) var(--space-2); }
.mc-sched > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: var(--text-meta); font-variant-numeric: tabular-nums; min-height: 24px;
}
.mc-sched > summary::-webkit-details-marker { display: none; }
.mc-clock, .mc-chev { color: var(--ink2); flex: none; }
.mc-sched-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-sched[open] .mc-chev { transform: rotate(180deg); }
.mc-pop {
  position: absolute; left: var(--space-3); right: var(--space-3); z-index: 5;
  background: var(--surface); border: 1px solid var(--ink);
  border-radius: var(--radius-lg); padding: var(--space-2) var(--space-3); font-size: var(--text-meta);
}
.mc-pop-row { padding: 3px 0; font-variant-numeric: tabular-nums; }
.mc-pop-row + .mc-pop-row { border-top: 1px solid var(--line); }




.mc-body { border-top: 1px solid var(--line); }
.mc-radio { position: absolute; opacity: 0; pointer-events: none; }
.mc-tabs { display: flex; background: var(--surface-in); }
.mc-tabs label {
  flex: 1; min-height: 40px; font-size: var(--text-meta); cursor: pointer; color: var(--ink2);
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px;
}
.mc-n {
  font-variant-numeric: tabular-nums; background: var(--accent-soft);
  border-radius: var(--radius-full); padding: 1px 6px; font-size: var(--text-micro);
}


.mc-body > .mc-radio:first-of-type:checked ~ .mc-tabs label:first-child,
.mc-body > .mc-radio:nth-of-type(2):checked ~ .mc-tabs label:nth-child(2) {
  color: var(--ink); border-bottom-color: var(--ink); background: var(--surface);
}
.mc-body > .mc-radio:nth-of-type(2):disabled ~ .mc-tabs label:nth-child(2) {
  opacity: .5; cursor: default;
}
.mc-pane { display: none; height: 104px; overflow-y: auto; padding: var(--space-2) var(--space-3); font-size: var(--text-meta); }
.mc-body > .mc-radio:first-of-type:checked ~ .mc-pane-svc { display: block; }
.mc-body > .mc-radio:nth-of-type(2):checked ~ .mc-pane-off { display: block; }
.mc-row {
  display: flex; justify-content: space-between; gap: var(--space-2);
  padding: 3px 0; border-bottom: 1px solid var(--line);
}
.mc-row:last-child { border-bottom: 0; }
.mc-row-name { min-width: 0; }
.mc-row-val { color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-row-val i { font-style: normal; font-weight: 500; }
.mc-row.is-own .mc-row-val { color: var(--ink); }
.mc-row-val.is-off { color: var(--wait-ink); display: inline-flex; align-items: center; gap: 4px; }
.mc-row-val.is-off button {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: var(--text-body); line-height: 1; padding: 0 2px; min-height: 28px;
}
.mc-empty { color: var(--ink2); text-align: center; padding-top: var(--space-3); font-size: var(--text-meta); }



.mc-foot {
  display: flex; gap: 6px; align-items: center;
  padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line);
}
.mc-foot .btn { min-height: 40px; font-size: var(--text-meta); }
.mc-count { flex: none; min-width: 124px; font-variant-numeric: tabular-nums; }
.mc-edit { flex: 1; }
.mc-more { position: relative; flex: none; }
.mc-more > summary { list-style: none; padding: 0 12px; }
.mc-more > summary::-webkit-details-marker { display: none; }
.mc-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 6;
  background: var(--surface); border: 1px solid var(--ink);
  border-radius: var(--radius-lg); min-width: 190px; overflow: hidden;
}
.mc-menu button {
  display: block; width: 100%; text-align: left; font: inherit; font-size: var(--text-meta);
  padding: 11px 12px; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.mc-menu button:hover { background: var(--surface-press); }
.mc-menu button.is-danger { color: var(--alert-ink); }

.photo-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.photo-preview {
  width: 84px; height: 84px; border-radius: var(--radius-lg); object-fit: cover;
  border: 1px solid var(--line);
}
.photo-blank {
  width: 84px; height: 84px; border-radius: var(--radius-lg); display: grid; place-items: center;
  border: var(--rule); color: var(--ink2); font-size: var(--text-meta);
  background: var(--surface-in);
}
.photo-row .btn-row { flex: 1 1 160px; }
.fld-check { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body); }

.holder-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-in); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 3px 10px; margin: 0 6px 6px 0; font-size: var(--text-control);
}
.holder-chip button {
  border: 0; background: none; color: var(--ink2); cursor: pointer;
  font-size: var(--text-body); line-height: 1; padding: 0 2px;
}
.master-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag {
  font-size: var(--text-meta); padding: 3px 10px; border-radius: var(--radius-sm);
  background: var(--surface-in); border: 1px solid var(--line);
}


.master-foot {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: auto; padding-top: var(--space-4);
}
.master-foot .btn { flex: 1 1 auto; }









.faq-row .faq-q {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.faq-row .faq-note { flex: none; font-size: var(--text-meta); }


.tx-row { cursor: pointer; }
.tx-row .tx-title { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.tx-row .tx-state { flex: none; font-size: var(--text-meta); white-space: nowrap; }



@media (max-width: 899px) {
  .tx-row { flex-wrap: wrap; row-gap: 2px; }
  .tx-row .tx-title { flex-basis: 100%; }
  .tx-row .tx-state { margin-left: 0; }
}
.tx-hint { margin: 0 0 var(--space-3); font-size: var(--text-meta); line-height: 1.4; }
[data-tx-panel] textarea { width: 100%; }
.faq-row .pair-no { flex: none; }






.svc-line .badge { flex: none; }


.svc-side {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: var(--space-1); flex: none;
}
@media (min-width: 900px) {
  .svc-side { flex-direction: row; align-items: center; gap: var(--space-3); }
}
.svc-order { display: flex; gap: var(--space-1); flex: none; }
.svc-order .btn {
  min-height: 34px; padding: 0 10px; font-size: var(--text-meta); line-height: 32px;
}







@media (max-width: 899px) {
  [data-svc-panel] .sheet { height: min(420px, 88dvh); }
  

  [data-sub-panel] .sheet { height: min(560px, 88dvh); }
}




[data-sub-panel] .sheet-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  [data-sub-panel] .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}




.sub-line { flex-wrap: wrap; }
.sub-line-bar { flex: 1 1 100%; min-width: 0; }
.sub-line-bar .sub-progress { margin: 2px 0 0; }









.rooms-row.is-off-duty { opacity: .62; }




.masters-row.is-off-duty { opacity: .62; }
.masters-ava { width: 36px; height: 36px; font-size: var(--text-control); object-fit: cover; }


.mc-off-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; margin: 0 4px 4px 0;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: var(--text-meta);
}
.mc-off-chip button {
  background: none; border: 0; padding: 0 2px; cursor: pointer;
  color: var(--ink2); font-size: var(--text-control); line-height: 1;
}
.mc-off-chip button:hover { color: var(--alert-ink); }


.panel-scrim {
  position: fixed; inset: 0; z-index: var(--z-panel-scrim);   
  background: var(--overlay);
}





.panel, .master-modal {
  position: fixed; z-index: var(--z-panel);
  background: var(--surface);
  display: flex; flex-direction: column;
  





  align-items: stretch;
}

.panel, .master-modal { inset: 0; border-radius: 0; }

.panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-bottom: var(--rule);
  background: transparent;      
}
.panel-head h2 { margin: 0; font-size: var(--text-num); }
.panel-head .muted { margin: 2px 0 0; }








.panel-close {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: var(--space-2);
  background: none; border: 0; border-radius: var(--radius-md);
  font-size: var(--text-title); line-height: 1; color: var(--ink2);
  cursor: pointer; transition: background-color .15s, color .15s;
}
.panel-close:hover { background: var(--surface-press); color: var(--ink); }
.panel-close:active { background: var(--surface-in); }
@media (prefers-reduced-motion: reduce) { .panel-close { transition: none; } }
@media (pointer: coarse) {
  .panel-close { width: var(--tap); height: var(--tap); }
}
.panel-body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-4); }
.panel-foot {
  







  display: flex; gap: var(--space-2); padding: var(--space-4);
  align-self: stretch;
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: var(--rule); background: var(--surface);
}
.panel-foot .btn { flex: 1 1 auto; }

.panel-block { margin-top: var(--space-6); }
.panel-label {
  display: block; font-size: var(--text-meta); text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink2); margin-bottom: var(--space-2);
}
.panel-hint { margin: var(--space-2) 0 0; }
.panel-row { display: flex; gap: var(--space-2); }
.panel-mode {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-top: var(--space-4); padding: var(--space-3);
  background: var(--surface-in); border-radius: var(--radius-md);
}
.panel-mode label { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); }




.iv-row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.iv-row input { flex: 1 1 auto; }
.iv-drop {
  background: none; border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink2); cursor: pointer;
  min-width: var(--tap); min-height: var(--tap); font-size: var(--text-section);
}
.iv-drop:hover { color: var(--alert-ink); border-color: var(--alert-ink); }

.panel input[type="time"], .panel input[type="date"], .panel input[type="text"],






.master-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  font: inherit; font-size: var(--text-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px var(--space-3);
  min-height: var(--tap); width: 100%;
}
.fld { display: flex; align-items: center; gap: var(--space-2); flex: 1 1 0; }
.fld > span { font-size: var(--text-meta); color: var(--ink2); }
.fld-col { display: block; margin-bottom: var(--space-3); }



.fld-col > span {
  display: block; font-size: var(--text-body); line-height: var(--line-body);
  font-weight: 500; color: var(--ink); margin-bottom: var(--space-1);
}
.checks { display: flex; flex-direction: column; gap: var(--space-1); }
.check { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); }


.bookings-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
}
.bookings-head .page-note { margin: 0; }










.nb-items .nb-item { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-2); }
.nb-items .nb-item select { flex: 1; min-width: 0; }
.nb-items .nb-item [data-nb-item-remove] { min-width: var(--tap); }


@media (max-width: 480px) {
  .nb-items .nb-item { flex-wrap: wrap; }
  .nb-items .nb-item [data-item-service] { flex: 1 1 100%; }
}
.nb-items-bar { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin: var(--space-2) 0; }
.bk-item { display: inline; }
.nb-times {
  display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-2);
  min-height: calc(38px * 3 + var(--space-1) * 2);
  align-content: flex-start;
}


.nb-time.is-ghost {
  border-color: transparent; background: var(--accent-soft);
  color: transparent; pointer-events: none; opacity: .55;
  animation: ghost-pulse 1.1s ease-in-out infinite;
}
@keyframes ghost-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) {
  .nb-time.is-ghost { animation: none; }
}
.nb-time {
  min-width: 64px; min-height: 38px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); cursor: pointer;
  font-variant-numeric: tabular-nums;
}









.nb-time.is-on {
  background: var(--accent-btn, var(--accent));
  color: var(--on-accent);
  border-color: var(--accent-btn, var(--accent));
  font-weight: 500;
}
.nb-time.is-busy { opacity: .35; cursor: default; text-decoration: line-through; }


.nb-time.is-lead { border: 1px dashed var(--accent); background: var(--surface); }




.nb-time.is-lead.is-on {
  background: var(--accent-btn, var(--accent));
  border: 1px dashed var(--on-accent);
}


.room-line {
  display: flex; align-items: baseline; gap: var(--space-2);
  margin-top: 6px; font-size: var(--text-meta); color: var(--ink2);
}
.room-move {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: var(--text-meta); color: var(--ink2); text-decoration: underline dotted;
}
.room-move:hover { color: var(--ink); }



.svc-rows { display: flex; flex-direction: column; gap: var(--space-1); }
.svc-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); flex-wrap: wrap;
  padding: var(--space-1) 0; border-bottom: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 0; }






.svc-over { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.svc-row[data-svc-row]:not(.is-on) .svc-over { opacity: .5; }
.svc-over input { width: 58px; min-height: 38px; text-align: right; padding: 4px 6px; }
.svc-unit { font-size: var(--text-meta); color: var(--ink2); }


.notify-state {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.notify-link {
  margin-top: var(--space-2); padding: var(--space-3);
  background: var(--surface-in);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}



.notify-link code {
  display: block; margin-bottom: var(--space-2);
  font-size: var(--text-meta); word-break: break-all; color: var(--ink);
}


.notify-state.user-tg { margin-top: var(--space-3); }

.notify-manual { margin-top: var(--space-2); }   



.svc-new {
  margin-top: var(--space-3); padding: var(--space-3);
  background: var(--surface-in);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.svc-new .fld-col { margin-bottom: var(--space-2); }



.master-svc-name { min-width: 0; }


.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.cal-head span { font-weight: 500; text-transform: capitalize; }
.cal-head button {
  background: none; border: 0; font-size: var(--text-num); color: var(--ink);
  cursor: pointer; min-width: var(--tap); min-height: var(--tap);
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { font-size: var(--text-micro); color: var(--ink2); text-align: center; padding-bottom: 2px; }
.cal-day {
  aspect-ratio: 1; min-height: 36px;
  background: none; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: var(--text-control); color: var(--ink); cursor: pointer;
}
.cal-day:hover { background: var(--surface-in); }
.cal-day.is-today { border-color: var(--accent); }
.cal-day.is-sel { background: var(--accent-soft); color: var(--ink); }




.sched { --sched-col: 168px; }




.sched-day {
  padding: var(--space-2) var(--space-3); text-align: center;
  font-size: var(--text-meta); color: var(--ink2); font-weight: 500;
  border-bottom: 1px solid var(--line);
  



  background: var(--accent-soft);
  white-space: nowrap;
}
.sched-day.is-weekend { color: var(--wait-ink); }
.sched-day.is-today { color: var(--ink); background: var(--accent-soft); border-radius: var(--radius-sm) var(--radius-sm) 0 0;   
  box-shadow: inset 0 -2px 0 var(--accent); }


.sched-wd { text-transform: uppercase; letter-spacing: .06em; }
.sched-num { margin-left: 4px; color: var(--ink); font-weight: 500; }






.sched-corner, .sched-master {
  position: sticky; left: 0; z-index: 3;
  background: var(--surface); text-align: left;
  padding: var(--space-1) var(--space-3); min-width: var(--sched-col); width: var(--sched-col);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}


.sched-scroll.is-scrolled .sched-corner::after,
.sched-scroll.is-scrolled .sched-master::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%;
  width: 10px; pointer-events: none;
  background: linear-gradient(to right, rgba(var(--ink-rgb), .10), transparent);
}
.sched-corner {
  font-size: var(--text-meta); text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink2); font-weight: 500;
  


  background: var(--accent-soft);
}














@media (max-width: 899px) {
  .sched { --sched-col: 64px; }
  .sched-corner, .sched-master { padding: var(--space-2) var(--space-1) var(--space-2) var(--space-2); }
  .sched-name {
    font-size: var(--text-meta); max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: block;
  }
  .sched-master { padding: var(--space-1) var(--space-1) var(--space-1) var(--space-2); }
  .sched-badge { display: none; }
  .sched-day { padding: 3px 1px; font-size: 9px; width: 44px; }
  .sched-num { font-size: var(--text-meta); }
  .sched-cell, .sched tr:has(.plate-multi) .sched-cell { height: 30px; }
  .t-full, .plate-multi .t-full { display: none; }
  


  

  .t-short {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; overflow: hidden;
    font-size: 9px; line-height: 1.15; letter-spacing: -.02em;
  }
  .plate { inset: 2px; padding: 0; }
}

@media (min-width: 900px) {
  
  .panel {
    inset: 0 0 0 auto; width: min(420px, 92vw);
    border-left: 1px solid var(--line);
  }
  .master-modal {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(560px, 92vw); max-height: 86vh;
    border-radius: var(--radius-lg);
  }
  .checks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1) var(--space-3); }
  .master-foot .btn { flex: 0 0 auto; }

  


  .mc-foot .btn { min-height: 34px; }
  .mc-tabs label { min-height: 34px; }
}




.astray {
  margin: var(--space-2) 0 0; font-size: var(--text-meta); color: var(--wait-ink);
  border-left: 2px solid var(--wait-ink); padding-left: var(--space-2);
}
.master-group.is-closed, td.is-closed { opacity: .55; }
td.is-closed { background: repeating-linear-gradient(135deg,
  transparent, transparent 6px, rgba(var(--accent-rgb), .22) 6px, rgba(var(--accent-rgb), .22) 12px); }
.off-mark {
  font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .04em;
  color: var(--wait-ink); border: 1px solid currentColor;
  border-radius: var(--radius-sm); padding: 1px 8px; margin-left: var(--space-2);   
}




.tp {
  display: inline-flex; align-items: center; gap: 2px; flex: 1 1 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 0 var(--space-2);
}
.tp i { font-style: normal; color: var(--ink2); }
.tp select {
  border: 0; background: none; padding: 10px 2px; min-height: var(--tap);
  font: inherit; font-size: var(--text-body); color: var(--ink);
  width: auto; -webkit-appearance: none; appearance: none; text-align: center;
}
.tp select:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-md); }

























.alert-card {
  
  transform: translateY(20px);
  width: 100%;
  background: var(--surface); border: 1px solid var(--wait-ink);
  border-radius: var(--radius-lg); opacity: 0;
  transition: opacity var(--ease), transform var(--ease);
}
.alert-card.show { opacity: 1; transform: translateY(0); }
.alert-body { padding: var(--space-3) var(--space-4) var(--space-2); }
.alert-kind {
  display: inline-block; font-size: var(--text-micro); text-transform: uppercase;
  letter-spacing: .06em; color: var(--wait-ink);
  border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 1px 8px;   
}
.alert-card h3 { margin: 4px 0 2px; font-size: var(--text-body); }
.alert-card p { margin: 0; color: var(--ink2); white-space: pre-line;
                font-size: var(--text-meta); }
.alert-day { margin-top: var(--space-2); }
.alert-foot {
  display: flex; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3);
}
.alert-foot .btn { flex: 1 1 auto; min-height: 38px; }














.stale-card {
  


  transform: translateY(20px);
  width: 100%;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); opacity: 0;
  transition: opacity var(--ease), transform var(--ease);
}
.stale-card.show { opacity: 1; transform: translateY(0); }
.stale-card h3 { margin: 0 0 2px; font-size: var(--text-body); }
.stale-card p { margin: 0; color: var(--ink2); font-size: var(--text-meta); }


.pending-mark {
  display: inline-block; font-size: var(--text-micro); text-transform: uppercase;
  letter-spacing: .04em; color: var(--wait-ink);
  border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 1px 8px;   
  margin-bottom: var(--space-2);
}




.logo-mono {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: var(--ink); color: var(--raised);
  font-family: var(--font); font-weight: 500; font-size: var(--text-num);
  letter-spacing: .04em;
}
.logo-mono.lg { width: 88px; height: 88px; font-size: 38px; }









.client-form textarea {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px var(--space-3);
  width: 100%; font: inherit; color: var(--ink); resize: vertical;
}
.client-form .btn { width: 100%; margin-top: var(--space-1); }



.client-facts {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--line); color: var(--ink2); font-size: var(--text-control);
}
.client-facts strong { color: var(--ink); font-weight: 500; }

@media (min-width: 900px) {
  
  .client-form .fld-row { display: flex; gap: var(--space-3); }
  .client-form .fld-row > .fld-col { flex: 1 1 0; }
  .client-form .btn { width: auto; min-width: 180px; }
}









.contact-row {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin: 0 0 var(--space-3);
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px var(--space-3); min-height: 34px;
  background: var(--surface-in); border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: var(--text-meta); color: var(--ink); text-decoration: none;
  max-width: 100%;
}
.contact-chip svg { width: 15px; height: 15px; flex: none; opacity: .75; }
.contact-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-chip:not(.is-plain):hover { border-color: var(--accent); background: var(--surface-press); }

.contact-chip.is-plain { color: var(--ink2); }


.contact-chip { position: relative; }
.contact-chip::after { content: ''; position: absolute; inset: -5px 0; }














.sheet-grid.cc-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-grid.cc-actions .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; line-height: var(--line-body);
}
.cc-actions .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cc-actions .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.cc-sheet .sheet-zone:last-child .btn { width: 100%; }









.note-pin {
  position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 6px var(--space-2) 6px var(--space-3);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: var(--text-meta); line-height: var(--line-meta); color: var(--ink);
  min-height: 44px;
}



.note-pin::before {
  content: ''; position: absolute; left: 5px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 2px; background: var(--accent);
}
.note-pin-text {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px;
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.note-pin-k {
  font-size: var(--text-micro); line-height: 14px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text, var(--accent));
}
.note-pin-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-pin.is-open .note-pin-v { white-space: normal; overflow-wrap: anywhere; }




.note-pin-edit {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.note-pin-edit svg { width: 16px; height: 16px; }
.note-pin-edit:hover { background: var(--surface-press); }
.note-pin-add {
  flex: 1 1 auto; padding: 0; border: 0; background: none; text-align: left;
  color: var(--ink2); font: inherit; cursor: pointer;
}
.note-pin-add:hover { color: var(--ink); }
.note-pin.is-empty::before { display: none; }
.note-pin.is-empty .note-pin-text, .note-pin.is-empty .note-pin-edit,
.note-pin:not(.is-empty) .note-pin-add { display: none; }

.note-pin.is-editing { display: block; }
.note-pin.is-editing > :not(.note-inline) { display: none; }
.note-inline { display: block; }
.note-field {
  width: 100%; min-height: 84px; resize: vertical; display: block;
}
.note-acts { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-3); }

.bk-pin { margin-bottom: calc(var(--space-2) * 1.5); }



.bk-pin-line {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-micro); color: rgba(var(--ink-rgb), .85);
}
.bk-pin-line::before { content: '📌 '; }



.dlg-note {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-meta); line-height: var(--line-meta);
  color: var(--accent-text, var(--accent)); opacity: .85;
}
.dlg-note::before { content: '📌 '; }









.me {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px var(--space-3); min-height: 34px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-in);
  font-size: var(--text-meta); color: var(--ink2); text-decoration: none;
  white-space: nowrap; max-width: 220px;
}
.me:hover { color: var(--ink); border-color: var(--accent); }
.me.active { background: var(--surface-press); border-color: var(--accent); color: var(--ink); }
.me svg { width: 18px; height: 18px; flex: none; }
.me-name { overflow: hidden; text-overflow: ellipsis; }



@media (max-width: 899px) {
  .me { padding: 4px; min-height: 32px; border-radius: var(--radius-full); }
  .me-name { display: none; }
}


.ai-figures {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  margin-bottom: var(--space-3);
}
.ai-big { font-family: var(--font); font-size: var(--text-title); font-weight: 500; color: var(--ink); }
.ai-rows { margin-top: var(--space-3); }
.ai-row {
  display: flex; align-items: baseline; gap: var(--space-2);
  padding: 6px 0; border-top: 1px solid var(--line);
}
.ai-row span:first-child { flex: 1 1 auto; }
.ai-row b { font-variant-numeric: tabular-nums; }
.ai-tokens { margin: var(--space-3) 0 0; font-size: var(--text-meta); }
.over-limit { color: var(--wait-ink); }







.badge-ico { width: 14px; height: 14px; flex: none; }
.badge b { font-weight: 500; }
.badge-word { opacity: .8; }

.badge-sub.is-low { background: var(--wait-bg); color: var(--wait-ink); }


.client-line.is-archived { opacity: .6; }
.tag-archived {
  font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1px 8px; margin-left: 6px;   
}




.btn-link {
  appearance: none; background: none; border: 0;
  padding: 6px 2px; margin-left: 4px;
  font: inherit; font-size: var(--text-control);
  color: var(--ink2); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.btn-link:hover { color: var(--alert-ink); }









.tag-no-tg {
  font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .04em;
  border-radius: var(--radius-sm); padding: 1px 8px;   
  white-space: nowrap;
  color: var(--wait-ink); border: 1px solid var(--wait-ink);
  background: var(--wait-bg);
}



.tg-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: var(--radius-full);
  background: var(--ok-ink); margin-right: 5px; vertical-align: 1px;
  flex: none;
}




.contact-chip.is-dialog {
  border-color: var(--accent); color: var(--ink);
  font-weight: 500;
}
.contact-chip.is-dialog:hover { background: var(--surface-press); }



.ev-list { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.ev { padding-left: var(--space-3); border-left: 2px solid var(--line); }
.ev-text { line-height: 1.4; }
.ev-meta { font-size: var(--text-meta); margin-top: 2px; }
.ev-tg_linked { border-left-color: var(--accent); }
.ev-tg_unlinked, .ev-merged { border-left-color: var(--ink2); }
.ev-invite_sent { border-left-color: var(--ink2); }


.ev-call { border-left-color: var(--ink2); }


.ev-link_miss { border-left-color: var(--wait-ink); }



.composer-do {
  display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2);
}
.composer.disabled .composer-note { display: grid; gap: 2px; }



.invite-list { display: grid; gap: var(--space-2); }
.invite-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface);
}
.invite-row.is-sent { background: var(--surface-in); opacity: .75; }


.invite-who { display: grid; gap: 2px; min-width: 0; }
.invite-who .nm { font-weight: 500; }
.invite-act { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }



.merge-group { margin-bottom: var(--space-4); }
.merge-group.is-locked { opacity: .85; background: var(--wait-bg); }
.merge-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3);
}
.merge-cards { display: grid; gap: var(--space-2); }
.merge-card {
  display: grid; gap: 4px; padding: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); cursor: pointer;
}
.merge-card:has(input:checked) {
  border-color: var(--ink); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .45);
}
.merge-card.is-empty { background: var(--surface-in); }
.merge-pick { display: flex; align-items: center; gap: var(--space-2); }




.merge-pick .nm { font-weight: 500; }
.merge-facts { display: flex; gap: 6px; flex-wrap: wrap; font-size: var(--text-meta); }
.merge-trace { font-size: var(--text-meta); color: var(--ink); }
.merge-card.is-empty .merge-trace { color: var(--ink2); }
.chip {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1px 8px; font-size: var(--text-meta); color: var(--ink2);
}
.merge-foot { margin-top: var(--space-3); padding-top: var(--space-3);
              border-top: 1px solid var(--line); }
.merge-preview { max-width: 70ch; display: grid; gap: 4px; font-size: var(--text-meta); }
.merge-preview p { margin: 0; }



.merge-warn { color: var(--accent); }
@media (min-width: 900px) {
  

  .merge-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}




.client-facts.is-fresh {
  background: var(--ok-bg); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 6px var(--ok-bg);
  transition: background var(--ease), box-shadow var(--ease);
}



.invite-box {
  margin-top: var(--space-3); padding: var(--space-3);
  background: var(--surface-in); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.invite-hint { display: inline-block; margin-left: 6px; }
.invite-out { margin-top: var(--space-3); }
.invite-text {
  width: 100%; resize: vertical; font: inherit; font-size: var(--text-control);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-2);
}
.invite-actions {
  display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2);
}
.invite-note { margin: var(--space-2) 0 0; font-size: var(--text-meta); color: var(--ink2); }



.reach { display: grid; gap: var(--space-2); }
.reach.is-alarm { border-color: var(--wait-ink); background: var(--wait-bg); }
.reach-why { margin: 0; color: var(--ink); font-size: var(--text-body); max-width: 60ch; }
.reach .btn { justify-self: start; }
.reach-second {
  margin-top: var(--space-3); color: var(--ink2); font-size: var(--text-body);
}
.reach-second b { color: var(--ink); }
.archived-note {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4);
}
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap;
}
.list-head .page-note { margin: 0; }










.search, .ctl .search-field { min-height: var(--tap); }
.search {
  display: flex; align-items: center; gap: var(--space-2);
  flex: 1 1 260px; min-width: 200px;
  padding: 0 var(--space-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.search svg { width: 16px; height: 16px; flex: none; color: var(--ink2); }
.search input {
  border: 0; background: none; padding: 0; min-height: auto;
  font: inherit; color: var(--ink); width: 100%;
}
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--accent); }
.search-empty { margin-top: var(--space-4); }



.search-count {
  flex: none; font-size: var(--text-meta); color: var(--ink2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}









.is-revealed {
  outline: 4px solid var(--accent); outline-offset: 3px;
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 45%, transparent),
              0 14px 34px color-mix(in srgb, var(--ink) 34%, transparent);
  position: relative; z-index: 4;
  animation: reveal-pulse 1.1s ease-in-out 2;
}
@keyframes reveal-pulse {
  0%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 45%, transparent),
                         0 14px 34px color-mix(in srgb, var(--ink) 34%, transparent); }
  50%      { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent),
                         0 14px 34px color-mix(in srgb, var(--ink) 34%, transparent); }
}



.src-list { list-style: none; margin: 0; padding: 0; }
.src {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3); min-height: var(--tap);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.src:last-child { border-bottom: 0; }
.src.is-unknown { border-left: 3px solid var(--wait-ink); }
.src-name { flex: 1 1 200px; min-width: 0; display: flex;
            align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.src-count { flex: none; font-variant-numeric: tabular-nums; }
.src-acts { flex: none; display: flex; gap: var(--space-1); flex-wrap: wrap; }





.picker-search { margin-bottom: var(--space-2); }









.tpl-card { padding: 0; overflow: hidden; }
.tpl-list { list-style: none; margin: 0; padding: 0; }
.tpl-line {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-3);
  min-height: 56px;
}


.tpl-line + .tpl-line { border-top: 1px solid var(--line); }
.tpl-line-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tpl-line-name { font-size: 15px; font-weight: 500; line-height: 20px;
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.tpl-line-sub {
  font-size: 13px; line-height: 18px; color: var(--ink2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tpl-line-acts {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--space-2); flex: none; width: 148px;
}





.tpl-ico {
  position: relative;
  width: 30px; height: 30px; flex: none; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.tpl-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: var(--tap); height: var(--tap); transform: translate(-50%, -50%);
}
.tpl-ico:hover { background: var(--surface-press); }
.tpl-ico[disabled] { opacity: .4; cursor: not-allowed; }
.tpl-ico[disabled]::after { content: none; }





.tpl-group {
  font-size: var(--text-meta); color: var(--ink2);
  margin: var(--space-3) 0 var(--space-1);
}
.tpl-group:first-child { margin-top: 0; }
.tpl-row {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; text-align: left;
  padding: 10px var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.tpl-row + .tpl-row { margin-top: var(--space-2); }
.tpl-row:hover { background: var(--surface-press); }


.tpl-row .muted {
  font-size: var(--text-meta);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.picker-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; clip-path: inset(50%);
}




.picker { position: relative; margin: calc(-1 * var(--space-1)) 0 var(--space-2); }



.picker-note {
  margin: var(--space-1) 0 0; font-size: var(--text-meta); color: var(--ink2);
  font-variant-numeric: tabular-nums;
}
.picker-list {
  list-style: none; margin: 0; padding: var(--space-1) 0;
  max-height: 240px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.picker-item {
  padding: var(--space-2) var(--space-3); cursor: pointer;
  min-height: var(--tap); display: flex; align-items: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-item:hover, .picker-item.is-cursor { background: var(--surface-in); }





.alert-day-link { color: var(--accent); text-decoration: underline; white-space: nowrap; }


.pay-no-sub { margin: 0 0 var(--space-3); }
.pay-no-sub-link { color: var(--accent); text-decoration: underline; white-space: nowrap; }
.picker-hint { color: var(--ink2); font-size: var(--text-meta);
               margin-left: var(--space-2); flex: none; }
.picker-item.is-on { color: var(--accent); }
.head-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }



.danger-zone { border-color: var(--alert-ink); }
.danger-zone h2 { color: var(--alert-ink); }


.footprint { margin: 0 0 var(--space-3); padding-left: 1.1em; color: var(--ink2); }
.footprint b { color: var(--ink); }


.card.is-cancelled, .mini.is-cancelled { opacity: .55; }
.card.is-cancelled .slot-time, .mini.is-cancelled .t { text-decoration: line-through; }



















.bk-period {
  font-weight: 500; width: 16em; flex: none; text-align: center;
  font-size: var(--text-body);
}



















.bk-period-short { display: none; }
.bk-period-ruler { display: none; }















@media (min-width: 900px) {
  .bk-period {
    width: auto; display: inline-grid; justify-items: center;
    font-variant-numeric: tabular-nums;
  }
  .bk-period > span { grid-area: 1 / 1; white-space: nowrap; }
  .bk-period-ruler { display: block; visibility: hidden; }
}
@media (max-width: 899px) {
  .bk-period { width: 7.5em; font-size: var(--text-control); }
  .bk-period-full { display: none; }
  .bk-period-short { display: inline; }
}







.bk-ctl-wrap { display: flex; align-items: center; gap: var(--space-2); }









.bk-ctl-wrap > .bk-nav { flex: none; }
.bk-ctl-wrap > .bk-modes { flex: 1 1 auto; }
@media (max-width: 899px) {
  .bk-ctl-wrap { display: block; }
}










.bk-offs {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--ink2); font-size: var(--text-meta); white-space: nowrap;
  flex: none;
  

  margin-left: auto;
}






@media (max-width: 899px) {
  .bk-modes > .bk-offs {
    flex: 1 1 auto; min-width: 0; margin-left: var(--space-1);
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .bk-modes > .bk-offs::-webkit-scrollbar { display: none; }
}
.bk-off {
  background: var(--surface); border: var(--rule);
  border-radius: var(--radius-full);
  padding: 3px var(--space-3);
  color: var(--ink); white-space: nowrap;
}











.seg {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: var(--control-h); padding: 3px;
  background: var(--surface-in); border-radius: var(--radius-md);
  flex: none; max-width: 100%;
}
.seg a, .seg button {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 30px; padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-sm); background: none;
  font-family: inherit; font-size: var(--text-control); font-weight: 500;
  line-height: var(--line-control); color: var(--ink2);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  appearance: none; flex: none;
}



[data-side-menu].seg { flex-wrap: wrap; }
[data-side-menu].seg button { white-space: normal; text-align: left; }
.seg a:hover, .seg button:hover { color: var(--ink); }


.seg a.on, .seg a.is-on, .seg button.is-on { background: var(--surface); color: var(--ink); }







.seg .chip-count {
  font-weight: 400; color: var(--ink3); background: none;
  padding: 0; min-width: 0; border: 0;
}

.seg-wide { display: flex; width: 100%; margin-bottom: var(--space-3); }
.seg-wide a { flex: 1; justify-content: center; }


















.seg-three { display: flex; width: 100%; flex: 1 1 auto; }
.seg-three a { flex: 1 1 auto; justify-content: center; min-width: 0;
               padding: 0 var(--space-2); }



.sub-history { margin-top: var(--space-2); }   
.sub-event {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: var(--text-meta); padding: 2px 0 2px var(--space-3);
  border-left: 2px solid var(--line);
}













.dayview { --minpx: .9; --axis: 54px; --colw: 1fr; --colmin: 128px; overflow-x: auto; }


















.dv-head, .dv-body {
  display: grid;
  grid-template-columns: var(--axis) repeat(var(--cols, 3), var(--colw));
  min-width: calc(var(--axis) + var(--cols, 3) * var(--colmin));
}
.dv-head {
  position: sticky; top: 0; z-index: 3;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.dv-corner, .dv-master {
  padding: var(--space-2) var(--space-3); font-size: var(--text-meta); font-weight: 500;
  border-left: 1px solid var(--line);
}
.dv-corner {
  border-left: 0; color: var(--ink2); font-size: var(--text-micro);
  text-transform: uppercase; letter-spacing: .05em;
  



  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  


  position: sticky; left: 0; z-index: 1; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}


.dv-corner svg { width: 16px; height: 16px; display: block; flex: none; }








.dv-master { text-align: center; }




.dv-master { min-width: 0; }






.dv-master-name {
  display: inline-block; max-width: 100%; vertical-align: bottom;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dv-master.is-off { color: var(--ink2); }






.dv-master .off-mark {
  display: block; font-size: var(--text-micro); font-weight: 400; color: var(--ink2);
  border: 0; padding: 0; margin-left: 0;
  text-transform: none; letter-spacing: normal;
}
.dv-body {
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);   
  background: var(--surface);
  









}


.dv-axis, .dv-col {
  position: relative;
  height: calc(var(--rows) * var(--minpx) * 1px);
  margin: calc(var(--minpx) * 15px) 0;
}
.dv-col { border-left: 1px solid var(--line); }





.dv-axis {
  position: sticky; left: 0; z-index: 5; background: var(--surface);
}
.dv-hour {
  position: absolute; right: 6px; top: calc(var(--top) * var(--minpx) * 1px);
  transform: translateY(-50%);
  font-size: var(--text-micro); color: var(--ink2); font-variant-numeric: tabular-nums;
}
.dv-line {
  position: absolute; left: 0; right: 0; top: calc(var(--top) * var(--minpx) * 1px);
  border-top: 1px solid var(--line);
}
.dv-line.is-half { border-top-style: dotted; opacity: .55; }



.dv-col { background: var(--hatch); }
.dv-work {
  position: absolute; left: 0; right: 0;
  top: calc(var(--top) * var(--minpx) * 1px);
  height: calc(var(--len) * var(--minpx) * 1px);
  background: var(--surface);
}


.bk {
  position: relative; z-index: 1;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 3px 7px;   
  font-size: var(--text-meta); cursor: pointer; overflow: hidden;
  touch-action: manipulation;        
  transition: background var(--ease);
}




.bk:active { background: var(--surface-in); transition-duration: .1s; }
.dv-col .bk {
  position: absolute; left: 3px; right: 3px;
  top: calc(var(--top) * var(--minpx) * 1px);
  height: calc(var(--len) * var(--minpx) * 1px);
  




  display: flex; flex-direction: column;
}
.dv-col .bk > * { flex: none; }
.dv-col .bk .bk-row2 { margin-top: auto; }






.dv-col .bk.len-m .bk-mark { display: none; }






.dv-col .bk[style*="--lanes: 2"],
.dv-col .bk[style*="--lanes: 3"],
.dv-col .bk[style*="--lanes: 4"] {
  left: calc(3px + var(--lane) * (100% - 6px) / var(--lanes));
  right: auto;
  width: calc((100% - 6px) / var(--lanes) - 2px);
}




.bk.is-sel { z-index: 4; }
.bk-head { display: flex; align-items: center; gap: 5px; white-space: nowrap; }



.bk-paid { display: none; }
.bk-time { font-weight: 500; font-variant-numeric: tabular-nums; }





.bk-who { overflow: hidden; text-overflow: ellipsis; }



.bk-pin-ico { display: none; flex: none; font-size: var(--text-micro); line-height: 1; cursor: help; }
.bk.len-s .bk-pin-ico { display: inline-block; }



.bk-who, .bk-who-fit { flex-shrink: 100; }
.bk-ico { margin-left: auto; display: inline-flex; gap: 4px; flex: none; }












.bk-sub-ico { width: 13px; height: 13px; }






.bk-svc {
  color: rgba(var(--ink-rgb), .72); font-size: var(--text-micro);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}















.bk-row2 { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; min-width: 0; }
.bk-row2 .bk-pin-line, .bk-row2 .bk-pair { flex: 1 1 auto; min-width: 0; }
.bk-row2 .bk-pair {
  font-size: var(--text-micro); color: rgba(var(--ink-rgb), .72);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk.len-l .bk-row2 .bk-pin-line, .bk.len-l .bk-row2 .bk-pair {
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; line-height: 1.3;
}



.bk-dur {
  flex: none; margin-left: auto; color: rgba(var(--ink-rgb), .72);
  font-size: var(--text-micro); font-variant-numeric: tabular-nums;
  white-space: nowrap; line-height: 1.4;
}




.rem { width: 13px; height: 13px; opacity: .65; flex: none; }
.bk-mark { font-size: var(--text-micro); color: var(--wait-ink); }






.bk-mark.bk-ask { color: var(--ink2); }

.sheet-fields .bk-ask { color: var(--ink2); }




.sheet-fields .bk-paid { font-weight: 500; color: var(--ok-ink); }
.bk-new {
  font-style: normal; font-size: 9px; font-weight: 500; letter-spacing: .04em;
  padding: 1px 4px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--raised);
}






.bk-sub {
  font-style: normal; font-size: 9px; font-weight: 500; letter-spacing: .04em;
  padding: 1px 4px; border-radius: var(--radius-sm);
  background: var(--ok-bg); color: var(--ok-ink);
}


















.bk.expected { background: var(--expected-bg); border-color: var(--expected-ink); }
.bk.confirmed { background: var(--ok-bg); border-color: var(--ok-ink); }
.bk.came { background: var(--ok-bg); border-color: var(--ok-ink); }
.bk.pending { background: var(--wait-bg); border-color: var(--wait-ink); }


.bk.prepay { background: var(--wait-bg); border-color: var(--wait-ink); }
.bk.no_show { background: var(--alert-bg); border-color: var(--alert-ink); }






.bk.cancelled {
  background: var(--done-bg); border-color: var(--done-ink);
  opacity: .55;
}
.bk.cancelled .bk-time { text-decoration: line-through; }









































.bk.is-paid::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--ok-ink);
  box-shadow: inset 1px 0 0 var(--raised);
}
.bk.is-paid .bk-time { color: var(--ok-ink); }









.bk.is-astray {
  box-shadow: inset 4px 0 0 var(--wait-ink);
  background-image: repeating-linear-gradient(135deg,
    transparent 0 5px, rgba(var(--ink-rgb), .07) 5px 7px);
}
.bk.is-astray.is-paid::before { background: var(--wait-ink); }






.bk.is-scale-stale { outline: 2px dashed var(--wait-ink); outline-offset: -2px; }



.bk.is-mirror { opacity: .62; border-style: dashed; }


.bk.is-fresh { animation: bk-flash 1.2s ease-out; }
@keyframes bk-flash {
  0% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .55); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}












.sheet-modal {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  display: grid; align-items: end;         
}





.sheet-modal .modal-scrim { position: absolute; inset: 0; place-self: stretch; }














body.sheet-open { overflow: hidden; }
.sheet {
  position: relative; display: flex; flex-direction: column;
  width: 100%; overflow: hidden;
  min-height: 300px;
  max-height: min(88dvh, calc(100dvh - var(--sheet-top-band)));
  background: var(--surface); border: 1px solid var(--ink); border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  


  transform: translateY(var(--bk-drag, 0px));
  transition: transform var(--ease);
  












  



  animation: sheet-in 200ms cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes sheet-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sheet.is-dragging { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
}
.sheet-head {
  flex: 0 0 auto; position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.sheet-titles { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.sheet-titles > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head .panel-close { flex: none; margin-left: auto; }

.sheet-grip {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: var(--radius-sm); background: var(--line);   
}


.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-3) var(--space-4) var(--space-4); }












.sheet-fade {
  


  position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: linear-gradient(rgba(var(--ink-rgb), 0), rgba(var(--ink-rgb), .32));
  pointer-events: none; opacity: 0; transition: opacity var(--ease);
}
.sheet-fade.is-on { opacity: 1; }
.bk-act { display: block; }







.sheet-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}


.sheet-grid .sheet-wide { grid-column: 1 / -1; }
.sheet-grid .btn {
  display: block; width: 100%; min-width: 0;
  height: 48px; min-height: 0; line-height: 46px; padding: 0 var(--space-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
  



  font-size: var(--text-meta); letter-spacing: 0;
}























.sheet-grid .btn, .sheet-grid .btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
}
.sheet-grid .btn:hover { background: var(--surface-press); }




.sheet-grid .btn:active { background: var(--surface-press); transition-duration: .1s; }
.sheet-grid .btn-hero, .sheet-grid .btn-hero:hover {
  background: var(--accent-btn, var(--accent)); color: var(--on-accent); border-color: var(--accent-btn, var(--accent));
}
.sheet-grid .btn-hero:active { background: var(--accent-btn, var(--accent)); transition-duration: .1s; }



.sheet-grid .btn[disabled], .sheet-grid .btn[disabled]:hover {
  background: var(--surface); color: var(--ink2);
  border-color: rgba(var(--ink-rgb), .08); opacity: 1;
}




.sheet-zone + .sheet-zone { margin-top: calc(var(--space-2) * 1.5); }










.sheet-fields {
  display: grid; grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--space-1) var(--space-2); align-items: baseline;
  margin-top: var(--space-4); font-size: var(--text-meta);
}
.sheet-k { color: var(--ink2); }
.sheet-v { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  










  .sheet-modal {
    align-items: start; justify-items: center;
    padding: var(--sheet-top-band) var(--space-4) var(--space-4);
  }
  .sheet {
    width: 720px; max-width: 100%;
    max-height: calc(100vh - var(--sheet-top-band) - var(--space-4));
    border-bottom: 1px solid var(--ink); border-radius: var(--radius-lg);
  }
  .sheet-grip { display: none; }
  .sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  

  .sheet-grid .sheet-wide { grid-column: span 2; }
  .sheet-grid .btn { height: 40px; line-height: 38px; font-size: var(--text-meta); }
}



.btn.is-asking { border-color: var(--ink); font-weight: 500; }
.btn.is-asking.is-loud {
  background: var(--alert-bg); border-color: var(--alert-ink); color: var(--alert-ink);
}
.btn[disabled] { opacity: .45; cursor: default; }
.bk-act .btn { font-size: var(--text-meta); }


.weekview { overflow-x: auto; }


.wv {
  border-collapse: separate; border-spacing: 0;
  width: 100%; min-width: 900px; table-layout: fixed;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.wv th, .wv td { border-bottom: 1px solid var(--line); vertical-align: top; padding: 5px 6px; }
.wv thead th {
  background: var(--accent-soft); font-size: var(--text-meta); font-weight: 500;
  text-align: center; position: sticky; top: 0; z-index: 2;
}
.wv thead th.is-today { background: var(--accent-soft); }
.wv-corner, .wv-master {
  position: sticky; left: 0; z-index: 3; background: var(--surface);
  text-align: left; width: 140px; border-right: 1px solid var(--line);
  font-family: var(--font); font-size: var(--text-meta); font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
}
.wv td.is-closed { background: var(--surface-in); }
.wv-empty { color: var(--ink2); font-size: var(--text-meta); }




.weekview .bk { margin-bottom: 4px; }
.weekview .bk:last-child { margin-bottom: 0; }
.weekview .bk-svc, .weekview .bk-mark { display: none; }
.weekview .bk-who { min-width: 0; }

.bk-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  font-size: var(--text-meta); color: var(--ink2); margin-top: var(--space-3);
}
.bk-legend span { display: inline-flex; align-items: center; gap: 5px; }










.legend-fold { margin-top: var(--space-4); }
.legend-body { padding: 0 var(--space-4) var(--space-3); }



@media (max-width: 999px) {
  .legend-body { max-height: 45vh; overflow-y: auto; }
}
@media (min-width: 1000px) {
  




  








  .fold.legend-fold {
    border: 0; border-radius: 0; background: none;
    overflow: visible; margin: var(--space-4) 0 0;
  }
  .fold.legend-fold > summary { display: none; }
  .legend-body { padding: 0; }
  

  .legend-fold .bk-legend:first-of-type { margin-top: 0; }
}



















.sw {
  width: 18px; height: 18px; display: inline-block;
  border-radius: min(var(--radius-sm), 6px);
}
.sw-expected { background: var(--expected-bg); border: 1px solid var(--expected-ink); }
.sw-confirmed { background: var(--ok-bg); border: 1px solid var(--ok-ink); }
.sw-came { background: var(--ok-bg); border: 1px solid var(--ok-ink); }
.sw-pending { background: var(--wait-bg); border: 1px solid var(--wait-ink); }
.sw-prepay { background: var(--wait-bg); border: 1px solid var(--wait-ink); }
.sw-no_show { background: var(--alert-bg); border: 1px solid var(--alert-ink); }




.sw-cancelled {
  background: color-mix(in srgb, var(--done-bg) 55%, var(--raised));
  border: 1px solid color-mix(in srgb, var(--done-ink) 55%, var(--raised));
}



.sw-off {
  background: var(--surface-in) repeating-linear-gradient(135deg,
    transparent 0 3px, rgba(var(--ink-rgb), .14) 3px 4px);
  border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--wait-ink);
}





















.dv-fold, .dv-now { display: none; }

@media (max-width: 999px) {
  .dayview.is-folded { --fold-on: var(--fold, 0); }
  .dayview.is-folded .dv-axis,
  .dayview.is-folded .dv-col {
    height: calc((var(--rows) - var(--fold-on)) * var(--minpx) * 1px);
    overflow: hidden;
  }
  






  .dayview.is-folded .dv-axis {
    overflow: visible;
    clip-path: inset(-8px 0 0 0);
  }
  .dayview.is-folded :is(.dv-hour, .dv-line, .dv-work, .dv-now) {
    top: calc((var(--top) - var(--fold-on)) * var(--minpx) * 1px);
  }
  .dayview.is-folded .dv-col .bk {
    top: calc((var(--top) - var(--fold-on)) * var(--minpx) * 1px);
  }

  .dayview.is-folded .dv-fold { display: flex; }
  .dv-fold {
    align-items: center; justify-content: center; gap: 6px;
    width: 100%; min-height: 40px; margin-top: var(--space-2);
    padding: 8px var(--space-3);
    border: var(--rule);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink2); font-size: var(--text-meta); font-family: inherit;
    cursor: pointer; appearance: none;
  }

  

  .dv-now {
    display: block; position: absolute; left: 0; right: 0; z-index: 2;
    top: calc(var(--top) * var(--minpx) * 1px);
    border-top: 2px solid var(--accent);
    pointer-events: none;
  }
}



@media (max-width: 899px) {
  









  .dayview {
    container-type: inline-size;
    


    margin-inline: calc(-1 * var(--wrap-pad, var(--space-4)));
    

    --colfix: calc((100cqw - var(--axis) - 2px) / 2);
    --colw: var(--colfix);
  }
  










  .dayview .dv-head,
  .dayview .dv-body {
    width: calc(var(--axis) + var(--cols, 3) * var(--colfix));
    min-width: 0;
  }
  




  .dv-corner { padding-left: 4px; padding-right: 4px; }
  






  
  .dv-master { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk-period { min-width: auto; }
  .bk-nav { gap: var(--space-2); }
}




.pay-modal { max-width: 520px; }
.pay-sum {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: var(--space-3); margin-bottom: var(--space-3);
  background: var(--surface-in); border-radius: var(--radius-lg);
}
.pay-sum b { font-family: var(--font); font-size: var(--text-num); }
.pay-modes { display: flex; flex-direction: column; gap: var(--space-2); }

.pay-mode {
  display: flex; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-3); min-height: var(--tap);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  cursor: pointer;
}
.pay-mode:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-mode b { display: block; font-weight: 500; }
.pay-mode i { font-style: normal; font-size: var(--text-meta); }
.pay-money { margin-top: var(--space-3); }


.pay-line { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.pay-line .from-sub { color: var(--ink2); }
.pay-line .extra { color: var(--ink); font-weight: 500; }

.task.is-refunded { opacity: .6; }
.task.is-refunded .badge { text-decoration: line-through; }



.chip-note {
  font-style: normal; font-size: var(--text-micro); color: var(--ink2);
  opacity: .8; margin-left: 4px;
}




.dv-blocks {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.room-block {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  

  padding: 6px var(--space-3); border-radius: var(--radius-lg);
  background: var(--surface-in); border: var(--rule);
  font-size: var(--text-meta);
}
.room-block b { font-weight: 500; }
.room-block .rb-money { font-variant-numeric: tabular-nums; font-weight: 500; }
.room-block .btn { min-height: 32px; padding: 0 var(--space-3); font-size: var(--text-meta); }
.rb-аренда { border-color: var(--ok-ink); background: var(--ok-bg); }
.rb-ремонт { border-color: var(--wait-ink); background: var(--wait-bg); }





.rb-log { flex: 1 1 100%; margin-top: 4px; }   
.rb-log-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: var(--text-meta); padding: 2px 0 2px var(--space-3);
  border-left: 2px solid var(--line);
}



.rb-dropped { opacity: .8; }















.fold {
  margin-bottom: var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  

  overflow: hidden;
}



















.fold > summary {
  display: grid; grid-template-columns: 1fr 20px 1fr;
  align-items: center; column-gap: var(--space-2);
  
  min-height: 44px; padding: 0 var(--space-4);
  cursor: pointer; list-style: none;
  font-weight: 500; font-size: var(--text-body);
  background: var(--surface);
}
.fold > summary::-webkit-details-marker { display: none; }









@media (max-width: 899px) {
  .fold > summary { grid-template-columns: minmax(0, 1fr) 20px max-content; }
}





.fold > summary { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.fold:not([open]) > summary { border-radius: var(--radius-lg); }


.fold > summary:hover { background: var(--surface-in); }
.fold[open] > summary { border-bottom: 1px solid var(--line); }






.fold-n {
  


  min-width: 3ch; text-align: right;
  font-size: var(--text-meta); font-variant-numeric: tabular-nums;
  color: var(--ink2);
}






.fold-overdue > summary { box-shadow: inset 3px 0 0 var(--alert-ink); }
.fold-overdue > summary .fold-n { color: var(--alert-ink); }




.fold-line > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 6px;
  font-size: var(--text-meta); color: var(--ink2);
  min-height: var(--tap);
}
.fold-line > summary::-webkit-details-marker { display: none; }
.fold-line > summary:hover { color: var(--ink); }



























:root {
  --chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
}
.fold > summary::after,
.fold-line > summary::after,
.payout-lines > summary::after,
.mf-money > summary::after {
  content: "";
  

  flex: none; width: 20px; height: 20px; text-align: center;
  margin-left: auto;
  background-color: var(--ink3);
  -webkit-mask: var(--chevron) center / 13px 13px no-repeat;
  mask: var(--chevron) center / 13px 13px no-repeat;
  transition: transform var(--ease); transform-origin: center 50%;
}












.fold > summary::after {
  grid-column: 2; grid-row: 1; justify-self: center;
  

  margin-left: 0;
  -webkit-mask-size: 16px 16px; mask-size: 16px 16px;
}
.fold[open] > summary::after,
.fold-line[open] > summary::after,
.payout-lines[open] > summary::after,
.mf-money[open] > summary::after { transform: rotate(180deg); }


.payout-lines > summary, .mf-money > summary {
  display: flex; align-items: center;
}


.mf-money > summary { cursor: pointer; list-style: none; }
.mf-money > summary::-webkit-details-marker { display: none; }





























.month-fold > summary:focus-visible, .rents > summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}










.mf-hint, .rents-peek, .rf-peek { display: none; }
@media (min-width: 900px) {
  





  




  .mf-hint, .rents-peek, .rf-peek {
    display: inline; margin-left: 0;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}














.fold > summary > * { grid-row: 1; }
.fold > summary > :first-child { grid-column: 1; text-align: left; }
.fold > summary > :nth-child(2) { grid-column: 3; text-align: right; }



.rents-title, .fold > summary > * {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.mf-hint, .rents-peek {
  font-family: var(--font); font-weight: 400;
  text-transform: none; letter-spacing: 0; font-size: var(--text-meta);
}




.month-fold > div, .rents > .dv-blocks { padding: var(--space-4) var(--space-3) var(--space-3); }
.month-fold .month { margin-bottom: 0; }







.rate-rows { display: flex; flex-direction: column; gap: var(--space-2); }
.rate-row {
  display: flex; align-items: flex-end; gap: var(--space-2);
  flex-wrap: wrap; min-width: 0;
}
.rate-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 0 1 8rem; }
.rate-lab { font-size: var(--text-micro); color: var(--ink2); text-transform: uppercase;
            letter-spacing: .05em; }
.rate-cell input { width: 100%; }


.rate-step { font-weight: 500; flex: 0 0 5rem; }
.rate-common { flex: 1 1 10rem; min-width: 0; font-size: var(--text-meta); }
.rate-drop { flex: none; min-width: var(--tap); }
.rate-foot {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  align-items: center; justify-content: space-between;
  margin-top: var(--space-3);
}
.mr-body { padding: var(--space-4) var(--space-3) var(--space-3); }















.lt-lead { margin: 0 0 var(--space-3); max-width: 70ch; }
.lt-list .lt-card {
  border: 0; border-radius: 0; background: none; margin: 0;
  border-top: 1px solid var(--line);
}
.lt-list .lt-card > summary { background: none; padding-inline: 0; }


.lt-list .settings-group { margin: var(--space-4) 0 var(--space-1); }






.month { margin-bottom: var(--space-4); }

.month-head {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); margin-bottom: var(--space-3);
}
.month-title {
  font-family: var(--font); font-weight: 500;
  letter-spacing: .04em; font-size: var(--text-body); min-width: 9em; text-align: center;
}

.month-grid {
  




  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.month-wd {
  text-align: center; font-size: var(--text-meta); font-weight: 500;
  color: var(--ink2); padding-bottom: 2px;
}

.month-cell {
  position: relative; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-full); padding: 0;
  font-family: inherit; color: var(--ink);
}
.month-cell.is-empty { cursor: default; }
.month-cell:disabled { cursor: default; }



.month-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg); pointer-events: none;
}
.month-ring circle {
  fill: none; stroke-width: 2.5; stroke-linecap: round;
}
.ring-bg { stroke: var(--line); }

.ring-fill {
  stroke: var(--accent);
  stroke-dasharray: calc(var(--p, 0) * 94.25) 94.25;
  transition: stroke-dasharray .3s ease-out;
}

.month-num { font-size: var(--text-control); font-weight: 500; line-height: 1; }
.month-count {
  font-size: var(--text-micro); line-height: 1; color: var(--ink2);
  font-variant-numeric: tabular-nums;
}



.month-cell.is-free .ring-fill { stroke: var(--line); }
.month-cell.is-low  .ring-fill { stroke: var(--ok-ink); }
.month-cell.is-mid  .ring-fill { stroke: var(--wait-ink); }
.month-cell.is-high .ring-fill { stroke: var(--alert-ink); }



.month-cell.is-astray .ring-fill {
  stroke: var(--alert-ink); stroke-dasharray: 4 4;
}

.month-cell.is-today .month-num { color: var(--on-accent, var(--ink)); font-weight: 500; }
.month-cell.is-today::after {
  content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px;
  border-radius: var(--radius-full); background: var(--ink);
}
.month-cell.is-selected { background: var(--accent-soft); }
.month-cell.is-selected .month-num { font-weight: 500; }


.month-cell.is-past { opacity: .45; }
.month-cell.is-closed .month-num { color: var(--ink2); }
.month-cell.is-closed .ring-bg { stroke-dasharray: 3 4; }

.month-cell:hover:not(.is-empty) { background: var(--surface-in); }
.month-cell:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

.month-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0 0; font-size: var(--text-meta); color: var(--ink2);
}
.month-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ld {
  width: 10px; height: 10px; border-radius: var(--radius-full);
  border: 2.5px solid var(--line);
}
.ld-free { border-color: var(--line); }
.ld-low  { border-color: var(--ok-ink); }
.ld-mid  { border-color: var(--wait-ink); }
.ld-high { border-color: var(--alert-ink); }
.ld-astray { border-color: var(--alert-ink); }

[data-month-box].is-loading { opacity: .5; pointer-events: none; }



@media (min-width: 900px) {
  .month, [data-month-box] { max-width: 420px; }
}










.dlg-search input {
  

  font-size: var(--text-body);
}
[aria-busy="true"] { opacity: .6; transition: opacity 120ms ease; }


.pay-log { width: 100%; border-collapse: collapse; font-size: var(--text-control); }
.pay-log th {
  text-align: left; padding: 9px var(--space-3); font-size: var(--text-micro);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink2);
  border-bottom: var(--rule); background: var(--surface-in); font-weight: 500;
}
.pay-log td { padding: 8px var(--space-3); border-bottom: var(--rule); vertical-align: middle; }
.pay-log .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }






.pay-log .pay-acts { width: 1%; white-space: nowrap; text-align: right; }
.pay-log .pay-acts .btn + .btn { margin-left: 4px; }













@media (min-width: 900px) {
  .pay-log .c-when, .pay-log .c-sum,
  .pay-log thead th.num { width: 1%; white-space: nowrap; }
  


  .pay-log .c-took { width: 1%; }
}



.pay-log { table-layout: auto; max-width: 100%; }
.card:has(> .pay-log) { overflow-x: auto; }
.pay-log .pay-part {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}



.card:has(> .pay-log.usage-log) { padding: 0; }


.pay-log.usage-log .c-code { white-space: nowrap; }
.card:has(> .pay-log.usage-log) > .usages-scope { padding: var(--space-3) var(--space-3) 0; }
.card:has(> .pay-log.usage-log) > .usages-more { margin: var(--space-2) var(--space-3) var(--space-3); width: calc(100% - 2 * var(--space-3)) !important; }


.pay-log .c-when { white-space: nowrap; color: var(--ink2);
                   font-variant-numeric: tabular-nums; }


.pay-log .when-paid {
  display: block; font-size: var(--text-micro); color: var(--wait-ink);
}


.pay-log .c-sum.is-sub { color: var(--ink2); }






.pay-log .sum-word {
  font-variant-numeric: normal; white-space: nowrap;
  font-size: var(--text-meta); font-weight: 400; color: var(--ink2);
}
.pay-log .sum-word.is-debt { color: var(--wait-ink); font-weight: 500; }
.pay-log .sum-extra {
  display: block; font-size: var(--text-micro); color: var(--ink2);
  font-variant-numeric: normal; white-space: nowrap;
}


.pay-log .pay-note { max-width: 18em; white-space: normal; overflow-wrap: anywhere;
                     color: var(--ink2); font-size: var(--text-meta); }






.btn-ico {
  padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ico svg { width: 19px; height: 19px; display: block; }






#ask-modal { z-index: var(--z-ask); }

#ask-modal [data-ask-facts] {
  white-space: pre-line;
  margin: 0 0 var(--space-3);
}
#ask-modal [data-ask-error] { color: var(--alert-ink); }
#ask-modal .field:last-child { margin-bottom: 0; }



.stat.is-alarm { border-color: var(--wait-ink); background: var(--wait-bg); }




.period-own { display: grid; gap: var(--space-3); }
.period-own .two-fields { margin: 0; }






.day-chart {
  display: flex; align-items: flex-end; gap: var(--space-2);
  overflow-x: auto; padding: var(--space-3);
}
.day-col {
  flex: 1 0 44px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; min-width: 44px;
}
.day-col i {
  display: block; width: 100%; min-height: 2px; height: 0;
  background: var(--accent); border: var(--rule); border-bottom: 0;
  transition: height .2s ease;
}
.day-col .day-sum {
  font-size: var(--text-meta); font-variant-numeric: tabular-nums; color: var(--ink);
}
.day-col .day-name { font-size: var(--text-micro); color: var(--ink2); }


.day-col { flex-direction: column-reverse; justify-content: flex-start; }



.dv-col.is-target { background: var(--accent-soft); transition: background .3s ease; }





.bk-contact { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); align-items: center; }
.bk-contact a {
  min-height: var(--tap); display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.bk-contact a:hover { border-color: var(--ink); }
.bk-contact .bk-tel { font-variant-numeric: tabular-nums; font-weight: 500; }




.bk-nobot { display: block; color: var(--wait-ink); }


.pay-log tr.is-void td { color: var(--ink2); }
.pay-log tr.is-void .num { text-decoration: line-through; }
@media (max-width: 899px) {
  

  .pay-log { min-width: 560px; }
  .card:has(.pay-log) { overflow-x: auto; }

  









  .pay-log.cards { min-width: 0; display: block; }
  .card:has(.pay-log.cards) { overflow-x: visible; }
  .pay-log.cards thead { display: none; }
  .pay-log.cards tbody { display: block; }
  .pay-log.cards tr {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 2px var(--space-2);
    padding: var(--space-3) var(--space-3) 10px;
    border-bottom: var(--rule);
  }
  



  .pay-log.cards td {
    display: block; padding: 0; border: none;
    min-width: 0; overflow-wrap: anywhere;
  }
  

  .pay-log.cards td.is-blank { display: none; }
  .pay-log.cards .c-when { order: 1; font-size: var(--text-meta); }
  .pay-log.cards .c-sum {
    order: 2; margin-left: auto; text-align: right;
    font-size: var(--text-section); font-weight: 500;
  }
  .pay-log.cards .c-who { order: 3; flex-basis: 100%; font-weight: 500; }
  .pay-log.cards .c-what { order: 4; flex-basis: 100%; }
  .pay-log.cards .c-how { order: 5; font-size: var(--text-meta); color: var(--ink2); }
  .pay-log.cards .c-took { order: 6; font-size: var(--text-meta); color: var(--ink2); }
  

  .pay-log.cards .c-how:not(.is-blank) + .c-took::before { content: '·'; margin-right: 5px; }
  


  .pay-log.cards .c-acts { order: 7; margin-left: auto; width: auto; }
  .pay-log.cards .c-note { order: 8; flex-basis: 100%; max-width: none; }
  


  .pay-log.cards .c-code { order: 1; font-size: var(--text-meta); color: var(--ink2); }
  .pay-log.cards .c-master { order: 5; font-size: var(--text-meta); color: var(--ink2); }
  .pay-log.cards .pay-why td { flex-basis: 100%; }
}












.report-table { width: 100%; border-collapse: collapse; font-size: var(--text-control); }
.report-table th {
  text-align: left; padding: 8px var(--space-3); font-size: var(--text-meta);
  font-weight: 500; color: var(--ink2); text-transform: uppercase;
  letter-spacing: .06em; border-bottom: var(--rule);
}
.report-table td {
  padding: 10px var(--space-3); border-bottom: var(--rule);
  overflow-wrap: anywhere;
}
.report-table tr:last-child td { border-bottom: none; }


.report-table .num {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}










@media (min-width: 561px) {
  .report-table { table-layout: fixed; }
  





  .report-table .num { width: 140px; }
  .report-table .pay-acts { width: 104px; }
  







  .report-table .c-side {
    text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  

  .report-table td:first-child, .report-table th:first-child {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}



.report-table .u { display: none; }

@media (max-width: 560px) {
  .report-table, .report-table tbody, .report-table tr, .report-table td {
    display: block;
  }
  .report-table thead { display: none; }
  .report-table tr {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 2px var(--space-2);
    padding: var(--space-3) var(--space-3) 10px; border-bottom: var(--rule);
  }
  .report-table td { padding: 0; border: none; }
  



  .report-table .c-name {
    flex-basis: 100%; font-weight: 500; min-width: 0; overflow-wrap: anywhere;
  }
  

  .report-table .num {
    order: 2; margin-left: auto;
    font-size: var(--text-section); font-weight: 500;
  }
  .report-table .c-side {
    order: 3; font-size: var(--text-meta); color: var(--ink2);
  }
  .report-table .c-side + .c-side::before { content: '·'; margin-right: 5px; }
  .report-table .u { display: inline; }
  

  .report-table .c-share {
    order: 3; margin-left: 0;
    font-size: var(--text-meta); font-weight: 400; color: var(--ink2);
  }
  .report-table .c-share + .c-side::before,
  .report-table .c-side + .c-share::before { content: '·'; margin-right: 5px; }
}






.rooms-fold { margin-top: 16px; }



.rf-peek { font-weight: 400; font-size: var(--text-meta); }
.rf-body { padding: 14px; border-top: 1px solid var(--line); overflow-x: auto; }














.rooms {
  display: grid;
  



  grid-template-columns: minmax(76px, 104px) repeat(var(--h), minmax(46px, 96px));
  width: max-content; max-width: 100%;
  border: 1px solid var(--line); background: var(--surface);
}






.rt-corner, .rh {
  background: var(--accent-soft); border-bottom: 1px solid var(--line);
  font-size: var(--text-micro); padding: 6px 4px; color: var(--ink2); text-align: center;
}
.rt-corner { text-align: left; padding-left: 10px; font-weight: 500; }
.rt-name {
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: 0 10px; font-weight: 500; font-size: var(--text-meta);
  display: flex; align-items: center; background: var(--surface-in);
  min-height: 54px;
}



.rt-lane {
  grid-column: 2 / -1; position: relative; min-height: 54px;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(var(--h), 1fr);
}
.rt-cell { border-right: 1px solid var(--line); opacity: .5; }

.rb {
  position: absolute; top: 4px; bottom: 4px; left: var(--l); width: var(--w);
  border-width: 1px; border-style: solid; border-radius: var(--radius-lg);
  padding: 3px 6px; overflow: hidden; font-size: var(--text-micro); line-height: 1.25;
  display: flex; flex-direction: column; gap: 1px;
}
.rb-time { font-weight: 500; font-size: var(--text-micro); }
.rb-who { font-weight: 500; white-space: nowrap; overflow: hidden;
          text-overflow: ellipsis; }
.rb-m { color: var(--ink2); font-size: var(--text-micro); white-space: nowrap;
        overflow: hidden; text-overflow: ellipsis; }







.rb.expected { background: var(--expected-bg); border-color: var(--expected-ink); }
.rb.confirmed { background: var(--ok-bg); border-color: var(--ok-ink); }
.rb.came { background: var(--ok-bg); border-color: var(--ok-ink); }
.rb.pending { background: var(--wait-bg); border-color: var(--wait-ink); }
.rb.prepay { background: var(--wait-bg); border-color: var(--wait-ink); }
.rb.no_show { background: var(--alert-bg); border-color: var(--alert-ink); }


.rb.is-paid { box-shadow: inset 3px 0 0 var(--ok-ink); }
.rb.is-pair { border-width: 2px; border-style: double; }

.rooms-legend {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-size: var(--text-meta); color: var(--ink2); margin: 10px 0 0;
}
.rooms-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rooms-legend .sw { width: 14px; height: 14px; }






.sw-paid { background: var(--surface); border: 1px solid var(--line);
           box-shadow: inset 3px 0 0 var(--ok-ink); }
.sw-pairmark { background: var(--surface); border: 2px double var(--ink2); }

@media (max-width: 900px) {
  



  .rt-name { font-size: var(--text-meta); padding: 0 6px; }
}





.rb-block {
  position: absolute; top: 4px; bottom: 4px; left: var(--l); width: var(--w);
  border: 1px solid var(--wait-ink); border-radius: var(--radius-lg);
  background: var(--wait-bg); color: var(--wait-ink);
  padding: 3px 6px; overflow: hidden; font-size: var(--text-micro); line-height: 1.25;
  display: flex; flex-direction: column; gap: 1px;
}


.rb-tail {
  position: absolute; top: 4px; bottom: 4px; left: var(--l); width: var(--w);
  border-radius: var(--radius-lg); opacity: .55;
  background: repeating-linear-gradient(45deg,
    var(--line) 0 4px, transparent 4px 8px);
}
.sw-block { background: var(--wait-bg); border: 1px solid var(--wait-ink); }
.sw-tail { background: repeating-linear-gradient(45deg,
    var(--line) 0 4px, transparent 4px 8px); border: 1px solid var(--line); }





.rt-lane.is-closed {
  background: repeating-linear-gradient(45deg,
    var(--line) 0 5px, transparent 5px 10px);
}
.rt-name.is-closed { color: var(--ink2); }
.rt-off {
  display: block; font-weight: 400; font-size: var(--text-micro); color: var(--wait-ink);
  text-transform: uppercase; letter-spacing: .04em;
}
.sw-closed { background: repeating-linear-gradient(45deg,
    var(--line) 0 5px, transparent 5px 10px); border: 1px solid var(--line); }













[data-nb-times-note] { min-height: 3.4em; }




.nb-times.is-waiting { opacity: .45; pointer-events: none; }











.fold.card { padding: 0; }
.lt-card > :not(summary) { margin-left: var(--space-3); margin-right: var(--space-3); }
.lt-card > form { margin-bottom: var(--space-3); }
.lt-state { font-weight: 400; }


.lt-slots { margin-bottom: 6px; }
.lt-slots .btn { flex: 0 0 auto; min-height: 44px; }

.lt-preview {
  white-space: pre-wrap; font: inherit;
  margin: var(--space-3) 0 0; padding: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--accent-soft);
}














.ap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.ap-step { margin-bottom: var(--space-4); }
.ap-step h2 {
  font-size: var(--text-meta); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2); margin: 0 0 var(--space-2);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2);
}



.ap-step-link {
  font-size: var(--text-meta); font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink2); white-space: nowrap;
}
.ap-step-link:hover { color: var(--ink); }
.ap-step .field-hint { margin-top: var(--space-2); }



.ap-sw { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ap-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ap-one { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.ap-sw button {
  appearance: none; border: 1px solid var(--line); background: none;
  padding: 0; cursor: pointer; border-radius: var(--radius-md);
  overflow: hidden; height: 34px; position: relative;
}
.ap-sw button span { position: absolute; inset: 0; }
.ap-names button, .ap-one button {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); min-height: 34px; padding: 0 10px;
  border-radius: var(--radius-md); cursor: pointer; font: inherit;
  font-size: var(--text-meta); text-align: left;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-names button i, .ap-one button i {
  width: 12px; height: 12px; border-radius: var(--radius-sm); flex: none;
  border: 1px solid rgba(var(--ink-rgb), .12);
}

.ap-sw button.is-on { outline: 2px solid var(--ink); outline-offset: 2px; }
.ap-names button.is-on, .ap-one button.is-on {
  border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
}


.ap-sw button[disabled] { opacity: .25; cursor: not-allowed; }

.ap-logo { display: flex; align-items: center; gap: var(--space-3); }
.ap-logo-box {
  width: 56px; height: 56px; flex: none; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.ap-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.ap-logo-box i {
  font-style: normal; font-size: var(--text-micro); color: var(--ink2);
  text-align: center; padding: 0 4px;
}
.ap-logo-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ap-logo-acts label { cursor: pointer; }


.ap-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  padding: var(--space-2) 0; margin-bottom: var(--space-2);
  background: var(--page);
}
.ap-state { margin-right: auto; }
.ap-top { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.ap-seg button { font: inherit; }

.ap-stage { min-width: 0; }
.ap-frame {
  margin: 0 auto; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--p-page); max-width: 100%;
  transition: max-width var(--ease);
}
.ap-frame.is-phone { max-width: 390px; }
























@media (min-width: 1000px) {
  .wrap-appearance {
    display: flex; flex-direction: column;
    height: calc(100dvh - var(--demo-bar-h, 0px)); box-sizing: border-box;
  }
  .ap {
    grid-template-columns: 300px minmax(0, 1fr); align-items: stretch;
    flex: 1; min-height: 0;
  }
  



  .ap-side, .ap-main {
    min-height: 0; overflow-y: auto;
    padding-inline: var(--ring-reach);
    margin-inline: calc(var(--ring-reach) * -1);
  }
  .wrap-appearance .build-mark { flex: none; }
}






.ap-covers { margin-top: var(--space-6); }
.cov-group { margin-top: var(--space-4); }






.cov-grid {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-bottom: var(--space-2);
}
.cov-tile {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-md); padding: 0; cursor: pointer;
  color: var(--ink); font: inherit; text-align: left;
  display: flex; flex-direction: column; overflow: hidden;
  touch-action: manipulation;
}
.cov-tile:hover { background: var(--surface-in); }
.cov-tile.is-on { border-color: var(--accent); background: var(--accent-soft); }




.cov-shot {
  display: block; aspect-ratio: 2 / 3; background: var(--surface-in);
  position: relative;
}
.cov-shot img, .cov-shot svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}





.cov-name {
  display: block; padding: 6px var(--space-2);
  font-size: var(--text-meta); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cov-tile.is-on .cov-name { color: var(--ink); }
.cov-own-line { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }


.linkish {
  


  color: var(--accent-text); cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
}
.linkish:hover { color: var(--ink); }


.pv-app, .pv-book {
  --pv-sm: calc(var(--p-radius) * .75);
  --pv-md: var(--p-radius);
  --pv-lg: calc(var(--p-radius) * 1.5);
  font-family: var(--p-font), system-ui, sans-serif;
  color: var(--p-ink); background: var(--p-page);
  font-size: 15px; line-height: 22px;
}
.pv-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 560px; }
.is-phone .pv-app { grid-template-columns: minmax(0, 1fr); min-height: 640px; }

.pv-nav {
  background: var(--p-sidebar); color: var(--p-sidebar-muted);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 2px;
}
.is-phone .pv-nav { display: none; }
.pv-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--p-sidebar-ink); font-weight: 500; padding: 4px 8px 16px;
}
.pv-logo i, .pv-bk-logo {
  width: 28px; height: 28px; border-radius: var(--pv-sm);
  background: var(--p-accent); display: inline-block; flex: none;
  background-size: cover; background-position: center;
}
.pv-g {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 8px; margin: 8px 0 4px; color: var(--p-sidebar-muted); opacity: .8;
}
.pv-nav a {
  display: flex; justify-content: space-between; padding: 7px 8px;
  border-radius: var(--pv-md); color: inherit; text-decoration: none;
}
.pv-nav a.on { background: var(--p-sidebar-active); color: var(--p-sidebar-ink); }
.pv-nav a b { font-weight: 500; color: var(--p-sidebar-ink); font-size: 13px; }
.pv-me {
  margin-top: auto; padding: 8px; font-size: 13px;
  border-top: 1px solid var(--p-sidebar-active);
}

.pv-main { padding: 24px 28px; min-width: 0; }
.is-phone .pv-main { padding: 16px; }
.pv-ph { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.is-phone .pv-ph { flex-direction: column; align-items: stretch; gap: 10px; }
.pv-t { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--pv-md);
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
}
.pv-btn-p { background: var(--p-accent); color: var(--p-on-accent); }
.is-phone .pv-btn-p { width: 100%; }




.pv-ctl {
  display: flex; align-items: center; gap: 10px;
  padding: var(--ring-reach); margin: calc(-1 * var(--ring-reach));
  margin-bottom: calc(16px - var(--ring-reach));
  overflow-x: auto; scrollbar-width: none;
}
.pv-ctl::-webkit-scrollbar { display: none; }
.pv-search {
  display: flex; align-items: center; height: 36px; padding: 0 12px;
  width: 230px; flex: none; border: 1px solid var(--p-line-strong);
  border-radius: var(--pv-md); background: var(--p-raised);
  color: var(--p-ink3); font-size: 14px;
}
.is-phone .pv-search { width: 100%; min-width: 160px; }
.pv-seg { display: inline-flex; background: var(--p-sunken); border-radius: var(--pv-md); padding: 3px; gap: 2px; flex: none; }
.pv-seg span { padding: 4px 12px; border-radius: var(--pv-sm); font-size: 14px; font-weight: 500; color: var(--p-ink2); white-space: nowrap; }
.pv-seg span.on { background: var(--p-raised); color: var(--p-ink); }
.pv-seg span i { font-style: normal; font-weight: 400; color: var(--p-ink3); margin-left: 5px; }

.pv-mets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
           gap: var(--space-3); margin-bottom: var(--space-6); }
.is-phone .pv-mets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-met { background: var(--p-raised); border: 1px solid var(--p-line); border-radius: var(--pv-lg); padding: 12px 14px; min-width: 0; }
.pv-met small { display: block; font-size: 13px; color: var(--p-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-met b { display: block; font-size: 22px; line-height: 28px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pv-caps { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--p-ink2); margin: 0 0 6px; }
.pv-list { background: var(--p-raised); border: 1px solid var(--p-line); border-radius: var(--pv-lg); overflow: hidden; margin-bottom: 20px; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--p-line); }
.pv-row:first-child { border-top: 0; }
.pv-av {
  width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--p-sunken);
  color: var(--p-ink2); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; flex: none;
}
.pv-tx { flex: 1; min-width: 0; }
.pv-tx em { font-style: normal; display: block; font-size: 13px; color: var(--p-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--pv-sm); font-size: 13px; font-weight: 500; white-space: nowrap; }
.pv-chip.ok { background: var(--p-ok-bg); color: var(--p-ok-ink); }
.pv-chip.wait { background: var(--p-wait-bg); color: var(--p-wait-ink); }
.pv-chip.alert { background: var(--p-alert-bg); color: var(--p-alert-ink); }
.pv-chip.done { background: var(--p-done-bg); color: var(--p-done-ink); }
.is-phone .pv-chip { display: none; }
.pv-tm { font-size: 13px; color: var(--p-ink3); font-variant-numeric: tabular-nums; flex: none; }











.pv-t, .pv-bk-h, .pv-bk-name {
  font-family: var(--p-font-head), system-ui, sans-serif;
  font-weight: var(--p-font-head-weight);
}

.pv-tabbar { display: none; }
.is-phone .pv-tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--p-line); background: var(--p-raised);
  padding: 8px 0 10px; font-size: 11px; text-align: center; color: var(--p-ink2);
}
.is-phone .pv-tabbar span.on { color: var(--p-accent); }
.pv-tabbar i { display: block; width: 20px; height: 20px; border-radius: var(--radius-sm); border: 1.5px solid currentColor; margin: 0 auto 3px; }










.ap-frame[data-pv-nav="1"] .pv-app {
  position: relative;
  grid-template-columns: 196px minmax(0, 1fr);
  background: var(--p-page);
}
.ap-frame[data-pv-nav="1"] .pv-app::before {
  

  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: var(--pv-cover, none);
  background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.12);
  transform: scale(1.06);
}
.ap-frame[data-pv-nav="1"] .pv-app::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--p-page);
  opacity: var(--p-veil-a, .72);
}
.ap-frame[data-pv-nav="1"] .pv-nav,
.ap-frame[data-pv-nav="1"] .pv-main,
.ap-frame[data-pv-nav="1"] .pv-tabbar { position: relative; z-index: 1; }


.ap-frame[data-pv-nav="1"] .pv-nav {
  margin: 14px 0 14px 14px; border-radius: var(--pv-lg);
  background: color-mix(in srgb, var(--p-raised) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--p-line) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .55);
  color: var(--p-ink2); padding: 14px 10px;
}
.ap-frame[data-pv-nav="1"] .pv-nav a { color: var(--p-ink); }
.ap-frame[data-pv-nav="1"] .pv-nav a.on {
  background: color-mix(in srgb, var(--p-accent) 18%, transparent);
  color: var(--p-ink);
}
.ap-frame[data-pv-nav="1"] .pv-nav a b { color: var(--p-ink); }
.ap-frame[data-pv-nav="1"] .pv-logo,
.ap-frame[data-pv-nav="1"] .pv-g,
.ap-frame[data-pv-nav="1"] .pv-me { color: var(--p-ink2); }


.ap-frame[data-pv-nav="1"] .pv-met,
.ap-frame[data-pv-nav="1"] .pv-list,
.ap-frame[data-pv-nav="1"] .pv-search {
  background: color-mix(in srgb, var(--p-raised) 58%, transparent);
  border-color: color-mix(in srgb, var(--p-line) 65%, transparent);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.ap-frame[data-pv-nav="1"][data-pv-tint="1"] .pv-met,
.ap-frame[data-pv-nav="1"][data-pv-tint="1"] .pv-list,
.ap-frame[data-pv-nav="1"][data-pv-tint="1"] .pv-search,
.ap-frame[data-pv-nav="1"][data-pv-tint="1"] .pv-nav {
  background: color-mix(in srgb, var(--p-raised) 82%, transparent);
}

.ap-frame[data-pv-opaque="1"] .pv-nav,
.ap-frame[data-pv-opaque="1"] .pv-met,
.ap-frame[data-pv-opaque="1"] .pv-list,
.ap-frame[data-pv-opaque="1"] .pv-search {
  background: var(--p-raised);
  border-color: var(--p-line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ap-frame[data-pv-opaque="1"] .pv-app::before { display: none; }


.ap-frame[data-pv-nav="1"] .is-phone .pv-tabbar,
.ap-frame[data-pv-nav="1"].is-phone .pv-tabbar {
  margin: 0 12px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--p-raised) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--p-line) 65%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}


.pv-book { min-height: 560px; }
.is-phone .pv-book { min-height: 640px; }

.pv-bk-cover {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--p-radius, 8px); overflow: hidden;
  margin-bottom: 10px; background: var(--p-sunken);
}
.pv-bk-cover img, .pv-bk-cover svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pv-bk-top {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--p-line);
  background: var(--p-raised);
}
.pv-bk-name { font-weight: 500; }
.pv-bk-name em { font-style: normal; display: block; font-size: 13px; color: var(--p-ink2); }
.pv-bk-body { padding: 20px; max-width: 640px; margin: 0 auto; }
.pv-bk-step { font-size: 13px; color: var(--p-ink3); margin-bottom: 4px; }
.pv-bk-h { font-size: 17px; font-weight: 500; margin: 18px 0 8px; }
.pv-bk-h:first-of-type { margin-top: 8px; }
.pv-bk-cards { display: grid; gap: 8px; }
.pv-bk-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--p-line);
  border-radius: var(--pv-lg); background: var(--p-raised);
}
.pv-bk-card span { font-size: 13px; color: var(--p-ink2); }
.pv-bk-card.is-on { border-color: var(--p-accent); box-shadow: inset 0 0 0 1px var(--p-accent); }
.pv-bk-masters { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-bk-master { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--p-line); border-radius: var(--radius-full); background: var(--p-raised); font-size: 14px; }
.pv-bk-master i {
  font-style: normal; width: 28px; height: 28px; border-radius: var(--radius-full);
  background: var(--p-sunken); color: var(--p-ink2);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.pv-bk-master.is-on { border-color: var(--p-accent); box-shadow: inset 0 0 0 1px var(--p-accent); }
.pv-bk-times { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-bk-times span {
  padding: 8px 14px; border: 1px solid var(--p-line-strong);
  border-radius: var(--pv-md); background: var(--p-raised); font-size: 14px;
}
.pv-bk-times span.is-on { background: var(--p-accent); color: var(--p-on-accent); border-color: var(--p-accent); }
.pv-bk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--p-line);
}
.pv-bk-total { font-size: 13px; color: var(--p-ink2); }
.pv-bk-total b { display: block; font-size: 22px; line-height: 28px; font-weight: 500; color: var(--p-ink); }
.is-phone .pv-bk-go { width: 100%; }


























.payline-link { color: inherit; text-decoration: none; }
.payline-link:hover { background: var(--accent-soft); }



.last-contact { margin: 0 0 var(--space-3); }




.period-one-day { text-align: start; margin: 0 0 var(--space-3); }




.pay-parts { margin-top: 4px; font-size: var(--text-micro); }
.pay-part { display: flex; align-items: center; gap: 6px; color: var(--ink2); }
.pay-part.is-void { text-decoration: line-through; opacity: .7; }

.pay-part-method { display: flex; align-items: center; gap: 6px; }
.pay-part-method select { flex: 1 1 auto; min-width: 0; }
.pay-parts-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-top: var(--space-2); flex-wrap: wrap;
}


.pay-parts-foot .is-alarm { color: var(--wait-ink); }


.trail-list { margin: var(--space-2) 0 0; padding-left: var(--space-4); }
.trail-list li { margin-bottom: 4px; }

























































html[data-glass] {
  

  --pane-top: rgba(var(--raised-rgb), var(--pane-top-a));
  --pane-bot: rgba(var(--raised-rgb), var(--pane-bot-a));
  --pane-grad: linear-gradient(180deg, var(--pane-top) 0%, var(--pane-bot) 100%);
  --pane-line: 1px solid rgba(var(--pane-edge-rgb), var(--pane-edge-a));
  

  --pane-sheen: inset 0 1px 0 rgba(255, 255, 255, var(--pane-sheen-a));
  --pane-shade: 0 16px 40px rgba(var(--glass-shadow-rgb), var(--glass-shadow-a));
  

  --pane-grad-press: linear-gradient(180deg,
      rgba(var(--pane-step-rgb, var(--pane-edge-rgb)), var(--pane-step-a)) 0%,
      var(--pane-bot) 100%);

  
  --surface: var(--pane-bot);
  --surface-in: rgba(var(--pane-step-rgb), var(--pane-step-a));
  --surface-press: rgba(var(--pane-step-rgb), var(--pane-step-deep-a));
}




html[data-glass][data-tint="1"] {
  --pane-top-a: var(--pane-tint-top-a);
  --pane-bot-a: var(--pane-tint-bot-a);
}





html[data-glass] body { background: transparent; }
html[data-glass] { background: var(--page); }
.glass-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.glass-bg-photo {
  position: absolute;
  

  inset: calc(-2 * var(--bg-blur));
  background-size: cover; background-position: center;
  filter: blur(var(--bg-blur)) saturate(1.15);
  transform: scale(1.04);
}



.glass-bg-veil {
  position: absolute; inset: 0;
  background: rgba(var(--page-rgb), var(--veil-a));
}


.glass-bg.is-pattern {
  background:
    radial-gradient(59% 59% at 14% 18%, rgba(var(--accent-rgb), .85), transparent 68%),
    radial-gradient(51% 51% at 86% 24%, rgba(var(--accent-soft-rgb), .95), transparent 70%),
    radial-gradient(64% 64% at 68% 88%, rgba(var(--sidebar-rgb), .55), transparent 68%),
    var(--page);
}
.glass-bg.is-pattern .glass-bg-veil {
  background: rgba(var(--page-rgb), var(--veil-pattern-a));
}
















html[data-glass] :is(
  






  .card, .met, .src-tile, .rows, .ev-feed, .sub, .fold, .rooms, .sync, .infra,
  .panel, .master-modal, .modal-card, .clock-modal, .sheet, .profile-sheet,
  .login-card, .alert-card, .stale-card, .merge-card, .invite-box,
  .thread-card, .dlg-thread, .cal, .wv, .dv-body, .sched-scroll, .sched-bar,
  .mc-pop, .mc-menu, .row-menu-list, .picker-list, .chip-menu,
  .sel-list, .hint-q-body, .ap-side, .ap-bar,
  






  .nav
) {
  background: var(--pane-grad);
  border: var(--pane-line);
  border-radius: var(--pane-radius-card);
  box-shadow: var(--pane-sheen), var(--pane-shade);
  




  --ink2: var(--ink2-mix);
  --ink3: var(--ink3-mix);
  --ink2-pane: var(--ink2-pane-mix);
}















html[data-glass] :is(
  .panel, .master-modal, .modal-card, .clock-modal, .sheet, .profile-sheet,
  .login-card, .ap-side, .ap-bar,
  





  .dayview,
  .thread-card, .dlg-thread, .cal, .wv, .dv-body, .sched-scroll,
  .mc-pop, .mc-menu, .row-menu-list, .picker-list, .chip-menu,
  .sel-list, .hint-q-body, .nav
) {
  -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(var(--pane-sat));
  backdrop-filter: blur(var(--pane-blur)) saturate(var(--pane-sat));
}







html[data-glass] table.grid {
  background: var(--pane-grad);
  border: var(--pane-line);
  border-radius: var(--pane-radius-card);
  box-shadow: var(--pane-sheen), var(--pane-shade);
  -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(var(--pane-sat));
  backdrop-filter: blur(var(--pane-blur)) saturate(var(--pane-sat));
  




  --ink2: var(--ink2-mix);
  --ink3: var(--ink3-mix);
  --ink2-pane: var(--ink2-pane-mix);
}

html[data-glass] :is(.nav, .dock, .sheet, .profile-sheet, .more-sheet,
                     .master-modal, .modal-card, .clock-modal, .login-card) {
  border-radius: var(--pane-radius);
}





















html[data-glass] :is(.modal-card, .master-modal, .clock-modal, .sheet,
                     .profile-sheet, .more-sheet, .login-card, .alert-card,
                     .stale-card, .merge-card, .cc-sheet, .hint-q-body) {
  




  background: linear-gradient(180deg,
              rgba(var(--win-rgb), var(--win-top-a)) 0%,
              rgba(var(--win-rgb), var(--win-bot-a)) 100%);
  

  --surface: rgba(var(--win-rgb), var(--win-bot-a));
}



html[data-glass] .dock {
  background: var(--pane-grad);
  border: var(--pane-line);
  box-shadow: var(--pane-sheen), var(--pane-shade);
  -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(var(--pane-sat));
  backdrop-filter: blur(var(--pane-blur)) saturate(var(--pane-sat));
}








html[data-glass] :is(
  .msg.in, .composer-note, .thread-head, .own-word-solo, .dlg-win-closed,
  







  .ev-day-head, .total-line, .tp,
  





  .cov-tile, .ps-theme, .dv-fold, .sw-paid, .sw-pairmark,
  .sched-cell, .sched-corner, .sched-master, .nb-time, .wv-corner, .wv-master,
  





  .dv-axis, .dv-head, .dv-corner, .rt-name, .rt-corner, .rh,
  






  .st-bot, .ap-logo-box, .ap-names button, .ap-one button,
  







  .seg, .month-cell, .mc-tabs,
  




  .sched-day, .sched-day.is-today, .nb-head, .rt-head
) {
  background: var(--surface-in);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-glass] :is(.msg.in, .composer-note, .line-row, .src-tile, .cov-tile,
                     .invite-row, .tp) {
  border-radius: var(--pane-radius-card);
}


html[data-glass] :is(input, select, textarea, .search, .composer textarea) {
  background: var(--surface-press);
  border-radius: var(--pane-radius-field);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-glass] :is(.btn-ghost, .btn-ico, .sel-btn, .filter-chip, .act,
                     .seg a.on, .seg a.is-on, .seg button.is-on, .task-check) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}








html[data-glass] :is(.msg.out, .msg.out.by-admin) {
  background: rgba(var(--accent-soft-rgb), .62);
}
html[data-glass] .task-strip { background: rgba(var(--alert-bg-rgb), .62); }
html[data-glass] .thread-day { background: var(--surface-in); }









html[data-glass] .composer:not(.disabled) {
  background: linear-gradient(to bottom,
              rgba(var(--pane-step-rgb), 0) 0%,
              rgba(var(--pane-step-rgb), var(--pane-step-a)) 22%);
}







html[data-glass] :is(.avatar, .line-av, .pv-av) { background: var(--press); }





html[data-glass] .dot { background: var(--ink); }
html[data-glass] :is(.bk, .avatar, .line-av, .dot, .chip-n),
html[data-glass] .btn:not(.btn-ghost):not(.btn-ico),
html[data-glass] [class*="badge"] {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}





html[data-glass] .toast {
  background: rgba(var(--ink-rgb), .92);
  color: var(--raised);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-full);
  box-shadow: var(--pane-shade);
  -webkit-backdrop-filter: blur(var(--pane-blur));
  backdrop-filter: blur(var(--pane-blur));
}
html[data-glass] .toast.error { background: rgba(var(--alert-ink-rgb), .94); color: var(--raised); }




html[data-glass] .wrap {
  padding: var(--space-3);
  --wrap-pad: var(--space-3);
  




  padding-bottom: calc(var(--bar-h) + var(--space-12) + env(safe-area-inset-bottom));
}
@media (min-width: 1000px) {
  

  html[data-glass] .wrap { padding-bottom: var(--space-3); }
}
html[data-glass] :is(.card, .met, .rows, .ev-feed, .fold, .rooms) {
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
html[data-glass] .mets { gap: var(--space-4); }































html[data-glass] :is(.rows, .ev-feed) {
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  






  --ink2: var(--ink);
  --ink3: var(--ink);
  --ink2-pane: var(--ink);
}








html[data-glass] .rows > .line-row,
html[data-glass] .ev-feed > .ev-row {
  margin: 0 0 var(--space-2);
}
html[data-glass] .rows > .line-row:last-child,
html[data-glass] .ev-feed > .ev-row:last-child { margin-bottom: 0; }



html[data-glass] .ev-feed > .ev-day-head {
  position: static;
  background: none;
  border: 0;
  padding: var(--space-4) var(--space-1) var(--space-2);
}
html[data-glass] .ev-feed > .ev-day-head:first-child { padding-top: 0; }



















html[data-glass] :is(.dv-body, .wv, .sched-scroll) {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}






html[data-glass] .dayview .dv-head {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}


html[data-glass] .sched-bar {
  background: var(--surface-in);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}








html[data-glass][data-opaque="1"] {
  --surface: var(--raised);
  --surface-in: var(--sunken);
  --surface-press: var(--press);
  --pane-grad: var(--raised);
  --pane-line: 1px solid var(--line);
  --pane-sheen: 0 0 0 0 transparent;
  --pane-shade: 0 0 0 0 transparent;
}
html[data-glass][data-opaque="1"] * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-glass][data-opaque="1"] .glass-bg,
html[data-glass][data-opaque="1"] .glass-bg.is-pattern { background: var(--page); }
html[data-glass][data-opaque="1"] .glass-bg-photo { display: none; }
html[data-glass][data-opaque="1"] .glass-bg-veil { background: var(--page); }

@media (prefers-reduced-transparency: reduce) {
  html[data-glass] {
    --surface: var(--raised);
    --surface-in: var(--sunken);
    --surface-press: var(--press);
    --pane-grad: var(--raised);
    --pane-line: 1px solid var(--line);
    --pane-sheen: 0 0 0 0 transparent;
    --pane-shade: 0 0 0 0 transparent;
  }
  html[data-glass] * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html[data-glass] .glass-bg,
  html[data-glass] .glass-bg.is-pattern { background: var(--page); }
  .glass-bg-photo { display: none; }
  html[data-glass] .glass-bg-veil { background: var(--page); }
}
























.wrap-dialogs { margin-bottom: 0; }























@media (min-width: 1000px) {
  html .wrap-dialogs { height: calc(100dvh - var(--kbd, 0px) - var(--demo-bar-h, 0px)); }
}
@media (max-width: 999px) {
  






  















  html .wrap-dialogs.thread-open {
    display: flex; flex-direction: column;
    height: calc(100svh - var(--demo-bar-h, 0px));
    height: calc(100dvh - var(--kbd, 0px) - var(--demo-bar-h, 0px));
    margin-bottom: 0;
    box-sizing: border-box;
    


    padding-bottom: 0;
  }
  









  .wrap-dialogs.thread-open .dialogs {
    flex: 1; min-height: 0; min-width: 0; display: flex;
  }
  .wrap-dialogs.thread-open .dlg-thread { flex: 1; min-height: 0; min-width: 0; }
  .wrap-dialogs.thread-open .thread { min-height: 0; min-width: 0; }
  .wrap-dialogs.thread-open .build-mark { display: none; }

  




























  html:has(.wrap-dialogs.thread-open),
  html:has(.wrap-dialogs.thread-open) body {
    height: 100svh;
    height: 100dvh;              
    overflow: hidden;
    overscroll-behavior: none;
  }
  


  .wrap-dialogs.thread-open .thread-head { position: static; }
  .wrap-dialogs.thread-open .composer { position: static; }
  .wrap-dialogs.thread-open .thread { overscroll-behavior: contain; }

  






  












  









  




  html[data-glass] .wrap-dialogs.thread-open,
  html .wrap-dialogs.thread-open { padding-top: 0; }
  





  .wrap-dialogs.thread-open .dlg-thread { border-top: 0; }
  .wrap-dialogs.thread-open .thread-head {
    




    padding: 4px 0 3px;
    min-height: 36px;
    margin-bottom: var(--space-2);
  }
  .wrap-dialogs.thread-open .thread-head :is(.own-btn, .thread-card) {
    position: relative;
    min-height: 24px; height: 24px; padding: 0 10px;
  }
  

  .wrap-dialogs.thread-open .thread-head .thread-card {
    width: 28px; min-width: 28px; height: 28px; min-height: 28px;
    padding: 0; border-radius: 50%;
  }
  .wrap-dialogs.thread-open .thread-head .thread-card svg { width: 16px; height: 16px; }
  







  .wrap-dialogs.thread-open .thread-head .thread-who .nm { line-height: 20px; }
  .wrap-dialogs.thread-open .thread-head .own-word { line-height: 1; }
  .wrap-dialogs.thread-open .thread-head :is(.own-btn, .thread-card)::after {
    content: ""; position: absolute; left: 0; right: 0;
    top: 50%; transform: translateY(-50%);
    height: var(--tap);
  }
  .wrap-dialogs.thread-open .thread-head .thread-back {
    position: relative;
    min-height: 24px; height: 24px; min-width: 24px;
  }
  .wrap-dialogs.thread-open .thread-head .thread-back::after {
    content: ""; position: absolute; left: -10px; right: -10px;
    top: 50%; transform: translateY(-50%);
    height: var(--tap);
  }
  






  






  






  


  .wrap-dialogs.thread-open .thread-acts {
    


    padding: 0 var(--space-1);
    margin: 4px 0 10px;
    min-height: 32px;
  }
  







  .wrap-dialogs.thread-open .thread-acts:has(#close-no-reply) + .composer { padding-top: 0; }
  .wrap-dialogs.thread-open .composer {
    padding-top: var(--space-1);
    padding-bottom: calc(var(--bar-h) + var(--space-2) + env(safe-area-inset-bottom));
  }
  











  :root[data-keyboard="true"] .wrap-dialogs.thread-open .composer {
    padding-bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
  }
}





















.rows-band {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0; padding: var(--space-2) var(--space-3) 0;
  font-size: var(--text-micro); color: var(--ink2);
  text-transform: uppercase; letter-spacing: .04em;
}
.rows-band::before, .rows-band::after {
  content: ''; flex: 1 1 auto; height: 1px; background: var(--line);
}
.rows-band::before { flex: 0 0 var(--space-3); }


.rows > .rows-band:first-child { padding-top: 0; }

.look-row {
  display: flex; align-items: center; gap: var(--space-2) var(--space-3);
  







  flex-wrap: wrap;
  min-height: var(--tap); margin-bottom: var(--space-2);
}
.look-row > span { flex: 1; min-width: 0; }
.look-row:last-child { margin-bottom: 0; }
.look-row .seg { flex: 1 1 100%; }


.ps-look { display: block; }
.ps-look .look-row:last-child { margin-bottom: 0; }








.ps-look .seg { width: 100%; }
.ps-look .seg button {
  flex: 1 1 0; min-width: 0; justify-content: center;
  padding: 0 calc(var(--space-1) * var(--ps-k, 1));
  font-size: calc(var(--text-control) * var(--ps-k, 1));
}









@media (max-width: 360px) {
  .ps-look .seg button {
    font-size: min(calc(var(--text-control) * var(--ps-k, 1)), 2.8vw);
  }
}



























:root {
  --grow-num: 520ms;    
  --grow-draw: 520ms;   
  --grow-line: 650ms;   
  --grow-card: 320ms;   
  --grow-step: 25ms;    
  --grow-ease: cubic-bezier(.2, .7, .3, 1);
  --fold-open: 260ms;   
  --fold-close: 220ms;  
}







.stat-num, .met b, .src-tile-num, .chart-num, .day-sum, .fn-pct,
[data-grow-table] td.fn-n, [data-grow-table] td.num,
[data-grow-table] td.c-side, [data-grow-table] td.c-share {
  font-variant-numeric: tabular-nums;
}























.fn-seg {
  transform: scaleX(var(--draw, 1)); transform-origin: left center;
  transition: transform var(--grow-draw) var(--grow-ease);
}
.sub-progress i {
  transform: scaleX(var(--draw, 1)); transform-origin: left center;
  transition: transform var(--grow-draw) var(--grow-ease);
}







.day-chart { height: 180px; align-items: stretch; }
.day-col { height: 100%; }
.day-col i {
  height: var(--fill, 0%);
  transform: scaleY(var(--draw, 1)); transform-origin: bottom center;
  transition: transform var(--grow-draw) var(--grow-ease);
}







@media (prefers-reduced-motion: reduce) {
  .fn-seg, .day-col i, .sub-progress i { transition: none; }
}
html[data-opaque="1"] :is(.fn-seg, .day-col i, .sub-progress i) { transition: none; }



















:root {
  --open-out: 100ms;          
  --open-out-blur: 6px;
  --open-title: 380ms;        
  --open-title-ease: cubic-bezier(.22, .7, .2, 1);
  --open-sub-delay: 80ms;     
  --open-show: 320ms;         
  --open-tile-start: 90ms;    
  --open-step: 25ms;          
  --open-shift: 8px;          
  --open-num-delay: 100ms;    
  --open-first-window: 300ms; 
  --open-safety: 1500ms;      
}



























.chart { margin-top: var(--space-3); }
.chart-hint {
  


  color: var(--ink2-pane, var(--ink2)); font-size: var(--text-meta);
  margin: 2px 0 var(--space-3);
}
.chart-empty {
  color: var(--ink2-pane, var(--ink2)); font-size: var(--text-meta);
  padding: var(--space-4) 0; text-align: center;
}


.donut { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut-svg { flex: none; }
.donut-sum, .donut-note { font-variant-numeric: tabular-nums; }
.leg {
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 200px; display: grid; gap: var(--space-2);
}
.leg li {
  display: grid; grid-template-columns: 10px 1fr auto;
  gap: var(--space-2); align-items: baseline; font-size: var(--text-meta);
}
.leg i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.leg b { font-weight: 500; font-variant-numeric: tabular-nums; }
.leg small {
  grid-column: 2 / 4; color: var(--ink2-pane, var(--ink2));
  font-size: var(--text-micro); margin-top: -6px;
}










.chart-cols { display: flex; align-items: flex-end; gap: 6px; }
.chart-cols .c {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; position: relative; min-width: 0;
}
.chart-cols b {
  display: block; height: var(--fill, 0%);
  transform: scaleY(var(--draw, 1)); transform-origin: bottom center;
  background: var(--chart1);
}
.chart-cols .b2 { background: var(--chart3); border-radius: 5px 5px 0 0; }
.chart-cols .b1 { border-radius: 0 0 2px 2px; }
.chart-cols .solo { border-radius: 5px 5px 2px 2px; }
.chart-cols .val {
  position: absolute; left: 0; right: 0; bottom: calc(var(--top, 0%) + 3px);
  text-align: center; font-size: var(--text-micro);
  color: var(--ink2-pane, var(--ink2));
  font-variant-numeric: tabular-nums;
}
.chart-x {
  display: flex; gap: 6px; font-size: var(--text-micro);
  color: var(--ink2-pane, var(--ink2)); margin-top: 6px;
}
.chart-x span {
  flex: 1; text-align: center; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.hb { display: grid; gap: var(--space-2); }
.hb .hb-row {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: var(--space-2); align-items: center; font-size: var(--text-meta);
}
.hb .hb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .hb-track {
  height: 14px; border-radius: 4px; background: var(--chart-track);
  position: relative; overflow: hidden;
}
.hb .hb-track b {
  position: absolute; inset: 0; border-radius: 4px;
  width: var(--fill, 0%);
  transform: scaleX(var(--draw, 1)); transform-origin: left center;
  background: var(--chart1);
}
.hb .hb-val {
  text-align: right; color: var(--ink2-pane, var(--ink2));
  font-size: var(--text-meta);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 899px) {
  .hb .hb-row { grid-template-columns: 96px 1fr auto; }
}


.pbar {
  height: 12px; border-radius: 6px; background: var(--chart-track);
  overflow: hidden; position: relative; margin: var(--space-2) 0;
}
.pbar b {
  position: absolute; inset: 0; width: var(--fill, 0%);
  transform: scaleX(var(--draw, 1)); transform-origin: left center;
  background: var(--chart1);
}
.pbar b.second { background: var(--chart4); }
.chart-legend {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  font-size: var(--text-micro); color: var(--ink2-pane, var(--ink2));
  margin-bottom: var(--space-2);
}
.chart-legend i {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 2px; margin-right: 5px;
}



.g2-cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .g2-cards { grid-template-columns: 1fr 1fr; }
}
.chart-title { margin: 0; font-size: var(--text-section); }

.client-reach { margin-bottom: var(--space-3); }
.chart-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.client-reach .reach-line { display: flex; align-items: baseline; gap: 6px; }
.client-reach .reach-of {
  font-size: var(--text-control); color: var(--ink2-pane, var(--ink2));
  font-weight: 400;
}


.day-col i { background: var(--chart1); border-radius: 5px 5px 2px 2px; }
.day-sum, .day-name {
  font-size: var(--text-micro); color: var(--ink2-pane, var(--ink2));
}




@media (prefers-reduced-motion: reduce) {
  .chart-cols b, .hb .hb-track b, .pbar b { transform: none; }
}




















@media (max-width: 600px) {
  

  .fn-wrap { overflow-x: visible; }

  :is(.fn, .ad) { display: block; }
  

  :is(.fn, .ad) > thead { display: none; }
  








  :is(.fn, .ad) > tbody, :is(.fn, .ad) > tfoot {
    display: flex; flex-direction: column;
  }
  



  :is(.fn, .ad) td,
  :is(.fn, .ad) tbody tr > td,
  :is(.fn, .ad) tfoot td {
    display: block; padding: 0; border: 0; text-align: left;
  }
  :is(.fn, .ad) td[data-l]::before {
    content: attr(data-l); display: block;
    font-size: 11px; line-height: 1.25; letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink2); font-weight: 500; margin-bottom: 1px;
    








    white-space: nowrap; overflow-wrap: normal; hyphens: none;
  }
  



  @media (max-width: 400px) {
    :is(.fn, .ad) td[data-l-short]::before { content: attr(data-l-short); }
  }
  :is(.fn, .ad) td[data-k="name"] {
    grid-column: 1 / -1; font-weight: 500; padding-left: 0 !important;
  }
  




  :is(.fn, .ad) .fn-pct {
    display: block; font-size: var(--text-micro); color: var(--ink2);
    line-height: 1.2;
  }

  
  





  .fn:not(.ad-board) > tbody > tr:not(.fn-barrow):not(.fn-adsrow),
  .fn:not(.ad-board) > tfoot > tr {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-3); padding: var(--space-3);
    border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--raised);
  }
  html[data-glass] .fn:not(.ad-board) > tbody > tr:not(.fn-barrow):not(.fn-adsrow),
  html[data-glass] .fn:not(.ad-board) > tfoot > tr {
    background: color-mix(in srgb, var(--raised) 34%, transparent);
    border-color: color-mix(in srgb, var(--raised) 55%, transparent);
  }
  

  


  .fn:not(.ad-board) > tbody > tr:is(.fn-barrow, .fn-adsrow) {
    display: block; margin-top: 0; padding: 0 var(--space-3) var(--space-3);
    border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--raised);
  }
  
  .fn:not(.ad-board) > tbody > tr.fn-barrow .fn-bar { margin-top: 2px; }
  html[data-glass] .fn:not(.ad-board) > tbody > tr:is(.fn-barrow, .fn-adsrow) {
    background: color-mix(in srgb, var(--raised) 34%, transparent);
    border-color: color-mix(in srgb, var(--raised) 55%, transparent);
  }
  

  .fn:not(.ad-board) > tbody > tr:not(.fn-barrow):not(.fn-adsrow):has(+ tr.fn-barrow),
  .fn:not(.ad-board) > tbody > tr.fn-barrow:has(+ tr.fn-adsrow) {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    border-bottom: 0;
  }
  .fn:not(.ad-board) > tbody > tr:is(.fn-barrow, .fn-adsrow) > td { padding: 0; }
  .fn-barrow > td { padding-bottom: 0; }
  

  .fn:not(.ad-board) > :is(tbody, tfoot) > tr > td:is([data-k="came"],
    [data-k="booked"], [data-k="reached"]) { grid-column: span 2; }
  .fn:not(.ad-board) > :is(tbody, tfoot) > tr > td:is([data-k="spend"],
    [data-k="cost"]) { grid-column: span 3; }

  
  .ad-board > tbody > tr, .ad-board > tfoot > tr,
  .ad > tbody > tr {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-2) var(--space-2);
    margin-top: var(--space-2); padding: var(--space-3);
    border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--raised);
  }
  html[data-glass] :is(.ad-board, .ad) > :is(tbody, tfoot) > tr {
    background: color-mix(in srgb, var(--raised) 34%, transparent);
    border-color: color-mix(in srgb, var(--raised) 55%, transparent);
  }
  


  :is(.ad-board, .ad) td[data-k="name"]        { order: 1; }
  :is(.ad-board, .ad) td[data-k="spend"]       { order: 2; grid-column: span 4; }
  :is(.ad-board, .ad) td[data-k="bookings"]    { order: 3; grid-column: span 4; }
  :is(.ad-board, .ad) td[data-k="cost"]        { order: 4; grid-column: span 4; }
  :is(.ad-board, .ad) td[data-k="impressions"] { order: 5; grid-column: span 3; }
  :is(.ad-board, .ad) td[data-k="clicks"]      { order: 6; grid-column: span 3; }
  :is(.ad-board, .ad) td[data-k="leads"]       { order: 7; grid-column: span 3; }
  :is(.ad-board, .ad) td[data-k="visits"]      { order: 8; grid-column: span 3; }
  :is(.ad-board, .ad) td:is([data-k="impressions"], [data-k="clicks"],
                             [data-k="leads"], [data-k="visits"]) {
    font-size: var(--text-meta); color: var(--ink2);
  }
  


  :is(.ad-board, .ad) > tbody > tr:has(.ad-l2) { margin-left: var(--space-3); }
  :is(.ad-board, .ad) > tbody > tr:has(.ad-l3) { margin-left: calc(var(--space-3) * 2); }
  :is(.ad-board, .ad) > tbody > tr:has(.ad-l4) { margin-left: calc(var(--space-3) * 3); }
  




  :is(.ad-board, .ad) > tbody > tr:has(.ad-l4) td:is([data-k="impressions"],
    [data-k="clicks"], [data-k="leads"], [data-k="visits"]) { grid-column: span 6; }

  






  @media (max-width: 400px) {
    :is(.ad-board, .ad) td:is([data-k="impressions"], [data-k="clicks"],
      [data-k="leads"], [data-k="visits"]) { grid-column: span 6; }
  }
  :is(.ad-board, .ad) td.fn-c-name { padding-left: 0 !important; }
  




  .ctl.ctl-switches > .seg-fit { flex: 1 1 auto; display: flex; }
  .seg-fit a { flex: 1 0 auto; justify-content: center; padding: 0 var(--space-2); }
  .seg-fit .seg-full { display: none; }
  .seg-fit .seg-short { display: inline; }
}





















html[data-glass] :is(.modal-scrim, .sheet-scrim) { background: none; }
html[data-glass] :is(.sheet, .profile-sheet, .more-sheet, .cc-sheet,
                     .modal-card, .master-modal, .clock-modal, .panel) {
  box-shadow: var(--shadow-panel), 0 0 0 100vmax var(--overlay);
}



@media (max-width: 999px) {
  


  


  .ps-who { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .ps-who b { display: inline; font-size: var(--text-control); }
  .ps-who i { font-style: normal; font-size: var(--text-meta); color: var(--ink2); }
  .ps-who i::before { content: '· '; }

  


  .ps-head [data-profile-close] {
    



    flex: none; width: 36px; min-width: 36px; height: 36px;
    min-height: 36px; padding: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: var(--radius-full);
    background: var(--sunken); color: var(--ink); cursor: pointer;
  }
  .ps-head [data-profile-close] svg { width: 18px; height: 18px; }

  



  .ps-day { gap: var(--space-2); justify-content: space-between; }
  .ps-day > span { display: inline-flex; align-items: center; gap: 4px; }
  .ps-day .ps-w { display: none; }
  .ps-day svg { width: 16px; height: 16px; flex: none; stroke-width: 1.7;
                color: var(--ink2); }

  


  .ps-item {
    background: var(--sunken);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--raised) 70%, transparent);
  }
  html[data-glass] .ps-item {
    background: color-mix(in srgb, var(--raised) 34%, transparent);
    border-color: color-mix(in srgb, var(--raised) 55%, transparent);
  }
  .ps-item.active {
    background: var(--pill); color: var(--pill-ink); border-color: transparent;
  }
  html[data-glass] .ps-item.active { background: var(--pill); }
  .ps-item.active svg { color: var(--pill-ink); }
}





@media (max-width: 380px) {
  .profile-sheet { left: 8px; right: 8px; padding: var(--space-3); gap: var(--space-2); }
  .ps-head { padding-bottom: var(--space-2); }
  .ps-ava { width: 32px; height: 32px; }
  .ps-head [data-profile-close] {
    width: 32px; min-width: 32px; height: 32px; min-height: 32px;
  }
  .ps-day { min-height: 38px; padding: var(--space-1) var(--space-2); }
  .ps-grid { gap: 6px; }
  .ps-item { padding: var(--space-2); font-size: var(--text-meta); }
}

































html[data-glass] .dayview {
  background: color-mix(in srgb, var(--raised) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--raised) 70%, transparent);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--raised) 75%, transparent),
              0 12px 28px rgba(var(--glass-shadow-rgb), var(--glass-shadow-a));
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
  




  --ink2: var(--ink2-mix);
  --ink3: var(--ink3-mix);
  --ink2-pane: var(--ink2-pane-mix);
}


html[data-glass] .dayview .dv-head {
  background: none; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), .08);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-glass] .dayview .dv-body {
  background: none; border: 0; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}



html[data-glass] .dv-corner { visibility: hidden; background: none; border: 0; }
html[data-glass] .dv-axis { background: none; }
html[data-glass] .dv-col { background: none; border-left: 1px solid rgba(var(--ink-rgb), .06); }
html[data-glass] .dv-line { border-top-color: rgba(var(--ink-rgb), .07); }
html[data-glass] .dv-line.is-half { border-top-style: dotted; opacity: .5; }


.dv-rest { display: none; }
html[data-glass] .dv-rest {
  display: block; position: absolute; left: 0; right: 0;
  top: calc(var(--top) * var(--minpx) * 1px);
  height: calc(var(--len) * var(--minpx) * 1px);
  background: rgba(var(--ink-rgb), .07);
  pointer-events: none;
}
html[data-glass] .dv-work { background: transparent; }


html[data-glass] .dv-now {
  display: block; position: absolute; left: 0; right: 0; z-index: 3;
  top: calc(var(--top) * var(--minpx) * 1px);
  border-top: 2px solid var(--alert-ink);
  pointer-events: none;
}





html[data-glass] .dv-now.is-axis::before {
  content: ''; position: absolute; left: -5px; top: -6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--alert-ink);
}


html[data-glass] :is(.dv-col, .weekview) .bk {
  

  --bk-base: color-mix(in srgb, var(--raised) 80%, transparent);
  --bk-c: var(--expected-ink);
  border: 0;
  border-radius: 12px;
  padding: 8px 10px 6px 14px;
  background: color-mix(in srgb, var(--bk-c) 16%, var(--bk-base));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--raised) 80%, transparent);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
html[data-glass] :is(.dv-col, .weekview) .bk.confirmed,
html[data-glass] :is(.dv-col, .weekview) .bk.came      { --bk-c: var(--ok-ink); }
html[data-glass] :is(.dv-col, .weekview) .bk.pending,
html[data-glass] :is(.dv-col, .weekview) .bk.prepay    { --bk-c: var(--wait-ink); }


html[data-glass] :is(.dv-col, .weekview) .bk.no_show,
html[data-glass] :is(.dv-col, .weekview) .bk.cancelled { --bk-c: var(--alert-ink); }




html[data-glass] :is(.dv-col, .weekview) .bk .bk-time {
  color: color-mix(in srgb, var(--bk-c) 70%, var(--ink));
}

@media (hover: hover) {
  html[data-glass] :is(.dv-col, .weekview) .bk:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(var(--glass-shadow-rgb),
                                calc(var(--glass-shadow-a) * 1.6));
  }
}
html[data-glass] :is(.dv-col, .weekview) .bk:active { transform: none; }








html[data-glass] .weekview .bk { padding: 3px 8px 3px 12px; }

















html[data-glass] :is(.bk-new, .bk-sub, .bk-paid) {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; flex: none;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--raised) 85%, transparent);
  color: var(--ink);
  border: 0; padding: 0;
  font-size: 0;                 
  letter-spacing: normal;
}
html[data-glass] :is(.bk-new, .bk-sub, .bk-paid)::before {
  content: attr(data-ico);
  font-size: 10px; font-weight: 700; line-height: 1;
}





















.bk-line { display: none; }





















html[data-glass] .dv-col .bk { container-type: size; }










html[data-glass] .dv-col .bk { padding: 3px 8px 3px 12px; }





html[data-glass] :is(.dv-col, .weekview) .bk.is-paid::before { content: none; }






html[data-glass] :is(.dv-col, .weekview) .bk.is-astray {
  box-shadow: inset 4px 0 0 var(--wait-ink),
              inset 0 1px 0 color-mix(in srgb, var(--raised) 80%, transparent);
  background-image: repeating-linear-gradient(135deg,
    transparent 0 5px, rgba(var(--ink-rgb), .07) 5px 7px);
}







@container (min-height: 34px) {
  html[data-glass] .dv-col .bk .bk-line { display: block; }
}



















.bk-who-fit { display: none; }
html[data-glass] .dv-col .bk .bk-who { display: none; }



html[data-glass] .dv-col .bk .bk-who-fit {
  display: block; flex: 0 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap;
}




html[data-glass] .dv-col .bk .bk-who-fit.is-fade {
  



  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0) 80%, transparent);
  mask-image: linear-gradient(90deg, rgb(0 0 0) 80%, transparent);
}


html[data-glass] .dv-col .bk.is-noico .bk-ico { display: none; }












html[data-glass] .dv-col .bk.is-fit .bk-line {
  display: block; white-space: normal;
  overflow: hidden;
  


  line-height: 1.3;
  max-height: var(--bk-line-max, none);
}


html[data-glass] .dv-col .bk.is-fit.is-noline .bk-line { display: none; }

html[data-glass] :is(.dv-col, .weekview) .bk .bk-line {
  




  font-size: var(--text-micro);
  color: color-mix(in srgb, var(--ink2) 35%, var(--ink));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
html[data-glass] :is(.dv-col, .weekview) .bk .bk-mark { display: none; }




html[data-glass] :is(.dv-col, .weekview) .bk .bk-svc { display: none; }
@container (min-height: 38px) {
  html[data-glass] .dv-col .bk .bk-svc { display: block; }
}
html[data-glass] :is(.dv-col, .weekview) .bk .bk-svc {
  font-size: var(--text-micro);
  color: color-mix(in srgb, var(--ink2) 35%, var(--ink));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}










html[data-glass] .dv-col .bk :is(.bk-who, .bk-line, .bk-svc) {
  text-overflow: clip;
}















html[data-glass] .dayview { --minpx: 0.93333; }









@media (max-width: 899px) {
  html[data-glass] .dayview { --minpx: 0.855; }
}





















@media (min-width: 900px) {
  html[data-glass] :is(.dv-head, .dv-body) {
    grid-template-columns: var(--axis) repeat(var(--cols, 3), minmax(var(--colmin), 1fr));
    





    width: 100%;
    min-width: calc(var(--axis) + var(--cols, 3) * var(--colmin));
    justify-content: start;
  }
}
.dv-hours { display: none; }
html[data-glass] .dv-master .dv-hours {
  display: block; font-size: var(--text-micro); font-weight: 400;
  color: var(--ink2); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}


html[data-glass] .bk-legend .sw {
  width: 10px; height: 10px; border-radius: var(--radius-full); border: 0;
}
html[data-glass] .sw-expected  { background: var(--expected-ink); }
html[data-glass] .sw-confirmed,
html[data-glass] .sw-came      { background: var(--ok-ink); }
html[data-glass] .sw-pending,
html[data-glass] .sw-prepay    { background: var(--wait-ink); }
html[data-glass] .sw-no_show,
html[data-glass] .sw-cancelled { background: var(--alert-ink); }
html[data-glass] .sw-cancelled { opacity: .55; }
html[data-glass] .sw-off {
  width: 16px; height: 12px; border-radius: 2px;
  background: var(--surface-in) repeating-linear-gradient(135deg,
    transparent 0 3px, rgba(var(--ink-rgb), .14) 3px 4px);
  box-shadow: inset 3px 0 0 var(--wait-ink);
}


.bk-status-k, .bk-status { display: none; }
html[data-glass] .sheet-fields .bk-status-k { display: block; }
html[data-glass] .sheet-fields .bk-status {
  display: inline-flex; align-items: center; gap: 6px;
}
html[data-glass] .bk-status .sw {
  width: 10px; height: 10px; border-radius: var(--radius-full); border: 0;
  flex: none;
}


















































html[data-glass] :is(.line-row, .ev-row, .invite-row, .pm-row,
                     .devices-line) {
  background: var(--pane-grad);
  border: var(--pane-line);
  border-radius: var(--pane-radius-card);
  box-shadow: var(--pane-sheen), var(--pane-shade);
  

  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  

  --ink2: var(--ink2-mix);
  --ink3: var(--ink3-mix);
  --ink2-pane: var(--ink2-pane-mix);
}







html[data-glass] .rows > .line-row:first-child,
html[data-glass] .rows > .line-row:last-child {
  border: var(--pane-line);
  border-radius: var(--pane-radius-card);
}

@media (hover: hover) {
  html[data-glass] :is(.line-row, .ev-row, .invite-row, .pm-row):hover {
    background: var(--pane-grad-press);
  }
}





html[data-glass] .line-row.is-sel {
  background: linear-gradient(180deg,
              rgba(var(--accent-soft-rgb), .78) 0%,
              rgba(var(--accent-soft-rgb), .62) 100%);
}
html[data-glass] :is(.line-row, .ev-row, .invite-row, .pm-row):active {
  background: var(--pane-grad-press);
}




html[data-glass] .line-row.bar-problem {
  box-shadow: inset 3px 0 0 var(--alert-ink),
              var(--pane-sheen), var(--pane-shade);
}
html[data-glass] .line-row.bar-wait {
  box-shadow: inset 3px 0 0 var(--wait-ink),
              var(--pane-sheen), var(--pane-shade);
}


html[data-glass] .ev-row.is-todo {
  border-left: 3px solid var(--accent);
}


html[data-glass] .devices-line.is-over {
  background: linear-gradient(180deg,
              rgba(var(--accent-rgb), .18) 0%,
              rgba(var(--accent-rgb), .12) 100%);
  border-color: var(--ink2);
}






html[data-glass] .payline.is-total {
  background: none;
}











html[data-glass] .fold > summary { background: none; }
html[data-glass] .fold > summary:hover { background: var(--pane-grad-press); }








html[data-glass] .search input {
  background: none;
  border-radius: 0;
}














































html[data-glass] {
  --ink2-mix: color-mix(in srgb, var(--ink2) 35%, var(--ink));
  --ink3-mix: color-mix(in srgb, var(--ink3) 35%, var(--ink));
  --ink2-pane-mix: color-mix(in srgb, var(--ink2-pane) 35%, var(--ink));
}





html[data-glass] body {
  --ink2: var(--ink);
  --ink3: var(--ink);
  --ink2-pane: var(--ink);
}






































:root { --accent-text: var(--accent); }
html[data-glass] body {
  --ok-ink: var(--ok-ink-glass);
  --ok-ink-rgb: var(--ok-ink-glass-rgb);
  --wait-ink: var(--wait-ink-glass);
  --alert-ink: var(--alert-ink-glass);
  --alert-ink-rgb: var(--alert-ink-glass-rgb);
  --done-ink: var(--done-ink-glass);
  --expected-ink: var(--expected-ink-glass);
  --accent-text: var(--accent-text-glass);
}

























.task-acts { display: contents; }

@media (max-width: 899px) {
  
  .line-row.task {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: var(--space-3);
    row-gap: var(--space-2);
    align-items: start;
  }
  

  .line-row.task > .task-check,
  .line-row.task > .task-touch-mark { grid-area: 1 / 1; margin-top: 2px; }
  



  .line-row.task > .task-main { grid-area: 1 / 2 / 3 / 3; }
  
  .line-row.task > .line-val { grid-area: 1 / 3; }
  

  .line-row.task > .task-menu {
    grid-area: 2 / 3; justify-self: end; align-self: start;
  }
  


  .line-row.task > .task-acts {
    grid-area: 3 / 1 / 4 / 4;
    display: flex; flex-wrap: wrap; gap: var(--space-2);
  }
  .task-acts > .btn { flex: 1 1 auto; min-width: 0; min-height: 40px; }

  




  .line-row.task .task-title {
    white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  




  .line-row.task[data-touch-id] .task-body { display: none; }

  



  .task-menu > summary.btn-ico {
    position: relative;
    width: 32px; min-width: 32px; height: 32px; min-height: 32px;
    border-radius: var(--radius-full);
  }
  .task-menu > summary.btn-ico::after {
    content: ""; position: absolute;
    top: 50%; left: 50%; width: 44px; height: 44px;
    transform: translate(-50%, -50%);
  }

  
  




  .fold.acc > summary {
    grid-template-columns: minmax(0, 1fr) max-content 20px;
    align-items: center;
    padding: var(--space-2) 0;
  }
  


  .fold.acc > summary > :first-child {
    grid-column: 1;
    white-space: normal; overflow: visible; text-overflow: clip;
    line-height: var(--line-body);
  }
  

  .fold.acc > summary > .fold-n {
    grid-column: 2;
    min-width: 0; padding: 1px var(--space-2);
    border-radius: var(--radius-full);
    background: var(--surface-in);
  }
  .fold.acc > summary::after { grid-column: 3; }
  





  .fold-overdue.acc > summary { box-shadow: none; }
  .fold-overdue.acc > summary > .fold-n {
    background: var(--alert-bg); color: var(--alert-ink);
  }

  
  





  .fold.acc,
  html[data-glass] .fold.acc {
    background: none; border: 0; border-radius: 0;
    overflow: visible; box-shadow: none;
    


    padding: 0;
    margin-bottom: var(--space-5);
  }
  .fold.acc > summary,
  html[data-glass] .fold.acc > summary {
    background: none; border-radius: 0;
  }
  .fold.acc[open] > summary { border-bottom: 0; }
  .fold.acc > summary:hover { background: none; }
  .acc-body { padding: var(--space-2) 0 0; }
  


  html[data-glass] .fold.acc {
    --ink2: var(--ink);
    --ink3: var(--ink);
    --ink2-pane: var(--ink);
  }
}
















html[data-glass] .sheet .cc-sheet {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 899px) {
  





  .sheet-grid.cc-actions .btn {
    flex-direction: column;
    gap: 2px;
    height: auto; min-height: 56px;
    padding: var(--space-2) 4px;
    line-height: 1.15;
    font-size: var(--text-micro);
    white-space: normal;
  }
  .cc-actions .btn span { overflow: visible; text-overflow: clip; }

  




  .sheet-body {
    padding-bottom: calc(var(--space-4)
                         + var(--safe-b, env(safe-area-inset-bottom)));
  }
  



  .sheet-fade { bottom: var(--safe-b, env(safe-area-inset-bottom)); }

  







  .sheet-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .sheet-fields .sheet-k {
    white-space: nowrap;
    margin-top: var(--space-3);
  }
  .sheet-fields > .sheet-k:first-child { margin-top: 0; }
  .sheet-fields .sheet-v { margin-top: 1px; }
}
























@media (max-width: 899px) {
  
  .ctl.task-panel { overflow: visible; }
  .ctl.task-panel > form { flex: 1 1 0; min-width: 0; }
  
  .ctl.task-panel > form[data-live-debounce] { flex: 0 0 auto; }
  .task-panel .sort-wrap, .task-panel .sel { width: 100%; }
  



  .task-panel .sel { overflow: hidden; }
  .task-panel .sel-control, .task-panel .sort-select { min-width: 0; width: 100%; }
  .task-panel .sel[data-sel-icon] { width: var(--control-h); min-width: var(--control-h); }
  .task-panel .sel[data-sel-icon] .sel-btn { padding: 0; justify-content: center; }
  .task-panel .sel[data-sel-icon] .sel-val,
  .task-panel .sel[data-sel-icon] .sel-arrow { display: none; }
  
  .task-panel .sel[data-sel-icon="sort"] .sel-btn::before {
    content: ""; width: 18px; height: 18px; background-color: var(--ink2);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M4 17l3 3 3-3M17 20V4M14 7l3-3 3 3'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M4 17l3 3 3-3M17 20V4M14 7l3-3 3 3'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  }

  
  .tasks-live { display: flex; flex-direction: column; }
  

  .tasks-live > * { min-width: 0; }
  .tasks-live > .fold.acc[data-group="overdue"]  { order: 1; }
  .tasks-live > .fold.acc[data-group="today"]    { order: 2; }
  .tasks-live > .fold.acc[data-group="tomorrow"] { order: 3; }
  .tasks-live > .fold.acc[data-group="later"]    { order: 4; }
  .tasks-live > .fold.acc[data-group="calls"]    { order: 5; }
  .tasks-live > .fold.acc[data-group="done"]     { order: 6; }

  

  html .fold.acc[data-group] {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: var(--space-3); padding: 0;
  }
  

  html .fold.acc[data-group="overdue"] { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-bottom: 0; }
  html .fold.acc[data-group="today"],
  html .fold.acc[data-group="tomorrow"] { border-radius: 0; border-top: 0; margin-bottom: 0; }
  html .fold.acc[data-group="later"] { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-top: 0; }
  html .fold.acc[data-group] > summary {
    padding: var(--space-3) var(--space-4); min-height: 56px;
    background: var(--surface); column-gap: var(--space-3);
  }
  html .fold.acc[data-group][open] > summary { border-bottom: 1px solid var(--line); }
  html .fold.acc[data-group] > .acc-body { padding: var(--space-2) var(--space-3) var(--space-3); }

  

  html .fold.acc[data-group="calls"] { box-shadow: inset 3px 0 0 var(--accent); }
  html .fold.acc[data-group="calls"] .fold-dash { display: none; }
  html .fold.acc[data-group="calls"] .fold-t-main { display: block; }
  html .fold.acc[data-group="calls"] .fold-sub {
    display: block; font-size: var(--text-meta); color: var(--ink2);
    font-weight: 400; line-height: var(--line-meta);
  }
  html .fold.acc[data-group="calls"] > summary > .fold-n:not(.is-zero) {
    background: var(--accent-btn); color: var(--on-accent); font-weight: 600;
  }

  
  html .fold.acc[data-group="done"] { background: var(--sunken); }
  html .fold.acc[data-group="done"] > summary { background: var(--sunken); color: var(--ink2); }
  html .fold.acc[data-group="done"] > summary > .fold-n { background: none; }

  
  html .fold.acc[data-group] > summary > .fold-n.is-zero { background: none; color: var(--ink3); }
  html .fold.acc[data-group]:has(> summary > .fold-n.is-zero) > summary > .fold-t { color: var(--ink3); }
  html .fold-overdue.acc > summary > .fold-n.is-zero { background: none; color: var(--ink3); }
}




.touch-chain-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); flex-wrap: wrap;
}
.touch-chain-now {
  margin: 0 0 var(--space-2); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--raised);
}
.touch-chain-now .muted { margin-top: 4px; }
.touch-chain-visit { margin: 0 0 var(--space-3); }
.task-failed { color: var(--alert-ink, var(--ink2)); }










.stock-table .u { display: none; }
.stock-table thead th, .stock-table .c-took, .stock-table .c-sum { white-space: nowrap; }
.stock-add-material { margin-top: var(--space-3); }
.stock-table .is-negative { color: var(--alert-ink); }
.stock-table .c-sum.is-out { color: var(--ink2); }
.stock-table .c-who .badge { margin-left: 6px; vertical-align: middle; }
.stock-table .c-what a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); }
.stock-count-cell { white-space: nowrap; }
.stock-count-field { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.stock-count-field input { width: 96px; min-height: 38px; text-align: right; padding: 4px 6px; }
.stock-count-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  flex-wrap: wrap; padding: var(--space-3);
}
.stock-count-foot .panel-hint { margin: 0; }
@media (max-width: 899px) {
  .stock-table .u { display: inline; }
  .pay-log.cards .c-acts { order: 7; margin-left: auto; }
  .stock-count-cell { order: 3; flex-basis: 100%; text-align: right; }
}


.bk-materials .bk-mat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-meta);
}
.bk-materials .bk-mat-title { font-weight: 500; }
.bk-materials .bk-mat-src, .bk-materials .bk-mat-hint { color: var(--ink2); font-size: var(--text-meta); }
.bk-materials .bk-mat-rows {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-2); align-items: center; font-size: var(--text-meta);
}
.bk-materials .bk-mat-name { min-width: 0; overflow-wrap: anywhere; }
.bk-materials .bk-mat-qty { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bk-materials .bk-mat-qty input { width: 72px; min-height: 36px; text-align: right; padding: 4px 6px; }
.bk-materials .bk-mat-foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  margin-top: var(--space-2); flex-wrap: wrap;
}
.bk-materials .bk-mat-foot select { min-height: 36px; max-width: 60%; }
.svc-materials { margin-top: var(--space-3); }







































html[data-demo-bar] { --demo-bar-h: 56px; }
html[data-demo-bar][data-film="1"] { --demo-bar-h: 0px; }
.demo-bar-host {
  position: sticky; top: 0; z-index: var(--z-demo);
  container-type: inline-size; container-name: demo;
  padding-inline: var(--space-4);
  max-width: var(--content-max);
  margin: 0 auto;
}



@media (min-width: 1000px) {
  .demo-bar-host { padding-inline: var(--space-6); margin-inline: 0 auto; }
}
.shell-bare .demo-bar-host { margin-inline: auto; }
html[data-glass] .demo-bar-host { padding-inline: var(--space-3); }
.demo-bar {
  --demo-bar-bg: color-mix(in srgb, var(--accent-soft) 45%, var(--page));
  --demo-bar-muted: rgba(var(--ink-rgb), .66);
  --demo-bar-move: 180ms ease-out;
  position: relative;
  background: var(--demo-bar-bg); color: var(--ink);
  border-radius: 0 0 18px 18px;
  font-size: var(--text-meta); line-height: var(--line-meta);
}
.demo-bar-row {
  display: flex; align-items: center; gap: var(--space-3);
  height: 56px; padding: 0 var(--space-4);
  white-space: nowrap;
}
.demo-bar-ico { width: 16px; height: 16px; flex: none; display: inline-block; }
.demo-bar-brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  flex: none; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: default;
}
.demo-bar-brand strong {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em;
}

.demo-bar-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18);
}
.demo-bar-links {
  display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: nowrap; min-width: 0; overflow: hidden;
}
.demo-bar-label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--demo-bar-muted); white-space: nowrap; margin-right: 2px;
}
.demo-bar-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 2px; border-radius: 6px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color var(--demo-bar-move);
}
.demo-bar-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px;
  background: var(--accent-btn, var(--accent));
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--demo-bar-move);
}
.demo-bar-link:hover, .demo-bar-link:focus-visible { color: var(--accent-btn, var(--accent)); }
.demo-bar-link:hover::after, .demo-bar-link:focus-visible::after { transform: scaleX(1); }
.demo-bar-link:focus-visible,
.demo-bar-eyes:focus-visible, .demo-bar-menu:focus-visible, .demo-bar-cta:focus-visible,
.demo-bar-brand:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.demo-bar-eyes, .demo-bar-menu, .demo-bar-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 38px; padding: 0 12px; border-radius: 12px;
  font: inherit; font-size: var(--text-meta); line-height: var(--line-meta);
  cursor: pointer; white-space: nowrap;
}


.demo-bar-eyes, .demo-bar-menu {
  border: 1px solid rgba(var(--ink-rgb), .12);
  background: rgba(var(--raised-rgb), .55); color: var(--ink); font-weight: 500;
  transition: background-color var(--demo-bar-move), border-color var(--demo-bar-move);
}
.demo-bar-eyes { display: none; }
.demo-bar-menu { margin-left: auto; }
.demo-bar-eyes:hover, .demo-bar-menu:hover,
.demo-bar-eyes[aria-expanded="true"], .demo-bar-menu[aria-expanded="true"] {
  background: var(--raised); border-color: rgba(var(--ink-rgb), .3);
}
.demo-bar-ico-chevron-down { transition: transform var(--demo-bar-move); }
[aria-expanded="true"] > .demo-bar-ico-chevron-down { transform: rotate(180deg); }


.demo-bar-cta {
  border: 0; gap: 8px; padding: 0 14px;
  background: var(--sidebar); color: var(--sidebar-ink); font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--sidebar-rgb), .22);
  transition: background-color var(--demo-bar-move), box-shadow var(--demo-bar-move);
}
.demo-bar-cta:hover, .demo-bar-cta[aria-expanded="true"] {
  background: color-mix(in srgb, var(--sidebar) 86%, var(--ink));
  box-shadow: 0 6px 18px rgba(var(--sidebar-rgb), .36);
}
.demo-bar-cta .demo-bar-ico-arrow-right { transition: transform var(--demo-bar-move); }
.demo-bar-cta:hover .demo-bar-ico-arrow-right { transform: translateX(2px); }
.demo-bar-cta-short { display: none; }
.demo-bar-drop {
  position: absolute; left: auto; right: var(--demo-drop-right, 0px); top: 100%;
  margin-top: 6px;
  display: block; width: max-content; max-width: 100%;
  padding: var(--space-4);
  background: var(--raised); color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(var(--ink-rgb), .16), 0 0 0 1px rgba(var(--ink-rgb), .06);
  max-height: calc(100vh - var(--demo-bar-h, 56px) - 12px); overflow: auto;
}
.demo-bar-drop[hidden] { display: none; }
.demo-bar-panel { margin: 0; min-width: 0; }
.demo-bar-panel[hidden] { display: none; }
.demo-bar-panel-help { width: min(708px, calc(100vw - 4 * var(--space-4))); }
.demo-bar-panel-cta { width: min(340px, calc(100vw - 4 * var(--space-4))); }
.demo-bar-panel-links { width: min(260px, calc(100vw - 4 * var(--space-4))); }


.demo-bar-links-m { display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
.demo-bar-links-m .demo-bar-label { display: none; }
.demo-bar-links-m .demo-bar-link { min-height: 44px; padding: 0 var(--space-2); }
.demo-bar-links-m .demo-bar-link::after { left: var(--space-2); right: var(--space-2); bottom: 8px; }
.demo-bar-panel-title {
  display: none; margin: 0 0 var(--space-2);
  font-size: var(--text-control); line-height: var(--line-control); font-weight: 650;
}
.demo-bar-help {
  margin: 0; display: grid; gap: var(--space-3) var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.demo-bar-help-item { min-width: 0; }
.demo-bar-help dt {
  margin: 0; color: var(--ink); font-weight: 650;
  font-size: var(--text-control); line-height: var(--line-control);
}
.demo-bar-help dd {
  margin: 2px 0 0; color: var(--demo-bar-muted);
  font-size: var(--text-meta); line-height: var(--line-meta);
}
.demo-bar-form { display: grid; gap: var(--space-2); margin: 0; }
.demo-bar-input {
  min-height: var(--control-h); padding: 0 var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--raised); color: var(--ink);
  font: inherit; font-size: var(--text-body); line-height: var(--line-body);
}
.demo-bar-input::placeholder { color: var(--demo-bar-muted); }
.demo-bar-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.demo-bar-send {
  min-height: var(--control-h); border: 0; border-radius: var(--radius-md);
  background: var(--accent-btn, var(--accent)); color: var(--on-accent);
  font: inherit; font-size: var(--text-control); line-height: var(--line-control);
  font-weight: 600; cursor: pointer;
}
.demo-bar-send[disabled] { opacity: .6; cursor: default; }
.demo-bar-small { margin: 0; color: var(--demo-bar-muted); font-size: var(--text-micro); line-height: 16px; }
.demo-bar-status { margin: 0; font-size: var(--text-meta); line-height: var(--line-meta); }
.demo-bar-status[hidden] { display: none; }
.demo-bar-done { margin: 0; font-size: var(--text-body); line-height: var(--line-body); }


@container demo (max-width: 999px) {
  .demo-bar-label > span { display: none; }
  .demo-bar-label { margin-right: 0; }
}
@container demo (max-width: 879px) {
  .demo-bar-row .demo-bar-links { display: none; }
  .demo-bar-eyes { display: inline-flex; }
}



@media (max-width: 899px) {
  


  .demo-bar-row { gap: 6px; padding: 0 8px; }
  .demo-bar-brand { cursor: pointer; }
  .demo-bar-row .demo-bar-links, .demo-bar-menu, .demo-bar-cta-full { display: none; }
  .demo-bar-eyes, .demo-bar-cta { font-size: 12px; }
  .demo-bar-eyes { display: inline-flex; padding: 0 6px; gap: 4px; }
  .demo-bar-cta { margin-left: auto; padding: 0 9px; gap: 5px; }
  .demo-bar-cta-short { display: inline; }
  .demo-bar-drop { left: 0; right: 0; width: auto; max-width: none; }
  .demo-bar-panel-help, .demo-bar-panel-cta, .demo-bar-panel-links { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-bar *, .demo-bar *::after { transition: none !important; }
}
