/* feature:uv-weather | UI-only mesh bridge
 * 2026-10-06 RPG layout pass: keep the forecast window solid, fixed by the
 * authored modal footprint, and use the game's physical PNG/UV chrome rather
 * than nested web-card decoration. Gameplay, forecast data and DOM stay intact.
 */
#modal[data-view] :is(.forecast-columns,.forecast-list,.forecast-detail,.forecast-table,.forecast-note){border:1px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-image:url("../main/panel-frame.png?v=cabare-uv-1") 8 fill / 8px stretch!important}
#modal[data-view] :is(.forecast-section,.forecast-detail-head){border:1px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-image:url("../main/inset.png?v=cabare-uv-1") 8 fill / 8px stretch!important}
#modal[data-view] .forecast-row{border:1px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-image:url("../main/slot.png?v=cabare-uv-1") 6 fill / 6px stretch!important}
#modal[data-view] .forecast-row.selected{border-image:url("../button/chip-active.png?v=cabare-uv-1") 6 fill / 6px stretch!important}
#game .sky-widget{border:1px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-image:url("../button/button.png?v=cabare-uv-1") 8 fill / 8px stretch!important}
#game .sky-widget:is(:hover,:focus-visible){border-image-source:url("../button/button-active.png?v=cabare-uv-1")!important}

/* The shared shutdown sheets intentionally remain fallbacks. This selector has
 * weather-only specificity so later generic modal rules cannot rebuild the
 * old frame-within-frame layout. */
#modal#modal[data-view="forecast"] #modal-body{
 box-sizing:border-box!important;
 min-height:0!important;
 overflow:hidden!important;
 padding:11px 12px 12px!important;
 background:#171117!important;
 background-image:none!important;
}
#modal#modal[data-view="forecast"] .forecast{
 box-sizing:border-box!important;
 display:flex!important;
 flex-direction:column!important;
 gap:8px!important;
 width:100%!important;
 height:100%!important;
 min-width:0!important;
 min-height:0!important;
 overflow:hidden!important;
}
#modal#modal[data-view="forecast"] .forecast-columns{
 box-sizing:border-box!important;
 display:grid!important;
 grid-template-columns:minmax(350px,1.04fr) minmax(330px,.96fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 align-items:stretch!important;
 gap:10px!important;
 flex:1 1 auto!important;
 width:100%!important;
 min-width:0!important;
 min-height:0!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 border-image:none!important;
 background:transparent!important;
 box-shadow:none!important;
 clip-path:none!important;
}
#modal#modal[data-view="forecast"] .forecast-list,
#modal#modal[data-view="forecast"] .forecast-detail{
 box-sizing:border-box!important;
 height:100%!important;
 min-width:0!important;
 min-height:0!important;
 margin:0!important;
 border:7px solid transparent!important;
 border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
 border-radius:0!important;
 background:#1d151d!important;
 background-image:none!important;
 box-shadow:none!important;
 clip-path:none!important;
}

/* Left page: section ribbons and compact physical slots read like an RPG
 * logbook instead of a browser list. Only this pane scrolls on desktop. */
#modal#modal[data-view="forecast"] .forecast-list{
 display:flex!important;
 flex-direction:column!important;
 align-content:start!important;
 gap:4px!important;
 overflow-x:hidden!important;
 overflow-y:auto!important;
 max-height:none!important;
 padding:7px 8px 9px!important;
 scrollbar-gutter:stable!important;
}
#modal#modal[data-view="forecast"] .forecast-section{
 box-sizing:border-box!important;
 display:flex!important;
 align-items:center!important;
 flex:0 0 27px!important;
 width:100%!important;
 min-height:27px!important;
 margin:5px 0 1px!important;
 padding:0 9px!important;
 border:4px solid transparent!important;
 border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
 border-radius:0!important;
 background:#281922!important;
 background-image:none!important;
 color:#f5d59f!important;
 font:800 11px/17px Arial,sans-serif!important;
 letter-spacing:.12em!important;
 text-transform:uppercase!important;
 text-shadow:1px 1px 0 #1b1017!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-section:first-child{margin-top:0!important}
