@charset "UTF-8";
:root{
  --ink:#35473e;
  --muted:#829087;
  --green:#6d826b;
  --green-dark:#4f6b54;
  --line:#e4e9df;
  --paper:#fffefa;
  --surface:#f3f5ef;
  --accent:#c89e6d;
  --peach:#d4a28f;
  --shadow:0 8px 32px #465b4010;
  --serif:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--surface);
  font-synthesis:none;
  line-height:1.6
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,textarea{
  font:inherit
}
button,a,input,textarea{
  -webkit-tap-highlight-color:transparent
}
button{
  cursor:pointer;
  color:inherit
}
button{
  border:0;
  background:none
}
button:disabled{
  opacity:.55;
  cursor:wait
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid #b59e70;
  outline-offset:4px
}
button svg{
  flex-shrink:0
}
button,a{
  touch-action:manipulation
}
a{
  color:inherit;
  text-decoration:none
}
h1,h2,h3,p{
  margin:0
}
svg.icon,.weather-icon{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round
}
.icon-library{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
[hidden]{
  display:none!important
}
.app-shell{
  max-width:1800px;
  margin:auto
}
.sidebar{
  width:218px;
  position:fixed;
  top:0;
  bottom:0;
  border-right:1px solid #dfe6da;
  background:#eaf0e6;
  padding:36px 25px;
  display:flex;
  flex-direction:column;
  z-index:5
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--serif);
  font-size:30px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:5px
}
.brand small{
  font-family:Georgia,serif;
  display:block;
  font-size:8px;
  letter-spacing:1.5px;
  font-weight:400;
  margin-top:6px
}
.brand-mark{
  width:45px;
  height:47px;
  border-radius:17px 15px 19px 13px;
  border:1px solid #b8c5ab;
  background:#f8faef;
  display:grid;
  place-items:center;
  transform:rotate(-7deg)
}
.brand-mark .icon{
  width:31px;
  height:31px;
  color:#ac9565;
  transform:rotate(7deg)
}
.sidebar-intro{
  font-family:var(--serif);
  font-size:19px;
  line-height:1.9;
  letter-spacing:2px;
  margin:50px 12px 34px;
  color:#789078
}
.main-nav{
  display:grid;
  gap:12px
}
.nav-item{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:15px;
  padding:12px 18px;
  border-radius:13px;
  font-size:15px;
  text-align:left;
  color:#788574
}
.nav-item .icon{
  width:21px;
  height:21px
}
.nav-item.active{
  background:#fffef8;
  color:var(--green-dark);
  box-shadow:0 3px 12px #5f73550a
}
.nav-item:hover{
  background:#f7f9f0
}
.sidebar-footer{
  margin-top:auto;
  padding:35px 12px 0
}
.sidebar-footer p{
  font-family:var(--serif);
  font-size:16px;
  color:#98a18b;
  letter-spacing:1px;
  margin:21px 0 30px
}
.sidebar-footer small{
  display:block;
  font-size:10px;
  color:#a3ad9b;
  margin-top:20px;
  letter-spacing:1px
}
.pencil-decoration{
  display:block;
  width:64px;
  height:7px;
  background:linear-gradient(90deg,#8b9d7e 85%,#d7c7a5 85%);
  transform:rotate(-18deg);
  border-radius:2px;
  position:relative
}
.pencil-decoration:after{
  content:"";
  position:absolute;
  right:-11px;
  top:0;
  border-left:11px solid #bba983;
  border-top:3.5px solid transparent;
  border-bottom:3.5px solid transparent
}
.quiet-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  color:var(--muted);
  padding:8px 0
}
.quiet-button .icon{
  width:17px;
  height:17px
}
main{
  margin-left:218px;
  padding:38px 42px 16px;
  max-width:1510px
}
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px
}
.eyebrow{
  font-family:Georgia,"PingFang SC",serif;
  color:var(--muted);
  font-size:13px;
  letter-spacing:1px;
  margin-bottom:8px
}
h1{
  font-family:var(--serif);
  font-size:30px;
  font-weight:500;
  letter-spacing:1px
}
.city-switch{
  background:#fffefa;
  border:1px solid var(--line);
  border-radius:30px;
  display:flex;
  gap:8px;
  align-items:center;
  padding:9px 17px;
  min-height:44px;
  font-size:15px
}
.city-switch .icon{
  width:17px;
  height:17px;
  color:var(--green)
}
.chevron{
  border-right:1.5px solid #81917e;
  border-bottom:1.5px solid #81917e;
  transform:rotate(45deg);
  width:6px;
  height:6px;
  margin-left:6px;
  margin-top:-4px
}
.data-notice{
  display:flex;
  align-items:center;
  gap:12px;
  color:#899384;
  font-size:12px;
  margin-bottom:23px;
  min-height:33px
}
.mode-label{
  border:1px solid #dddcc8;
  border-radius:6px;
  padding:3px 8px;
  background:#f8f5e9;
  color:#9b8862;
  white-space:nowrap
}
.mode-label.live{
  background:#edf4e9;
  border-color:#d0dec9;
  color:#698462
}
.data-notice button{
  margin-left:auto;
  display:flex;
  gap:5px;
  align-items:center;
  font-size:13px;
  color:#73866c;
  white-space:nowrap
}
.data-notice .icon{
  width:14px;
  height:14px
}
.today-layout{
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);
  gap:22px
}
.paper-card{
  background:var(--paper);
  border:1px solid #e5e9de;
  border-radius:19px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden
}
.hero-weather{
  min-height:405px;
  background:#f6f4e7;
  isolation:isolate
}
.hero-art{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
  z-index:-3
}
.hero-wash{
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(90deg,#faf9edb8 0%,#faf9ed44 44%,#faf9ed00 78%),linear-gradient(0deg,#f8f6e8e8 0%,#f8f6e830 19%,#f8f6e800 50%)
}
.hero-content{
  padding:25px 31px 70px
}
.hero-place{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:19px;
  letter-spacing:1px
}
.hero-location-label{
  font-size:12px;
  color:#708172;
  letter-spacing:1px
}
.temperature-line{
  display:flex;
  align-items:flex-start;
  height:111px;
  margin-top:15px
}
#current-temperature{
  font-family:Georgia,serif;
  font-weight:400;
  font-size:100px;
  line-height:1.1;
  letter-spacing:-8px
}
.degree{
  font-family:Georgia,serif;
  font-size:68px;
  line-height:1.15;
  font-weight:300;
  margin-left:8px
}
.condition-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:19px 0 0 13px;
  font-size:13px;
  color:#66775c;
  gap:4px
}
.condition-block .weather-icon{
  width:31px;
  height:31px;
  color:#aa985f
}
.high-low{
  font-size:13px;
  letter-spacing:.5px;
  color:#71816b;
  margin-top:2px
}
.hero-poem{
  font-family:var(--serif);
  font-size:20px;
  line-height:1.9;
  letter-spacing:2px;
  margin-top:19px;
  color:#5c725b
}
.hero-bottom{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  min-height:52px;
  padding:12px 23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:#6d8065;
  background:#f8f9efb5;
  border-top:1px solid #edf0e2a8;
  backdrop-filter:blur(5px);
  gap:10px
}
.hero-bottom>span{
  display:flex;
  align-items:center;
  gap:7px
}
.tiny-circle{
  width:5px;
  height:5px;
  background:#a2b484;
  border-radius:50%
}
.hero-bottom button{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  white-space:nowrap
}
.hero-bottom .icon{
  width:16px;
  height:16px
}
.daily-letter{
  padding:24px 27px;
  background:linear-gradient(150deg,#fffefa,#fcfbf4)
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.section-heading h2{
  font-family:var(--serif);
  font-size:20px;
  font-weight:500;
  letter-spacing:.5px
}
.section-heading h2>span{
  font-family:"PingFang SC",sans-serif;
  color:#99a08f;
  font-size:11px;
  letter-spacing:0;
  margin-left:11px
}
.mini-label{
  font-family:Georgia,serif;
  font-size:10px;
  letter-spacing:1.8px;
  color:#a5ac97
}
.daily-letter>.section-heading>.icon{
  width:21px;
  height:21px;
  color:#a1ad8c
}
.daily-letter>h2{
  font-family:var(--serif);
  font-weight:400;
  font-size:27px;
  letter-spacing:3px;
  margin-top:18px
}
.letter-copy{
  font-family:var(--serif);
  font-size:17px;
  line-height:1.9;
  color:#76816e;
  margin-top:11px
}
.letter-line{
  height:1px;
  background:linear-gradient(90deg,#d9decf,#e9ecdf55);
  margin:25px 0 18px
}
.weather-details{
  display:grid;
  gap:12px;
  font-size:13px;
  color:#8b9586
}
.weather-details>div{
  display:flex;
  align-items:center;
  gap:10px
}
.weather-details .icon{
  width:17px;
  height:17px;
  color:#87947c
}
.weather-details strong{
  font-weight:400;
  color:#566c52;
  margin-left:auto
}
.small-note{
  font-family:var(--serif);
  color:#a2a78f;
  font-size:12px;
  letter-spacing:1px;
  margin-top:23px
}
.hourly-card{
  grid-column:1/-1;
  padding:23px 26px 20px
}
.section-caption{
  font-family:var(--serif);
  font-size:12px;
  color:#a0a58f;
  white-space:nowrap
}
.hourly-scroll{
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:#dbe2d4 transparent;
  margin-top:24px;
  padding-bottom:8px
}
.hourly-list{
  display:flex;
  min-width:100%;
  width:max-content;
  gap:10px
}
.hour-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:61px;
  font-size:12px;
  color:#8b9686;
  gap:12px;
  border-radius:13px;
  padding:9px 8px
}
.hour-cell:first-child{
  background:#eef3e7;
  color:#62745a
}
.hour-cell strong{
  font-family:Georgia,serif;
  font-size:22px;
  font-weight:400;
  color:#566c51
}
.hour-cell .weather-icon{
  width:25px;
  height:25px;
  color:#b29b60
}
.hour-cell .rain-chance{
  font-size:10px;
  color:#88a6ad;
  min-height:16px
}
.forecast-card{
  padding:23px 25px
}
.text-button{
  font-size:13px;
  color:#778a69;
  padding:4px 0;
  white-space:nowrap;
  border-bottom:1px solid #cfd8c3
}
.daily-list{
  margin-top:18px
}
.daily-row{
  display:grid;
  grid-template-columns:68px 32px 64px 1fr 31px;
  align-items:center;
  gap:7px;
  min-height:49px;
  font-size:13px;
  border-bottom:1px solid #f0f1e9
}
.daily-row:last-child{
  border-bottom:0
}
.daily-row .weather-icon{
  width:22px;
  height:22px;
  color:#b09c67
}
.day-label{
  color:#5c7058
}
.day-label small{
  font-size:10px;
  color:#adb4a5;
  margin-left:5px
}
.day-condition{
  font-size:11px;
  color:#8b9587;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.temperature-range{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:Georgia,serif;
  color:#819584;
  font-size:14px
}
.range-track{
  height:4px;
  background:#f1f1e6;
  flex:1;
  position:relative;
  border-radius:4px;
  min-width:22px
}
.range-bar{
  position:absolute;
  top:0;
  height:100%;
  border-radius:4px;
  background:linear-gradient(90deg,#b9cfae,#e8c98e)
}
.temperature-max{
  color:#ad9770
}
.precipitation{
  font-size:10px;
  color:#90a6a9;
  text-align:right
}
.city-card{
  padding:23px 25px;
  display:flex;
  flex-direction:column
}
.city-card .section-heading h2{
  font-size:18px
}
.icon-button{
  width:36px;
  height:36px;
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  border:1px solid #e4e8dc;
  border-radius:50%;
  color:#829477;
  background:#fffef9
}
.icon-button .icon{
  width:17px;
  height:17px
}
.muted{
  font-size:13px;
  color:#98a28f
}
.city-card>.muted{
  margin-top:9px;
  margin-bottom:22px
}
.favorite-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:17px 0;
  border-top:1px solid #eef0e5;
  text-align:left
}
.favorite-row .city-tile{
  width:41px;
  height:41px;
  display:grid;
  place-items:center;
  background:#eff2e5;
  border-radius:14px;
  color:#8f9d78
}
.favorite-row .city-tile .icon{
  width:22px;
  height:22px
}
.favorite-row strong{
  font-size:15px;
  font-weight:400
}
.favorite-row small{
  display:block;
  font-size:11px;
  color:#a1aa96
}
.favorite-row .selected-city{
  font-size:11px;
  color:#8c9f79;
  margin-left:auto
}
.add-city-line{
  border:1px dashed #d1dcc5;
  border-radius:10px;
  padding:10px;
  color:#84976f;
  font-size:12px;
  margin:14px 0 22px
}
.city-card-footer{
  display:flex;
  align-items:center;
  gap:7px;
  border-top:1px solid #edf0e3;
  padding-top:16px;
  font-size:11px;
  color:#a2ae93;
  margin-top:auto
}
.city-card-footer .icon{
  width:14px;
  height:14px
}
.page-footer{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  font-size:10px;
  color:#a3ac99;
  margin:27px 0 13px;
  letter-spacing:.4px
}
.forecast-intro{
  padding:13px 0 26px
}
.forecast-intro h2{
  font-family:var(--serif);
  font-size:29px;
  font-weight:400;
  letter-spacing:2px;
  margin:10px 0
}
.forecast-intro p{
  font-size:14px;
  color:#8a9783
}
.chart-card{
  padding:25px;
  margin-bottom:22px
}
.chart-legend{
  display:flex;
  gap:18px;
  font-size:12px;
  color:#929e8b
}
.chart-legend span:before{
  content:"";
  display:inline-block;
  width:16px;
  height:3px;
  background:#c2a378;
  border-radius:3px;
  margin-right:7px;
  vertical-align:middle
}
.chart-legend span+span:before{
  background:#8eaaa7
}
.temperature-chart{
  overflow-x:auto;
  margin-top:22px
}
.temperature-chart svg{
  min-width:650px;
  display:block;
  width:100%;
  height:230px
}
.chart-note{
  font-size:12px;
  color:#a1ab96;
  margin-top:14px
}
.full-forecast{
  padding:25px
}
.full-forecast .daily-row{
  grid-template-columns:110px 40px 100px 1fr 60px;
  min-height:53px
}
.sun-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 30px;
  margin-top:22px
}
.sun-card h2{
  font-family:var(--serif);
  font-size:22px;
  font-weight:400
}
.sun-card>div:not(:first-child){
  display:flex;
  gap:12px;
  align-items:center;
  font-size:13px;
  color:#91a084
}
.sun-card strong{
  font-size:20px;
  font-family:Georgia,serif;
  color:#697e60;
  font-weight:400
}
.sun-card .icon{
  color:#baa06e
}
.cities-toolbar{
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 0 24px
}
.primary-button,.secondary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 21px;
  min-height:46px;
  border-radius:11px;
  font-size:14px;
  background:#718568;
  color:white
}
.primary-button:hover{
  background:#5e7757
}
.primary-button .icon,.secondary-button .icon{
  width:18px;
  height:18px
}
.secondary-button{
  background:#edf1e6;
  color:#6f8463;
  border:1px solid #dce4d2
}
.city-collection{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}
.collection-item{
  padding:25px;
  background:#fffefa;
  border:1px solid var(--line);
  border-radius:17px;
  min-height:169px;
  position:relative
}
.collection-item.selected{
  background:#edf3e5;
  border-color:#c1d0b5
}
.collection-item h3{
  font-size:23px;
  font-family:var(--serif);
  font-weight:400;
  margin-top:7px
}
.collection-item p{
  font-size:12px;
  color:#95a189
}
.collection-item .city-open{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:100%;
  text-align:left
}
.collection-item .city-open>.icon{
  color:#90a27d;
  width:24px;
  height:24px
}
.collection-item .city-remove{
  position:absolute;
  right:16px;
  top:16px;
  font-size:12px;
  color:#99a18d;
  padding:5px
}
.collection-item .current-city-tag{
  font-size:11px;
  color:#889e73;
  margin-top:15px
}
.theme-teaser{
  margin-top:24px;
  padding:31px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  background:linear-gradient(130deg,#f8f7ec,#f2f5eb)
}
.theme-teaser h2{
  font-family:var(--serif);
  font-size:24px;
  font-weight:400;
  margin:9px 0
}
.theme-teaser p{
  color:#9aa28a;
  font-size:13px
}
.theme-teaser button{
  white-space:nowrap
}
.modal{
  width:min(480px,calc(100% - 32px));
  border:1px solid #dce4d4;
  padding:28px;
  background:#fffef9;
  color:var(--ink);
  border-radius:22px;
  box-shadow:0 28px 90px #28372436;
  max-height:85dvh;
  overflow-y:auto
}
.modal::backdrop{
  background:#2f433b69;
  backdrop-filter:blur(5px)
}
.modal-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:21px
}
.modal h2{
  font-family:var(--serif);
  font-size:23px;
  font-weight:400;
  letter-spacing:1px
}
.search-form{
  display:flex;
  align-items:center;
  border:1px solid #dfe6d5;
  background:#f4f6ee;
  border-radius:12px;
  padding:10px 13px;
  gap:8px
}
.search-form>.icon{
  width:17px;
  height:17px;
  color:#98a88d;
  flex-shrink:0
}
.search-form input{
  width:100%;
  min-width:0;
  border:0;
  outline:none;
  background:transparent;
  color:#546a4d;
  font-size:14px
}
.search-form button{
  font-size:12px;
  border-bottom:0
}
.modal-help{
  font-size:12px;
  line-height:1.9;
  color:#98a28c;
  margin:12px 0
}
.city-results{
  display:grid;
  gap:8px;
  margin-top:18px
}
.city-result{
  padding:13px 15px;
  background:#f4f6ed;
  border:1px solid transparent;
  border-radius:11px;
  display:flex;
  align-items:center;
  text-align:left;
  gap:12px
}
.city-result:hover{
  border-color:#ccd8bd
}
.city-result>.icon{
  width:18px;
  height:18px;
  color:#8f9f7b
}
.city-result strong{
  font-weight:400;
  font-size:15px
}
.city-result small{
  font-size:11px;
  color:#99a58e;
  display:block
}
.city-result>span:last-child{
  margin-left:auto;
  color:#90a37c;
  font-size:12px
}
.theme-options{
  display:grid;
  gap:12px;
  margin-top:20px
}
.theme-option{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  text-align:left;
  border:1px solid #e1e7d8;
  padding:15px;
  border-radius:13px
}
.theme-swatch{
  display:block;
  width:60px;
  height:55px;
  border-radius:11px;
  background:linear-gradient(145deg,#c9dece,#e9dfb0);
  position:relative;
  overflow:hidden
}
.theme-swatch:after{
  content:"";
  position:absolute;
  width:100px;
  height:45px;
  border-radius:50%;
  background:#f9f6e199;
  bottom:-19px;
  left:-15px;
  transform:rotate(-15deg)
}
.theme-swatch.rose{
  background:linear-gradient(145deg,#c0b5d0,#efbfae)
}
.theme-swatch.mint{
  background:linear-gradient(145deg,#b0d4d2,#d5e1af)
}
.theme-option strong{
  font-weight:400;
  font-size:16px
}
.theme-option small{
  display:block;
  font-size:11px;
  color:#a0a78f;
  margin-top:4px
}
.theme-option>svg{
  margin-left:auto;
  width:17px;
  height:17px;
  color:#8b9c79
}
.ad-modal{
  text-align:center
}
.ad-modal .modal-heading h2{
  font-size:22px
}
.ad-illustration{
  height:126px;
  background:radial-gradient(ellipse at 50% 80%,#dce4c7,transparent 65%);
  display:grid;
  place-items:center
}
.ad-illustration>.icon{
  width:58px;
  height:58px;
  color:#9aab7b;
  stroke-width:1
}
.demo-badge{
  font-size:12px;
  color:#a18a5f;
  background:#f5edda;
  padding:4px 10px;
  border-radius:5px
}
.ad-modal>p:not(.modal-help){
  font-size:14px;
  margin-top:18px;
  line-height:1.9;
  color:#8b987f
}
.wide{
  width:100%;
  margin-top:13px
}
#feedback-form label{
  font-size:14px;
  color:#819275
}
textarea{
  display:block;
  width:100%;
  resize:vertical;
  border:1px solid #dce5d2;
  border-radius:12px;
  background:#f7f8f0;
  padding:14px;
  color:#4c6547;
  margin-top:10px;
  font-size:15px
}
.toast{
  position:fixed;
  bottom:28px;
  left:calc(50% + 90px);
  transform:translateX(-50%);
  background:#405640ed;
  color:#fffdf6;
  padding:12px 20px;
  font-size:13px;
  border-radius:12px;
  z-index:20;
  box-shadow:0 8px 25px #34552d26;
  max-width:calc(100% - 32px);
  text-align:center
}
body[data-theme="rose"]{
  --surface:#f5f1f1;
  --green:#997d8a;
  --green-dark:#806775
}
body[data-theme="rose"] .hero-art{
  filter:hue-rotate(325deg) saturate(.78)
}
body[data-theme="rose"] .sidebar{
  background:#eee6e7
}
body[data-theme="mint"]{
  --surface:#eff4f1;
  --green:#698c83;
  --green-dark:#4c776c
}
body[data-theme="mint"] .hero-art{
  filter:hue-rotate(22deg) saturate(.72)
}
body[data-theme="mint"] .sidebar{
  background:#e2eee7
}
body[data-theme="rose"] .primary-button{
  background:#987b87
}
body[data-theme="mint"] .primary-button{
  background:#698b7f
}
@media(min-width:1600px){
  main{
    padding:45px 60px
  }
  .hero-weather{
    min-height:450px
  }
  .hero-content{
    padding-top:35px
  }
  .hero-poem{
    margin-top:26px
  }
  .daily-letter{
    padding:29px 35px
  }
  .letter-line{
    margin-top:35px
  }
  .weather-details{
    gap:18px
  }
}
@media(max-width:1200px){
  .sidebar{
    width:180px;
    padding:30px 18px
  }
  .brand{
    font-size:26px;
    gap:9px
  }
  .brand-mark{
    width:38px;
    height:42px
  }
  .brand small{
    font-size:7px;
    letter-spacing:1px
  }
  .sidebar-intro{
    font-size:17px
  }
  .nav-item{
    padding:12px 13px;
    gap:10px
  }
  main{
    margin-left:180px;
    padding:30px 25px
  }
  .today-layout{
    grid-template-columns:minmax(0,1.6fr) minmax(235px,1fr);
    gap:17px
  }
  .hero-content{
    padding-left:24px
  }
  .daily-letter{
    padding:23px
  }
  .section-heading h2{
    font-size:18px
  }
  .section-caption{
    display:none
  }
  .daily-row{
    grid-template-columns:54px 25px 49px 1fr 26px;
    gap:5px
  }
  .day-label small{
    display:none
  }
  .forecast-card,.city-card{
    padding:21px 19px
  }
  .temperature-range{
    gap:5px
  }
  .city-card .section-heading h2{
    font-size:17px
  }
  .city-collection{
    grid-template-columns:repeat(2,1fr)
  }
  .hero-poem{
    font-size:18px
  }
  .hero-bottom{
    padding:13px 18px
  }
}
@media(max-width:950px) and (min-width:761px){
  .today-layout{
    grid-template-columns:minmax(0,1fr)
  }
  .hero-weather{
    min-height:420px
  }
  .daily-letter{
    display:none
  }
  .hourly-card{
    grid-column:auto
  }
  .city-card{
    min-height:300px
  }
  .forecast-card .daily-row{
    grid-template-columns:90px 40px 85px 1fr 40px
  }
  .page-footer{
    font-size:10px
  }
}
@media(max-width:760px){
  .sidebar{
    position:fixed;
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:auto;
    height:calc(65px + env(safe-area-inset-bottom));
    padding:0 8px env(safe-area-inset-bottom);
    border-right:0;
    border-top:1px solid #dce5d7;
    background:#fffef9ed;
    backdrop-filter:blur(16px);
    z-index:10
  }
  .brand,.sidebar-intro,.sidebar-footer{
    display:none
  }
  .main-nav{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0
  }
  .nav-item{
    display:flex;
    flex-direction:column;
    gap:2px;
    padding:8px 0 6px;
    font-size:11px;
    min-height:62px;
    background:none!important;
    box-shadow:none!important;
    border-radius:0
  }
  .nav-item .icon{
    width:23px;
    height:23px
  }
  .nav-item.active{
    color:#566f4d
  }
  .nav-item.active span{
    border-bottom:2px solid #a3b88b
  }
  main{
    margin:0;
    padding:24px 18px calc(85px + env(safe-area-inset-bottom));
    max-width:650px;
    margin-inline:auto
  }
  .page-header{
    margin-bottom:16px
  }
  .eyebrow{
    font-size:10px;
    letter-spacing:.5px;
    margin-bottom:7px
  }
  h1{
    font-size:25px;
    letter-spacing:.5px
  }
  .city-switch{
    padding:8px 12px;
    font-size:13px;
    gap:5px;
    min-height:40px
  }
  .city-switch .icon{
    width:15px;
    height:15px
  }
  .data-notice{
    font-size:11px;
    gap:8px;
    margin-bottom:16px
  }
  .data-notice #data-description{
    display:none
  }
  .data-notice button{
    font-size:12px
  }
  .mode-label{
    font-size:10px;
    padding:3px 7px
  }
  .today-layout{
    display:flex;
    flex-direction:column;
    gap:16px
  }
  .hero-weather{
    min-height:424px;
    border-radius:19px
  }
  .hero-content{
    padding:24px 24px 75px
  }
  .hero-art{
    object-position:60% 65%
  }
  .hero-wash{
    background:linear-gradient(90deg,#faf9edb8,#faf9ed38 65%,transparent),linear-gradient(0deg,#f8f6e8e8,transparent 35%)
  }
  .hero-place{
    font-size:19px
  }
  .hero-location-label{
    font-size:11px
  }
  .temperature-line{
    margin-top:16px;
    height:109px
  }
  #current-temperature{
    font-size:95px
  }
  .degree{
    font-size:63px
  }
  .condition-block{
    padding-top:18px
  }
  .hero-poem{
    font-size:21px;
    line-height:1.9;
    margin-top:19px;
    letter-spacing:2px
  }
  .hero-bottom{
    padding:12px 18px;
    font-size:10px
  }
  .hero-bottom button{
    font-size:11px
  }
  .daily-letter{
    padding:21px;
    order:2
  }
  .daily-letter>.section-heading{
    position:absolute;
    right:21px;
    top:23px
  }
  .daily-letter .mini-label{
    display:none
  }
  .daily-letter>h2{
    font-size:22px;
    margin-top:0
  }
  .letter-copy{
    font-size:15px;
    margin-top:7px
  }
  .letter-line{
    margin:15px 0
  }
  .weather-details{
    grid-template-columns:repeat(3,1fr);
    gap:8px
  }
  .weather-details>div{
    flex-wrap:wrap;
    gap:4px;
    font-size:11px
  }
  .weather-details .icon{
    width:15px;
    height:15px
  }
  .weather-details strong{
    margin:0;
    width:100%;
    padding-left:19px;
    font-size:13px
  }
  .small-note{
    display:none
  }
  .hourly-card{
    padding:21px 17px 13px;
    order:1
  }
  .section-heading h2{
    font-size:19px
  }
  .section-heading h2>span{
    font-size:10px;
    margin-left:9px
  }
  .hourly-scroll{
    margin-top:17px
  }
  .hour-cell{
    min-width:54px;
    padding:9px 5px;
    gap:10px
  }
  .hourly-list{
    gap:5px
  }
  .hour-cell strong{
    font-size:21px
  }
  .forecast-card{
    order:3;
    padding:21px 18px
  }
  .daily-row{
    grid-template-columns:54px 27px 56px 1fr 26px;
    gap:6px;
    min-height:51px
  }
  .daily-list{
    margin-top:13px
  }
  .city-card{
    order:4;
    padding:21px
  }
  .city-card .section-heading h2{
    font-size:20px
  }
  .city-card>.muted{
    margin-bottom:14px
  }
  .favorite-row{
    padding:14px 0
  }
  .city-card-footer{
    padding-top:14px;
    margin-top:0
  }
  .add-city-line{
    margin-bottom:15px
  }
  .page-footer{
    display:block;
    font-size:10px;
    line-height:2;
    margin-top:22px
  }
  .page-footer>span{
    display:block
  }
  .forecast-intro{
    padding:5px 0 23px
  }
  .forecast-intro h2{
    font-size:24px;
    letter-spacing:.5px
  }
  .forecast-intro p{
    font-size:12px
  }
  .chart-card{
    padding:22px 18px
  }
  .chart-card .section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:10px
  }
  .chart-card h2{
    font-size:19px
  }
  .chart-legend{
    font-size:11px
  }
  .temperature-chart{
    margin-top:14px
  }
  .temperature-chart svg{
    height:210px
  }
  .chart-note{
    font-size:10px
  }
  .full-forecast{
    padding:22px 17px
  }
  .full-forecast .daily-row{
    grid-template-columns:57px 26px 55px 1fr 27px;
    gap:5px;
    min-height:52px
  }
  .sun-card{
    padding:22px 20px;
    flex-wrap:wrap;
    gap:20px
  }
  .sun-card>div:first-child{
    width:100%
  }
  .sun-card h2{
    font-size:21px
  }
  .sun-card strong{
    font-size:19px
  }
  .sun-card>div:not(:first-child){
    gap:8px;
    font-size:12px
  }
  .cities-toolbar{
    align-items:flex-start;
    flex-direction:column;
    gap:11px
  }
  .city-collection{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .collection-item{
    padding:18px;
    min-height:167px
  }
  .collection-item h3{
    font-size:22px
  }
  .collection-item .city-remove{
    right:10px;
    top:10px;
    font-size:11px
  }
  .theme-teaser{
    padding:24px;
    display:block
  }
  .theme-teaser h2{
    font-size:22px
  }
  .theme-teaser .secondary-button{
    margin-top:20px
  }
  .modal{
    padding:23px 20px
  }
  .modal h2{
    font-size:21px
  }
  .modal .mini-label{
    font-size:9px;
    letter-spacing:1.5px
  }
  .modal-heading{
    gap:10px
  }
  .modal-heading .icon-button{
    width:31px;
    height:31px
  }
  .search-form{
    padding:10px
  }
  .search-form input{
    font-size:13px
  }
  .toast{
    left:50%;
    bottom:calc(80px + env(safe-area-inset-bottom));
    font-size:12px
  }
  .city-collection .current-city-tag{
    font-size:10px
  }
  .city-result{
    padding:12px
  }
  .theme-option{
    padding:12px
  }
  .theme-option strong{
    font-size:15px
  }
}
@media(prefers-reduced-motion:no-preference){
  button,a{
    transition:background .18s,color .18s,border-color .18s,transform .18s
  }
  .city-result:hover,.theme-option:hover{
    transform:translateY(-1px)
  }
  .view.active{
    animation:arrive .28s ease-out
  }
  @keyframes arrive{
    from{
      opacity:.5;
      transform:translateY(4px)
    }
    to{
      opacity:1;
      transform:translateY(0)
    }
  }
}
.header-actions{
  display:flex;
  align-items:center;
  gap:10px
}
.mobile-feedback{
  display:none
}
@media(max-width:760px){
  .mobile-feedback{
    display:grid
  }
  .header-actions{
    gap:7px
  }
  .mobile-feedback{
    width:32px;
    height:32px
  }
  .page-header{
    gap:10px
  }
}

/* 全国城市与私有反馈：保持操作可见，关闭按钮不随长表单消失。 */
.modal-heading { position:sticky; top:-28px; z-index:3; background:var(--paper); padding-top:12px; padding-bottom:12px; }
.modal-heading .icon-button { flex-shrink:0; }
.location-choice { display:flex; align-items:flex-start; gap:14px; margin:16px 0; border-bottom:1px solid var(--line); padding-bottom:14px; }
.location-choice>button { flex-shrink:0; min-height:44px; }
.location-choice .modal-help { margin:0; font-size:13px; }
.catalog-attribution { font-size:12px; line-height:1.7; color:var(--muted); }
.catalog-attribution a { color:inherit; text-underline-offset:3px; }
#feedback-form .feedback-consent { display:flex; align-items:flex-start; gap:10px; margin:18px 0; font:14px/1.7 var(--sans); }
.feedback-consent input { width:19px; height:19px; margin-top:3px; flex-shrink:0; accent-color:var(--accent); }
#source-label { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; font-size:12px; line-height:1.8; }
#source-label a { color:inherit; text-underline-offset:3px; }
.empty-weather { padding:24px 12px; color:var(--muted); text-align:center; line-height:1.8; }
.card-share-actions { display:flex; flex-wrap:wrap; gap:10px; }
#card-image-link { display:block; color:var(--ink); line-height:2; }
#card-image-link[hidden] { display:none; }
@media (max-width:600px) { .modal-heading {top:-22px;} .location-choice {display:block;} .location-choice .modal-help {margin-top:10px;} }

/* 心意卡独立信纸：五种皮肤与导出图片共用插画，正文始终保持深色可读。 */
.warm-card-preview { background:#fff9f2; color:#623f45; border:1px solid #d78d9c; overflow:hidden; }
.warm-card-preview[data-card-theme="rose"] { background:#fff5ee; color:#6c433d; border-color:#de9775; }
.warm-card-preview[data-card-theme="mint"] { background:#f4faf2; color:#254f49; border-color:#76a99d; }
.warm-card-preview[data-card-theme="dusk"] { background:#f2f3fc; color:#333e67; border-color:#909ecf; }
.warm-card-preview[data-card-theme="amber"] { background:#fff8e9; color:#684329; border-color:#c99156; }
.card-skin-label { display:block; font-size:13px; margin-bottom:8px; }
.card-preview-art { width:100%; height:145px; display:block; object-fit:cover; border-radius:10px; margin:16px 0 20px; }
.warm-card-preview .preview-message { line-height:1.95; white-space:pre-wrap; overflow-wrap:anywhere; }

body #source-label { flex-direction:row; gap:4px 12px; color:var(--muted); font-size:12px; line-height:1.8; }
body #source-label a { display:inline-flex; align-items:center; min-height:44px; padding:4px 0; color:inherit; font-size:inherit; }
body #source-label .source-brand { font-weight:400; }
#compose-dialog .modal-heading .icon-button,.modal .modal-heading .icon-button { min-width:44px; min-height:44px; }
#warm-card-preview[data-card-theme="lake"] { background:#fff9f2; color:#623f45; border-color:#d78d9c; }

/* 写卡入口直接展示五种信纸，缩略图与下拉选择共用当前皮肤，不占用正文输入区域。 */
#compose-dialog .card-paper-picker { margin:0 0 20px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--letter-paper); }
.card-paper-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
#compose-dialog .card-paper-heading h3 { margin:0; font:600 17px/1.5 var(--serif); color:var(--ink); letter-spacing:.2px; }
.card-paper-heading>span { flex-shrink:0; font-size:11px; line-height:1.8; color:var(--muted); white-space:nowrap; }
.card-paper-help { margin:5px 0 12px; font-size:13px; line-height:1.7; color:var(--muted); }
#card-paper-preview { display:block; width:100%; height:106px; object-fit:cover; border:1px solid var(--line); border-radius:10px; margin:0 0 12px; }
#card-skin-options { display:grid; grid-template-columns:repeat(5,minmax(44px,1fr)); gap:6px; }
#card-skin-options button[data-card-theme] { position:relative; display:flex; flex-direction:column; gap:5px; align-items:stretch; justify-content:flex-start; min-width:44px; min-height:44px; width:100%; margin:0; padding:5px; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--ink); text-align:center; cursor:pointer; }
#card-skin-options button[data-card-theme] img { display:block; width:100%; height:43px; object-fit:cover; border-radius:5px; }
#card-skin-options button[data-card-theme] :is(span,strong) { display:block; font:500 12px/1.35 var(--sans); min-height:1.5em; overflow-wrap:anywhere; }
#card-skin-options button[data-card-theme][aria-pressed="true"] { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
#card-skin-options button[data-card-theme][aria-pressed="true"]::after { content:'✓'; position:absolute; top:3px; right:3px; display:grid; place-items:center; width:18px; height:18px; border:1px solid var(--paper); border-radius:50%; background:var(--accent); color:var(--paper); font:700 12px/1 var(--sans); }
#card-skin-options button[data-card-theme]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.card-skin-select-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.card-skin-select-row>label { flex-shrink:0; font-size:12px; color:var(--muted); }
#compose-dialog .card-skin-select-row #card-theme { width:auto; min-width:140px; min-height:44px; flex:1; margin:0; font-size:13px; }
@media(max-width:420px) {
  #compose-dialog .card-paper-picker { padding:10px; }
  #compose-dialog .card-paper-heading h3 { font-size:15px; }
  .card-paper-heading>span { font-size:11px; }
  #card-skin-options { gap:3px; }
  #card-skin-options button[data-card-theme] { padding:3px; }
  #card-skin-options button[data-card-theme] img { height:38px; }
  #card-skin-options button[data-card-theme] :is(span,strong) { font-size:12px; }
  #card-paper-preview { height:94px; }
}

.location-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; flex-shrink:0; }
.location-actions>button { min-height:44px; }
#cancel-location[hidden] { display:none; }

/* 写卡编辑器沿主主题，信纸选择与预览使用独立纸面颜色，避免星夜浅字落在奶油底上。 */
body #compose-dialog .modal-heading { background:var(--paper); color:var(--ink); }
#compose-dialog .card-paper-picker,
#compose-dialog #warm-card-preview {
 --ink:#623f45; --muted:#76535a; --paper:#fff9f2; --soft:#f4e7e0; --line:#c7adb2;
 --accent:#623f45; --action:#623f45; --button-text:#ffffff; --letter-paper:var(--paper);
 color:var(--ink); color-scheme:light;
}
#compose-dialog .card-paper-picker[data-card-theme="rose"],
#compose-dialog #warm-card-preview[data-card-theme="rose"] {
 --ink:#6c433d; --muted:#7b5149; --paper:#fff5ee; --soft:#f6e4dc; --line:#c9a69a;
 --accent:#6c433d; --action:#6c433d;
}
#compose-dialog .card-paper-picker[data-card-theme="mint"],
#compose-dialog #warm-card-preview[data-card-theme="mint"] {
 --ink:#254f49; --muted:#466b62; --paper:#f4faf2; --soft:#e4f0e9; --line:#9fbbb0;
 --accent:#254f49; --action:#254f49;
}
#compose-dialog .card-paper-picker[data-card-theme="dusk"],
#compose-dialog #warm-card-preview[data-card-theme="dusk"] {
 --ink:#333e67; --muted:#555f80; --paper:#f2f3fc; --soft:#e3e7f7; --line:#a7b0ce;
 --accent:#333e67; --action:#333e67;
}
#compose-dialog .card-paper-picker[data-card-theme="amber"],
#compose-dialog #warm-card-preview[data-card-theme="amber"] {
 --ink:#684329; --muted:#795a3c; --paper:#fff8e9; --soft:#f3e4c7; --line:#ceb58b;
 --accent:#684329; --action:#684329;
}
#compose-dialog #warm-card-preview { background:var(--paper); border-color:var(--line); }
#compose-dialog .card-paper-picker :is(h3,p,label,span,select,button) { color:var(--ink); }
#compose-dialog .card-paper-picker :is(.card-paper-help,.card-paper-heading>span,.card-skin-select-row>label) { color:var(--muted); }
#compose-dialog .card-paper-picker #card-theme { color:var(--ink); background:var(--paper); border-color:var(--line); }
#compose-dialog #card-skin-options button[aria-pressed="true"] { border-color:var(--action); box-shadow:0 0 0 1px var(--action); }
#compose-dialog #card-skin-options button[aria-pressed="true"]::after { background:var(--action); color:var(--button-text); }
#compose-dialog #warm-card-preview :is(.preview-recipient,.preview-message,.preview-signature,.preview-letterhead) { color:var(--ink); }
#compose-dialog #warm-card-preview :is(.preview-local-state,.modal-help) { color:var(--muted); }
#compose-dialog #warm-card-preview .primary-button { background:var(--action); border-color:var(--action); color:var(--button-text); }
#compose-dialog #warm-card-preview .secondary-button { background:var(--paper); border-color:var(--action); color:var(--action); }

/* 本机心里话收在正文附近；只在展开时占用空间，颜色沿编辑器而非信纸预览。 */
#compose-dialog .card-template-helper { margin:16px 0 20px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--paper); }
#compose-dialog .card-template-helper summary { min-height:44px; padding:12px; cursor:pointer; font-size:14px; line-height:1.5; font-weight:600; }
#compose-dialog .card-template-body { padding:0 12px 12px; }
#compose-dialog .card-template-help { margin:0 0 10px; color:var(--muted)!important; font-size:13px; line-height:1.7; }
#compose-dialog .card-template-relations { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
#compose-dialog .card-template-relations button { min-height:44px; padding:6px 2px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--paper); font-size:13px; line-height:1.5; }
#compose-dialog .card-template-relations button[aria-pressed="true"] { color:var(--paper)!important; background:var(--ink); border-color:var(--ink); font-weight:600; }
#compose-dialog .card-template-candidate { margin:14px 0; color:var(--ink); font-size:15px; line-height:1.9; overflow-wrap:anywhere; }
#compose-dialog .card-template-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
#compose-dialog .card-template-actions button { min-height:44px; margin:0; padding:9px 16px; font-size:14px; line-height:1.5; }
#compose-dialog .card-template-actions .primary-button { color:var(--paper)!important; background:var(--ink)!important; border-color:var(--ink); }
#compose-dialog .card-template-actions .secondary-button { color:var(--ink)!important; background:var(--paper); border-color:var(--line); }
#compose-dialog .card-template-confirm { margin-top:14px; padding-top:12px; border-top:1px dashed var(--line); }
#compose-dialog .card-template-confirm p { margin:0 0 10px; color:var(--ink); font-size:14px; line-height:1.8; }
#compose-dialog #card-template-status { margin:10px 0 0; }
#compose-dialog #card-template-status:empty { display:none; }
#compose-dialog .card-template-helper button:focus-visible,
#compose-dialog .card-template-helper summary:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
@media(max-width:380px) { #compose-dialog .card-template-relations { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* 封信只播放一次收纸与合盖，不循环闪动；分享动作仍由独立按钮明确发起。 */
#compose-dialog .compose-actions { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
#compose-dialog .compose-actions button { flex:1; min-height:44px; padding:10px 14px; font-size:15px; }
#compose-dialog .sealed-letter-panel { margin-top:22px; padding:20px 16px; border:1px dashed var(--line); border-radius:16px; color:var(--ink); background:var(--paper); text-align:center; }
#compose-dialog .sealed-letter-panel h3 { margin:14px 0 8px; font-family:var(--serif); font-size:20px; line-height:1.6; }
#compose-dialog .sealed-letter-panel .card-template-actions { justify-content:center; }
#compose-dialog .sealed-envelope { position:relative; width:170px; height:112px; margin:28px auto 12px; border:1px solid #99754a; border-radius:5px 5px 10px 10px; background:#f1dcb9; box-shadow:0 7px 15px #463a2020; }
#compose-dialog .envelope-letter { position:absolute; inset:9px 12px; border-radius:5px; background:repeating-linear-gradient(#fffaf0 0 18px,#d5c6b4 19px,#fffaf0 20px); transform:translateY(0); }
#compose-dialog .envelope-flap { position:absolute; z-index:2; inset:0 0 auto; height:66%; background:#f8e7c9; clip-path:polygon(0 0,100% 0,50% 100%); transform-origin:50% 0; }
#compose-dialog .sealed-envelope::after { content:''; position:absolute; z-index:1; inset:25px 0 0; background:#f1dcb9; clip-path:polygon(0 0,50% 50%,100% 0,100% 100%,0 100%); }
#compose-dialog .sealed-envelope img { position:absolute; z-index:3; left:65px; top:47px; }
#compose-dialog .is-sealing .envelope-letter { animation:card-letter-tuck .65s ease both; }
#compose-dialog .is-sealing .envelope-flap { animation:card-envelope-close .65s ease both; }
#compose-dialog .preview-source-credit { margin:16px 0; font-size:13px; line-height:1.8; color:var(--muted)!important; overflow-wrap:anywhere; }
#compose-dialog #manual-letter-link { margin-top:12px; text-align:left; }
#compose-dialog #manual-letter-link summary { min-height:44px; padding:10px 0; font-size:14px; }
#compose-dialog #sealed-letter-url { width:100%; padding:12px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:8px; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
@keyframes card-letter-tuck { 0% { transform:translateY(-42px); } 80%,100% { transform:translateY(0); } }
@keyframes card-envelope-close { 0%,35% { transform:rotateX(160deg); } 100% { transform:rotateX(0); } }
@media(prefers-reduced-motion:reduce) { #compose-dialog .is-sealing :is(.envelope-letter,.envelope-flap) { animation:none; } }

/* 无天气或无目标时段时用简洁说明替代巨大占位，来信两行与控制按钮分排。 */
body.skin-postcard .hero-weather { min-height:0; }
body.skin-postcard .hero-content { padding-bottom:20px; min-height:220px; }
body.skin-postcard .hero-weather[data-weather-state="loading"] .hero-content,
body.skin-postcard .hero-weather[data-weather-state="unavailable"] .hero-content { min-height:164px; }
body .hero-weather .temperature-line[hidden],body #current-range[hidden],body .departure-selection[hidden],body #departure-empty[hidden],body #hero-weather-empty[hidden] { display:none!important; }
body.skin-postcard .weather-empty { max-width:62%; margin-top:18px; }
body.skin-postcard .weather-empty strong { display:block; color:var(--ink); font-size:22px; font-weight:600; line-height:1.5; }
body.skin-postcard .weather-empty p { margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.8; }
body.skin-postcard .hero-letter-strip { position:relative; left:auto; right:auto; bottom:auto; display:grid; grid-template-columns:minmax(0,1fr) 72px 88px; gap:5px 8px; padding:10px 12px 5px; border:0; border-top:1px solid var(--line); border-radius:0; }
body.skin-postcard .hero-letter-strip .hero-letter-open { grid-column:1/-1; min-height:60px; padding:0; }
body.skin-postcard .hero-place { padding-right:0; }
body.skin-postcard .hero-letter-copy { flex:1; min-width:0; overflow:hidden; }
body.skin-postcard .hero-letter-window { display:block; width:100%; height:3.4em; overflow:hidden; font-size:14px; line-height:1.7; }
body.skin-postcard #hero-letter-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; width:100%; height:3.4em; max-width:100%; white-space:normal; overflow:hidden; font-size:14px; line-height:1.7; }
body.skin-postcard .hero-letter-changed #hero-letter-text { animation:hero-letter-ink .45s ease-out both; }
@keyframes hero-letter-ink { from { opacity:.3; } to { opacity:1; } }
body.skin-postcard.letters-motion-paused #hero-letter-text { animation:none; }
body.skin-postcard #human-letter-preview { height:5.85em; -webkit-line-clamp:3; }
body.skin-postcard #human-letter-signature { display:block; height:1.8em; line-height:1.8; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
@media(prefers-reduced-motion:reduce) { body.skin-postcard .hero-letter-changed #hero-letter-text { animation:none; } }
body.skin-postcard .hero-letter-cadence { grid-column:1; align-self:center; color:var(--muted); font-size:11px; line-height:1.5; }
body.skin-postcard .data-notice { display:flex; align-items:center; flex-wrap:nowrap; gap:10px; margin-bottom:12px; }
body.skin-postcard .data-notice #data-description { flex:1; min-width:0; }
body.skin-postcard .mode-label,body.skin-postcard .mode-label.live { flex-shrink:0; padding:0; border:0; background:transparent; color:var(--muted); font-size:12px; }
body.skin-postcard .mode-label::before { content:''; display:inline-block; width:5px; height:5px; margin-right:5px; border-radius:50%; background:currentColor; vertical-align:middle; }
body.skin-postcard .weather-bubble-tools { display:flex; align-items:center; flex-shrink:0; gap:10px; margin-left:auto; }
body.skin-postcard .data-notice .weather-bubble { position:relative; display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; min-width:44px; min-height:44px; margin:0; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--icon-ink,var(--action)); box-shadow:0 2px 5px #00000005; cursor:pointer; }
body.skin-postcard .data-notice .weather-bubble:hover { border-color:var(--action); background:var(--soft); }
body.skin-postcard .data-notice .weather-bubble:focus-visible { outline:2px solid var(--action); outline-offset:3px; }
body.skin-postcard .data-notice .weather-bubble:disabled { cursor:wait; opacity:.65; }
body.skin-postcard .data-notice #theme-button { position:relative; top:auto; right:auto; z-index:auto; width:44px; min-height:44px; padding:0; gap:0; border-radius:50%; }
body.skin-postcard .data-notice #hero-theme-preview { width:30px; height:30px; border-radius:50%; border:0; object-fit:cover; }
body.skin-postcard .theme-bubble-mark { position:absolute; right:0; bottom:0; display:grid; place-items:center; width:17px; height:17px; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--icon-ink,var(--action)); }
body.skin-postcard .theme-bubble-mark .icon { width:11px; height:11px; stroke-width:1.6; }
body.skin-postcard #refresh-weather>.icon { width:20px; height:20px; stroke-width:1.65; }
body.skin-postcard #refresh-weather[aria-busy="true"]>.icon { animation:weather-bubble-turn 1.1s linear infinite; }
@keyframes weather-bubble-turn { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { body.skin-postcard #refresh-weather[aria-busy="true"]>.icon { animation:none; opacity:.55; } }
@media(max-width:600px) { body.skin-postcard .data-notice #data-description { display:none; } }
@media(max-width:360px) { body.skin-postcard .data-notice { gap:7px; } }
body.skin-postcard #hero-letter-origin { margin-bottom:3px; font-size:11px; }
body.skin-postcard #hero-letter-next { grid-column:2; }
body.skin-postcard #hero-letter-next,body.skin-postcard #hero-letter-pause { min-height:44px; background:transparent; color:var(--action)!important; border:0; padding:4px; font-size:12px; }
body.skin-postcard .departure-empty { padding:16px 0 8px; }
body.skin-postcard .departure-empty strong { display:block; color:var(--ink); font-size:16px; font-weight:600; line-height:1.7; }
body.skin-postcard .departure-empty p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.8; }
@media(max-width:600px) {
 body.skin-postcard .hero-content { min-height:190px; }
 body.skin-postcard .hero-weather[data-weather-state="loading"] .hero-content,
 body.skin-postcard .hero-weather[data-weather-state="unavailable"] .hero-content { min-height:162px; }
 body.skin-postcard .weather-empty strong { font-size:18px; }
 body.skin-postcard .weather-empty p { font-size:13px; }
}

body.skin-postcard .hero-weather[data-weather-state="loading"] .hero-content,
body.skin-postcard .hero-weather[data-weather-state="unavailable"] .hero-content { position:relative; isolation:isolate; }
body.skin-postcard .hero-weather[data-weather-state="loading"] .hero-content::before,
body.skin-postcard .hero-weather[data-weather-state="unavailable"] .hero-content::before { content:""; position:absolute; inset:0 auto 0 0; width:65%; background:var(--paper); z-index:-1; }

/* 入口像可触摸的调色卡；首次提示在天气之后正常排版，不遮罩也不强迫完成。 */
.first-visit-guide { grid-column:1/-1; margin:0 0 16px; padding:8px 14px 12px; border:1px dashed var(--line); border-radius:14px; color:var(--ink); background:var(--paper); }
.first-guide-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:14px; }
.first-guide-heading>button { min-width:44px; min-height:44px; padding:4px; border:0; background:transparent; color:var(--ink); font-size:23px; }
.first-guide-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.first-guide-actions button { min-height:44px; padding:8px 3px; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--ink); font-size:13px; }

@media(min-width:951px) {
 body.first-guide-visible #first-visit-guide { grid-row:2; }
 body.first-guide-visible .departure-card,body.first-guide-visible .hourly-card { grid-row:3; }
 body.first-guide-visible .forecast-card,body.first-guide-visible .daily-letter { grid-row:4; }
 body.first-guide-visible .compose-card { grid-row:5; }
 body.first-guide-visible .city-card { grid-row:6; }
 body.first-guide-visible .human-letters { grid-row:7; }
}
body.skin-postcard #human-letters { --paper:#fffaf0; --ink:#443d35; --muted:#6d6051; --line:#dacbb5; --soft:#f2eadd; --action:#385c4c; --button-text:#fffaf0; --letter-paper:#fffdf7; --paper-shadow:#e4d9c5; background:var(--paper); padding:22px; border-width:1px; box-shadow:none; }
body.skin-postcard #human-letters h2 { font-size:25px; }
body.skin-postcard #human-letter-stage { --paper:#fffdf7; --ink:#443d35; --muted:#6d6051; --line:#e3d8c8; --action:#385c4c; background:#fffdf7; padding:18px; box-shadow:none; border-style:dashed; }
body.skin-postcard #human-letter-source { border:0; border-radius:0; padding:0; font-size:12px; }
body.skin-postcard #human-letter-motion { min-width:64px; min-height:44px; margin-left:auto; padding:7px 6px; border:0; border-radius:8px; font-size:12px; background:transparent; white-space:normal; }
body.skin-postcard .human-letter-actions :is(#human-letter-next,#human-letter-write,#human-letter-refresh) { padding:8px 6px; border:0; background:transparent; box-shadow:none; font-size:13px; }
body.skin-postcard .human-letter-tabs { overflow-x:auto; flex-wrap:nowrap; }
body.skin-postcard .human-letter-tabs button { flex-shrink:0; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; }
body.skin-postcard .human-letter-tabs button[aria-pressed="true"] { border:0; border-bottom:2px solid var(--action); padding:8px 18px; }
body.skin-postcard #human-letter-open { padding:10px 0; margin:8px 0; }
body.skin-postcard #human-letter-open strong { font-size:21px; }
body.skin-postcard #human-plane-handle { animation:soft-plane-float 4s ease-in-out infinite; }
body.skin-postcard.letters-motion-paused #human-plane-handle,body.skin-postcard.letters-motion-paused .hero-mini-plane { animation:none!important; }
@keyframes soft-plane-float { 0%,100% { transform:translateY(0) rotate(-5deg); } 50% { transform:translateY(-6px) rotate(2deg); } }
@media(prefers-reduced-motion:reduce) { body.skin-postcard #human-plane-handle { animation:none!important; } }
#compose-dialog .card-paper-picker { padding:10px; border:0; border-bottom:1px solid var(--line); border-radius:10px; background:var(--paper); margin-bottom:12px; }
#compose-dialog #card-paper-preview { display:none; }
#compose-dialog #card-skin-help { margin:4px 0 8px; font-size:12px; }
#compose-dialog #card-skin-title { font-size:16px; }
#compose-dialog .card-paper-heading>span { display:none; }
#compose-dialog .card-skin-select-row { margin-top:7px; }
#compose-dialog #card-theme { min-height:44px; padding:5px 8px; }
#compose-dialog #card-skin-options button[data-card-theme] img { height:36px; }
#compose-dialog #card-skin-options button[data-card-theme] { min-height:64px; }
#compose-dialog .compose-form-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin:14px 0; }
#compose-dialog .compose-form-row input { width:100%; min-width:0; min-height:44px; }
#compose-dialog .compose-form-row label { font-size:13px; }
#compose-dialog .card-template-helper { margin:12px 0; }
#compose-dialog #note-message { min-height:136px; height:136px; font-size:16px; scroll-margin:100px; }
#compose-dialog .modal-heading { position:sticky; top:-1px; padding:12px 0; margin-bottom:8px; z-index:4; }
#compose-dialog .mini-label { font-size:10px; }
#compose-dialog h2 { font-size:22px; }
#compose-dialog .card-template-empty { display:flex; gap:12px; align-items:center; margin-top:12px; }
#compose-dialog .card-template-empty[hidden] { display:none; }
#compose-dialog .card-template-empty p { margin:0; color:var(--muted)!important; font-size:13px; line-height:1.8; }
#compose-dialog .card-template-empty button { flex-shrink:0; min-height:44px; padding:7px; border:0; background:transparent; font-size:13px; }
#compose-dialog .compose-error { padding:9px 11px; margin:8px 0; border-left:3px solid var(--action); background:var(--soft); color:var(--ink)!important; font-size:14px; line-height:1.7; }
#compose-dialog [aria-invalid="true"] { border:2px solid var(--action); }
.toast.dialog-toast { position:fixed; bottom:auto; z-index:20; }
body.skin-postcard #human-letters .human-letter-heading { flex-direction:row; align-items:flex-start; gap:12px; }
body.skin-postcard #human-letters .human-letter-heading>div { flex:1; min-width:0; }
body.skin-postcard #human-letters #human-letter-motion { width:auto; max-width:92px; flex:0 0 auto; }
#compose-dialog .modal-heading::before { content:''; position:absolute; left:0; right:0; top:-32px; height:32px; background:var(--paper); pointer-events:none; }

/* 寄给总会晴：私有建议与心意卡分开，沿五主题纸面与墨色显示。 */
#feedback-dialog {
  width:min(560px,calc(100% - 32px));
  max-width:560px;
  max-height:calc(100dvh - 32px);
  padding:26px;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:22px;
  overflow-x:hidden;
  overscroll-behavior:contain;
}
#feedback-dialog .feedback-heading {
  top:-26px;
  margin:0;
  padding:6px 0 12px;
  background:var(--paper);
}
#feedback-dialog .feedback-heading::before {
  content:'';
  position:absolute;
  inset:-26px 0 auto;
  height:26px;
  background:var(--paper);
  pointer-events:none;
}
#feedback-dialog .feedback-heading .mini-label {
  display:block;
  margin-bottom:6px;
  color:var(--muted)!important;
  font-size:12px;
  line-height:1.6;
  letter-spacing:2px;
}
#feedback-dialog #feedback-title { font:600 28px/1.35 var(--serif); letter-spacing:1px; color:var(--ink)!important; }
#feedback-dialog .feedback-heading .icon-button { width:40px; height:40px; min-width:40px; border:1px solid var(--line); border-radius:50%; background:var(--soft); }
#feedback-dialog .feedback-intro { margin:0 0 20px; color:var(--muted)!important; font-size:14px; line-height:1.8; }
#feedback-dialog .feedback-kind-options { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
#feedback-dialog .feedback-kind-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-width:0; min-height:142px; padding:16px; border:1px solid var(--line); border-radius:15px; color:var(--ink); background:var(--paper); text-align:left; }
#feedback-dialog .feedback-kind-card[aria-pressed="true"] { border:2px solid var(--action); padding:15px; background:var(--soft); }
#feedback-dialog .feedback-kind-card:hover { border-color:var(--action); }
#feedback-dialog .feedback-kind-card:focus-visible { outline:3px solid var(--action); outline-offset:3px; }
#feedback-dialog .feedback-kind-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--soft); }
#feedback-dialog .feedback-kind-icon .icon { width:23px; height:23px; color:var(--action); }
#feedback-dialog .feedback-kind-card strong { font-size:17px; line-height:1.5; font-weight:600; }
#feedback-dialog .feedback-kind-caption { color:var(--muted)!important; font-size:12px; line-height:1.7; }
#feedback-dialog .feedback-kind-check { position:absolute; top:15px; right:15px; font-size:17px; color:var(--action)!important; }
#feedback-dialog .feedback-kind-arrow { position:absolute; top:17px; right:16px; font-size:18px; color:var(--action)!important; }
#feedback-dialog .feedback-heart-status { margin:10px 0 20px; color:var(--muted)!important; font-size:12px; line-height:1.7; text-align:right; }
#feedback-dialog .feedback-note-form { padding-top:18px; border-top:1px dashed var(--line); }
#feedback-dialog .feedback-field-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
#feedback-dialog #feedback-form .feedback-field-heading label { margin:0; font-size:16px; line-height:1.7; font-weight:600; color:var(--ink)!important; }
#feedback-dialog .feedback-private-label { display:inline-flex; align-items:center; gap:4px; color:var(--muted)!important; font-size:12px; line-height:1.7; }
#feedback-dialog .feedback-private-label .icon { width:14px; height:14px; }
#feedback-dialog #feedback-text { min-height:132px; margin:0; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--soft); color:var(--ink); font-size:16px; line-height:1.8; font-family:inherit; }
#feedback-dialog #feedback-text::placeholder { color:var(--muted); opacity:1; }
#feedback-dialog .feedback-text-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-top:8px; }
#feedback-dialog .feedback-text-meta p,#feedback-dialog #feedback-count { color:var(--muted)!important; font-size:12px; line-height:1.7; }
#feedback-dialog #feedback-count { flex-shrink:0; font-variant-numeric:tabular-nums; }
#feedback-dialog #feedback-form .feedback-consent { display:flex; align-items:flex-start; gap:9px; margin:18px 0 12px; font-size:13px; line-height:1.8; color:var(--ink); }
#feedback-dialog .feedback-consent input { width:18px; height:18px; margin:3px 0 0; border-radius:4px; accent-color:var(--action); flex-shrink:0; }
#feedback-dialog .feedback-status { margin:12px 0; padding:10px 12px; border-left:3px solid var(--action); border-radius:0 8px 8px 0; background:var(--soft); color:var(--ink)!important; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
#feedback-dialog .feedback-status:empty { display:none; }
#feedback-dialog .feedback-receipt-details { margin:12px 0; font-size:12px; line-height:1.8; }
#feedback-dialog .feedback-receipt-details summary { width:fit-content; min-height:32px; padding:5px 0; cursor:pointer; color:var(--muted); }
#feedback-dialog .feedback-receipt-details p { margin:5px 0; color:var(--muted)!important; }
#feedback-dialog .feedback-receipt-details code { display:block; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--soft); color:var(--ink); font:12px/1.8 ui-monospace,SFMono-Regular,monospace; overflow-wrap:anywhere; }
#feedback-dialog .feedback-submit { display:flex; width:100%; min-height:48px; margin:16px 0 0; padding:11px 16px; border-radius:12px; font-size:16px; font-weight:600; }
#feedback-dialog .feedback-thanks { margin:10px 0 0; color:var(--muted)!important; text-align:center; font-size:12px; line-height:1.8; }
@media(max-width:600px) {
  #feedback-dialog { width:calc(100% - 20px); max-height:calc(100dvh - 20px); padding:20px; border-radius:20px; }
  #feedback-dialog .feedback-heading { top:-20px; padding-top:4px; }
  #feedback-dialog .feedback-heading::before { top:-20px; height:20px; }
  #feedback-dialog #feedback-title { font-size:25px; }
  #feedback-dialog .feedback-kind-options { gap:10px; }
  #feedback-dialog .feedback-kind-card { min-height:136px; padding:13px 12px; }
  #feedback-dialog .feedback-kind-card[aria-pressed="true"] { padding:12px 11px; }
  #feedback-dialog .feedback-kind-card strong { font-size:16px; }
  #feedback-dialog .feedback-kind-caption { font-size:11px; }
  #feedback-dialog .feedback-kind-check { top:13px; right:12px; }
  #feedback-dialog .feedback-kind-arrow { top:13px; right:12px; }
  #feedback-dialog .feedback-heart-status { margin-bottom:16px; text-align:left; }
}
