/* Home compacta — usa apenas tokens, fontes e componentes existentes da Onda Circular.
   Sem alterar a experiência detalhada de /condicoes ou o design dos cards de anúncios. */
#app .oc-compact-conditions{width:100%;margin:0 0 7px;color:var(--petrol);font-family:var(--ui)}
#app .oc-compact-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:390px;gap:5px;height:38px;margin:6px 0 8px}
#app .oc-compact-tab{appearance:none;border:1px solid var(--line);background:var(--paper);color:var(--petrol);border-radius:9px;display:flex;align-items:center;justify-content:center;gap:7px;font:650 13px/1 var(--ui);cursor:pointer;min-width:0;min-height:36px;padding:5px 8px}
#app .oc-compact-tab[aria-pressed="true"]{background:var(--petrol);border-color:var(--petrol);color:var(--cream)}
#app .oc-compact-tab:focus-visible,#app .oc-compact-open:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
#app .oc-compact-tab svg{width:18px;height:18px;flex:none}
#app .oc-compact-data{min-width:0}
#app .oc-compact-readings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;min-width:0;border-block:1px solid var(--line);padding:9px 0 4px;gap:0}
#app .oc-compact-metric{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;text-align:center;padding:0 7px;min-height:65px}
#app .oc-compact-metric+.oc-compact-metric{border-left:1px solid var(--line)}
#app .oc-compact-visual{display:grid;place-items:center;color:var(--teal);height:20px;min-height:20px}
#app .oc-compact-visual svg{width:20px;height:20px;stroke:currentColor;display:block}
#app .oc-compact-visual .oc-compact-wave{width:23px;height:22px}
#app .oc-compact-visual .oc-compact-runner{width:22px;height:22px}
#app .oc-compact-visual .oc-compact-bike{width:23px;height:22px}
#app .oc-compact-visual-tide{height:23px;min-height:23px;width:100%;color:var(--teal)}
#app .oc-compact-visual .oc-compact-tide{display:block;width:min(78px,100%);height:23px;overflow:visible;color:var(--teal)}
#app .oc-compact-metric-tide .oc-compact-value{font-size:clamp(13px,1.3vw,18px)}
#app .oc-compact-metric[data-oc-reading="Tempo"] .oc-compact-value{white-space:normal;overflow-wrap:break-word;text-wrap:balance}
#app .oc-compact-value{font-size:19px;font-weight:780;line-height:1.22;letter-spacing:-.025em;color:var(--petrol);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .oc-compact-label{color:var(--muted);font-size:11px;line-height:1.15;white-space:nowrap}
#app .oc-compact-detail{color:var(--muted);font-size:10px;line-height:1.1;white-space:nowrap}
#app .oc-compact-tide{position:relative;display:block;width:min(78px,100%);height:23px;color:var(--teal);margin-top:0}
#app .oc-compact-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:21px;color:var(--muted);font:500 10px/1.2 var(--ui);padding:3px 2px 0}
#app .oc-compact-location{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .oc-compact-open{flex:none;border:0;background:transparent;color:var(--petrol);padding:1px 0 1px 6px;font:700 11px/1.2 var(--ui);cursor:pointer;white-space:nowrap}
#app .oc-compact-open span{font-size:15px;vertical-align:middle}
/* The approved navigation and content feed remain responsive, but the top gets no giant weather cards. */
@media(max-width:700px){
 body.oc-compact-home .topbar{height:72px;min-height:72px;padding:3px 12px 1px}
 body.oc-compact-home .topbar-inner{display:grid;grid-template-columns:minmax(96px,1fr) auto;grid-template-rows:42px 20px;gap:0 5px;align-items:center;max-width:none;padding:0}
 body.oc-compact-home .top-left{display:contents}
 body.oc-compact-home .mobile-brand{grid-column:1;grid-row:1;display:flex;align-items:center;width:106px;margin:0;padding:0}
 body.oc-compact-home .mobile-brand img{width:100%;height:auto;display:block}
 body.oc-compact-home .top-actions{grid-column:2;grid-row:1;display:flex;gap:4px;align-items:center;min-width:0}
 body.oc-compact-home .top-actions .search-trigger{width:33px;height:33px;min-width:33px;min-height:33px;padding:4px}
 body.oc-compact-home .top-actions .saved-trigger{display:none}
 body.oc-compact-home .top-actions .primary{font-size:12px;min-height:34px;padding:6px 9px;gap:3px}
 body.oc-compact-home .top-actions .primary svg{width:14px;height:14px}
 body.oc-compact-home .top-actions .mobile-account{width:34px;min-width:34px;height:34px;min-height:34px;display:grid;place-items:center}
 body.oc-compact-home .top-actions .mobile-account .public-avatar{width:32px;height:32px;font-size:15px}
 body.oc-compact-home .region-control{grid-column:1/-1;grid-row:2;height:20px;min-height:20px;align-self:center}
 body.oc-compact-home .region-control .top-location{display:none}
 body.oc-compact-home .region-control .city-button{display:inline-flex;align-items:center;min-height:20px;font-size:11px!important;line-height:1.1;padding:0!important;gap:3px!important}
 body.oc-compact-home .region-control .city-button>svg:first-child{display:inline-block;width:12px;height:12px}
 body.oc-compact-home .region-control .city-button>svg:last-child{width:11px;height:11px}
 body.oc-compact-home .content{padding:0 11px 25px}
 #app .oc-compact-conditions{margin:0 0 3px}
 #app .oc-compact-modes{max-width:none;width:100%;height:35px;gap:5px;margin:4px 0 5px}
 #app .oc-compact-tab{min-height:34px;padding:4px 7px;font-size:12px;border-radius:8px;gap:6px}
 #app .oc-compact-tab svg{width:16px;height:16px}
 #app .oc-compact-readings{padding:5px 0 3px;min-height:57px}
 #app .oc-compact-metric{padding:0 2px;gap:1px;min-height:56px}
 #app .oc-compact-visual{height:16px;min-height:16px}
 #app .oc-compact-visual svg{width:17px;height:17px}
 #app .oc-compact-visual .oc-compact-wave{width:20px;height:18px}
 #app .oc-compact-visual .oc-compact-runner,#app .oc-compact-visual .oc-compact-bike{width:19px;height:18px}
 #app .oc-compact-visual-tide{height:20px;min-height:20px}
 #app .oc-compact-visual .oc-compact-tide{width:min(65px,100%);height:20px}
 #app .oc-compact-value{font-size:13px;letter-spacing:-.03em}
 #app .oc-compact-label{font-size:10px}
 #app .oc-compact-detail{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 #app .oc-compact-tide{height:20px;width:min(65px,100%)}
 #app .oc-compact-metric-tide .oc-compact-value{font-size:12px}
 #app .oc-compact-metric[data-oc-reading="Tempo"] .oc-compact-value{font-size:11px;line-height:1.1;max-width:100%}
 #app .oc-compact-meta{min-height:18px;padding-top:1px;font-size:9px}
 #app .oc-compact-open{font-size:10px}
 #app .oc-compact-home .quickgrid{margin-top:8px}
}
@media(max-width:375px){
 body.oc-compact-home .topbar{padding-inline:9px}
 body.oc-compact-home .mobile-brand{width:98px}
 body.oc-compact-home .top-actions{gap:3px}
 body.oc-compact-home .top-actions .primary{padding:5px 6px;font-size:11px}
 body.oc-compact-home .content{padding-inline:9px}
 #app .oc-compact-metric{padding-inline:1px}
 #app .oc-compact-value{font-size:12px}
 #app .oc-compact-label{font-size:9.5px}
 #app .oc-compact-detail{font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){
 #app .oc-compact-tab{transition:none}
}