#modal#modal[data-view="forecast"] .forecast-row{
 box-sizing:border-box!important;
 display:grid!important;
 grid-template-columns:40px minmax(0,1fr) auto!important;
 align-items:center!important;
 column-gap:9px!important;
 flex:0 0 auto!important;
 width:100%!important;
 min-width:0!important;
 min-height:57px!important;
 margin:0!important;
 padding:6px 9px 8px!important;
 border:5px solid transparent!important;
 border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
 border-radius:0!important;
 background:#1c151d!important;
 background-image:none!important;
 color:#d9c3b1!important;
 text-align:left!important;
 box-shadow:none!important;
 clip-path:none!important;
 transform:none!important;
 transition-property:color,background-color,border-image-source,box-shadow,filter,opacity!important;
}
#modal#modal[data-view="forecast"] .forecast-row:is(:hover:not(:disabled),:focus-visible){
 border-width:5px!important;
 border-image-width:5px!important;
 border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
 background:#2b1b24!important;
 transform:none!important;
}
#modal#modal[data-view="forecast"] .forecast-row.selected,
#modal#modal[data-view="forecast"] .forecast-row[aria-selected="true"]{
 border-width:5px!important;
 border-image-width:5px!important;
 border-image:url("../login/button-active.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
 background:#3c222c!important;
 box-shadow:inset 0 0 0 1px #c98e65!important;
 transform:none!important;
}
#modal#modal[data-view="forecast"] .forecast-row:focus-visible{
 outline:1px solid #f1d29a!important;
 outline-offset:-5px!important;
}
#modal#modal[data-view="forecast"] .forecast-row-text{
 display:flex!important;
 flex-direction:column!important;
 justify-content:center!important;
 gap:1px!important;
 min-width:0!important;
}
#modal#modal[data-view="forecast"] .forecast-row-text strong{
 color:#fff0db!important;
 font:700 13px/17px Arial,sans-serif!important;
 letter-spacing:.01em!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
#modal#modal[data-view="forecast"] .forecast-row-text small{
 color:#bfa899!important;
 font:400 11px/14px Arial,sans-serif!important;
 letter-spacing:.025em!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
#modal#modal[data-view="forecast"] .forecast-row.selected .forecast-row-text strong,
#modal#modal[data-view="forecast"] .forecast-row[aria-selected="true"] .forecast-row-text strong{
 color:#ffe1aa!important;
}
#modal#modal[data-view="forecast"] .forecast-row-right{
 align-self:center!important;
 padding-left:6px!important;
 color:#f6ddbe!important;
 font:700 11px/15px Arial,sans-serif!important;
 letter-spacing:.04em!important;
 font-variant-numeric:tabular-nums!important;
 white-space:nowrap!important;
 text-transform:uppercase!important;
}

/* Icons are real GameIcon PNGs inside one neutral inventory-style slot. */
#modal#modal[data-view="forecast"] .forecast-hex{
 box-sizing:border-box!important;
 display:grid!important;
 place-items:center!important;
 flex:0 0 40px!important;
 width:40px!important;
 height:40px!important;
 min-width:40px!important;
 min-height:40px!important;
 margin:0!important;
 padding:5px!important;
 border:5px solid transparent!important;
 border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
 border-radius:0!important;
 background:#171219!important;
 background-image:none!important;
 clip-path:none!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-hex.big{
 flex-basis:58px!important;
 width:58px!important;
 height:58px!important;
 min-width:58px!important;
 min-height:58px!important;
 padding:7px!important;
 border-width:6px!important;
 border-image-width:6px!important;
}
#modal#modal[data-view="forecast"] .forecast-hex>img.forecast-art-icon{
 display:block!important;
 align-self:center!important;
 justify-self:center!important;
 width:26px!important;
 height:26px!important;
 min-width:26px!important;
 min-height:26px!important;
 max-width:26px!important;
 max-height:26px!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 background:none!important;
 object-fit:contain!important;
 image-rendering:auto!important;
}
#modal#modal[data-view="forecast"] .forecast-hex.big>img.forecast-art-icon{
 width:38px!important;
 height:38px!important;
 min-width:38px!important;
 min-height:38px!important;
 max-width:38px!important;
 max-height:38px!important;
}

