/* Shared visual journey: functional entry points to the existing workspace. */
.app-journey { background:linear-gradient(110deg,#123f35,#2f5038); border:1px solid #396a54; border-radius:24px; padding:30px; color:#fff; margin-bottom:22px; }
.app-journey-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.app-journey .eyebrow { color:#e4cf91; font-size:11px; letter-spacing:.12em; margin:0 0 10px; }
.app-journey h2 { font-size:30px; letter-spacing:-.025em; line-height:1.2; margin:0 0 12px; color:#fff; }
.app-journey-heading p:not(.eyebrow) { font-size:15px; line-height:1.6; color:#d2e0d4; margin:0; }
.app-journey-heading>a { color:#efd493; flex-shrink:0; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.app-journey-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:25px; }
.app-journey-actions button { position:relative; padding:19px 17px; min-width:0; border:1px solid #ffffff30; background:#ffffff0d; color:#fff; border-radius:14px; text-align:left; cursor:pointer; font:inherit; transition:background .15s,border-color .15s; }
.app-journey-actions button:hover { background:#ffffff20; border-color:#e4c966; }
.app-journey-actions button:focus-visible { outline:3px solid #efbe4c; outline-offset:3px; }
.app-journey-actions span { display:block; color:#e4ce8c; font-size:10px; font-weight:750; letter-spacing:.09em; margin-bottom:12px; }
.app-journey-actions strong { display:block; font-size:16px; line-height:1.35; margin-bottom:8px; }
.app-journey-actions small { display:block; color:#d1dfd3; font-size:12px; line-height:1.5; padding-right:10px; }
.app-journey-actions b { position:absolute; right:12px; bottom:13px; color:#e9d695; font-size:16px; }

/* Refinamento visual global do workspace */
:root{
  --lp-ui-font:"Segoe UI Variable","Inter","Aptos","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
html,body,button,input,select,textarea{font-family:var(--lp-ui-font)!important}
body{font-size:15px;line-height:1.58;letter-spacing:-.006em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6,.topbar h1,.filters-header h2,.results-heading h2,.tender h3,.drawer h2,.drawer-content h3,.audit-page h2,.audit-summary strong,.metrics strong{font-family:var(--lp-ui-font)!important;letter-spacing:-.024em}
.topbar h1{font-weight:720!important}
.header-copy{font-size:12px!important;line-height:1.5}

/* Sidebar mais legível e com ícones consistentes */
.app-shell{grid-template-columns:258px minmax(0,1fr)!important}
.sidebar{padding:22px 18px!important}
.sidebar .brand{padding:2px 7px 24px!important}
.sidebar .brand strong{font-size:19px!important;letter-spacing:-.02em}
.sidebar .brand span{font-size:9px!important;letter-spacing:.08em}
.nav-section-label{margin:16px 10px 6px!important;font-size:8px!important;letter-spacing:.18em!important;color:#91b8ad!important}
.nav-item{grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;min-height:49px!important;padding:7px 9px!important;border-radius:13px!important;color:#d3e5df!important;transition:background .16s ease,color .16s ease,transform .16s ease!important}
.nav-item:hover{background:rgba(255,255,255,.10)!important;transform:translateX(2px)}
.nav-item.active{background:rgba(255,255,255,.14)!important;box-shadow:inset 3px 0 0 #efbe4c!important}
.nav-item em{font-size:13px!important;font-weight:650!important;letter-spacing:-.006em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-item b{font-size:8px!important;min-width:24px!important;padding:4px 6px!important;background:rgba(255,255,255,.11)!important}
.nav-item>span:first-child{position:relative;width:34px;height:34px;display:grid!important;place-items:center;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.06);font-size:0!important;color:#e5f0ec;overflow:hidden}
.nav-item.active>span:first-child{background:#f4cf72;color:#123f35;border-color:#f4cf72;box-shadow:0 5px 14px rgba(0,0,0,.12)}
.nav-item>span:first-child svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.nav-item>span:first-child:not(.nav-editorial-icon)::before{content:"";width:19px;height:19px;background:currentColor;mask:var(--lp-icon) center/contain no-repeat;-webkit-mask:var(--lp-icon) center/contain no-repeat}
.nav-item[data-view="matched"]>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.7 4.3L18 9l-4.3 1.7L12 15l-1.7-4.3L6 9l4.3-1.7L12 3zm6 11l.9 2.1L21 17l-2.1.9L18 20l-.9-2.1L15 17l2.1-.9L18 14z' fill='black'/%3E%3C/svg%3E")}
.nav-item[data-view="my-tenders"]>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h6v6H4zM14 5h6v6h-6zM4 15h6v4H4zM14 15h6v4h-6z' fill='black'/%3E%3C/svg%3E")}
.nav-item[data-view="saved"]>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.7 5.4 6 .9-4.4 4.2 1 6-5.3-2.8-5.3 2.8 1-6-4.4-4.2 6-.9L12 3.2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")}
.nav-item[data-view="tracked"]>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#vault-button>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 7.5h6l2-2h9v13h-17z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M8 12h8M8 15h6' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
#bidding-nav>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 17l10-10M9 6l4 4M14 11l4 4M4 20h8' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#advisory-nav>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5h14v10H9l-4 4z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M8 9h8M8 12h5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
#support-button>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M9.8 9.5a2.3 2.3 0 014.5.7c0 1.6-2.3 1.8-2.3 3.4M12 17h.01' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
#audit-nav>span:first-child{--lp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h12M6 10h12M6 15h8M6 19h5' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E")}
.sidebar-note{padding:15px 10px!important}.sidebar-note strong{font-size:12px!important}.sidebar-note small,.source-link{font-size:10px!important;line-height:1.45}

/* Ícones dos cards do painel com a mesma linguagem visual */
.tool-icon,.metric-icon{position:relative!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:13px!important;background:#edf5ef!important;color:#174a3d!important;font-size:0!important;border:1px solid #dbe7de!important;box-shadow:none!important}
.tool-icon::before,.metric-icon::before{content:"";width:22px;height:22px;background:currentColor;mask:var(--lp-tool-icon) center/contain no-repeat;-webkit-mask:var(--lp-tool-icon) center/contain no-repeat}
.tool-card:nth-child(1) .tool-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.tool-card:nth-child(2) .tool-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6M9 16h6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.tool-card:nth-child(3) .tool-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.7 4.3L18 9l-4.3 1.7L12 15l-1.7-4.3L6 9l4.3-1.7L12 3zm6 11l.9 2.1L21 17l-2.1.9L18 20l-.9-2.1L15 17l2.1-.9L18 14z' fill='black'/%3E%3C/svg%3E")}
.tool-card:nth-child(4) .tool-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19V9M12 19V5M19 19v-7M3 19h18' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E")}
.tool-card:nth-child(5) .tool-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4L19 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.tool-card:nth-child(6) .tool-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9a6 6 0 0112 0c0 7 3 7 3 7H3s3 0 3-7M10 20h4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.tool-card.featured .tool-icon{background:#fff4cf!important;color:#9a6a08!important;border-color:#ecd58c!important}
.metrics article:nth-child(1) .metric-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5h14v14H5zM9 5v14M15 5v14' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E")}
.metrics article:nth-child(2) .metric-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.7 5.4 6 .9-4.4 4.2 1 6-5.3-2.8-5.3 2.8 1-6-4.4-4.2 6-.9L12 3.2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")}
.metrics article:nth-child(3) .metric-icon{--lp-tool-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}

/* Melhor proporção e justificação dos blocos internos */
.app-journey-actions{align-items:stretch}
.app-journey-actions button{display:flex;flex-direction:column;min-height:152px;padding:20px 18px 18px}
.app-journey-actions strong{font-size:17px;letter-spacing:-.012em}
.app-journey-actions small{font-size:12.5px;line-height:1.55;margin-bottom:20px}
.app-journey-actions b{margin-top:auto;position:static;align-self:flex-end}
.tools-showcase-heading,.section-heading{align-items:flex-end!important}
.tool-card{height:100%;display:flex!important;flex-direction:column!important}
.tool-card>div{flex:1}.tool-card p{line-height:1.58!important}

@media(max-width:1250px) { .app-journey-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } .app-journey-heading { align-items:start; } }
@media(max-width:760px) {
  .app-shell{grid-template-columns:1fr!important}
  .sidebar{left:-292px!important;width:276px!important;padding:20px 16px!important}
  .sidebar.open{left:0!important}
  .nav-item{grid-template-columns:38px minmax(0,1fr) auto!important;min-height:50px!important}
  .nav-item em{font-size:13.5px!important}
  .app-journey { padding:22px 17px; border-radius:18px; }
  .app-journey-heading { flex-direction:column; gap:16px; }
  .app-journey h2 { font-size:26px; }
  .app-journey-actions { gap:9px; }
  .app-journey-actions button { padding:17px 14px; min-height:145px; }
  .app-journey-actions strong { font-size:15.5px; }
}
@media(max-width:380px) { .app-journey-actions { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .app-journey-actions button,.nav-item { transition:none; } }

/* Corrige corte da sidebar em telas baixas/estreitas */
.sidebar{
  height:100dvh!important;
  max-height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(239,190,76,.38) transparent;
  padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))!important;
}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-track{background:transparent}
.sidebar::-webkit-scrollbar-thumb{background:rgba(239,190,76,.30);border-radius:999px}
@media(max-width:760px){
  .sidebar{
    width:min(276px,100vw)!important;
    max-width:100vw!important;
    left:min(-292px,-100vw)!important;
    box-sizing:border-box!important;
  }
  .sidebar.open{left:0!important}
}
@media(max-height:760px){
  .sidebar .brand{padding-bottom:16px!important;margin-bottom:8px!important}
  .nav-section-label{margin-top:11px!important}
  .nav-item{min-height:45px!important}
  .sidebar-note{margin-top:12px!important}
}

/* Compatibilidade reforçada para tablets e celulares */
@media(max-width:980px){
  .app-shell{grid-template-columns:1fr!important}
  .sidebar{
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    left:-312px!important;
    width:min(300px,calc(100vw - 16px))!important;
    max-width:calc(100vw - 8px)!important;
    z-index:80!important;
    box-shadow:18px 0 55px rgba(6,36,29,.22)!important;
  }
  .sidebar.open{left:0!important}
  .mobile-only{display:grid!important}
  .topbar{min-height:78px!important;padding:12px 16px!important;gap:12px!important}
  .topbar-title{min-width:0;flex:1}
  .topbar h1{font-size:clamp(20px,3.2vw,24px)!important;line-height:1.12!important;white-space:normal}
  .header-copy{display:none!important}
  .sync-area{gap:7px!important;flex-wrap:nowrap!important}
  .sync-area .status{display:none!important}
  .content{padding:18px clamp(12px,2.8vw,24px) 48px!important}
  .workspace{grid-template-columns:1fr!important}
  .filter-panel{position:static!important}
  .editorial-grid{grid-template-columns:1fr!important}
  .editorial-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .app-journey-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drawer{width:min(100vw,760px)!important}
}
@media(max-width:760px){
  .sidebar{
    width:min(286px,calc(100vw - 8px))!important;
    max-width:calc(100vw - 4px)!important;
    left:-300px!important;
  }
  .topbar{padding:10px 11px!important;gap:9px!important}
  .topbar h1{font-size:20px!important}
  .topbar-title .eyebrow{font-size:7.5px!important;letter-spacing:.10em!important}
  .sync-area .button{min-height:36px!important;padding:7px 10px!important;font-size:8.5px!important}
  #refresh{display:none!important}
  .guest-actions{gap:6px!important}
  .guest-actions .button{min-height:36px!important;padding:7px 9px!important;font-size:8px!important}
  .editorial-rail{grid-template-columns:1fr!important}
  .app-journey{padding:22px 17px!important;border-radius:18px!important}
  .app-journey-heading{flex-direction:column!important;gap:16px!important;align-items:flex-start!important}
  .app-journey h2{font-size:26px!important}
  .app-journey-actions{gap:9px!important}
  .app-journey-actions button{padding:17px 14px!important;min-height:145px!important}
  .app-journey-actions strong{font-size:15.5px!important}
}
@media(max-width:520px){
  .app-journey-actions{grid-template-columns:1fr!important}
  .app-journey-actions button{min-height:132px!important}
  .topbar h1{font-size:18px!important}
  .content{padding-inline:10px!important}
  .sidebar{width:calc(100vw - 6px)!important;max-width:calc(100vw - 6px)!important}
}
@media(max-width:420px){
  .guest-actions .button.primary{display:none!important}
  .topbar-title .eyebrow{display:none!important}
}
@media(pointer:coarse){
  .nav-item,.button,.mini-button,.icon-button,.app-journey-actions button{touch-action:manipulation}
  .nav-item{min-height:48px!important}
}

/* licitapara-ai-credit-policy */
.market-ai-callout{display:none!important}
