:root{--maroon:#600700;--cream:#EFD090;--bg:#f6f3f2;--card:#fff;--ink:#1e1d20;--muted:#746e72;--line:#e7dfe2;--soft:#f2edef;--green:#267657;--red:#9a3027;--shadow:0 12px 34px rgba(56,32,40,.075);--sidebar:248px;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);padding:20px 15px;z-index:30;display:flex;flex-direction:column;overflow:auto}.brand{display:block;padding:4px 10px 20px}.brand img{width:130px;max-height:52px;object-fit:contain;object-position:left}.brand span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.nav-label{color:#aaa1a0;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;padding:15px 10px 6px}.nav-item{min-height:43px;padding:0 11px;border-radius:12px;display:flex;align-items:center;gap:11px;color:#4c4748;font-size:13px;font-weight:750}.nav-item:hover{background:#f5f1ef;color:var(--maroon)}.nav-item.active{background:var(--maroon);color:#fff}.nav-icon{width:20px;text-align:center}.account-box{margin-top:auto;background:#faf8f7;border:1px solid #ece5e2;border-radius:14px;padding:13px}.account-box strong,.account-box span{display:block}.account-box span{font-size:11px;color:var(--muted);margin:3px 0 10px}.account-box a{font-size:11px;font-weight:800;color:var(--maroon)}.main{margin-left:var(--sidebar);min-height:100vh}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);box-shadow:none;display:flex;align-items:center;gap:12px;padding:0 28px 0 28px;position:sticky;top:0;z-index:20;backdrop-filter:none}.topbar-spacer{flex:1}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn,.avatar{width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;display:grid;place-items:center;box-shadow:none}.icon-btn{color:#4c4748;border:1px solid #ece5e2;border-radius:11px;transition:background .15s,border-color .15s,color .15s}.icon-btn:hover{background:#faf6f4;border-color:#ddcfca;color:var(--maroon)}.icon-btn:active{transform:translateY(1px)}.avatar{background:var(--maroon);color:#fff;font-size:11px;font-weight:900}.notify-btn{position:relative;width:42px;height:42px;border-radius:12px;color:#4c4748;background:#fff;border:1px solid #ece5e2}.notify-btn .notify-icon{width:20px;height:20px;display:block}.notify-badge{position:absolute;right:-4px;top:-4px;background:var(--cream);color:var(--maroon);border-radius:99px;padding:2px 6px;font-size:10px;font-weight:900;min-width:18px;line-height:1;text-align:center;border:2px solid #fff}.tp-profile-pill{display:inline-flex;align-items:center;gap:10px;height:48px;padding:4px 12px 4px 4px;border-radius:16px;background:#fff;border:1px solid #ece5e2;box-shadow:none;white-space:nowrap;transition:border-color .15s,background .15s}.tp-profile-pill:hover{background:#faf6f4;border-color:#ddcfca}.tp-profile-pill .tp-avatar-ico{width:40px;height:40px;border-radius:12px;background:var(--maroon);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900;overflow:hidden;flex:0 0 40px}.tp-profile-pill .tp-avatar-ico img{width:40px;height:40px;display:block;object-fit:cover}.tp-profile-pill .tp-meta{display:grid;line-height:1.05;min-width:0}.tp-profile-pill .tp-name{font-size:12.5px;font-weight:850;color:#1e1d20;letter-spacing:.005em;overflow:hidden;text-overflow:ellipsis}.tp-profile-pill .tp-role{margin-top:3px;font-size:9.5px;font-weight:850;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}.page-title{display:none!important}.menu-btn{display:none}.content{padding:26px;max-width:1480px;margin:auto}.hero{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px 22px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center}.hero h2{margin:0;font-size:20px}.hero p{color:var(--muted);font-size:12px;margin:6px 0 0}.grid{display:grid;gap:14px}.stats{grid-template-columns:repeat(4,1fr);margin-bottom:18px}.stat-card,.card,.project-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.stat-card{padding:18px}.stat-card span,.stat-card small{display:block;color:var(--muted);font-size:11px}.stat-card strong{display:block;font-size:28px;margin:8px 0 3px}.card{padding:18px;margin-bottom:16px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.card-head h3{font-size:16px;margin:0}.card-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{padding:17px}.project-card h3{font-size:15px;margin:7px 0 5px}.project-card p,.code{font-size:11px;color:var(--muted)}.project-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.project-card dt{font-size:9px;color:var(--muted)}.project-card dd{font-size:11px;margin:3px 0 0}.status{display:inline-block;border-radius:99px;padding:5px 9px;background:var(--soft);font-size:10px;font-weight:800}.status.success{background:#e5f4ee;color:var(--green)}.status.danger{background:#f8e7e5;color:var(--red)}.status.info{background:#eee9f7;color:#59487d}.btn{min-height:40px;border:0;border-radius:11px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:850}.btn.primary{background:var(--maroon);color:#fff}.btn.soft{background:var(--soft);color:var(--maroon)}.btn.cream{background:var(--cream);color:var(--maroon)}.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field label{display:block;font-size:11px;font-weight:800;margin-bottom:6px}.field input,.field select,.field textarea,.search{width:100%;border:1px solid var(--line);background:#fff;border-radius:11px;min-height:43px;padding:10px 12px}.field.full{grid-column:1/-1}.field textarea{min-height:100px;resize:vertical}.stack-list{display:grid;gap:9px}.list-row{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:13px}.list-row strong,.list-row span{font-size:12px}.list-row small{display:block;color:var(--muted);margin-top:4px}.flash{padding:12px 15px;border-radius:11px;margin-bottom:15px}.flash.success{background:#e5f4ee;color:var(--green)}.flash.error{background:#f8e7e5;color:var(--red)}.empty-state{text-align:center;padding:35px;color:var(--muted)}.timeline{border-left:2px solid var(--line);padding-left:18px}.auth-page{display:grid;place-items:center;padding:28px 22px;background:linear-gradient(180deg,#f6f1ee 0%,#efe7e3 100%);min-height:100vh}.auth-card{width:min(430px,100%);background:#fff;border:1px solid #e6dad6;border-radius:20px;padding:30px 28px;box-shadow:none;position:relative}.auth-brand{display:grid;justify-items:flex-start;gap:14px;margin-bottom:10px}.auth-brand img{width:152px;max-height:56px;object-fit:contain;object-position:left}.auth-brand h1{margin:2px 0 0;font-size:18px;color:#3b121a;font-weight:900;line-height:1.2;letter-spacing:.01em;display:contents}.auth-brand h1 small{display:block;font-size:12px;color:#86655e;font-weight:700;margin-top:5px;letter-spacing:0}.auth-subtitle{margin:12px 0 18px;color:#8a6b65;font-size:12px;font-weight:700}.auth-form{margin:0}.auth-card .field{margin:0 0 13px}.auth-card .field label{margin-bottom:7px;font-size:11px;font-weight:800;color:#5a383f;letter-spacing:.02em}.auth-card .field input{min-height:44px;border:1px solid #e5d9d4;border-radius:13px;background:#fdfaf9;color:#3b121a;font-size:13px;font-weight:700;padding:11px 13px}.auth-card .field input:hover{border-color:#d7c2bc}.auth-card .field input:focus{border-color:#600700;box-shadow:0 0 0 3px rgba(96,7,0,.1);outline:0;background:#fff}.auth-card .field input::placeholder{color:#b89f99;font-weight:700}.auth-submit{min-height:46px;border-radius:13px;font-size:12px;letter-spacing:.02em;background:0;box-shadow:0 8px 22px rgba(96,7,0,.18);width:100%}.auth-forgot{margin-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px}.auth-forgot span{color:#7c5c55;font-weight:750}.auth-forgot a{color:#600700;font-weight:850;text-decoration:none}.auth-forgot a:hover{text-decoration:underline;text-underline-offset:3px}.auth-footer{margin:22px 0 0;color:#9c8580;font-size:9px;font-weight:750;text-align:center}.overlay{display:none}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:12px}@media(max-width:1100px){.project-grid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:920px){.sidebar{transform:translateX(-102%);transition:.22s}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.menu-btn{display:grid}.overlay.show{display:block;position:fixed;inset:0;background:#241a1db0;z-index:25}.content{padding:18px}}@media(max-width:720px){.topbar{height:64px;padding:0 14px;gap:8px}.top-actions{gap:8px}.tp-profile-pill{height:44px;padding:3px 10px 3px 3px}.tp-profile-pill .tp-avatar-ico{width:36px;height:36px;flex:0 0 36px;border-radius:10px}.tp-profile-pill .tp-avatar-ico img{width:36px;height:36px}.tp-profile-pill .tp-name{font-size:12px}.tp-profile-pill .tp-role{display:none}.notify-btn{width:40px;height:40px}.page-title p{display:none}.content{padding:14px}.hero{padding:16px}.stats,.project-grid,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.list-row{grid-template-columns:1fr 1fr}.list-row>:first-child{grid-column:1/-1}.data-table,.data-table tbody,.data-table tr,.data-table td{display:block}.data-table thead{display:none}.data-table tr{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:10px}.data-table td{border:0;padding:5px}.table-wrap{overflow:visible}.toolbar .btn{flex:1}.project-card dl{grid-template-columns:1fr 1fr}}.quick-login{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.quick-login-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.quick-login-heading span{font-size:12px;font-weight:850;color:var(--ink)}.quick-login-heading small{font-size:9px;color:var(--muted)}.quick-login-grid{display:grid;gap:8px}.quick-login-grid form{margin:0}.quick-login-btn{width:100%;min-height:54px;padding:8px 11px;border:1px solid var(--line);border-radius:12px;background:#faf8f7;color:var(--ink);display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;text-align:left;transition:.16s}.quick-login-btn:hover{border-color:#d7c5c0;background:#f5f1ef;transform:translateY(-1px)}.quick-login-btn:focus-visible{outline:3px solid rgba(96,7,0,.14);outline-offset:2px}.quick-role-icon{width:34px;height:34px;border-radius:10px;background:var(--maroon);color:var(--cream);display:grid;place-items:center;font-size:11px;font-weight:900}.quick-login-btn strong,.quick-login-btn small{display:block}.quick-login-btn strong{font-size:12px}.quick-login-btn small{margin-top:3px;color:var(--muted);font-size:9px}.quick-login-btn b{color:var(--maroon);font-size:16px}.quick-login-unavailable{opacity:.52;filter:saturate(.4);cursor:not-allowed;grid-template-columns:34px 1fr auto}.quick-login-unavailable .quick-dot{color:#a38780;font-size:18px;font-weight:900;justify-self:end}.quick-role-icon-muted{background:#e1d5d1;color:#a38780}.quick-login-note{margin:11px 0 0!important;color:var(--muted);font-size:9px!important;line-height:1.45}.quick-login-note code{font-size:9px}@media(max-width:430px){.auth-card{padding:22px}.quick-login-heading{align-items:flex-start;flex-direction:column;gap:3px}}@media(max-width:380px){.auth-page{padding:18px 14px}.auth-card{padding:20px 18px;border-radius:18px}.auth-card .field input{min-height:44px}.auth-submit{min-height:46px}.quick-login-btn{min-height:54px}}/* V4 sidebar icon and spacing refinement */
.sidebar .brand{padding:3px 10px 22px}.sidebar .brand img{width:142px;max-height:58px}.sidebar .brand span{margin-top:5px;font-size:9px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.sidebar-nav{display:block}.sidebar .nav-label{padding:17px 11px 7px;font-size:9px;letter-spacing:.15em}.sidebar .nav-item{min-height:46px;padding:0 12px;border-radius:13px;gap:13px;font-size:13px;font-weight:750}.sidebar .nav-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px}.sidebar .nav-icon svg{display:block;width:20px;height:20px;stroke-linecap:round;stroke-linejoin:round}.sidebar .nav-text{min-width:0}.sidebar .account-box{padding:14px;border-radius:15px}.sidebar .account-box strong{font-size:12px}.sidebar .account-box span{font-size:10px;margin:4px 0 11px}.sidebar .account-box a{min-height:35px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:850}
.sb-account .sb-profile{margin-bottom:7px;background:#f2edef;color:#600700}.sb-account .sb-profile:hover{background:#e9dfda}.sb-account .sb-logout{background:#fff;border:1px solid #eadfdc;color:#7a564f}.sb-account .sb-logout:hover{background:#faeae7;color:#8c1204}/* V5 shared workspace design system */
:root{
  --cream:#f3e6cf;
  --bg:#f7f4ef;
  --card:#fff;
  --surface:#fff;
  --ink:#241f20;
  --muted:#756d6c;
  --line:#e7ded8;
  --soft:#f4efec;
  --green:#267657;
  --red:#9a3027;
  --shadow:none;
  --content-max:1480px;
  --content-gutter:28px;
  --radius-sm:12px;
  --radius-md:16px;
  --control-height:42px;
}
html,body{background:var(--bg)}
.main{min-width:0}
.topbar{height:68px;padding:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:none}
.topbar-inner{width:100%;height:100%;max-width:var(--content-max);margin:0 auto;padding:0 var(--content-gutter);display:flex;align-items:center;gap:12px}
.content{width:100%;max-width:var(--content-max);margin:0 auto;padding:28px var(--content-gutter) 40px}
.top-actions{min-width:0}
.tp-profile-pill{height:42px;border-radius:12px;padding:3px 10px 3px 3px}
.tp-profile-pill .tp-avatar-ico,.tp-profile-pill .tp-avatar-ico img{width:34px;height:34px}
.tp-profile-pill .tp-avatar-ico{flex-basis:34px;border-radius:10px}
.notify-btn{width:40px;height:40px;border-radius:11px}
.hero,.stat-card,.card,.project-card{border-color:var(--line);box-shadow:none}
.hero{border-radius:18px;padding:20px 22px}
.stat-card,.card,.project-card{border-radius:16px}
.stat-card{padding:18px}
.btn{min-height:var(--control-height);border-radius:11px}
.field input,.field select,.field textarea,.search{min-height:44px;border-color:var(--line);border-radius:11px}
.list-row{border-color:var(--line);border-radius:12px;background:#fff}
.auth-page{background:var(--bg)}
.auth-submit{box-shadow:none}
.project-card dl{gap:10px}
.project-card dd{min-width:0}
@media(max-width:920px){
  :root{--content-gutter:18px}
  .topbar{padding:0}
  .content{padding:22px var(--content-gutter) 34px}
}
@media(max-width:720px){
  :root{--content-gutter:14px}
  .topbar{height:64px;padding:0}
  .topbar-inner{gap:8px}
  .content{padding:16px var(--content-gutter) 30px}
  .hero{align-items:stretch;flex-direction:column;gap:14px;padding:16px}
  .hero .toolbar{margin:0}
  .card-head{align-items:flex-start;gap:10px}
  .list-row{min-width:0}
}
@media(max-width:430px){
  .tp-profile-pill{width:40px;padding:3px}
  .tp-profile-pill .tp-meta{display:none}
  .top-actions{gap:7px}
  .toolbar{display:grid;grid-template-columns:1fr}
  .toolbar .btn,.toolbar form,.toolbar form .btn{width:100%}
  .project-card dl{grid-template-columns:1fr}
}
/* V6 stable avatar and unified icon controls */
.ui-icon{display:block;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ui-icon-whatsapp{fill:currentColor!important;stroke:none!important}
.ui-icon[data-brand="whatsapp"]{fill:currentColor!important;stroke:none!important;stroke-width:0!important}
.tm-contact-wa .ui-icon,.crm-wa .ui-icon{fill:currentColor!important;stroke:none!important;stroke-width:0!important}
.nav-icon .ui-icon{width:20px;height:20px}
.icon-btn{
  width:41px;
  height:41px;
  min-width:41px;
  min-height:41px;
  flex:0 0 41px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:11.5px;
  background:#fff;
  color:#554c4b;
  box-shadow:none;
  line-height:1;
}
.icon-btn svg{width:18px;height:18px;flex:0 0 18px;max-width:18px;max-height:18px;display:block;pointer-events:none}
.icon-btn:hover{transform:none;box-shadow:none}
.icon-btn-neutral{background:#fff;color:#554c4b}
.icon-btn-brand{background:#f6eeee;color:var(--maroon);border-color:#ead9d5}
.icon-btn-success{background:#eef8f3;color:var(--green);border-color:#d7eadf}
.icon-btn-danger{background:#fff4f2;color:var(--red);border-color:#efd8d3}
.topbar{height:68px}
.tp-profile-pill{height:48px;padding:4px 10px 4px 4px}
.tp-profile-pill .tp-avatar-ico,.tp-profile-pill .tp-avatar-ico img{
  width:40px;
  height:40px;
  min-width:40px;
  aspect-ratio:1;
}
.tp-profile-pill .tp-avatar-ico{flex:0 0 40px}
.tp-profile-pill .tp-avatar-ico img,.ti-avatar img{
  display:block;
  max-width:none;
  object-fit:cover;
  object-position:center;
  overflow:hidden;
  opacity:1;
  animation:none;
  transition:none;
}
.ti-avatar{aspect-ratio:1;overflow:hidden;contain:layout paint}
.sidebar .sb-account{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px!important;
  width:100%;
  padding:12px!important;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px!important;
  background:rgba(255,255,255,.07);
  box-shadow:none;
  overflow:hidden;
}
.sidebar .sb-identity{display:grid;gap:2px;min-width:0}
.sidebar .sb-identity .ti{display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;width:100%}
.sidebar .sb-identity .ti-avatar{grid-row:1/3;width:40px!important;height:40px!important;min-width:40px!important}
.sidebar .sb-identity .ti-meta{align-self:center}
.sidebar .sb-identity .ti-name{color:#fff;font-size:12px}
.sidebar .sb-role{margin-left:49px;color:rgba(255,255,255,.64)!important;font-size:9px!important;font-weight:800;letter-spacing:.07em;text-transform:uppercase;line-height:1.25}
.sidebar .sb-actions{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;min-width:0}
.sidebar .sb-account .sb-actions .sb-account-btn{
  width:100%;
  min-width:0;
  height:36px;
  min-height:36px;
  padding:0 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  box-shadow:none;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}
.sidebar .sb-account .sb-actions .sb-account-btn .ui-icon{width:15px;height:15px;flex-basis:15px}
.sidebar .sb-account .sb-actions .sb-profile{margin:0;padding:0;background:#fff;color:var(--maroon)}
.sidebar .sb-account .sb-actions .sb-profile .ui-icon{width:18px;height:18px;flex-basis:18px}
.sidebar .sb-account .sb-actions .sb-logout{justify-self:stretch;background:transparent;color:#fff}
@media(max-width:720px){
  .topbar{height:68px}
  .icon-btn{width:41px;height:41px;min-width:41px;min-height:41px;flex-basis:41px}
  .tp-profile-pill{width:48px;height:48px;padding:4px}
  .tp-profile-pill .tp-avatar-ico,.tp-profile-pill .tp-avatar-ico img{width:40px;height:40px;min-width:40px}
}
@media(max-width:390px){
  .sidebar .sb-account{padding:10px!important}
  .sidebar .sb-account .sb-actions .sb-account-btn{padding-inline:6px}
}