/* The progress meter uses the same physical meter art as the rest of the game. */
#modal#modal[data-view="forecast"] .forecast-bar{
 box-sizing:border-box!important;
 position:relative!important;
 height:7px!important;
 min-height:7px!important;
 border:0!important;
 border-image:none!important;
 border-radius:0!important;
 overflow:hidden!important;
 background:url("../button/hires/meter-track.png?v=cabare-uv-1") center / 100% 100% no-repeat!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-bar.thin{
 height:5px!important;
 min-height:5px!important;
}
#modal#modal[data-view="forecast"] .forecast-bar-fill{
 display:block!important;
 height:100%!important;
 min-height:100%!important;
 border:0!important;
 border-radius:0!important;
 background:url("../button/hires/meter-fill.png?v=7") center / 100% 100% no-repeat!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-row>.forecast-bar{
 position:absolute!important;
 left:59px!important;
 right:10px!important;
 bottom:4px!important;
}

/* Right page: a single solid information panel, with a framed subject banner
 * and readable fact rows. The panel itself fills the column so selection never
 * changes the window footprint. */
#modal#modal[data-view="forecast"] .forecast-detail{
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 gap:8px!important;
 overflow-x:hidden!important;
 overflow-y:auto!important;
 padding:9px 10px 10px!important;
 color:#dfc9b7!important;
}
#modal#modal[data-view="forecast"] .forecast-detail-head{
 box-sizing:border-box!important;
 display:flex!important;
 align-items:center!important;
 gap:11px!important;
 flex:0 0 auto!important;
 width:100%!important;
 min-height:78px!important;
 margin:0!important;
 padding:8px 10px!important;
 border:6px solid transparent!important;
 border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
 border-radius:0!important;
 background:#281a23!important;
 background-image:none!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-detail-head>div{
 display:flex!important;
 flex-direction:column!important;
 justify-content:center!important;
 gap:2px!important;
 min-width:0!important;
}
#modal#modal[data-view="forecast"] .forecast-detail-head h3{
 margin:0!important;
 color:#fff0dc!important;
 font:700 19px/24px Arial,sans-serif!important;
 letter-spacing:0!important;
 white-space:normal!important;
 overflow-wrap:anywhere!important;
 text-shadow:1px 1px 0 #1b1016!important;
}
#modal#modal[data-view="forecast"] .forecast-lead{
 color:#f0a7a9!important;
 font:700 11px/15px Arial,sans-serif!important;
 letter-spacing:.025em!important;
 font-variant-numeric:tabular-nums!important;
}
#modal#modal[data-view="forecast"] .forecast-text{
 flex:0 0 auto!important;
 margin:0!important;
 padding:1px 3px 2px!important;
 color:#f0dfd0!important;
 font:400 13px/19px Arial,sans-serif!important;
}
#modal#modal[data-view="forecast"] .forecast-progress{
 box-sizing:border-box!important;
 flex:0 0 auto!important;
 margin:0!important;
 padding:7px 0 6px!important;
 border:0!important;
 border-image:none!important;
 background:transparent!important;
 background-image:none!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-progress-label{
 display:flex!important;
 align-items:center!important;
 justify-content:space-between!important;
 gap:10px!important;
 margin:0 0 5px!important;
 padding:0 1px!important;
 border:0!important;
 border-image:none!important;
 outline:0!important;
 background:none!important;
 background-image:none!important;
 box-shadow:none!important;
 color:#c8ad9b!important;
 font:800 10px/13px Arial,sans-serif!important;
 letter-spacing:.12em!important;
 text-transform:uppercase!important;
}
#modal#modal[data-view="forecast"] .forecast-progress-label span:last-child{
 color:#fff0d5!important;
 letter-spacing:.04em!important;
 font-variant-numeric:tabular-nums!important;
}
#modal#modal[data-view="forecast"] .forecast-table{
 box-sizing:border-box!important;
 display:grid!important;
 grid-template-columns:105px minmax(0,1fr)!important;
 align-content:start!important;
 column-gap:10px!important;
 row-gap:0!important;
 flex:0 0 auto!important;
 width:100%!important;
 min-width:0!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 border-image:none!important;
 background:transparent!important;
 background-image:none!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-table dt,
