*{margin:0;padding:0;box-sizing:border-box}
    html{zoom:0.9}
    body{font-family:'Inter',sans-serif;min-height:calc(100vh / 0.9);background:radial-gradient(1100px 520px at 88% -8%,#E4F3F5 0%,rgba(228,243,245,0) 64%),#F1F5F9;color:#141B2B;display:flex;flex-direction:column}
    body.hub-modal-open{overflow:hidden}
    button{font:inherit}

    .hub-top{height:54px;background:rgba(241,245,249,.88);backdrop-filter:blur(8px);border-bottom:1px solid #E8EDF3;display:flex;align-items:center;justify-content:space-between;padding:0 24px;flex-shrink:0;z-index:20}
    .hub-brand{display:flex;align-items:center;gap:10px}
    .hub-brand img{width:34px;height:34px;object-fit:contain}
    .hub-brand strong{display:block;font-size:14px;color:#141B2B;font-weight:500}
    .hub-brand small{display:block;font-size:10.5px;color:#777587;font-weight:400;margin-top:1px}
    .hub-user{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 6px;border-radius:9px;border:1px solid transparent}
    .hub-top-right{display:flex;align-items:center;gap:6px}
    .hub-public{display:inline-flex;align-items:center;gap:6px;border:1px solid #E8EDF3;background:#fff;border-radius:8px;padding:6px 10px;font-size:11px;font-weight:500;color:#464555;text-decoration:none;transition:border-color .15s,color .15s}
    .hub-public:hover{border-color:#103B5F;color:#103B5F}
    .hub-public svg{width:14px;height:14px}
    @media(max-width:760px){.hub-public span{display:none}}
    .hub-user:hover{background:#EFF6FB;border-color:#E8EDF3}
    .hub-avatar{width:30px;height:30px;border-radius:50%;background:#E7EFF6;color:#103B5F;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;overflow:hidden}
    .hub-avatar img{width:100%;height:100%;object-fit:cover}
    .hub-user-info strong{display:block;font-size:11.5px;color:#141B2B;font-weight:500}
    .hub-user-info small{display:block;font-size:9.5px;color:#777587}
    .hub-logout{border:1px solid #E8EDF3;background:#fff;border-radius:8px;padding:7px 14px;font:inherit;font-size:12.5px;font-weight:500;color:#464555;cursor:pointer;display:flex;align-items:center;gap:6px}
    .hub-logout:hover{background:#fff;color:#103B5F;border-color:#103B5F}
    .hub-logout svg{width:15px;height:15px}
    .hub-session{position:absolute;top:8px;right:24px;z-index:10;display:flex;justify-content:flex-end}

    .hub-main{width:100%;max-width:1340px;margin:0 auto;padding:18px 24px 8px;flex:1;display:flex;flex-direction:column;position:relative}
    .hub-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:17px;flex-wrap:wrap;padding-right:96px}
    .hub-eyebrow{font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#16A2AD;margin-bottom:7px}
    .hub-title-row h1{font-size:29px;font-weight:600;letter-spacing:-.035em;line-height:1.05}
    .hub-title-row p{font-size:12.5px;color:#777587;margin-top:6px;line-height:1.55;max-width:72ch}

    /* ===== Bento do hub ===== */
    .hub-bento{display:grid;grid-template-columns:1.22fr 1fr 1fr;column-gap:38px;row-gap:12px;align-items:stretch}
    .hub-col{display:flex;flex-direction:column;gap:12px;min-width:0}
    .hub-col-head{display:flex;align-items:center;justify-content:space-between;gap:8px;height:18px;padding:0 2px}
    .hub-col-head>span{font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#64748B}
    .hub-col-head>small{font-size:9px;color:#94A3B8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .hb-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
    .hb-bottom{display:grid;grid-template-columns:1.35fr .9fr;gap:12px;min-width:0}
    .hb-mini-stack{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-height:0}

    .hb-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:9px;background:#fff;border:1px solid #E8EDF3;border-radius:16px;padding:17px 18px;text-align:left;font:inherit;color:#141B2B;cursor:pointer;overflow:hidden;min-width:0;transition:transform .16s,box-shadow .16s,border-color .16s,opacity .16s}
    .hb-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(16,59,95,.11);border-color:#B9D3E5}
    .hb-card:focus-visible{outline:2px solid #16A2AD;outline-offset:2px}
    .hb-card:disabled{cursor:not-allowed;transform:none;box-shadow:none;filter:grayscale(.92);opacity:.56}
    .hb-card:disabled:hover{transform:none;box-shadow:none;border-color:#E8EDF3}
    .hb-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;width:100%}
    .hb-ico{width:38px;height:38px;border-radius:11px;background:#E7EFF6;color:#103B5F;display:flex;align-items:center;justify-content:center;flex-shrink:0}
    .hb-ico svg{width:18px;height:18px}
    .hb-arrow{width:26px;height:26px;border-radius:50%;background:rgba(16,59,95,.05);color:#64748B;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,color .15s,transform .15s}
    .hb-arrow svg{width:13px;height:13px}
    .hb-card:hover .hb-arrow{background:rgba(22,162,173,.12);color:#0F766E;transform:translate(1px,-1px)}
    .hb-body{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;margin-top:2px}
    .hb-eyebrow{font-size:8.5px;font-weight:700;letter-spacing:.095em;text-transform:uppercase;color:#94A3B8;line-height:1.3}
    .hb-title{font-size:15px;font-weight:600;letter-spacing:-.015em;line-height:1.2;color:#141B2B}
    .hb-desc{font-size:10.5px;line-height:1.48;color:#777587;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .hb-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;width:100%;margin-top:auto;min-width:0}
    .hb-tags{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
    .hb-tag{font-size:8px;font-weight:500;line-height:1.2;padding:3px 7px;border-radius:999px;background:rgba(16,59,95,.055);color:#475569;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}
    .hb-status{font-size:8px;font-weight:700;letter-spacing:.055em;text-transform:uppercase;padding:4px 7px;border-radius:999px;background:rgba(16,59,95,.06);color:#64748B;white-space:nowrap}
    .hb-status.locked{background:#F1F5F9;color:#94A3B8}
    .hb-watermark{position:absolute;right:-10px;bottom:-16px;color:#103B5F;opacity:.055;pointer-events:none;display:flex}
    .hb-watermark svg{width:124px;height:124px;stroke-width:1.2}

    .hb-square{min-height:144px}
    .hb-wide{min-height:144px;flex-direction:row;align-items:center;gap:13px}
    .hb-wide .hb-body{flex:1;margin-top:0}
    .hb-wide .hb-desc{-webkit-line-clamp:2}
    .hb-wide .hb-arrow{margin-left:auto}

    /* Visão geral */
    .hb-overview{min-height:150px;background:linear-gradient(140deg,#0A2944 0%,#103B5F 58%,#14607B 100%);border-color:transparent;box-shadow:0 14px 32px rgba(11,43,71,.19)}
    .hb-overview::after{content:'';position:absolute;right:-48px;top:-58px;width:196px;height:196px;border:1px solid rgba(255,255,255,.10);border-radius:50%;pointer-events:none}
    .hb-overview .hb-ico{background:rgba(255,255,255,.12);color:#9DEBF0}
    .hb-overview .hb-arrow{background:rgba(255,255,255,.12);color:#fff}
    .hb-overview:hover{border-color:transparent;box-shadow:0 20px 40px rgba(11,43,71,.25)}
    .hb-overview:hover .hb-arrow{background:rgba(255,255,255,.2);color:#fff}
    .hb-overview .hb-eyebrow{color:rgba(255,255,255,.56)}
    .hb-overview .hb-title{font-size:22px;color:#fff;letter-spacing:-.03em}
    .hb-overview .hb-desc{color:rgba(255,255,255,.76);font-size:11px;-webkit-line-clamp:2;max-width:92%}
    .hb-overview .hb-tag{background:rgba(255,255,255,.10);color:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.08)}
    .hb-overview .hb-status{background:rgba(255,255,255,.14);color:#E6FFFB}
    .hb-overview .hb-watermark{color:#fff;opacity:.07}

    /* Escalas */
    .hb-escalas{min-height:150px;background:linear-gradient(135deg,#FBFFFD 0%,#E8FAF3 100%);border-color:#D2F0E5}
    .hb-escalas .hb-ico{background:#D1FAE5;color:#059669}
    .hb-escalas .hb-eyebrow{color:#0F766E}
    .hb-escalas .hb-title{font-size:21px;letter-spacing:-.025em}
    .hb-escalas .hb-desc{color:#52706A}
    .hb-escalas .hb-tag{background:rgba(5,150,105,.09);color:#047857}
    .hb-escalas .hb-status{background:rgba(5,150,105,.10);color:#047857}
    .hb-escalas .hb-watermark{color:#059669;opacity:.06}

    /* Pessoas & agenda */
    .hb-pessoas .hb-ico{background:#E2F4F6;color:#0F766E}
    .hb-pessoas .hb-tag{background:rgba(22,162,173,.09);color:#0F766E}
    .hb-agenda .hb-ico{background:#FEF3C7;color:#B45309}
    .hb-agenda .hb-tag{background:rgba(217,119,6,.09);color:#B45309}
    .hb-avisos{background:linear-gradient(140deg,#FFFFFF 0%,#F4F8FF 100%);border-color:#DDE8F8}
    .hb-avisos .hb-ico{background:#DBEAFE;color:#2563EB}
    .hb-avisos .hb-tag{background:rgba(37,99,235,.08);color:#1D4ED8}
    .hb-avisos .hb-title{font-size:17px}

    /* Atalhos compactos */
    .hb-mini{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #E8EDF3;border-radius:13px;padding:10px 11px;text-decoration:none;color:#141B2B;cursor:pointer;min-width:0;transition:border-color .15s,box-shadow .15s,transform .15s}
    .hb-mini:hover{border-color:#B9D3E5;box-shadow:0 8px 18px rgba(16,59,95,.08);transform:translateY(-1px)}
    .hb-mini:focus-visible{outline:2px solid #16A2AD;outline-offset:2px}
    .hb-mini-ico{width:29px;height:29px;border-radius:8px;background:#F1F5F9;color:#475569;display:flex;align-items:center;justify-content:center;flex-shrink:0}
    .hb-mini-ico svg{width:14px;height:14px}
    .hb-mini-copy{flex:1;min-width:0}
    .hb-mini-copy strong{display:block;font-size:10.5px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .hb-mini-copy small{display:block;font-size:8.5px;color:#777587;line-height:1.3;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .hb-mini-arrow{color:#94A3B8;display:flex;flex-shrink:0}
    .hb-mini-arrow svg{width:12px;height:12px}
    .hb-mini.hb-ficha .hb-mini-ico{background:#E2F4F6;color:#0F766E}
    .hb-mini.hb-ficha.is-pending .hb-mini-ico{background:#FEF3C7;color:#B45309}
    .hb-mini.hb-ficha.is-done .hb-mini-ico{background:#D1FAE5;color:#059669}
    .hb-mini.hb-support:hover .hb-mini-ico{background:#ECFDF5;color:#059669}

    /* Ministérios */
    .hb-ministries{min-height:312px;background:linear-gradient(150deg,#FCF9FF 0%,#F2E9FF 60%,#E9DBFF 100%);border-color:#E4D5FB}
    .hb-ministries .hb-ico{width:44px;height:44px;border-radius:13px;background:#7C3AED;color:#fff;box-shadow:0 7px 16px rgba(124,58,237,.22)}
    .hb-ministries .hb-ico svg{width:21px;height:21px}
    .hb-ministries .hb-arrow{background:rgba(124,58,237,.10);color:#6D28D9}
    .hb-ministries:hover{border-color:#CDB4F5;box-shadow:0 18px 38px rgba(109,40,217,.13)}
    .hb-ministries:hover .hb-arrow{background:rgba(124,58,237,.16);color:#5B21B6}
    .hb-ministries .hb-eyebrow{color:#8B5CF6}
    .hb-ministries .hb-title{font-size:22px;color:#3B1D66;letter-spacing:-.03em}
    .hb-ministries .hb-desc{color:#6B5586;font-size:11px;-webkit-line-clamp:3;max-width:96%}
    .hb-ministries .hb-tag{background:rgba(124,58,237,.09);color:#6D28D9;max-width:132px}
    .hb-ministries .hb-status{background:rgba(124,58,237,.11);color:#6D28D9}
    .hb-ministries .hb-watermark{color:#7C3AED;opacity:.07}
    .hb-manage .hb-ico{background:#F3E8FF;color:#7C3AED}
    .hb-manage .hb-tag{background:rgba(124,58,237,.08);color:#6D28D9}
    .hb-midia{background:linear-gradient(140deg,#FFFFFF 0%,#FFF5FA 100%);border-color:#F6DCEA}
    .hb-midia .hb-ico{background:#FCE7F3;color:#DB2777}
    .hb-midia .hb-tag{background:rgba(219,39,119,.08);color:#BE185D}
    .hb-cantina{background:linear-gradient(135deg,#FFFBF7 0%,#FFF0E4 100%);border-color:#FAD9C1}
    .hb-cantina .hb-ico{background:#FFEDD5;color:#EA580C}

    /* Administração */
    .hb-tesouraria .hb-ico{background:#D1FAE5;color:#059669}
    .hb-tesouraria .hb-tag{background:rgba(5,150,105,.08);color:#047857}
    .hb-atas .hb-ico{background:#FEF9C3;color:#A16207}
    .hb-atas .hb-tag{background:rgba(161,98,7,.08);color:#854D0E}
    .hb-report{min-height:312px;background:linear-gradient(150deg,#0A2944 0%,#103B5F 58%,#174A69 100%);border-color:transparent;box-shadow:0 14px 32px rgba(11,43,71,.16)}
    .hb-report::after{content:'';position:absolute;left:-54px;bottom:-74px;width:190px;height:190px;border:1px solid rgba(255,255,255,.08);border-radius:50%;pointer-events:none}
    .hb-report .hb-ico{background:rgba(255,255,255,.12);color:#9DEBF0}
    .hb-report .hb-arrow{background:rgba(255,255,255,.12);color:#fff}
    .hb-report:hover{border-color:transparent;box-shadow:0 20px 42px rgba(11,43,71,.24)}
    .hb-report:hover .hb-arrow{background:rgba(255,255,255,.2);color:#fff}
    .hb-report .hb-eyebrow{color:rgba(255,255,255,.52)}
    .hb-report .hb-title{font-size:21px;color:#fff;letter-spacing:-.03em}
    .hb-report .hb-desc{color:rgba(255,255,255,.72);font-size:10.5px;-webkit-line-clamp:3}
    .hb-report .hb-status{background:rgba(255,255,255,.13);color:#E6FFFB}
    .hb-report-list{display:flex;flex-direction:column;gap:7px;margin:9px 0 4px;width:100%}
    .hb-report-row{display:flex;align-items:center;gap:7px;font-size:9.5px;color:rgba(255,255,255,.78);line-height:1.3}
    .hb-report-row::before{content:'';width:5px;height:5px;border-radius:50%;background:#38D6C4;flex-shrink:0;box-shadow:0 0 0 3px rgba(56,214,196,.12)}
    .hb-report-row span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .hb-report-row svg{width:10px;height:10px;color:rgba(255,255,255,.32);flex-shrink:0}
    .hb-report .hb-watermark{color:#fff;opacity:.055}
    .hb-config .hb-ico{background:#F1F5F9;color:#475569}
.hb-cartas{background:linear-gradient(140deg,#F8FFFB 0%,#E9FBF1 100%);border-color:#CFEFDC}
.hb-cartas .hb-ico{background:#DCFCE7;color:#15803D}
.hb-cartas:hover{border-color:#9FE3BB}
.hb-cartas .hb-status{border-color:rgba(21,128,61,.20)}

    /* Estado bloqueado */
    .hb-card.is-locked .hb-watermark{display:none}

    .hub-footer{margin-top:auto;padding-top:14px;border-top:1px solid #EEF2F6;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:3px 18px;font-size:9.5px;line-height:1.5;color:#94A3B8}
    .hub-footer p{margin:0}
    .hub-footer .hub-church{color:#64748B;font-weight:500}
    .hub-legal-contact{color:#64748B}
    .hub-legal-links{display:flex;flex-wrap:wrap;gap:2px 9px;justify-content:flex-end;margin-bottom:2px}
    .hub-legal-links a{font-size:9.5px;color:#64748B;text-decoration:none}
    .hub-legal-links a:hover{color:#103B5F;text-decoration:underline}
    .hub-legal-right{text-align:right}
    .hub-legal-right a{color:#103B5F;text-decoration:none}
    .hub-legal-right a:hover{text-decoration:underline}
    .hub-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#103B5F;color:#fff;padding:10px 16px;border-radius:9px;font-size:12px;display:none;z-index:99;box-shadow:0 12px 28px rgba(8,25,42,.22)}
    .hub-loading{display:flex;align-items:center;justify-content:center;padding:70px 20px;color:#94A3B8;font-size:12px;gap:8px}

    /* ===== Modais ===== */
    .hub-modal{position:fixed;inset:0;background:rgba(8,25,42,.56);display:none;align-items:center;justify-content:center;padding:18px;z-index:80}
    .hub-modal.open{display:flex}
    .hub-modal-card{background:#fff;border-radius:18px;width:min(840px,100%);max-height:88vh;overflow:auto;padding:24px;box-shadow:0 28px 70px rgba(8,25,42,.30)}
    .hub-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
    .hub-modal-head h2{font-size:23px;font-weight:600;letter-spacing:-.02em}
    .hub-modal-head p{font-size:12.5px;color:#777587;line-height:1.55;margin-top:5px;max-width:610px}
    .hub-modal-close{border:none;background:none;color:#94A3B8;font-size:24px;line-height:1;padding:2px;cursor:pointer}
    .hub-modal-close:hover{color:#103B5F}
    .hub-ministries-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
    .ministry-choice{display:flex;align-items:center;gap:11px;border:1px solid #E8EDF3;border-radius:12px;padding:12px;background:#FBFDFF;cursor:pointer;text-align:left;font:inherit;transition:transform .15s,border-color .15s,background .15s,box-shadow .15s;min-width:0}
    .ministry-choice:hover{transform:translateY(-1px);border-color:#A9C7DD;background:#fff;box-shadow:0 8px 20px rgba(16,59,95,.08)}
    .ministry-choice-ico{width:44px;height:44px;border-radius:12px;background:#E7EFF6;color:#103B5F;display:flex;align-items:center;justify-content:center;flex-shrink:0}
    .ministry-choice-ico svg{width:21px;height:21px}
    .ministry-choice-copy{flex:1;min-width:0}
    .ministry-choice-copy strong{display:block;font-size:13px;font-weight:600;color:#141B2B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .ministry-choice-copy small{display:block;font-size:10.5px;color:#777587;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .ministry-choice-arrow{color:#94A3B8;display:flex;flex-shrink:0}
    .ministry-choice-arrow svg{width:15px;height:15px}
    .hub-empty-ministries{grid-column:1/-1;text-align:center;padding:30px 18px;color:#777587;font-size:12px;line-height:1.55;background:#F8FAFC;border:1px dashed #DCE8F2;border-radius:12px}
    .hub-empty-ministries strong{display:block;color:#103B5F;font-size:13px;margin-bottom:3px}
    .hub-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #EEF2F6;margin-top:18px;padding-top:14px;flex-wrap:wrap}
    .hub-modal-manage{border:none;border-radius:9px;background:#103B5F;color:#fff;font:inherit;font-size:12px;font-weight:600;padding:10px 14px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
    .hub-modal-manage:hover{background:#0B2B47}
    .hub-modal-manage svg{width:15px;height:15px}
    .hub-modal-secondary{border:1px solid #E8EDF3;border-radius:9px;background:#fff;color:#464555;font:inherit;font-size:12px;font-weight:500;padding:10px 14px;cursor:pointer}
    .hub-modal-secondary:hover{border-color:#103B5F;color:#103B5F}

    /* Ficha de membresia (leitura) */
    .hub-ficha-card{width:min(760px,100%)}
    .hub-ficha-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:14px}
    .hub-ficha-badge{display:inline-flex;align-items:center;gap:5px;font-size:9.5px;font-weight:600;padding:4px 8px;border-radius:999px;background:#ECFDF5;color:#047857}
    .hub-ficha-badge svg{width:11px;height:11px}
    .hub-ficha-date{font-size:10px;color:#94A3B8}
    .hub-ficha-body{display:flex;flex-direction:column;gap:15px}
    .hub-ficha-section{border:1px solid #E8EDF3;border-radius:12px;padding:13px 14px;background:#FBFDFF}
    .hub-ficha-section h3{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#64748B;margin-bottom:10px}
    .hub-ficha-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
    .hub-ficha-item{min-width:0}
    .hub-ficha-item small{display:block;font-size:8.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#94A3B8;margin-bottom:2px}
    .hub-ficha-item b{display:block;font-size:11.5px;font-weight:500;color:#141B2B;line-height:1.45;overflow-wrap:anywhere}
    .hub-ficha-empty{padding:28px 18px;text-align:center;font-size:12px;color:#777587;line-height:1.55;background:#F8FAFC;border:1px dashed #DCE8F2;border-radius:12px}
    .hub-ficha-loading{display:flex;align-items:center;justify-content:center;gap:8px;padding:36px 18px;color:#94A3B8;font-size:12px}
    .hub-ficha-loading svg{width:16px;height:16px;animation:hubSpin .8s linear infinite}
    @keyframes hubSpin{to{transform:rotate(360deg)}}

    @media(max-width:1120px){
      .hub-bento{grid-template-columns:1fr 1fr;column-gap:24px}
      .hub-col-admin{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
      .hub-col-admin .hub-col-head{grid-column:1/-1}
      .hub-col-admin .hb-pair{display:contents}
      .hub-col-admin .hb-report{min-height:144px;grid-column:auto}
      .hub-col-admin .hb-config{grid-column:auto}
      .hb-report-list{display:none}
    }
    @media(max-width:900px){
      .hub-main{padding:16px 20px 8px}
      .hub-bento{grid-template-columns:1fr}
      .hub-col-admin{display:flex;grid-column:auto}
      .hub-col-admin .hb-report{min-height:150px}
      .hb-report-list{display:flex}
      .hb-overview,.hb-escalas{min-height:160px}
      .hb-ministries,.hb-report{min-height:230px}
    }
    @media(max-width:760px){
      .hub-main{padding:12px 16px 8px}
      .hub-title-row h1{font-size:24px}
      .hub-top{padding:0 16px}
      .hub-user-info{display:none}
      .hub-session{position:static;margin:0 0 4px}
      .hub-title-row{padding-right:0}
      .hub-footer{grid-template-columns:1fr;gap:4px}
      .hub-legal-right{text-align:left}
      .hub-legal-links{justify-content:flex-start}
      .hub-modal-card{padding:18px}
      .hub-ministries-grid{grid-template-columns:1fr}
      .hub-modal-head h2{font-size:20px}
      .hub-ficha-grid{grid-template-columns:1fr}
    }
    @media(max-width:560px){
      .hb-pair,.hb-bottom{grid-template-columns:1fr}
      .hb-mini-stack{grid-template-columns:1fr 1fr;grid-template-rows:1fr;min-height:0}
      .hb-square,.hb-overview,.hb-escalas,.hb-ministries,.hb-report,.hb-wide{min-height:0}
      .hb-overview,.hb-escalas{min-height:150px}
      .hb-ministries{min-height:210px}
      .hb-report{min-height:190px}
      .hb-mini{min-height:62px}
      .hub-title-row h1{font-size:22px}
      .hub-modal-foot .hub-modal-manage{width:100%;justify-content:center}
      .hub-modal-foot .hub-modal-secondary{width:100%}
    }
  /* ===== Shell com rail lateral recolhida ===== */
.hub-shell{
  margin-left:64px;
  width:calc(100% - 64px);
  min-height:calc(100vh / 0.9);
  display:flex;
  flex-direction:column;
}
.hub-rail{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:64px;
  background:#fff;
  border-right:1px solid #E8EDF3;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:10px 0 12px;
  z-index:40;
}
.hub-rail-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  margin-bottom:8px;
  flex-shrink:0;
}
.hub-rail-brand:hover{background:#F0F6FA}
.hub-rail-brand img{width:32px;height:32px;object-fit:contain}
.hub-rail-nav{
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
  padding:2px 0;
}
.hub-rail-nav::-webkit-scrollbar{display:none}
.hub-rail-item{
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid transparent;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748B;
  cursor:pointer;
  text-decoration:none;
  flex-shrink:0;
  transition:background .15s,color .15s,border-color .15s;
}
.hub-rail-item:hover,
.hub-rail-item:focus-visible{background:#EFF6FB;color:#103B5F;border-color:#E8EDF3;outline:none}
.hub-rail-item svg{width:18px;height:18px}
.hub-rail-item.is-active{background:#E7EFF6;color:#103B5F;border-color:#D6E5F1}
.hub-rail-sep{width:26px;height:1px;background:#EEF2F6;margin:7px 0;flex-shrink:0}
.hub-rail-spacer{flex:1;min-height:8px}
.hub-rail-footer{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding-top:8px;
  border-top:1px solid #EEF2F6;
  flex-shrink:0;
}
.hub-rail-account{
  width:42px;
  height:42px;
  border:none;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  cursor:pointer;
  flex-shrink:0;
}
.hub-rail-account:hover{background:#EFF6FB}
.hub-rail-account .hub-avatar{width:32px;height:32px}
.hub-rail-tip{
  position:fixed;
  z-index:400;
  background:#103B5F;
  color:#fff;
  font-size:10.5px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
  padding:6px 8px;
  border-radius:6px;
  box-shadow:0 8px 22px rgba(8,25,42,.2);
  pointer-events:none;
  display:none;
  transform:translateY(-50%);
}
.hub-rail-tip.show{display:block}

/* ===== Topbar padrão do hub ===== */
.hub-top{position:relative;justify-content:flex-start;gap:12px}
.hub-top-right{margin-left:auto}
.topbar-search{
  flex:1;
  max-width:520px;
  display:flex;
  align-items:center;
  gap:9px;
  background:#fff;
  border:1px solid #E8EDF3;
  border-radius:9px;
  padding:0 12px;
  height:36px;
  transition:border-color .2s,box-shadow .2s;
  min-width:0;
}
.topbar-search:focus-within{border-color:#103B5F;box-shadow:0 0 0 3px #E7EFF6}
.topbar-search .search-icon{width:16px;height:16px;color:#94A3B8;flex-shrink:0}
.topbar-search input{flex:1;border:none;background:none;font:inherit;font-size:12.5px;color:#141B2B;height:100%;min-width:0;outline:none}
.topbar-search input::placeholder{color:#94A3B8}
.hub-kbd{font-size:9.5px;font-weight:500;color:#94A3B8;background:#F8FAFC;border:1px solid #E8EDF3;border-radius:5px;padding:2px 6px;white-space:nowrap}
.topbar-pill{
  display:inline-flex;align-items:center;gap:6px;background:transparent;color:#103B5F;
  border:1px solid #E8EDF3;border-radius:20px;padding:6px 12px;font-size:11.5px;font-weight:500;white-space:nowrap;
  max-width:280px;min-width:0;
}
.topbar-pill svg{width:13px;height:13px;flex-shrink:0}
.topbar-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-link{
  display:inline-flex;align-items:center;gap:6px;color:#103B5F;font-size:11.5px;font-weight:500;
  padding:6px 9px;border:1px solid #E8EDF3;border-radius:8px;background:transparent;text-decoration:none;white-space:nowrap;transition:all .2s;
}
.topbar-link:hover{background:#fff;border-color:#103B5F}
.topbar-link svg{width:13px;height:13px}
.icon-btn{
  background:transparent;border:1px solid #E8EDF3;padding:0;width:34px;height:34px;border-radius:8px;color:#464555;
  position:relative;display:flex;align-items:center;justify-content:center;transition:all .2s;cursor:pointer;
}
.icon-btn:hover{background:#fff;border-color:#103B5F;color:#103B5F}
.icon-btn svg{width:17px;height:17px}
.icon-btn .badge{
  position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;background:#DC2626;color:#fff;
  border-radius:8px;font-size:9.5px;font-weight:500;display:flex;align-items:center;justify-content:center;
}
.topbar-user{width:34px;height:34px;border-radius:50%;background:#E7EFF6;color:#103B5F;border:1px solid #103B5F}
.topbar-user:hover{background:#103B5F;color:#fff}
.dropdown{
  position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #E8EDF3;border-radius:12px;
  box-shadow:0 16px 48px rgba(16,59,95,.14);min-width:250px;padding:8px;display:none;z-index:120;
}
.dropdown.open{display:block}
.dropdown-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #E8EDF3;margin-bottom:6px}
.dropdown-title{font-size:13px;font-weight:500;color:#141B2B}
.link-btn{background:none;border:none;color:#103B5F;font-size:11px;font-weight:500;padding:2px 4px;cursor:pointer}
.dropdown-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:12px;color:#464555;cursor:pointer;transition:background .15s,color .15s;text-decoration:none}
.dropdown-item:hover{background:#E7EFF6;color:#103B5F}
.dropdown-item svg{width:16px;height:16px;flex-shrink:0}
.notif-dropdown{min-width:320px;max-width:350px}
.notif-item{align-items:flex-start;gap:10px}
.notif-icon{width:34px;height:34px;border-radius:50%;background:#E7EFF6;color:#103B5F;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.notif-icon svg{width:16px;height:16px}
.notif-title{font-size:11.5px;font-weight:500;color:#141B2B}
.notif-sub{font-size:10px;color:#777587;margin-top:2px;line-height:1.35}
.hub-search-empty{
  grid-column:1/-1;background:#fff;border:1px dashed #DCE8F2;border-radius:14px;padding:26px;text-align:center;
  color:#777587;font-size:11.5px;
}

@media(max-width:1280px){
  .topbar-pill span{max-width:170px}
}
@media(max-width:1120px){
  .topbar-link span{display:none}
  .topbar-pill{display:none}
}
@media(max-width:760px){
  .hub-shell{margin-left:56px;width:calc(100% - 56px)}
  .hub-rail{width:56px;padding:8px 0 10px}
  .hub-rail-brand{width:40px;height:40px}
  .hub-rail-brand img{width:28px;height:28px}
  .hub-rail-item{width:34px;height:34px}
  .hub-rail-item svg{width:16px;height:16px}
  .hub-rail-account{width:38px;height:38px}
  .hub-rail-account .hub-avatar{width:28px;height:28px}
  .hub-top{padding:0 12px;gap:8px}
  .topbar-search,.topbar-link{display:none}
  .hub-top-search{display:none}
  .hub-title-row h1{font-size:24px}
  .hub-main{padding:12px 16px 8px}
  .hub-footer{grid-template-columns:1fr;gap:4px}
  .hub-legal-right{text-align:left}
  .hub-legal-links{justify-content:flex-start}
}
.hub-rail-ministries{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

/* ===== BUSCA RECOLHIDA ===== */
.topbar-search-wrap{display:flex;align-items:center;gap:6px;min-width:0;flex-shrink:0}
.topbar-search-toggle{flex-shrink:0}
.topbar-search{flex:0 0 auto;width:0;max-width:0;opacity:0;padding:0;border-width:0;overflow:hidden;transform-origin:left center;transition:width .24s ease,max-width .24s ease,opacity .16s ease,padding .24s ease,border-width .24s ease}
.topbar-search.is-open{width:350px;max-width:420px;opacity:1;padding:0 12px;border-width:1px}
@media(max-width:768px){.topbar-search-wrap{display:none}}

.notif-dot{width:8px;height:8px;border-radius:50%;background:#103B5F;margin-left:auto;margin-top:5px;flex-shrink:0}

.topbar-search.is-open{width:clamp(220px,30vw,350px)}

.hub-rail-tip::before{content:'';position:absolute;left:-4px;top:50%;transform:translateY(-50%) rotate(45deg);width:8px;height:8px;background:#103B5F;border-radius:1px}

/* ===== Ajustes do bento do hub ===== */
.hb-ministries{min-height:150px}
.hb-ministries .hb-title{font-size:22px;letter-spacing:-.03em}
.hb-ministries .hb-desc{-webkit-line-clamp:2;max-width:94%}
.hb-ministries .hb-ico{width:38px;height:38px;border-radius:11px}
.hb-ministries .hb-ico svg{width:18px;height:18px}
.hb-bottom{grid-template-columns:1fr 1fr;align-items:stretch}
.hb-mini-stack{grid-template-rows:1fr 1fr}
.hb-mini{height:100%;min-height:0;padding:9px 10px}
.hb-avisos{min-height:144px}
.hb-app-publico{background:linear-gradient(135deg,#F7FDFF 0%,#E8F8FA 100%);border-color:#CFE9ED}
.hb-app-publico .hb-ico{background:#D9F3F5;color:#0F6E77}
.hb-app-publico .hb-title{font-size:16px}
.hb-app-publico .hb-desc{font-size:10px;line-height:1.35}
.hb-app-state,.hb-canteen-state{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:8.5px;font-weight:700;line-height:1;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;flex-shrink:0}
.hb-app-state{background:#ECFDF5;color:#059669;border:1px solid #A7F3D0}
.hb-dot{width:6px;height:6px;border-radius:50%;background:#10B981;box-shadow:0 0 0 3px rgba(16,185,129,.14)}
.hb-app-state.offline{background:#FEF2F2;color:#DC2626;border-color:#FECACA}
.hb-app-state.offline .hb-dot{background:#DC2626;box-shadow:0 0 0 3px rgba(220,38,38,.12)}
.hb-canteen-state{background:#F1F5F9;color:#64748B;border:1px solid #E2E8F0}
.hb-canteen-state.open{background:#ECFDF5;color:#059669;border-color:#A7F3D0}
.hb-canteen-state.closed{background:#FEF2F2;color:#DC2626;border-color:#FECACA}
.hb-canteen-state.disabled{background:#F1F5F9;color:#94A3B8;border-color:#E2E8F0}

/* Bordas coordenadas nos status */
.hb-status{border:1px solid rgba(16,59,95,.12)}
.hb-status.locked{border-color:#E2E8F0}
.hb-escalas .hb-status{border-color:rgba(5,150,105,.20)}
.hb-ministries .hb-status{border-color:rgba(124,58,237,.20)}
.hb-report .hb-status{border-color:rgba(255,255,255,.18)}
.hb-overview .hb-status{border-color:rgba(255,255,255,.16)}

/* Grade congruente: todas as colunas fecham na mesma altura */
@media(min-width:901px){
  .hub-col:not(.hub-col-admin){gap:10px}
  .hb-overview,.hb-escalas,.hb-ministries{height:160px;min-height:160px;gap:6px}
  .hb-overview .hb-body,.hb-escalas .hb-body,.hb-ministries .hb-body{gap:2px}
  .hb-overview .hb-ico,.hb-escalas .hb-ico,.hb-ministries .hb-ico{width:34px;height:34px}
  .hb-overview .hb-ico svg,.hb-escalas .hb-ico svg,.hb-ministries .hb-ico svg{width:17px;height:17px}
  .hb-overview .hb-title,.hb-escalas .hb-title,.hb-ministries .hb-title{font-size:20px}
  .hb-square,.hb-wide{height:132px;min-height:132px}
  .hb-cantina{height:160px;min-height:160px}
  .hb-report{height:324px;min-height:324px}
  .hb-app-publico{width:calc(50% - 6px);height:132px;min-height:132px;max-height:132px;align-self:flex-start;gap:4px;padding:11px 14px;justify-content:space-between}
  .hb-app-publico .hb-ico{width:30px;height:30px}
  .hb-app-publico .hb-ico svg{width:15px;height:15px}
  .hb-app-publico .hb-title{font-size:15px}
  .hb-app-publico .hb-top{width:100%}
  .hb-app-publico .hb-body{gap:1px}
  .hb-app-publico .hb-desc{font-size:9.5px;line-height:1.3}
  .hb-app-publico .hb-foot{width:100%}
  .hb-manage{padding:15px 18px 19px;gap:7px}
  .hb-manage .hb-title{font-size:13.5px;line-height:1.2}
  .hb-avisos{height:132px;min-height:132px}
  .hb-mini-stack{height:132px;min-height:132px}
  .hb-mini{padding:8px 9px}
}
@media(max-width:900px){
  .hb-ministries{min-height:150px}
  .hb-bottom{grid-template-columns:1fr 1fr}
  .hb-app-publico{width:100%}
}
@media(max-width:760px){
  .hb-bottom{grid-template-columns:1fr}
  .hb-mini{min-height:62px}
}
