/* ================= PORTAL GBS (Central do Cliente + Admin) ================= */
  .pt{position:fixed; inset:0; z-index:1200; background:var(--bg); display:none; overflow-y:auto; color:var(--text);}
  .pt.is-open{display:block; animation:modalIn .3s var(--ease);}
  .pt *{box-sizing:border-box;}
  .pt button{font-family:inherit;}
  .pt-topbar{position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 22px; background:rgba(5,5,7,.85); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--glass-border-soft);}
  .pt-brand{display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px;}
  .pt-brand img{height:20px; width:auto; display:block;}
  .pt-brand small{font-weight:500; color:var(--text-faint); font-size:12.5px;}
  .pt-back{background:var(--glass-strong); border:1px solid var(--glass-border); color:var(--text); border-radius:100px; padding:8px 16px; font-size:13px; cursor:pointer;}
  .pt-back:hover{border-color:rgba(255,255,255,.28);}

  /* auth */
  .pt-auth{min-height:calc(100vh - 60px); display:flex; align-items:center; justify-content:center; padding:32px 20px;}
  .pt-card{background:var(--glass); border:1px solid var(--glass-border); border-radius:var(--r-lg); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); box-shadow:var(--shadow);}
  .pt-auth .pt-card{width:100%; max-width:430px; padding:38px 34px;}
  .pt-auth .pt-card.is-wide{max-width:580px;}
  .pt h1{font-size:25px; font-weight:600; letter-spacing:-.01em; margin:0 0 6px;}
  .pt h2{font-size:17px; font-weight:600; margin:0 0 14px;}
  .pt-lead{color:var(--text-dim); font-size:14.5px; margin:0 0 26px; max-width:620px;}
  .pt-form{display:flex; flex-direction:column; gap:15px;}
  .pt-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  @media(max-width:560px){.pt-row{grid-template-columns:1fr;}}
  .pt-label{display:block; font-size:12.5px; color:var(--text-dim); margin-bottom:6px;}
  .pt-input{width:100%; background:rgba(255,255,255,.03); border:1px solid var(--glass-border); border-radius:12px; padding:11px 13px; color:var(--text); font-family:inherit; font-size:14.5px; outline:none; transition:border-color .2s;}
  .pt-input:focus{border-color:rgba(76,232,160,.55);}
  textarea.pt-input{min-height:96px; resize:vertical;}
  select.pt-input{appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--text-dim) 50%),linear-gradient(135deg,var(--text-dim) 50%,transparent 50%); background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%; background-size:5px 5px; background-repeat:no-repeat; padding-right:34px;}
  select.pt-input option{background:#0d0f14;}
  .pt-check{display:flex; align-items:center; gap:9px; font-size:14px; color:var(--text-dim); cursor:pointer;}
  .pt-check input{accent-color:var(--teal); width:16px; height:16px;}
  .pt-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:100px; padding:11px 20px; font-size:14px; font-weight:600; cursor:pointer; border:1px solid transparent; transition:transform .2s var(--ease), border-color .2s;}
  .pt-btn:active{transform:scale(.98);}
  .pt-btn--primary{background:linear-gradient(135deg,#8CFFCE,#34D999); color:#06180F;}
  .pt-btn--ghost{background:var(--glass-strong); border-color:var(--glass-border); color:var(--text);}
  .pt-btn--ghost:hover{border-color:rgba(255,255,255,.28);}
  .pt-btn--danger{background:rgba(255,100,100,.08); border-color:rgba(255,100,100,.3); color:#ff9a9a;}
  .pt-btn--sm{padding:7px 13px; font-size:12.5px;}
  .pt-btn--block{width:100%;}
  .pt-link{background:none; border:none; padding:0; color:var(--teal); font-weight:500; cursor:pointer; font-size:13.5px;}
  .pt-muted{color:var(--text-faint); font-size:12.5px; line-height:1.5;}
  .pt-error{display:none; color:#ff9a9a; background:rgba(255,100,100,.07); border:1px solid rgba(255,100,100,.25); border-radius:12px; padding:10px 13px; font-size:13.5px;}
  .pt-error.is-visible{display:block;}
  .pt-auth-foot{display:flex; justify-content:space-between; gap:12px; margin-top:22px; font-size:13.5px; color:var(--text-dim); flex-wrap:wrap;}

  /* shell */
  .pt-shell{display:flex; min-height:calc(100vh - 60px);}
  .pt-side{width:250px; flex-shrink:0; border-right:1px solid var(--glass-border-soft); padding:22px 16px; display:flex; flex-direction:column; gap:3px; position:sticky; top:60px; height:calc(100vh - 60px); overflow-y:auto;}
  .pt-side__role{display:inline-block; width:fit-content; font-size:12px; border-radius:100px; padding:5px 12px; margin:0 8px 18px; border:1px solid var(--glass-border); color:var(--text-dim);}
  .pt-side__role.is-admin{color:var(--teal); border-color:rgba(76,232,160,.35); background:rgba(76,232,160,.07);}
  .pt-nav{display:flex; align-items:center; gap:11px; width:100%; text-align:left; background:none; border:1px solid transparent; color:var(--text-dim); font-size:14px; padding:10px 12px; border-radius:11px; cursor:pointer; transition:color .2s, background .2s;}
  .pt-nav svg{width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0;}
  .pt-nav:hover{color:var(--text);}
  .pt-nav.is-active{color:var(--teal); background:rgba(76,232,160,.08); border-color:rgba(76,232,160,.22);}
  .pt-nav__count{margin-left:auto; font-size:11.5px; color:var(--text-faint);}
  .pt-side__user{margin-top:auto; padding:16px 8px 0; border-top:1px solid var(--glass-border-soft); display:flex; flex-direction:column; gap:12px;}
  .pt-user{display:flex; align-items:center; gap:10px; min-width:0;}
  .pt-avatar{width:36px; height:36px; border-radius:50%; flex-shrink:0; background:rgba(76,232,160,.1); border:1px solid rgba(76,232,160,.3); color:var(--teal); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px;}
  .pt-user p{margin:0; font-size:13.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .pt-user span{display:block; font-size:12px; color:var(--text-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .pt-main{flex:1; min-width:0; padding:36px 40px 60px;}
  .pt-head{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:24px;}
  .pt-head .pt-lead{margin:0;}
  @media(max-width:860px){
    .pt-shell{flex-direction:column;}
    .pt-side{width:100%; height:auto; position:static; flex-direction:row; flex-wrap:nowrap; overflow-x:auto; padding:10px 12px; border-right:none; border-bottom:1px solid var(--glass-border-soft); gap:6px;}
    .pt-side__role, .pt-side__user .pt-user{display:none;}
    .pt-nav{width:auto; white-space:nowrap; padding:8px 12px;}
    .pt-nav__count{display:none;}
    .pt-side__user{margin:0 0 0 auto; padding:0; border:none; flex-direction:row;}
    .pt-main{padding:26px 18px 50px;}
  }

  /* blocks */
  .pt-grid{display:grid; gap:14px;}
  .pt-g4{grid-template-columns:repeat(4,1fr);} .pt-g3{grid-template-columns:repeat(3,1fr);} .pt-g2{grid-template-columns:repeat(2,1fr);}
  @media(max-width:1000px){.pt-g4{grid-template-columns:repeat(2,1fr);} .pt-g3{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:560px){.pt-g4,.pt-g3,.pt-g2{grid-template-columns:1fr;}}
  .pt-stat{padding:20px;}
  .pt-stat b{display:block; font-size:30px; font-weight:600; letter-spacing:-.02em; line-height:1.1;}
  .pt-stat span{display:block; font-size:12.5px; color:var(--text-dim); margin-top:8px;}
  .pt-section{margin-top:34px;}
  .pt-panel{padding:22px;}
  .pt-chip{display:inline-block; font-size:12px; border-radius:100px; padding:4px 11px; background:var(--glass-strong); border:1px solid var(--glass-border); color:var(--text);}
  .pt-chip.is-teal{color:var(--teal); border-color:rgba(76,232,160,.3); background:rgba(76,232,160,.07);}
  .pt-chip.is-red{color:#ff9a9a; border-color:rgba(255,100,100,.28); background:rgba(255,100,100,.06);}
  .pt-chips{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 22px;}
  .pt-chips button{cursor:pointer; font-family:inherit;}
  .pt-chips button.is-active{background:var(--teal); color:#06180F; border-color:var(--teal); font-weight:600;}

  .pt-item{overflow:hidden; display:flex; flex-direction:column; cursor:pointer; text-align:left; color:var(--text); padding:0; font:inherit; transition:transform .3s var(--ease), border-color .3s;}
  .pt-item:hover{transform:translateY(-3px); border-color:rgba(76,232,160,.35);}
  .pt-item__cover{height:96px; position:relative; display:flex; align-items:flex-end; padding:12px 14px; background:linear-gradient(135deg, rgba(76,232,160,.14), rgba(255,255,255,.015)); border-bottom:1px solid var(--glass-border-soft);}
  .pt-item__cover svg{width:26px; height:26px; stroke:var(--teal); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;}
  .pt-item__type{position:absolute; top:10px; right:10px; font-size:11px; color:var(--text-dim); background:rgba(0,0,0,.45); border:1px solid var(--glass-border); border-radius:100px; padding:3px 9px;}
  .pt-item__body{padding:14px;}
  .pt-item__body p{margin:8px 0 0; font-size:14.5px; font-weight:500; line-height:1.35;}
  .pt-notice{padding:16px 18px; display:flex; gap:14px; align-items:flex-start;}
  .pt-notice + .pt-notice{margin-top:10px;}
  .pt-notice__dot{width:8px; height:8px; border-radius:50%; background:var(--teal); margin-top:7px; flex-shrink:0; box-shadow:0 0 12px var(--teal-glow);}
  .pt-notice h3{font-size:14.5px; margin:0 0 4px;}
  .pt-notice p{margin:0; font-size:13.5px; color:var(--text-dim); line-height:1.55;}
  .pt-notice small{display:block; margin-top:6px; color:var(--text-faint); font-size:12px;}
  .pt-empty{padding:34px 20px; text-align:center; color:var(--text-dim); font-size:14px;}

  /* table */
  .pt-table-wrap{overflow-x:auto;}
  .pt-table{width:100%; border-collapse:collapse; font-size:13.5px;}
  .pt-table th{text-align:left; color:var(--text-faint); font-size:12px; font-weight:500; padding:13px 14px; border-bottom:1px solid var(--glass-border); white-space:nowrap;}
  .pt-table td{padding:12px 14px; border-bottom:1px solid var(--glass-border-soft); vertical-align:middle; max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .pt-table tr:last-child td{border-bottom:none;}
  .pt-table tbody tr:hover td{background:rgba(255,255,255,.018);}
  .pt-table td.pt-actions{text-align:right; white-space:nowrap; overflow:visible; position:sticky; right:0; background:#0f1012;}
  .pt-table th.pt-actions-h{position:sticky; right:0; background:#0f1012;}
  .pt-icon-btn{background:none; border:1px solid var(--glass-border); color:var(--text-dim); border-radius:9px; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; margin-left:4px;}
  .pt-icon-btn:hover{color:var(--text); border-color:rgba(255,255,255,.28);}
  .pt-icon-btn.is-danger:hover{color:#ff9a9a; border-color:rgba(255,100,100,.4);}
  .pt-icon-btn svg{width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}

  /* base de dados */
  .pt-db-tabs{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px;}
  .pt-db-tab{background:var(--glass); border:1px solid var(--glass-border); color:var(--text-dim); border-radius:12px; padding:10px 14px; font-size:13.5px; cursor:pointer; display:flex; gap:10px; align-items:center;}
  .pt-db-tab b{font-weight:600; color:var(--text); font-size:12px; background:var(--glass-strong); border-radius:100px; padding:1px 8px;}
  .pt-db-tab.is-active{color:var(--teal); border-color:rgba(76,232,160,.35); background:rgba(76,232,160,.07);}
  .pt-toolbar{display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding:14px; border-bottom:1px solid var(--glass-border-soft);}
  .pt-toolbar .pt-input{max-width:300px; padding:9px 12px; font-size:13.5px;}
  .pt-toolbar__spacer{flex:1;}
  .pt-db-meta{display:flex; gap:18px; flex-wrap:wrap; margin-top:14px; font-size:12.5px; color:var(--text-faint);}

  /* dialog + toast */
  .pt-dialog{position:fixed; inset:0; z-index:1300; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(4,6,10,.65); backdrop-filter:blur(6px);}
  .pt-dialog.is-open{display:flex;}
  .pt-dialog__panel.pt-card{background:#0e0f12;}
  .pt-dialog__panel{width:100%; max-width:560px; max-height:88vh; overflow-y:auto; animation:modalIn .25s var(--ease);}
  .pt-dialog__head{display:flex; justify-content:space-between; align-items:center; padding:18px 22px; border-bottom:1px solid var(--glass-border-soft);}
  .pt-dialog__head h3{font-size:16px; margin:0;}
  .pt-dialog__body{padding:20px 22px;}
  .pt-dialog__foot{display:flex; justify-content:flex-end; gap:10px; padding:0 22px 22px;}
  .pt-toast{position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px); z-index:1400; opacity:0; pointer-events:none; background:#0f1a15; border:1px solid rgba(76,232,160,.4); color:var(--text); border-radius:100px; padding:11px 20px; font-size:14px; transition:opacity .25s, transform .25s var(--ease);}
  .pt-toast.is-visible{opacity:1; transform:translateX(-50%) translateY(0);}
  .pt :focus-visible{outline:2px solid var(--teal); outline-offset:2px;}
  body.pt-lock{overflow:hidden;}
  .pt-brand, .pt-back{white-space:nowrap;}
  @media(max-width:560px){.pt-brand small{display:none;} .pt-topbar{padding:12px 16px;}}
  @media (prefers-reduced-motion:reduce){.pt, .pt *{animation:none !important; transition:none !important;}}