#modal#modal[data-view="forecast"] .forecast-table dd{
 box-sizing:border-box!important;
 display:flex!important;
 align-items:flex-start!important;
 min-height:42px!important;
 margin:0!important;
 padding:9px 4px 8px!important;
 border:0!important;
 border-bottom:1px solid #4d3332!important;
 background:transparent!important;
}
#modal#modal[data-view="forecast"] .forecast-table dt{
 color:#bda99f!important;
 font:800 11px/15px Arial,sans-serif!important;
 letter-spacing:.1em!important;
 text-transform:uppercase!important;
}
#modal#modal[data-view="forecast"] .forecast-table dd{
 color:#fff1dc!important;
 font:400 12px/16px Arial,sans-serif!important;
 overflow-wrap:anywhere!important;
}
#modal#modal[data-view="forecast"] .forecast-note{
 box-sizing:border-box!important;
 flex:0 0 auto!important;
 width:100%!important;
 max-height:52px!important;
 margin:0!important;
 padding:6px 9px!important;
 overflow:auto!important;
 border:4px solid transparent!important;
 border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
 border-radius:0!important;
 background:#1a131a!important;
 background-image:none!important;
 color:#bca89b!important;
 font:400 10px/14px Arial,sans-serif!important;
 box-shadow:none!important;
}
#modal#modal[data-view="forecast"] .forecast-note.gm{
 color:#f3cf86!important;
 border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}

/* Tone remains semantic, but the frame geometry never changes. */
#modal#modal[data-view="forecast"] .forecast-row[data-tone="legend"] .forecast-row-text strong{color:#ffe39b!important}
#modal#modal[data-view="forecast"] .forecast-detail[data-tone="legend"] .forecast-detail-head{background:#302218!important}
#modal#modal[data-view="forecast"] :is(.forecast-row,.forecast-detail)[data-tone="rain"] .forecast-hex{background:#16202a!important}
#modal#modal[data-view="forecast"] :is(.forecast-row,.forecast-detail)[data-tone="thunderstorm"] .forecast-hex{background:#292318!important}
#modal#modal[data-view="forecast"] :is(.forecast-row,.forecast-detail)[data-tone="night"] .forecast-hex{background:#181a27!important}

/* Desktop/modal height is stable between rows. It only responds to viewport
 * height; selection and content never resize the window. */
@media (min-width:761px){
 #modal#modal[data-view="forecast"] #modal-body{
  height:clamp(500px,calc(100vh - 146px),610px)!important;
  max-height:clamp(500px,calc(100vh - 146px),610px)!important;
 }
}

/* Mobile keeps one column and a single parent scroll. The same PNG geometry is
 * preserved; only authored responsive dimensions change. */
@media (max-width:760px){
 #modal#modal[data-view="forecast"] #modal-body{
  max-height:78vh!important;
  height:auto!important;
  overflow:auto!important;
  padding:8px 7px 9px!important;
 }
 #modal#modal[data-view="forecast"] .forecast{
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
 }
 #modal#modal[data-view="forecast"] .forecast-columns{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:8px!important;
  overflow:visible!important;
 }
 #modal#modal[data-view="forecast"] .forecast-list,
 #modal#modal[data-view="forecast"] .forecast-detail{
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
 }
 #modal#modal[data-view="forecast"] .forecast-list{padding:6px 6px 8px!important}
 #modal#modal[data-view="forecast"] .forecast-row{
  grid-template-columns:40px minmax(0,1fr) auto!important;
  gap:6px!important;
  min-height:54px!important;
  padding:5px 7px 7px!important;
 }
 #modal#modal[data-view="forecast"] .forecast-row>.forecast-bar{
  left:52px!important;
  right:8px!important;
 }
 #modal#modal[data-view="forecast"] .forecast-detail{padding:7px 8px 8px!important}
 #modal#modal[data-view="forecast"] .forecast-detail-head{
  min-height:70px!important;
  gap:8px!important;
  padding:7px 8px!important;
 }
 #modal#modal[data-view="forecast"] .forecast-detail-head h3{font-size:17px!important;line-height:22px!important}
 #modal#modal[data-view="forecast"] .forecast-table{grid-template-columns:88px minmax(0,1fr)!important}
 #modal#modal[data-view="forecast"] .forecast-table dt,
 #modal#modal[data-view="forecast"] .forecast-table dd{min-height:38px!important;padding:7px 3px!important}
 #modal#modal[data-view="forecast"] .forecast-note{max-height:none!important;overflow:visible!important}
}
