/* S70: novo casco (references/menu-fechado/exemplo-menu-fechado.png). Sem faixa do topo (--brandbar-h = 0 em mipo.css);
   trilho de ícones com o menu fechado (>= 1280 px); cabeçalho em duas linhas; rodapé só com relógio e fonte. */
:root{--rail-w:56px;--s70-l1:40px;--s70-l2:40px}
@media (min-width:1100px){:root{--top-h:calc(var(--s70-l1) + var(--s70-l2))}}

/* ---------------------------------------------------------------- cabeçalho: linha 1 = título + ícones; linha 2 = abas */
.s70-title{order:1;flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;height:var(--s70-l1);padding:0 4px 0 10px;
 font-size:15px;font-weight:var(--fw-bold,700);color:var(--text);white-space:nowrap;overflow:hidden;letter-spacing:.01em}
.s70-title>*{flex:none}
.s70-title #s70Project{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.s70-title .s70-sep{opacity:.55;font-weight:400}
.shell .topbar>#menuToggle{order:0}
.shell .topbar .top-actions{order:2}
@media (min-width:1100px){
 .shell .topbar{flex-wrap:wrap!important;align-content:flex-start;row-gap:0!important;column-gap:4px!important;padding:0 10px 0 6px!important}
 .shell .topbar .top-actions{height:var(--s70-l1);margin-left:auto}
 .shell .topbar>*:not(.s70-title):not(.top-actions):not(#menuToggle){order:3;flex:1 0 100%!important;height:var(--s70-l2)!important;max-width:100%;margin:0!important;padding:0 0 0 2px!important;border-top:0!important}
 .shell .topbar .tabs button,.shell .topbar .s64-tabs button,.shell .topbar .s51-tabs button{padding-top:0;padding-bottom:0}
}
@media (max-width:1099px){.shell .topbar .s70-title{height:44px;padding-left:4px}}
@media (max-width:620px){.s70-title .s70-ip,.s70-title .s70-sep{display:none}.s70-title{font-size:14px}}

/* ---------------------------------------------------------------- rodapé: relógio à esquerda, fonte à direita */
.footbar .s32-clock{margin-left:0}

/* ---------------------------------------------------------------- logo */
.s70-logo{display:block;width:32px;height:32px;color:#F3F6FA;flex:none}

/* ---------------------------------------------------------------- menu aberto: logo no topo, "Ocultar" à direita */
.s70-side-head{display:grid;grid-template-columns:auto 1fr;grid-template-rows:var(--s70-l1) auto;align-items:center;column-gap:8px;margin:-8px 0 6px}
.s70-side-head .s70-logo{grid-column:1;grid-row:1;margin-left:0}
.s70-side-head #closeNav{grid-column:2;grid-row:1;justify-self:end;align-self:center;margin:0!important}
.s70-side-head #menuToggle{grid-column:1;grid-row:2}

/* ---------------------------------------------------------------- o botão do menu (#menuToggle) como traço curto */
.s70-rail #menuToggle,.s70-side-head #menuToggle{width:32px;min-width:32px;height:18px;padding:0;margin:2px auto 0;border:0;background:none;display:grid;place-items:center;color:var(--chrome-text);border-radius:4px;cursor:pointer}
.s70-rail #menuToggle svg,.s70-side-head #menuToggle svg{display:none}
.s70-rail #menuToggle::before,.s70-side-head #menuToggle::before{content:"";display:block;width:18px;height:2px;border-radius:2px;background:currentColor;opacity:.75}
.s70-rail #menuToggle:hover::before,.s70-side-head #menuToggle:hover::before{opacity:1;width:22px}
.s70-rail #menuToggle:focus-visible,.s70-side-head #menuToggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------------------------------------------------------------- trilho (menu fechado, desktop) */
.s70-rail{display:none}
@media (min-width:1280px){
 body:not(.mipo-left-open):not(.presenting) .s70-rail{display:flex;flex-direction:column;align-items:center;position:fixed;top:0;bottom:0;left:0;z-index:62;width:var(--rail-w);
  padding:0 0 10px;background:var(--chrome-2);color:var(--chrome-text);border-right:1px solid var(--border)}
 body:not(.mipo-left-open):not(.presenting) .frame{grid-template-columns:var(--rail-w) minmax(0,1fr)!important}
 body:not(.mipo-left-open):not(.presenting) .footbar{padding-left:calc(var(--rail-w) + 10px)!important}
}
.s70-rail-head{display:flex;flex-direction:column;align-items:center;width:100%;padding-top:calc((var(--s70-l1) - 32px)/2);margin-bottom:12px}
.s70-rail button{font:inherit}
.s70-proj{width:40px;height:40px;margin:0 0 10px;padding:0;border:1px solid #ffffff22;border-radius:10px;background:#ffffff08;display:grid;place-items:center;cursor:pointer;color:#F3F6FA;overflow:hidden}
.s70-proj:hover,.s70-proj[aria-expanded="true"]{border-color:var(--accent);background:#ffffff12}
.s70-crest{display:grid;place-items:center;width:30px;height:30px;font-size:10px;font-weight:700;line-height:1;letter-spacing:.02em}
.s70-crest img{width:30px;height:30px;object-fit:contain}
/* selo em texto (TP, MPS…): o mesmo escudo do cartão do projeto */
.s70-crest.is-text{width:26px;height:30px;padding-bottom:3px;border:1.6px solid currentColor;border-radius:4px 4px 13px 13px}
.s70-tools{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding-top:10px;border-top:1px solid #ffffff14}
.s70-tool,.s70-gear{position:relative;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:none;color:var(--chrome-text);display:grid;place-items:center;cursor:pointer}
.s70-tool svg,.s70-gear svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.s70-tool:hover,.s70-gear:hover,.s70-gear[aria-expanded="true"]{background:#ffffff10;color:#fff}
.s70-tool.active{background:#ffffff14;color:#fff;box-shadow:inset 2px 0 0 var(--accent)}
.s70-rail :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.s70-count{position:absolute;right:3px;bottom:3px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#2F7DD1;color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center}
.s70-rail-foot{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
.s70-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:13px;font-weight:700}
/* dica com o nome ao passar o mouse */
.s70-rail [data-tip]:hover::after,.s70-rail [data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);z-index:90;padding:5px 9px;border-radius:6px;
 background:#0A0E16;color:#F3F6FA;border:1px solid #ffffff22;font-size:12.5px;font-weight:500;white-space:nowrap;pointer-events:none;box-shadow:0 6px 18px #0008}
.s70-proj{position:relative;overflow:visible}

/* ---------------------------------------------------------------- painéis pequenos do trilho */
.s70-pop{position:fixed;z-index:95;min-width:220px;max-width:300px;padding:10px;border-radius:10px;background:var(--chrome-2);color:var(--chrome-text);border:1px solid #ffffff22;box-shadow:0 12px 32px #000a;display:flex;flex-direction:column;gap:6px}
.s70-pop[hidden]{display:none}
.s70-pop-k,.s70-pop label{font-family:var(--font-mono,monospace);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9AA6B8}
.s70-pop-row{display:flex;flex-direction:column;gap:6px}
.s70-pop-row[hidden]{display:none}
.s70-pop-row+.s70-pop-row{padding-top:8px;border-top:1px solid #ffffff14}
.s70-pop #mode{display:block!important;width:100%;min-height:34px;padding:4px 8px;border-radius:6px;border:1px solid #ffffff2a;background:#ffffff0a;color:#F3F6FA;font-size:13.5px}
.s70-pop #envBadge{display:inline-flex!important;align-self:flex-start}
.s70-pop-item{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:6px;border:0;background:none;color:#E6ECF5;font-size:14px;cursor:pointer}
.s70-pop-item:hover{background:#ffffff10}
.s70-pop-item.on{background:#ffffff14;color:#fff;box-shadow:inset 2px 0 0 var(--accent);font-weight:600}

@media print{.s70-rail,.s70-pop{display:none!important}}
