/* Reinhart Property Management CRM · visual system.
   Ported from the Reach Screens admin design system (same shell, components and type),
   repainted in the Reinhart mark: warm ink #23201D, gold #B69F64, heart red #BB2921. */
:root{
  --bg:#f5f3ee; --panel:#ffffff; --panel2:#efece5; --line:#e7e2d8; --line2:#dcd5c8;
  --text:#23201d; --muted:#6b6359; --dim:#857c70;
  --ink:#23201d; --ink2:#2d2925; --navy:#34302b;
  --signal:#d4bc80; --brand:#b69f64; --gold:#b69f64; --gold-d:#7d6430; --teal:#7d6430; --cyan:#d4bc80; --red:#bb2921; --red2:#9e2019;
  --ok:#7d6430; --good:#2f7d4a; --warn:#a8650c; --bad:#b3261e;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --shadow:0 1px 2px rgba(35,32,29,.05), 0 6px 20px rgba(35,32,29,.05);
  --shadow-lift:0 4px 12px rgba(35,32,29,.09), 0 16px 40px rgba(35,32,29,.12);
  --focus:0 0 0 3px rgba(182,159,100,.32);
  --hover-row:#f8f6f1;
}
*{box-sizing:border-box}
html,
body{margin:0;height:100%;overflow-x:clip;overscroll-behavior:none}
body.overlay-open{overflow:hidden}
body{background:var(--bg);color:var(--text);font:13.5px/1.5 "Hanken Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;cursor:pointer;border:0;border-radius:8px;color:inherit}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
input,
select,
textarea{font:inherit;background:#fff;border:1px solid var(--line2);color:var(--text);border-radius:8px;padding:8px 11px;width:100%;transition:border-color .12s,box-shadow .12s}
input[type=radio],
input[type=checkbox]{width:auto;flex:0 0 auto}
input::placeholder,
textarea::placeholder{color:var(--dim)}
input:focus,
select:focus,
textarea:focus{outline:none;border-color:var(--brand);box-shadow:var(--focus)}
textarea{resize:vertical;min-height:64px}
::selection{background:rgba(182,159,100,.3)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#cfc6b6;border-radius:8px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:#b5aa96;border:2px solid transparent;background-clip:content-box}
@media (prefers-reduced-motion:reduce){
*,
*::before,
*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
#btnSettings{--ic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>")}
.sn-ic,
.bb-ic{font-size:0 !important;display:flex;align-items:center;justify-content:center}
.sn-ic::before,
.bb-ic::before{content:"";width:17px;height:17px;background:currentColor;-webkit-mask:var(--ic,none) center/contain no-repeat;mask:var(--ic,none) center/contain no-repeat}
.bb-ic::before{width:21px;height:21px}
.ico{display:inline-block;flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:var(--io,none) center/contain no-repeat;mask:var(--io,none) center/contain no-repeat;vertical-align:-2.5px}
.ico.sm{width:11.5px;height:11.5px;vertical-align:-1.5px}
.ico.lg{width:18px;height:18px;vertical-align:-4px}
.btn .ico{margin-right:2px}
.panel h3 .ico{width:12px;height:12px;vertical-align:-2px;margin-right:2px}
.badge .ico{width:11px;height:11px;vertical-align:-1.5px}
.i-phone{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>")}
.i-chat{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>")}
.i-reply{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 17 4 12 9 7'/><path d='M20 18v-2a4 4 0 0 0-4-4H4'/></svg>")}
.i-replyall{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='7 17 2 12 7 7'/><polyline points='12 17 7 12 12 7'/><path d='M22 18v-2a4 4 0 0 0-4-4H7'/></svg>")}
.i-forward{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 17 20 12 15 7'/><path d='M4 18v-2a4 4 0 0 1 4-4h12'/></svg>")}
.i-paperclip{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/></svg>")}
.i-file{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>")}
.i-download{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>")}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
  border:1px solid transparent;border-radius:7px;background:none;color:inherit;cursor:pointer;
  transition:background .14s,border-color .14s,color .14s}
.iconbtn:hover{background:var(--hover-row);border-color:var(--line2)}
.iconbtn:focus-visible{outline:none;box-shadow:var(--focus)}
.iconbtn .ico{margin:0;width:15px;height:15px}
.attchip{display:inline-flex;align-items:center;gap:7px;max-width:280px;padding:6px 10px;
  border:1px solid var(--line2);border-radius:9px;background:var(--panel);font-size:12.5px;
  line-height:1.3;text-decoration:none;color:inherit;transition:border-color .14s,background .14s}
a.attchip:hover{border-color:var(--brand);background:var(--hover-row)}
.attchip .ico{flex:0 0 auto;opacity:.7}
.attchip-main{min-width:0;display:flex;flex-direction:column}
.attchip-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attchip-meta{opacity:.62;font-size:11px}
.attchip .rm{flex:0 0 auto;cursor:pointer;opacity:.5;font-size:15px;line-height:1;padding:0 2px}
.attchip .rm:hover{opacity:1;color:var(--bad,#c0392b)}
.attrow{display:flex;flex-wrap:wrap;gap:6px}
.i-mail{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>")}
.i-cal{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='17' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>")}
.i-copy{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>")}
.i-check{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")}
.i-star{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>")}
.i-trash{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/></svg>")}
.i-x{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>")}
.i-check{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")}
.i-bolt{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>")}
.i-alert{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>")}
.i-clock{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>")}
.i-hourglass{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 22h14'/><path d='M5 2h14'/><path d='M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22'/><path d='M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2'/></svg>")}
.i-card{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='1' y='4' width='22' height='16' rx='2'/><line x1='1' y1='10' x2='23' y2='10'/></svg>")}
.i-refresh{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>")}
.i-loop{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='17 1 21 5 17 9'/><path d='M3 11V9a4 4 0 0 1 4-4h14'/><polyline points='7 23 3 19 7 15'/><path d='M21 13v2a4 4 0 0 1-4 4H3'/></svg>")}
.i-cash{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='1' x2='12' y2='23'/><path d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/></svg>")}
.i-bell{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/><path d='M13.73 21a2 2 0 0 1-3.46 0'/></svg>")}
.i-doc{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/></svg>")}
.i-send{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='22' y1='2' x2='11' y2='13'/><polygon points='22 2 15 22 11 13 2 9 22 2'/></svg>")}
.i-lock{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>")}
.i-unlock{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 9.9-1'/></svg>")}
.i-pause{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='6' y='4' width='4' height='16' rx='1'/><rect x='14' y='4' width='4' height='16' rx='1'/></svg>")}
.i-play{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='5 3 19 12 5 21 5 3'/></svg>")}
.i-expand{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/></svg>")}
.i-search{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.2' y2='16.2'/></svg>")}
.i-user{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>")}
.i-edit{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/><path d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>")}
.i-camera{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/><circle cx='12' cy='13' r='4'/></svg>")}
.i-image{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>")}
.i-info{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>")}
.i-globe{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='2' y1='12' x2='22' y2='12'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>")}
.i-cloud{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/></svg>")}
.i-box{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/><polyline points='3.27 6.96 12 12.01 20.73 6.96'/><line x1='12' y1='22.08' x2='12' y2='12'/></svg>")}
.i-archive{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='21 8 21 21 3 21 3 8'/><rect x='1' y='3' width='22' height='5'/><line x1='10' y1='12' x2='14' y2='12'/></svg>")}
.i-download{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>")}
.i-smartphone{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='2' width='14' height='20' rx='2'/><line x1='12' y1='18' x2='12.01' y2='18'/></svg>")}
.i-bulb{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='9' y1='18' x2='15' y2='18'/><line x1='10' y1='22' x2='14' y2='22'/><path d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'/></svg>")}
.i-square{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/></svg>")}
.i-followup{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 14 4 9 9 4'/><path d='M20 20v-7a4 4 0 0 0-4-4H4'/></svg>")}
.i-plus{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>")}
.i-gear{--io:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>")}
.sidenav{position:fixed;left:0;top:0;bottom:0;width:224px;z-index:30;background:var(--ink);color:#efe9df;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.04)}
.sidenav-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;padding:18px 16px 14px;flex:0 0 auto}
.sn-x{display:none}
.sidenav-brand img{height:26px;width:auto;display:block}
.sidenav-brand .tag{color:var(--signal);font-family:var(--mono);font-weight:600;font-size:9.5px;letter-spacing:.22em;text-transform:uppercase;border-left:1px solid rgba(255,255,255,.16);padding-left:10px;opacity:.9}
.sidenav-nav{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px;display:flex;flex-direction:column;gap:1px}
.sidenav-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border:2px solid transparent;background-clip:content-box}
.sn-item{position:relative;display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;color:rgba(239,233,223,.72);padding:8px 10px;border-radius:8px;font-weight:500;font-size:13px;letter-spacing:.005em;transition:background .12s,color .12s}
.sn-item:hover{background:rgba(255,255,255,.06);color:#fff}
.sn-ic{flex:0 0 20px;width:20px}
.sn-lb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidenav-foot{flex:0 0 auto;padding:10px 10px calc(10px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.08)}
.sidenav-utils{display:flex;gap:14px;padding:8px 10px 0}
.sidenav-utils a{color:rgba(239,233,223,.5);font-size:11px;font-weight:600}
.sidenav-utils a:hover{color:var(--signal);text-decoration:none}
.sidenav-backdrop{display:none}
.appmain{margin-left:224px;min-height:100%}
header{background:rgba(255,255,255,.92);border-bottom:1px solid var(--line)}
.appmain > header{position:sticky;top:0;z-index:20;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.topbar{display:flex;align-items:center;gap:16px;padding:10px 22px}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}
.brand img{height:28px;width:auto;display:block}
.navtoggle{display:none;font-size:16px;line-height:1;padding:7px 10px}
.m-brand{display:none}
.brand .tag{color:var(--dim);font-family:var(--mono);font-weight:600;font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;border-left:1px solid var(--line);padding-left:10px}
.spacer{flex:1}
.gsearch{position:relative;min-width:240px;max-width:360px;flex:1}
.gsearch input{padding-left:34px;background:var(--panel2);border-color:transparent;border-radius:9px}
.gsearch input:hover{border-color:var(--line2)}
.gsearch input:focus{background:#fff;border-color:var(--brand)}
.gsearch::before,
.searchbar::before{content:"";position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;background:var(--dim);-webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.2' y2='16.2'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.2' y2='16.2'/></svg>") center/contain no-repeat}
.gsresults{position:absolute;top:42px;left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lift);overflow:hidden;z-index:30}
.gsresults a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 12px;color:var(--text);border-bottom:1px solid var(--line)}
.gsresults a > span:first-child{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.gsresults a > .badge{flex:0 0 auto;white-space:nowrap}
.gsresults a:last-child{border-bottom:0}
.gsresults a:hover{background:var(--panel2);text-decoration:none}
.gsresults .gshead{padding:6px 12px;font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);font-weight:600;background:#faf9f6;border-bottom:1px solid var(--line)}
.gsresults a.hsrow{align-items:center}
.gsresults a.hsrow .btn{flex:0 0 auto;white-space:nowrap}
.toolbar{display:flex;gap:8px;flex-wrap:wrap}
#btnBell{font-size:0;display:inline-flex;align-items:center;justify-content:center;width:36px;height:33px;padding:0}
#btnBell::before{content:"";width:16px;height:16px;background:var(--muted);-webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/><path d='M13.73 21a2 2 0 0 1-3.46 0'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/><path d='M13.73 21a2 2 0 0 1-3.46 0'/></svg>") center/contain no-repeat}
#btnBell:hover::before{background:var(--text)}
#btnPlus{display:none;width:40px;height:36px;padding:0;font-size:0;align-items:center;justify-content:center}
#btnPlus::before{content:"";width:17px;height:17px;background:#fff;-webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat}
#navToggle{font-size:0;width:38px;height:36px;padding:0;align-items:center;justify-content:center}
#navToggle::before{content:"";width:17px;height:17px;background:var(--text);-webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='3' y1='6' x2='21' y2='6'/><line x1='3' y1='12' x2='21' y2='12'/><line x1='3' y1='18' x2='21' y2='18'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><line x1='3' y1='6' x2='21' y2='6'/><line x1='3' y1='12' x2='21' y2='12'/><line x1='3' y1='18' x2='21' y2='18'/></svg>") center/contain no-repeat}
.tab.active{background:linear-gradient(90deg,rgba(182,159,100,.14),rgba(182,159,100,.03));color:#fff;font-weight:600}
.tab.active:hover{background:linear-gradient(90deg,rgba(182,159,100,.17),rgba(182,159,100,.05));color:#fff}
.tab.active::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:var(--signal);box-shadow:0 0 10px rgba(182,159,100,.75)}
.tab.active .sn-ic::before{background:var(--signal)}
.bottombar{display:none;position:fixed;left:14px;right:14px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:35;background:var(--ink);border:1px solid rgba(255,255,255,.09);border-radius:26px;justify-content:space-around;padding:5px 6px;box-shadow:0 12px 32px rgba(35,32,29,.38),0 3px 10px rgba(35,32,29,.25)}
.bb-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:transparent;color:rgba(239,233,223,.6);font-size:10px;font-weight:600;letter-spacing:.02em;padding:6px 2px 5px;border-radius:20px;min-width:0;min-height:48px;transition:color .15s,background .15s}
.bb-ic{font-size:19px;line-height:1.25}
.bb-item{position:relative}
.bb-dot{position:absolute;top:3px;left:50%;margin-left:4px;
  min-width:17px;height:17px;padding:0 4px;border-radius:9px;
  background:var(--bad,#E11D2C);color:#fff;
  font-size:10px;font-weight:800;line-height:17px;text-align:center;
  box-shadow:0 0 0 2px var(--ink);
  pointer-events:none;}
.bb-dot[hidden]{display:none}
.bb-lb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bb-item.active{color:var(--signal);background:rgba(182,159,100,.12)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#fff;color:var(--text);padding:7px 13px;font-weight:600;font-size:12.5px;border:1px solid var(--line2);border-radius:8px;box-shadow:0 1px 1px rgba(35,32,29,.04);transition:border-color .15s,background .15s,color .15s,box-shadow .15s,transform .1s}
.btn:hover{border-color:#c9bfae;background:#faf9f6;box-shadow:0 2px 5px rgba(35,32,29,.07)}
.btn:active{transform:translateY(1px);box-shadow:none}
.btn-primary{background:var(--red);color:#fff;border-color:transparent;box-shadow:0 1px 2px rgba(187,41,33,.35)}
.btn-primary:hover{background:var(--red2);border-color:transparent;color:#fff;box-shadow:0 3px 10px rgba(187,41,33,.3)}
.btn-danger{background:#fff;color:var(--bad);border:1px solid #eccfd4}
.btn-danger:hover{background:#fdf1f2;border-color:#e2b6bd;color:var(--bad)}
.btn-ghost{background:transparent;border:1px solid var(--line2);color:var(--muted);font-weight:600;box-shadow:none}
.btn-ghost:hover{border-color:#c9bfae;color:var(--text);background:#fff}
.btn-sm{padding:6px 10px;font-size:12px}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn.navtoggle{display:none}
@media (max-width:760px){
.btn.navtoggle{display:inline-flex}
}
main{padding:24px 28px 90px;max-width:1340px;margin:0 auto}
main.full{max-width:none;padding:0}
h1{font-size:22px;font-weight:750;margin:0 0 4px;letter-spacing:-.025em}
.sub{color:var(--muted);font-size:13px;margin:0 0 20px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:13px;margin-bottom:22px}
.stat{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:15px 17px;box-shadow:var(--shadow);overflow:hidden}
.stat .l{font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);margin-bottom:9px;font-weight:600}
.stat .v{font-size:25px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.03em;line-height:1.1}
.stat .s{font-size:11.5px;color:var(--dim);margin-top:6px}
.stat.accent{background:linear-gradient(170deg,#fbf8f0 0%,#fff 60%);border-color:#e6dabd}
.stat.accent::before{content:"";position:absolute;top:0;left:0;right:0;height:2.5px;background:linear-gradient(90deg,var(--signal),rgba(182,159,100,.06))}
.stat.accent .v{color:var(--teal);font-size:28px}
.stat.click{cursor:pointer;transition:transform .15s,box-shadow .18s,border-color .18s}
.stat.click:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);border-color:#d9c79c}
.stat.click:active{transform:none}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:19px 20px;margin-bottom:16px;box-shadow:var(--shadow)}
.panel h3{margin:0 0 14px;font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.row{display:flex;gap:14px;flex-wrap:wrap}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:900px){
.grid2,
.grid3{grid-template-columns:1fr}
}
.dashwrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.dashmain{min-width:0}
@media(max-width:1100px){
.dashwrap{display:block}
}
.panel:has(table){overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
th{text-align:left;font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.11em;color:var(--dim);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--line2);background:#faf9f6;position:sticky;top:0;z-index:1}
th.sortable{cursor:pointer;user-select:none;transition:color .12s}
th.sortable:hover{color:var(--teal)}
th .arr{color:var(--brand);font-size:10px;margin-left:3px;font-family:"Hanken Grotesk",sans-serif}
td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:middle;transition:background .12s}
tr:last-child td{border-bottom:0}
tr:hover td{background:var(--hover-row)}
.clickrow{cursor:pointer}
.tnum{font-variant-numeric:tabular-nums;text-align:right;font-family:var(--mono);font-size:12px}
.badge{display:inline-block;padding:2.5px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.01em;line-height:1.5}
.badge[class*="b-"]::before,
.badge[class*="wf-st-"]::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1.5px;opacity:.8}
.b-New{background:#e7effc;color:#1e56ad}
.b-Contacted{background:#e0f2f8;color:#0c7392}
.b-Interested{background:#ddf4ee;color:#0b7d61}
.b-Quoted{background:#eee9fb;color:#6146b6}
.b-Pending{background:#faf0d8;color:#8f660c}
.b-Active{background:#def4e7;color:#177a41}
.b-Expired{background:#efedf0;color:#655669}
.b-Lost{background:#fceaea;color:#b02d38}
.b-Cancelled{background:#fbe4eb;color:#ad2751}
.b-Paused{background:#eaeef3;color:#556378}
.b-Follow-up{background:#e6effb;color:#2258a3}
.b-Negotiating{background:#eee9fb;color:#6146b6}
.b-Waiting-on-signature{background:#fcecd1;color:#96540a}
.b-Waiting-on{background:#edf0f4;color:#52607a}
.b-Payment-overdue{background:#fbe0e0;color:#b0251e}
.badge.type{background:var(--panel2);color:var(--muted);text-transform:capitalize}
.savebox{background:#fff;border-radius:14px;padding:24px 26px;max-width:380px;width:calc(100% - 40px);box-shadow:0 24px 70px rgba(20,17,14,.4)}
.pill{display:inline-block;padding:3px 9px;border-radius:7px;font-size:11px;background:var(--panel2);color:var(--muted);margin:2px 4px 2px 0}
.warn{color:var(--warn)}
.bad{color:var(--bad)}
.good{color:var(--good)}
.muted{color:var(--muted)}
.dim{color:var(--dim)}
.linklike{color:var(--teal)}
.hbars{display:flex;flex-direction:column;gap:9px}
.hbar{display:grid;grid-template-columns:minmax(110px,40%) 1fr 46px;gap:10px;align-items:center;font-size:12.5px}
.hbar .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.hbar .track{height:9px;background:var(--panel2);border-radius:5px;overflow:hidden}
.hbar .fill{display:block;height:100%;background:linear-gradient(90deg,#b69f64,#2a6ee0);border-radius:5px}
.hbar .n{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;font-weight:600;font-family:var(--mono);font-size:11px}
.hbar .fill.fc{background:repeating-linear-gradient(45deg,#c3d9ea,#c3d9ea 5px,#dae8f3 5px,#dae8f3 10px)}
.cols{display:flex;align-items:flex-end;gap:5px;height:150px;padding-top:14px}
.col{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;min-width:0}
.col .bar{width:74%;min-height:2px;background:linear-gradient(180deg,#c8b27a,#8a6d2f);border-radius:5px 5px 0 0}
.col.future .bar{background:repeating-linear-gradient(45deg,#cfe0ee,#cfe0ee 4px,#dde9f4 4px,#dde9f4 8px)}
.col .cl{font-size:10px;color:var(--dim);white-space:nowrap;transform:rotate(-35deg);transform-origin:top left;height:18px}
.col .cv{font-family:var(--mono);font-size:9.5px;color:var(--muted);font-weight:600}
.empty{color:var(--muted);text-align:center;padding:34px 20px;border:1px dashed var(--line2);border-radius:12px;font-size:13px;background:#faf9f6;line-height:1.6}
.empty::before{content:"";display:block;width:26px;height:26px;margin:0 auto 10px;background:var(--dim);opacity:.55;-webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M22 12h-6l-2 3h-4l-2-3H2'/><path d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M22 12h-6l-2 3h-4l-2-3H2'/><path d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/></svg>") center/contain no-repeat}
.skel{display:flex;flex-direction:column;gap:16px;padding:6px 2px;max-width:920px}
.skel i{display:block;border-radius:8px;background:linear-gradient(100deg,#e7ebf2 30%,#f3f6fa 50%,#e7ebf2 70%);background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.skel .s-title{height:22px;width:34%}
.skel .s-sub{height:12px;width:52%;margin-top:-6px}
.skel .s-card{height:96px;border-radius:14px}
.skel .s-row{height:13px}
@keyframes shimmer{to{background-position:-200% 0}}
.feed{display:flex;flex-direction:column;gap:2px}
.feed .it{display:flex;gap:10px;align-items:baseline;padding:8px 2px;border-bottom:1px solid var(--line);font-size:13px}
.feed .it:last-child{border-bottom:0}
.feed .k{font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--teal);font-weight:600;min-width:64px}
.feed .who{font-weight:600}
.feed .when{margin-left:auto;color:var(--dim);font-size:11.5px;white-space:nowrap}
.minirow{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 8px;margin:0 -8px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer;border-radius:8px;transition:background .12s}
.minirow:last-child{border-bottom:0}
.minirow:hover{background:var(--hover-row)}
.minirow:hover b{color:var(--teal)}
.chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line2);background:var(--panel2);color:var(--text);border-radius:999px;padding:5px 11px;font-size:12px;cursor:pointer;font-weight:600;transition:background .1s,border-color .1s,color .1s}
.chip.on{background:#e4f6ee;border-color:#b8e2cd;color:#0b7d52}
.chip.on:hover,
.chip:hover{background:#fdf0f1;border-color:#f0c6cb;color:var(--bad)}
label.chk.cfblocked{opacity:.6;text-decoration:line-through;text-decoration-color:#c8ccd4;cursor:not-allowed}
label.chk.cfwarn{color:#a32020;font-weight:600}
.btn-amber{background:#c07a10;color:#fff;border:1px solid transparent}
.btn-amber:hover{background:#a96a0c;color:#fff;border-color:transparent}
.backdrop{position:fixed;inset:0;background:rgba(35,32,29,.4);backdrop-filter:blur(3px);z-index:40;display:flex;justify-content:flex-end}
.modal{margin:auto;width:min(460px,94vw);max-width:100%;max-height:90vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;overscroll-behavior:contain;box-shadow:0 24px 70px rgba(20,17,14,.3);animation:pop .16s ease}
.modal .split:has(> .btn-primary:first-child){flex-direction:row-reverse;justify-content:flex-start}
@keyframes pop{from{transform:scale(.97);opacity:.6}to{transform:none;opacity:1}}
@keyframes sheetup{from{transform:translateY(28px);opacity:.5}to{transform:none;opacity:1}}
.sheet-grab{width:40px;height:4px;border-radius:2px;background:var(--line2);margin:2px auto 12px}
.modal-grab{display:none}
body.search-open{overflow:hidden}
.modal h2{margin:0 0 4px;font-size:18px;font-weight:750;letter-spacing:-.02em}
.field{margin-bottom:13px}
.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px;font-weight:600}
.field .hint{font-size:11px;color:var(--dim);margin-top:4px}
.chk{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;background:#fff;border:1px solid var(--line2);border-radius:8px;padding:6px 10px;margin:0 6px 6px 0;cursor:pointer;transition:border-color .12s,background .12s,color .12s}
.field label.chk,
label.chk{display:inline-flex;width:auto}
.chk input{width:auto}
.chk:hover{border-color:#c9bfae}
.chk.on{border-color:var(--brand);background:#ecf8fc;color:var(--teal);font-weight:600}
.timeline{border-left:2px solid var(--line2);margin-left:6px;padding-left:14px;max-height:240px;overflow-y:auto;overscroll-behavior:contain;padding-right:6px}
.tl{margin-bottom:11px;font-size:12.5px}
.tl .when{color:var(--dim);font-size:11px;font-family:var(--mono)}
.tl .k{display:inline-block;font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--teal);margin-right:6px;font-weight:600}
.close{background:transparent;color:var(--muted);font-size:22px;line-height:1;width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;transition:background .12s,color .12s}
.close:hover{color:var(--text);background:var(--panel2)}
.note{background:#fdf6e6;border:1px solid #ead197;border-radius:10px;padding:11px 14px;font-size:12.5px;color:#77570e;margin-bottom:16px}
.note.info{background:#e9f4fd;border-color:#bcd9f2;color:#1a5590}
.note.bad{background:#fdf1f2;border-color:#eccfd4;color:#8c2230}
.note.good{background:#eaf7ef;border-color:#bfe3cd;color:#1d6b3f}
.note.warn{background:#fdf6e6;border-color:#ead197;color:#77570e}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);border:1px solid rgba(182,159,100,.35);color:#f2f7fd;padding:11px 18px;border-radius:11px;z-index:60;font-size:13px;box-shadow:0 12px 34px rgba(20,17,14,.4);animation:toastin .22s ease}
@keyframes toastin{from{transform:translate(-50%,10px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@keyframes ptrspin{to{transform:rotate(360deg)}}
.split{display:flex;gap:8px;align-items:center}
.rowgap{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.rowgap .field{flex:1;min-width:130px;margin-bottom:0}
.searchbar{position:relative;max-width:360px;flex:1}
.searchbar input{padding-left:34px}
.bulkbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#ecf8fc;border:1px solid #bfe8f4;border-radius:10px;padding:8px 12px;margin-bottom:12px}
.bulkbar .bn{font-size:13px;color:var(--teal);font-weight:600;margin-right:4px}
.bulkbar select{width:auto;padding:6px 10px;font-size:12px}
.selcol{width:36px;text-align:center}
th.selcol{text-align:center}
.selcol input{width:auto;cursor:pointer;margin:0}
.kanban{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}
.kanban-col{flex:0 0 244px;background:#eeebe4;border:1px solid transparent;border-radius:14px;padding:9px;min-height:140px;transition:background .15s,border-color .15s,box-shadow .15s}
.kanban-col.dragover{border-color:var(--brand);background:#f6f0e2;box-shadow:inset 0 0 0 1px rgba(182,159,100,.4)}
.kanban-head{display:flex;align-items:center;gap:7px;padding:5px 6px 10px;font-family:var(--mono);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.kanban-sum{margin-left:auto;font-size:11px;font-weight:600;color:var(--teal);font-variant-numeric:tabular-nums;text-transform:none;letter-spacing:0;white-space:nowrap}
.kanban-cards{display:flex;flex-direction:column;gap:8px;min-height:52px}
.kanban-card{background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:10px 12px;font-size:13px;cursor:grab;box-shadow:0 1px 2px rgba(35,32,29,.06);display:flex;flex-direction:column;gap:2px;-webkit-user-select:none;user-select:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.kanban-card:hover{border-color:#d9c79c;box-shadow:0 4px 12px rgba(35,32,29,.1);transform:translateY(-1px)}
.kanban-card:active{cursor:grabbing;transform:none}
.kanban-card.dragging{opacity:.5;transform:rotate(1.5deg) scale(1.02);box-shadow:var(--shadow-lift)}
.kanban-card b{line-height:1.35;overflow:hidden;text-overflow:ellipsis}
.kanban-line{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kanban-val{color:var(--teal);font-weight:600;font-size:12px;font-variant-numeric:tabular-nums;font-family:var(--mono)}
.kanban-empty{color:var(--dim);font-size:12px;text-align:center;padding:16px 6px;border:1px dashed #d9d1c3;border-radius:8px}
.pillbar{display:inline-flex;background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px;margin:0 0 14px}
.pillbtn{background:transparent;color:var(--muted);border-radius:999px;padding:6px 16px;font-weight:600;font-size:13px}
.pillbtn.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(35,32,29,.12)}
.kanban-card{position:relative}
.kanban-actions{position:absolute;top:5px;right:5px;display:none;gap:2px;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:1px 2px;box-shadow:var(--shadow)}
.kanban-actions button{background:transparent;border:0;font-size:12px;line-height:1;padding:4px 5px;border-radius:6px;cursor:pointer}
.kanban-actions button:hover{background:var(--panel2)}
.kanban-card:hover .kanban-actions{display:inline-flex}
@media (hover:none){
.kanban-actions{display:inline-flex;position:static;align-self:flex-end;margin-top:4px;box-shadow:none}
}
.kanban-chip{display:inline-block;margin-top:2px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:700;background:#e8e3d9;color:var(--muted);align-self:flex-start;font-variant-numeric:tabular-nums}
.kanban-chip.danger{background:#fceaea;color:#b02d38}
.kanban-hint{font-size:10.5px;color:var(--dim);text-align:center;padding:5px 4px 1px}
.kanban-col.nodrop.dragover{border-color:transparent;background:#eeebe4}
.kanban-col.nodrop.dragover .kanban-hint{color:var(--warn)}
.spark{display:inline-flex;align-items:flex-end;gap:2px;height:22px}
.spark i{display:inline-block;width:6px;min-height:1px;background:linear-gradient(180deg,#c8b27a,#8a6d2f);border-radius:2px 2px 0 0;opacity:.85}
@media (max-width:760px){
.sidenav{width:min(280px,84vw);transform:translateX(-100%);transition:transform .2s ease;z-index:70}
body.nav-open .sidenav{transform:none;box-shadow:0 0 48px rgba(20,17,14,.5)}
.sidenav-backdrop{display:block;position:fixed;inset:0;background:rgba(35,32,29,.45);z-index:65;opacity:0;pointer-events:none;transition:opacity .2s ease}
body.nav-open .sidenav-backdrop{opacity:1;pointer-events:auto}
.appmain{margin-left:0}
.navtoggle{display:inline-flex;align-items:center;justify-content:center}
.topbar{position:relative}
.m-brand{display:flex;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
header .gsearch{display:none}
.topbar #btnNew{display:none}
#btnPlus{display:inline-flex}
.bottombar{display:flex}
main{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.toast{bottom:calc(100px + env(safe-area-inset-bottom))}
}
@media (max-width:640px){
html{-webkit-text-size-adjust:100%}
body{font-size:14px}
input,
select,
textarea{font-size:16px}
.btn{min-height:40px}
.btn-sm{min-height:36px}
.appmain > header{box-shadow:0 1px 4px rgba(35,32,29,.05)}
.topbar{flex-wrap:wrap;gap:9px 8px;padding:9px 12px}
.brand img{height:24px}
.brand .tag{display:none}
.spacer{display:none}
.gsearch{order:10;flex:1 0 100%;min-width:0;max-width:none}
.gsearch input{padding-top:11px;padding-bottom:11px}
.gsresults{top:46px}
.toolbar{gap:7px;flex:0 0 auto;margin-left:auto;flex-wrap:nowrap}
.topbar #btnImport{display:none}
main{padding:16px 14px calc(112px + env(safe-area-inset-bottom))}
main.full{padding:0}
h1{font-size:20px}
.sub{font-size:13px;margin-bottom:15px}
.cards{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.stat{padding:13px 14px;border-radius:13px}
.stat .l{font-size:9px;margin-bottom:7px}
.stat .v{font-size:22px}
.stat .s{font-size:11.5px}
.stat.accent{grid-column:1/-1}
.stat.accent .v{font-size:27px}
.panel{padding:16px 14px;border-radius:13px;margin-bottom:13px}
.panel h3{margin-bottom:12px}
.rowgap{flex-direction:column;align-items:stretch;gap:12px}
.rowgap .field{flex:0 0 auto!important;width:100%;min-width:0;margin-bottom:0}
.searchbar{max-width:none}
.split{flex-wrap:wrap}
.panel:has(table){padding:12px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
td,
th{padding:11px 11px}
table{font-size:13.5px}
th:first-child,
td:first-child{position:sticky;left:0;z-index:2;background:var(--panel);box-shadow:6px 0 8px -6px rgba(35,32,29,.12)}
th:first-child{background:#faf9f6;z-index:3}
tr:hover td:first-child{background:var(--hover-row)}
th.selcol,
td.selcol{box-shadow:none;min-width:36px;max-width:36px}
th.selcol + th,
td.selcol + td{position:sticky;left:35px;z-index:2;background:var(--panel);box-shadow:6px 0 8px -6px rgba(35,32,29,.12)}
th.selcol + th{background:#faf9f6;z-index:3}
tr:hover td.selcol + td{background:var(--hover-row)}
td.split{flex-wrap:nowrap}
.backdrop{backdrop-filter:none}
body.overlay-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}
.modal{margin:auto 0 0 !important;width:100% !important;max-width:100%;max-height:92dvh;overflow:auto;padding:16px 15px calc(24px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;border-bottom:0;animation:sheetup .22s ease}
.modal::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line2);margin:0 auto 14px}
.modal input[type="date"],
.modal input[type="time"],
.modal input[type="datetime-local"]{width:100%;min-width:0;max-width:100%;display:block;-webkit-appearance:none;appearance:none;text-align:left}
.modal .rowgap > .field,
.modal .field{min-width:0;max-width:100%}
.modal input[type="date"]::-webkit-date-and-time-value,
.modal input[type="time"]::-webkit-date-and-time-value{text-align:left}
.modal .field:has(> input[type="date"]),
.modal .field:has(> input[type="time"]){overflow:hidden}
.close{font-size:28px;padding:4px 10px}
.modal h2{font-size:17px}
.hbar{grid-template-columns:minmax(84px,42%) 1fr 40px;gap:8px}
.cols{gap:3px}
.kanban{gap:9px;margin:0 -5px;padding:0 5px 6px}
.kanban-col{flex:0 0 205px}
.modal .split:has(.btn-primary){flex-direction:column;align-items:stretch}
.modal .split:has(.btn-primary) .btn{width:100%}
}
.cal{padding:14px 14px 16px}
.cal-bar{display:flex;justify-content:space-between;align-items:center;gap:10px 14px;flex-wrap:wrap;margin-bottom:12px}
.cal-nav{display:flex;align-items:center;gap:6px;min-width:0}
.cal-nav .btn{padding:6px 11px}
.cal-label{font-size:16px;font-weight:700;letter-spacing:-.015em;margin-left:8px;white-space:nowrap}
.cal-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cal-seg{display:flex;background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:2px;gap:1px}
.cal-seg button{background:transparent;color:var(--muted);font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:7px;white-space:nowrap}
.cal-seg button:hover{color:var(--text)}
.cal-seg button.on{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(35,32,29,.14)}
.cal-scroll{overflow:auto;max-height:calc(100vh - 268px);min-height:430px;border:1px solid var(--line);border-radius:12px;background:#fff;overscroll-behavior:contain}
.cal-hrow{display:grid;grid-template-columns:52px repeat(var(--cols),minmax(0,1fr));position:sticky;top:0;z-index:6;background:#fff}
.cal-corner{border-right:1px solid var(--line)}
.cal-dhead{height:35px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line);border-right:1px solid var(--line);min-width:0}
.cal-dhead:last-child{border-right:0}
.cal-dhead button{background:transparent;font-size:12px;font-weight:600;color:var(--muted);padding:3px 8px;border-radius:7px;white-space:nowrap}
.cal-dhead button:hover{background:var(--panel2);color:var(--text)}
.cal-dhead b{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;border-radius:50%;color:var(--text);font-size:12.5px;font-variant-numeric:tabular-nums}
.cal-dhead.today b{background:var(--red);color:#fff}
.cal-mc.ad.golive{background:#def4e7;color:#177a41;border-color:#b8e2cd}
.cal-mc.ad.renewal{background:#faf0d8;color:#8f660c;border-color:#ecdca5}
.cal-mc.ad.adstop{background:#fceaea;color:#b02d38;border-color:#f3ccd2}
.cal-grid{display:grid;grid-template-columns:52px repeat(var(--cols),minmax(0,1fr))}
.cal-gut{border-right:1px solid var(--line)}
.cal-hh{height:48px;position:relative}
.cal-hh span{position:absolute;top:-7px;right:6px;font-family:var(--mono);font-size:9px;color:var(--dim);background:#fff;padding:0 2px}
.cal-col{position:relative;height:1152px;border-right:1px solid var(--line);min-width:0;
  background:repeating-linear-gradient(to bottom,var(--line) 0 1px,transparent 1px 48px)}
.cal-col:last-child{border-right:0}
.cal-ev{position:absolute;border-radius:8px;color:#fff;padding:3px 8px 8px;font-size:11.5px;line-height:1.3;overflow:hidden;cursor:grab;box-shadow:0 1px 3px rgba(35,32,29,.24);border:1px solid rgba(255,255,255,.5);min-width:0;user-select:none;-webkit-user-select:none;touch-action:manipulation;transition:box-shadow .15s,filter .15s}
.cal-ev:hover{filter:brightness(1.06);box-shadow:0 3px 10px rgba(35,32,29,.3)}
.cal-ev.dragging{opacity:.85;z-index:10;cursor:grabbing;box-shadow:0 10px 26px rgba(35,32,29,.35);filter:none;transition:none}
.cal-ev.done{opacity:.5}
.cal-ev.done .cal-ev-t{text-decoration:line-through}
.cal-ev-t{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev-time{display:block;font-size:10px;opacity:.85;white-space:nowrap;overflow:hidden}
.cal-ev.slim{padding:1px 7px 6px}
.cal-ev.slim .cal-ev-time,
.cal-ev.slim .cal-ev-biz{display:none}
.cal-ev-biz{display:inline-block;margin-top:2px;background:rgba(255,255,255,.28);border:0;color:#fff;border-radius:5px;padding:0 6px;font-size:10px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.cal-ev-biz:hover{background:rgba(255,255,255,.45)}
.cal-now{position:absolute;left:0;right:0;border-top:2px solid var(--red);z-index:4;pointer-events:none}
.cal-now i{position:absolute;left:-4px;top:-5px;width:8px;height:8px;border-radius:50%;background:var(--red)}
.cal-mhead{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600;text-align:center;padding:0 0 6px}
.cal-mgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cal-mcell{background:#fff;min-height:98px;padding:5px 5px 6px;cursor:pointer;display:flex;flex-direction:column;gap:3px;min-width:0;transition:background .12s}
.cal-mcell:hover{background:#f7fafd}
.cal-mcell.dim{background:#f6f8fb;color:var(--dim)}
.cal-mday{align-self:flex-start;background:transparent;width:24px;height:24px;border-radius:50%;font-size:12px;font-weight:700;color:inherit;padding:0;font-variant-numeric:tabular-nums}
.cal-mday:hover{background:var(--panel2)}
.cal-mcell.today .cal-mday{background:var(--red);color:#fff}
.cal-mevs{display:flex;flex-direction:column;gap:2px;min-width:0}
.cal-mc{display:flex;align-items:center;gap:4px;background:var(--panel2);border-radius:5px;padding:1px 5px;font-size:10.5px;font-weight:600;color:var(--text);text-align:left;min-width:0;max-width:100%;border:1px solid transparent}
.cal-mc:hover{filter:brightness(.96)}
.cal-mc i{flex:0 0 auto;width:7px;height:7px;border-radius:50%}
.cal-mc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cal-mc.done{opacity:.5}
.cal-mc.done span{text-decoration:line-through}
.cal-more{background:transparent;color:var(--teal);font-size:10.5px;font-weight:700;text-align:left;padding:0 5px}
.cal-more:hover{text-decoration:underline}
.cal-tasks{display:flex;flex-direction:column;gap:16px}
.cal-tsec h3{margin:0 0 8px;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.cal-tsec.over h3{color:var(--bad)}
.cal-task{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:#fff;cursor:pointer;font-size:13px;transition:border-color .12s,box-shadow .12s}
.cal-task:hover{border-color:#d9c79c;box-shadow:0 2px 8px rgba(35,32,29,.06)}
.cal-task input{width:auto;margin:0;cursor:pointer;flex:0 0 auto}
.cal-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.cal-task-main{flex:1;min-width:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cal-task-main b{overflow:hidden;text-overflow:ellipsis}
.cal-task-biz{background:var(--panel2);border:1px solid var(--line2);color:var(--muted);border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700;cursor:pointer;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-task-biz:hover{border-color:var(--brand);color:var(--teal)}
.cal-tsec.over .cal-task-when{color:var(--bad);font-weight:600}
.cal-task-when{color:var(--muted);font-size:11.5px;white-space:nowrap;flex:0 0 auto;font-family:var(--mono)}
.cal-tasks-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 12px;flex-wrap:wrap}
.cal-tsearch{flex:1 1 260px;max-width:420px;margin-right:auto}
.cal-tsearch input{width:100%}
.cal-tview{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:600}
.cal-tview select{width:auto;min-width:150px}
.cal-tick{display:flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer}
.cal-tick input{width:18px;height:18px;accent-color:var(--brand)}
.cal-task-edit{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border:1px solid transparent;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.cal-task-edit:hover{border-color:var(--line2);color:var(--text)}
.cal-pri{font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--bad);
  border:1px solid rgba(226,29,44,.35);border-radius:999px;padding:1px 7px}
.cal-tsec-n{font-weight:700;opacity:.7}
.cal-tsec.over .cal-task{background:rgba(226,29,44,.06);border-color:rgba(226,29,44,.28)}
.cal-tsec.today h3{font-family:inherit;font-size:15px;letter-spacing:0;text-transform:none;font-weight:800;color:var(--text)}
.cal-tsec.today .cal-task{border-color:var(--brand)}
.cal-tsec.today .cal-task-main b{font-weight:800}
.cal-tsec.later .cal-task{opacity:.92}
.cal-task.is-done .cal-task-main b{text-decoration:line-through;color:var(--muted);font-weight:600}
.cal-task-main .cal-task-when{font-family:var(--mono)}
@media (max-width:640px){
.cal-tasks-bar{justify-content:stretch}
.cal-tsearch{flex:1 1 100%;max-width:none;margin-right:0}
.cal-tsearch input{min-height:44px}
.cal-tview{width:100%}
.cal-tview select{flex:1;min-height:44px}
.cal-tick{width:44px;min-height:44px;margin:-9px 0 -9px -11px}
.cal-tick input{width:24px;height:24px}
.cal-task{align-items:center;padding:10px 8px 10px 11px}
.cal-task-main{flex-direction:column;align-items:flex-start;gap:4px}
.cal-task-main b{font-size:16px;line-height:1.3;white-space:normal}
.cal-task-edit{width:44px;height:44px}
.cal-task-main .cal-task-biz{background:none !important;border:0 !important;padding:0 !important;min-height:28px !important;
    border-radius:0;color:var(--brand) !important;font-size:14.5px !important;font-weight:600;max-width:100%;text-align:left}
}
.cal-cwrap{position:relative}
.cal-cwrap input{padding-right:30px}
.cal-cx{position:absolute;right:4px;top:50%;transform:translateY(-50%);background:transparent;color:var(--dim);font-size:12px;padding:4px 7px}
.cal-cx:hover{color:var(--bad)}
.cal-cdrop{display:none;position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-lift);z-index:50;max-height:220px;overflow-y:auto}
.cal-cdrop button{display:block;width:100%;text-align:left;padding:8px 11px;background:transparent;border-bottom:1px solid var(--line);font-size:13px;border-radius:0}
.cal-cdrop button:last-child{border-bottom:0}
.cal-cdrop button:hover{background:var(--panel2)}
.cal-swatches{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.cal-sw{width:26px;height:26px;border-radius:50%;border:0;box-shadow:inset 0 0 0 1px rgba(35,32,29,.15);padding:0}
.cal-sw.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--text)}
.cal-sw.auto{background:conic-gradient(#7d6430,#2563eb,#7c3aed,#d12b3a,#d97a06,#16a34a,#7d6430)}
@media (max-width:640px){
.cal{padding:10px 8px 12px}
.cal-bar{gap:8px}
.cal-label{font-size:14px}
.cal-nav{order:1}
.cal-tools{order:2;width:100%;justify-content:space-between}
.cal-seg button{padding:5px 8px;font-size:11.5px}
.cal-scroll{max-height:calc(100dvh - 345px);min-height:360px}
.cal-hrow,
.cal-grid{grid-template-columns:44px repeat(var(--cols),minmax(0,1fr))}
.cal-mcell{min-height:70px;padding:3px 3px 4px}
.cal-mc{padding:1px 3px}
.cal-task-when{font-size:11px}
}
@keyframes bgspin{to{transform:rotate(360deg)}}
.warnc{color:var(--warn);font-weight:600}
.tiptip{position:fixed;z-index:10050;max-width:340px;background:var(--ink);color:#eef4fb;
  font-size:12.5px;line-height:1.45;font-weight:500;padding:9px 12px;border-radius:9px;
  box-shadow:0 8px 26px rgba(20,17,14,.34);pointer-events:none;opacity:0;
  transform:translateY(3px);transition:opacity .12s,transform .12s;white-space:normal}
.tiptip.show{opacity:1;transform:translateY(0)}
.tiptip::after{content:"";position:absolute;left:50%;margin-left:-5px;border:5px solid transparent;
  border-top-color:var(--ink);bottom:-10px}
.tiptip.below::after{bottom:auto;top:-10px;border-top-color:transparent;border-bottom-color:var(--ink)}
.tipwrap{display:inline-flex}
.droppill{display:flex;align-items:center;gap:9px;width:100%;border:1.5px dashed var(--line2);
  border-radius:999px;padding:9px 14px;cursor:pointer;background:var(--panel);
  font-size:13px;color:var(--muted);transition:border-color .15s,background .15s,color .15s}
.droppill:hover,
.droppill:focus-visible{border-color:var(--brand);color:var(--text);background:var(--hover-row);outline:none}
.droppill:focus-visible{box-shadow:var(--focus)}
.droppill.over{border-color:var(--brand);border-style:solid;background:rgba(182,159,100,.08);color:var(--text)}
.droppill.has{border-style:solid;border-color:var(--brand);color:var(--text);font-weight:600}
.droppill .dp-lbl{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.droppill .dp-ic{width:15px;height:15px;flex:0 0 auto;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") center/contain no-repeat}
.droppill .dp-clear{display:none;border:0;background:transparent;color:var(--muted);cursor:pointer;
  font-size:17px;line-height:1;padding:0 2px}
.droppill .dp-clear:hover{color:var(--bad)}
.droppill.has .dp-clear{display:block}
.btn.btn-push{background:#e08a1e;border-color:#c9781a;color:#fff;font-weight:700}
.btn.btn-push:hover:not(:disabled){background:#c9781a}
.btn.btn-push:disabled{opacity:.6;cursor:default}
@keyframes plnudge{
  0%,88%,100%{box-shadow:0 0 0 2px var(--panel),0 0 0 3.5px rgba(194,39,51,.45)}
  94%{box-shadow:0 0 0 2px var(--panel),0 0 0 7px rgba(194,39,51,.22)}}
@keyframes plspin{to{transform:rotate(360deg)}}
[data-wk="trigger"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>")}
[data-wk="send_email"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>")}
[data-wk="send_sms"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/><line x1='8' y1='9' x2='16' y2='9'/><line x1='8' y1='13' x2='13' y2='13'/></svg>")}
[data-wk="create_task"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 11 12 14 22 4'/><path d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/></svg>")}
[data-wk="notify"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/><path d='M13.73 21a2 2 0 0 1-3.46 0'/></svg>")}
[data-wk="change_status"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>")}
[data-wk="update_field"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/><path d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>")}
[data-wk="add_note"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='16' y1='13' x2='8' y2='13'/><line x1='16' y1='17' x2='8' y2='17'/></svg>")}
[data-wk="condition"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='18' cy='18' r='3'/><circle cx='6' cy='6' r='3'/><path d='M6 9v3a3 3 0 0 0 3 3h6a3 3 0 0 1 3 3'/><line x1='6' y1='9' x2='6' y2='21'/></svg>")}
[data-wk="wait"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>")}
[data-wk="wait_until"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='17' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><circle cx='12' cy='15' r='4'/><polyline points='12 13 12 15 14 16'/></svg>")}
[data-wk="webhook"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='2' y1='12' x2='22' y2='12'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>")}
[data-wk="stop"]{--nic:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86L7.86 2z'/><rect x='9' y='9' width='6' height='6' rx='1'/></svg>")}
.setwrap{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;align-items:start}
.setindex{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:14px 0 20px}
.setindex .setcard{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.setindex .setcard:hover{border-color:var(--accent,#0c8f6e);transform:translateY(-1px)}
.setindex .setcard b{font-size:13.5px}
.setindex .setcard .sub{font-size:12px;line-height:1.5}
.setindex .setback{display:inline-block;margin:2px 0 16px;font-size:12.5px;text-decoration:none}
.setindex .setback:hover{text-decoration:underline}
.setnav{position:sticky;top:18px;display:flex;flex-direction:column;gap:1px}
.setnav a{display:block;padding:7px 11px;border-radius:8px;font-size:12.5px;font-weight:600;color:var(--muted);text-decoration:none;border-left:2px solid transparent;transition:background .12s,color .12s,border-color .12s}
.setnav a:hover{background:var(--panel2);color:var(--text)}
.setnav a.on{background:var(--panel);color:var(--text);border-left-color:var(--brand);box-shadow:var(--shadow)}
.setbody{min-width:0}
.setsec{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:19px 20px;margin-bottom:16px;box-shadow:var(--shadow);scroll-margin-top:18px}
.setsec>h2{font-size:16px;font-weight:750;margin:0 0 2px;letter-spacing:-.02em}
.setlinks{display:flex;flex-wrap:wrap;gap:8px}
.pinrows{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 12px}
@media(max-width:860px){
.setwrap{grid-template-columns:1fr;gap:14px}
.setnav{position:static;flex-direction:row;flex-wrap:wrap;gap:6px}
.setnav a{border-left:0;border:1px solid var(--line2);padding:6px 10px}
.setnav a.on{border-color:var(--brand);color:var(--brand)}
}
.whoami{padding:10px 14px;margin:0 10px 6px;border-radius:10px;background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;gap:2px}
.whoami .who-name{font-size:12.5px;font-weight:700;color:#efe9df;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.whoami .who-role{font-family:var(--mono);font-size:9.5px;text-transform:uppercase;letter-spacing:.09em;color:var(--signal)}
.whoami button{align-self:flex-start;margin-top:5px;background:transparent;border:0;padding:0;
  color:#8fa8c4;font-size:11.5px;cursor:pointer;text-decoration:underline}
.whoami button:hover{color:#fff}
.badge.rl-franchise_admin{background:#e5f6ec;color:#1c9c5b}
.badge.rl-manager{background:#e9f2fd;color:#2a5f9e}
.badge.rl-sales{background:#fff6e5;color:#b5721a}
.badge.rl-staff{background:var(--panel2);color:var(--muted)}
.badge.rl-super{background:#efe9fd;color:#5b3fb0}
.badge.rl-invited{background:#fff6e5;color:#b5721a}
.badge.rl-disabled{background:#fdecec;color:var(--bad)}
