*{box-sizing:border-box;margin:0;padding:0;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;}
:root{
  --fs-module-title:clamp(12px,0.85vw,15px);
  --fs-label:clamp(11px,0.78vw,14px);
  --fs-label-big:clamp(12px,0.85vw,16px);
  --fs-value:clamp(13px,0.95vw,17px);
  --fs-value-big:clamp(16px,1.25vw,22px);
  --fs-large:clamp(18px,1.6vw,26px);
  --fs-table:clamp(11px,0.78vw,14px);
  --fs-badge:clamp(14px,1.0vw,18px);
  --fs-topbar-code:clamp(12px,0.85vw,15px);
  --fs-topbar-title:clamp(12px,0.8vw,14px);
  --fs-topbar-clock:clamp(16px,1.4vw,24px);
}
html,body{width:100%;height:100%;overflow:hidden;background:#0a0e1a;color:#e8eaf6;}
body{
  background:
    radial-gradient(circle at 50% 0%,rgba(0,229,255,.10),transparent 34%),
    linear-gradient(rgba(0,229,255,.032) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,229,255,.032) 1px,transparent 1px),
    #0a0e1a;
  background-size:auto,40px 40px,40px 40px,auto;
}
.app{width:100vw;height:100vh;display:flex;flex-direction:column;overflow:hidden;}
.topbar{
  position:relative;height:56px;flex:0 0 56px;display:flex;align-items:center;justify-content:space-between;
  padding:0 24px;background:linear-gradient(180deg,rgba(10,14,26,.97),rgba(10,14,26,.78));
  border-bottom:1px solid rgba(0,229,255,0.16);box-shadow:0 2px 18px rgba(0,0,0,.42);z-index:10;
}
.brand{display:flex;align-items:center;gap:12px;min-width:0;overflow:hidden;flex:1;}
.brand-icon{display:inline-flex;align-items:center;justify-content:center;color:#00e5ff;}
.brand-icon svg{display:block;}
.brand-code{font-size:var(--fs-topbar-code);letter-spacing:.16em;color:#00e5ff;text-shadow:0 0 12px rgba(0,229,255,.5);font-weight:700;}
.brand-title{font-size:var(--fs-topbar-title);color:rgba(232,234,246,0.66);font-weight:600;line-height:1.3;}
.topbar-title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:clamp(18px,2vw,28px);font-weight:800;letter-spacing:.1em;white-space:nowrap;overflow:hidden;background:linear-gradient(110deg,#00a8cc 0%,#00e5ff 30%,#e6f7ff 48%,#00e5ff 60%,#00a8cc 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 8px rgba(0,229,255,.45)) drop-shadow(0 0 18px rgba(0,229,255,.2));animation:titleShimmer 4s linear infinite;}
@keyframes titleShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.top-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:0 0 auto;justify-content:flex-end;}
.sound-btn,.refresh-btn,.day-btn{display:inline-flex;align-items:center;gap:4px;border:1px solid rgba(0,229,255,0.34);background:rgba(15,21,40,.88);color:#00e5ff;border-radius:999px;padding:5px 10px;font-size:var(--fs-label);cursor:pointer;box-shadow:0 0 12px rgba(0,229,255,.12);white-space:nowrap;}
.refresh-btn{background:rgba(0,229,255,.12);}
.day-btn.active{background:rgba(0,229,255,.24);color:#fff;border-color:rgba(0,229,255,.55);}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.72)}}
@keyframes badgePulse{0%,100%{box-shadow:0 0 0 0 rgba(0,229,255,.45),0 0 12px rgba(0,229,255,.3)}50%{box-shadow:0 0 0 8px rgba(0,229,255,0),0 0 20px rgba(0,229,255,.55)}}
@keyframes badgePulseRising{0%,100%{box-shadow:0 0 0 0 rgba(255,171,0,.45),0 0 12px rgba(255,171,0,.3)}50%{box-shadow:0 0 0 8px rgba(255,171,0,0),0 0 20px rgba(255,171,0,.55)}}
@keyframes scanLine{0%{transform:translateY(-100%);opacity:0}18%,82%{opacity:.45}100%{transform:translateY(100%);opacity:0}}
@keyframes borderGlow{0%,100%{box-shadow:0 8px 24px rgba(0,0,0,0.55),0 0 16px rgba(0,229,255,.12)}50%{box-shadow:0 8px 24px rgba(0,0,0,0.55),0 0 28px rgba(0,229,255,.24)}}
@keyframes titleSpark{0%,100%{opacity:.75;-webkit-filter:drop-shadow(0 0 4px rgba(0,229,255,.45))}50%{opacity:1;-webkit-filter:drop-shadow(0 0 10px rgba(0,229,255,.85))}}
@keyframes floatCloud{0%,100%{transform:translate(calc(-50% - 3px),-60%)}50%{transform:translate(calc(-50% + 4px),-60%)}}
@keyframes sunSpin{from{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes rainFall{0%{transform:translateX(-50%) translateY(-7px);opacity:0}30%{opacity:.9}100%{transform:translateX(-50%) translateY(14px);opacity:0}}
@keyframes lightning{0%,78%,100%{opacity:.25;-webkit-filter:drop-shadow(0 0 2px #ffeb3b)}82%,88%{opacity:1;-webkit-filter:drop-shadow(0 0 12px #ffeb3b)}}
@keyframes fogMove{0%,100%{transform:translateX(calc(-50% - 5px));opacity:.45}50%{transform:translateX(calc(-50% + 6px));opacity:.85}}
@keyframes snowFall{0%{transform:translate(-50%,-50%) translateY(-5px) rotate(0deg);opacity:.2}50%{opacity:1}100%{transform:translate(-50%,-50%) translateY(12px) rotate(180deg);opacity:.15}}
@keyframes dataPulse{0%,100%{text-shadow:0 0 8px rgba(0,229,255,.28);-webkit-filter:brightness(1)}50%{text-shadow:0 0 16px rgba(0,229,255,.72);-webkit-filter:brightness(1.16)}}
@keyframes shimmerX{0%{transform:translateX(-120%);opacity:0}18%,82%{opacity:.75}100%{transform:translateX(120%);opacity:0}}
@keyframes radarSweep{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
@keyframes tideRipple{0%{background-position:0 0,0 0}100%{background-position:70px 0,-70px 0}}
@keyframes waveSlide{0%{transform:translateX(-45%)}100%{transform:translateX(0)}}
@keyframes tableScan{0%,100%{background-color:transparent}50%{background-color:rgba(0,229,255,.10)}}
@keyframes chartAura{0%,100%{opacity:.22;transform:translateX(-8%)}50%{opacity:.48;transform:translateX(8%)}}
.content{height:auto;flex:1 1 auto;min-height:0;padding:16px;display:flex;flex-direction:column;position:relative;overflow:hidden;}
.site-footer{position:static;flex:0 0 auto;width:100%;padding:6px 16px;display:flex;align-items:center;justify-content:center;pointer-events:auto;color:rgba(173,207,220,.46);font-size:10px;line-height:1.2;letter-spacing:.08em;}
.site-footer a{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;border-bottom:1px solid transparent;border-top:1px solid transparent;transition:color .2s ease,border-color .2s ease,text-shadow .2s ease;}
.site-footer a:hover,.site-footer a:focus-visible{color:rgba(139,233,255,.86);border-bottom-color:rgba(139,233,255,.46);text-shadow:0 0 8px rgba(0,229,255,.24);}
.quad-grid{display:grid;grid-template-columns:4fr 6fr;grid-template-rows:1fr 1fr;gap:16px;flex:1;min-height:0;}
.quad{display:flex;flex-direction:column;min-width:0;min-height:0;gap:0;}
.quad .card{flex:1;min-height:0;}
.quad-tl{display:flex;flex-direction:column;gap:16px;}
.quad-tl .time-card{flex:0 0 auto;}
.quad-tl .weather-card{flex:1;min-height:0;}
.card{
  position:relative;min-width:0;min-height:0;overflow:hidden;padding:16px;border-radius:12px;
  background:rgba(15,21,40,0.86);border:1px solid rgba(0,229,255,0.16);box-shadow:0 8px 24px rgba(0,0,0,0.55),0 0 22px rgba(0,229,255,0.18);
  animation:borderGlow 5s ease-in-out infinite;display:flex;flex-direction:column;
}
.card::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,229,255,.012) 2px,rgba(0,229,255,.012) 4px);pointer-events:none;z-index:1;}
.card::after{content:"";position:absolute;left:0;right:0;top:0;height:42%;background:linear-gradient(180deg,transparent,rgba(0,229,255,.08),transparent);pointer-events:none;z-index:1;animation:scanLine 7s linear infinite;}
/* 时间卡片 */
.time-card{padding:14px 20px;}
.time-display{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;}
.time-main{display:flex;align-items:baseline;justify-content:center;}
.time-big{font-size:clamp(36px,4.5vw,64px);font-weight:800;color:#00e5ff;letter-spacing:.12em;text-shadow:0 0 20px rgba(0,229,255,.55),0 0 40px rgba(0,229,255,.25);line-height:1;font-family:Consolas,"Courier New",monospace;}
.time-sub{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;}
.date-big{font-size:clamp(16px,1.6vw,24px);font-weight:700;color:rgba(232,234,246,.9);letter-spacing:.05em;}
.lunar-big{font-size:clamp(18px,1.8vw,26px);font-weight:800;color:#ffab00;text-shadow:0 0 12px rgba(255,171,0,.45);letter-spacing:.06em;}
/* 潮汐状态动画背景 */
.tide-status-cell{position:relative;overflow:hidden;}
.tide-status-bg{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;transition:opacity .5s ease;pointer-events:none;z-index:0;overflow:hidden;}
.tide-status-bg::before{content:"";position:absolute;left:0;right:0;height:200%;background-repeat:repeat;background-size:28px 14px;}
.rising-bg::before{top:0;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'><path d='M14 1 L27 13 L22 13 L14 7 L6 13 L1 13 Z' fill='rgba(255,82,82,0.35)'/></svg>");animation:risingArrows 1.2s linear infinite;}
.falling-bg::before{bottom:0;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'><path d='M14 13 L27 1 L22 1 L14 7 L6 1 L1 1 Z' fill='rgba(0,230,118,0.35)'/></svg>");animation:fallingArrows 1.2s linear infinite;}
.tide-status-cell.is-rising .rising-bg{opacity:1;}
.tide-status-cell.is-falling .falling-bg{opacity:1;}
.tide-status-cell .status-badge{position:relative;z-index:2;}
@keyframes risingArrows{0%{background-position:0 14px}100%{background-position:0 0}}
@keyframes fallingArrows{0%{background-position:0 0}100%{background-position:0 14px}}
/* 潮段进度水流背景 */
.tide-progress-cell{position:relative;overflow:hidden;}
.tide-water-bg{position:absolute;left:0;right:0;bottom:0;height:0%;background:linear-gradient(180deg,rgba(0,229,255,.12) 0%,rgba(0,229,255,.28) 50%,rgba(0,229,255,.38) 100%);transition:height .8s cubic-bezier(.2,.8,.2,1);pointer-events:none;z-index:0;overflow:hidden;}
.tide-water-bg::before{content:"";position:absolute;top:0;left:-50%;right:-50%;height:100%;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 6px,rgba(255,255,255,.08) 6px,rgba(255,255,255,.08) 7px,transparent 7px,transparent 14px,rgba(0,229,255,.15) 14px,rgba(0,229,255,.15) 15px);background-size:100% 15px;}
.tide-water-bg::after{content:"";position:absolute;top:-18px;left:-100%;width:300%;height:20px;}
.tide-water-bg .wave-layer{position:absolute;left:-100%;width:300%;background-repeat:repeat-x;}
.tide-water-bg .wave-layer.wave-1{top:-22px;height:30px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M0 15 Q12.5 0 25 15 T50 15 T75 15 T100 15 V30 H0 Z' fill='rgba(0,229,255,0.6)'/></svg>");background-size:100px 30px;animation:waveSway1 4s linear infinite;}
.tide-water-bg .wave-layer.wave-2{top:-14px;height:24px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24' preserveAspectRatio='none'><path d='M0 12 Q10 0 20 12 T40 12 T60 12 T80 12 V24 H0 Z' fill='rgba(0,229,255,0.45)'/></svg>");background-size:80px 24px;animation:waveSway2 3s linear infinite;}
.tide-water-bg .wave-layer.wave-3{top:-7px;height:16px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 16' preserveAspectRatio='none'><path d='M0 8 Q7.5 0 15 8 T30 8 T45 8 T60 8 V16 H0 Z' fill='rgba(255,255,255,0.35)'/></svg>");background-size:60px 16px;animation:waveSway3 2.5s linear infinite;}
.tide-progress-cell.is-rising .tide-water-bg::before{animation:waterRise 1.5s linear infinite;}
.tide-progress-cell.is-falling .tide-water-bg::before{animation:waterFall 1.5s linear infinite;}
.tide-progress-cell .label,.tide-progress-cell .data-value{position:relative;z-index:2;}
@keyframes waterRise{0%{background-position:0 15px}100%{background-position:0 0}}
@keyframes waterFall{0%{background-position:0 0}100%{background-position:0 15px}}
@keyframes waveSway1{0%{transform:translateX(0)}100%{transform:translateX(100px)}}
@keyframes waveSway2{0%{transform:translateX(0)}100%{transform:translateX(80px)}}
@keyframes waveSway3{0%{transform:translateX(0)}100%{transform:translateX(60px)}}
.map-card{min-width:0;width:100%;}
.alarm-bar{position:relative;z-index:20;display:flex;align-items:center;height:30px;padding:0 16px;background:rgba(255,43,43,.18);border-bottom:1px solid rgba(255,43,43,.35);overflow:hidden;}
.alarm-bar-label{flex:0 0 auto;font-size:var(--fs-label);font-weight:800;color:#ff2b2b;text-shadow:0 0 8px rgba(255,43,43,.5);letter-spacing:.08em;margin-right:12px;}
.alarm-marquee{flex:1;overflow:hidden;white-space:nowrap;position:relative;}
.alarm-marquee-inner{display:inline-block;padding-left:100%;animation:marqueeScroll 24s linear infinite;font-size:var(--fs-label);color:rgba(232,234,246,.9);}
@keyframes marqueeScroll{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
.sd-alarm-bar{position:relative;z-index:20;display:flex;align-items:center;height:32px;padding:0 16px;background:linear-gradient(180deg,rgba(255,171,0,.10),rgba(255,171,0,.04));border-bottom:1px solid rgba(255,171,0,.28);overflow:hidden;}
.sd-alarm-bar::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(255,171,0,.03) 30px,rgba(255,171,0,.03) 60px);pointer-events:none;}
.sd-alarm-bar-label{position:relative;z-index:2;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:4px;font-size:var(--fs-label);font-weight:800;color:#ffab40;background:rgba(255,171,0,.12);border:1px solid rgba(255,171,0,.35);text-shadow:0 0 8px rgba(255,171,0,.5);letter-spacing:.12em;margin-right:14px;box-shadow:0 0 12px rgba(255,171,0,.15),inset 0 0 8px rgba(255,171,0,.08);}
.sd-alarm-bar-label::before{content:"";width:6px;height:6px;border-radius:50%;background:#ffab40;box-shadow:0 0 8px #ffab40;animation:sdWarnBlink 1.2s ease-in-out infinite;}
@keyframes sdWarnBlink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}
.sd-alarm-marquee{position:relative;z-index:2;flex:1;overflow:hidden;white-space:nowrap;}
.sd-alarm-marquee-inner{display:inline-block;padding-left:100%;animation:marqueeScroll 45s linear infinite;font-size:var(--fs-label);color:rgba(232,234,246,.88);}
.sd-alarm-marquee:hover .sd-alarm-marquee-inner{animation-play-state:paused;}
.sd-alarm-item{display:inline-block;margin-right:50px;cursor:pointer;padding:2px 0;transition:all .2s;}
.sd-alarm-item:hover{text-shadow:0 0 8px currentColor;}
.sd-alarm-item.item-blue{color:#42a5f5;}
.sd-alarm-item.item-yellow{color:#ffca28;}
.sd-alarm-item.item-orange{color:#ffab40;}
.sd-alarm-item.item-red{color:#ff5252;}
.sd-alarm-item .lvl-blue{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(33,150,243,.55);color:#fff;border:1px solid rgba(100,181,246,.9);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(33,150,243,.3);}
.sd-alarm-item .lvl-yellow{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(255,193,7,.7);color:#fff;border:1px solid rgba(255,213,79,.95);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(255,193,7,.35);}
.sd-alarm-item .lvl-orange{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(255,152,0,.75);color:#fff;border:1px solid rgba(255,167,38,.95);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(255,152,0,.4);}
.sd-alarm-item .lvl-red{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(244,67,54,.8);color:#fff;border:1px solid rgba(255,82,82,.95);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 8px rgba(244,67,54,.5);}
.cma-alarm-bar{position:relative;z-index:20;display:flex;align-items:center;height:30px;padding:0 16px;background:linear-gradient(180deg,rgba(255,43,43,.10),rgba(255,43,43,.03));border-bottom:1px solid rgba(255,43,43,.25);overflow:hidden;}
.cma-alarm-bar::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(255,43,43,.025) 30px,rgba(255,43,43,.025) 60px);pointer-events:none;}
.cma-alarm-bar.bar-blue{background:linear-gradient(180deg,rgba(33,150,243,.10),rgba(33,150,243,.03));border-bottom-color:rgba(33,150,243,.25);}
.cma-alarm-bar.bar-blue::before{background:repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(33,150,243,.025) 30px,rgba(33,150,243,.025) 60px);}
.cma-alarm-bar.bar-yellow{background:linear-gradient(180deg,rgba(255,193,7,.10),rgba(255,193,7,.03));border-bottom-color:rgba(255,193,7,.25);}
.cma-alarm-bar.bar-yellow::before{background:repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(255,193,7,.025) 30px,rgba(255,193,7,.025) 60px);}
.cma-alarm-bar.bar-orange{background:linear-gradient(180deg,rgba(255,152,0,.10),rgba(255,152,0,.03));border-bottom-color:rgba(255,152,0,.25);}
.cma-alarm-bar.bar-orange::before{background:repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(255,152,0,.025) 30px,rgba(255,152,0,.025) 60px);}
.cma-alarm-bar.bar-red{background:linear-gradient(180deg,rgba(255,43,43,.10),rgba(255,43,43,.03));border-bottom-color:rgba(255,43,43,.25);}
.cma-alarm-bar.bar-red::before{background:repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(255,43,43,.025) 30px,rgba(255,43,43,.025) 60px);}
.cma-alarm-bar-label{position:relative;z-index:2;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:4px;font-size:var(--fs-label);font-weight:800;color:#42a5f5;background:rgba(33,150,243,.12);border:1px solid rgba(33,150,243,.35);text-shadow:0 0 8px rgba(33,150,243,.5);letter-spacing:.12em;margin-right:10px;}
.cma-alarm-bar-label::before{content:"";width:6px;height:6px;border-radius:50%;background:#42a5f5;box-shadow:0 0 8px #42a5f5;animation:cmaWarnBlink 1.2s ease-in-out infinite;}
.cma-alarm-bar-time{position:relative;z-index:2;flex:0 0 auto;font-size:calc(var(--fs-label) - 1px);color:rgba(232,234,246,.45);margin-right:14px;}
.cma-alarm-bar-source{position:relative;z-index:2;flex:0 0 auto;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:calc(var(--fs-label) - 1px);color:rgba(126,155,173,.78);margin-right:10px;}
@keyframes cmaWarnBlink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}
.cma-alarm-marquee{position:relative;z-index:2;flex:1;overflow:hidden;white-space:nowrap;}
.cma-alarm-marquee-inner{display:inline-block;padding-left:100%;animation:marqueeScroll 90s linear infinite;font-size:var(--fs-label);color:rgba(232,234,246,.88);}
.cma-alarm-marquee:hover .cma-alarm-marquee-inner{animation-play-state:paused;}
.cma-alarm-item{display:inline-block;margin-right:60px;cursor:pointer;padding:2px 0;transition:all .2s;}
.cma-alarm-item:hover{text-shadow:0 0 8px currentColor;}
.cma-alarm-item.item-blue{color:#42a5f5;}
.cma-alarm-item.item-yellow{color:#ffca28;}
.cma-alarm-item.item-orange{color:#ffab40;}
.cma-alarm-item.item-red{color:#ff5252;}
.cma-alarm-item.item-green{color:#00e676;}
.cma-alarm-item .lvl-blue{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(33,150,243,.55);color:#fff;border:1px solid rgba(100,181,246,.9);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(33,150,243,.3);}
.cma-alarm-item .lvl-yellow{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(255,193,7,.7);color:#fff;border:1px solid rgba(255,213,79,.95);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(255,193,7,.35);}
.cma-alarm-item .lvl-orange{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(255,152,0,.75);color:#fff;border:1px solid rgba(255,167,38,.95);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(255,152,0,.4);}
.cma-alarm-item .lvl-red{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(244,67,54,.8);color:#fff;border:1px solid rgba(255,82,82,.95);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 8px rgba(244,67,54,.5);}
.cma-alarm-item .lvl-green{display:inline-block;padding:2px 8px;border-radius:4px;font-size:calc(var(--fs-label) - 1px);font-weight:700;background:rgba(0,230,118,.6);color:#fff;border:1px solid rgba(105,240,174,.9);margin-right:6px;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 6px rgba(0,230,118,.35);}
.corner{position:absolute;width:18px;height:18px;border-color:#00e5ff;opacity:.72;z-index:2;}
.tl{display:none}.tr{right:8px;top:8px;border-right:1px solid;border-top:1px solid}
.bl{left:8px;bottom:8px;border-left:1px solid;border-bottom:1px solid}.br{right:8px;bottom:8px;border-right:1px solid;border-bottom:1px solid}
.module-title{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-start;gap:10px;
  color:#00e5ff;font-size:var(--fs-topbar-code);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid rgba(0,229,255,.15);
  min-width:0;overflow:hidden;text-shadow:0 0 12px rgba(0,229,255,.5);
}
.module-title::before{content:"";width:3px;height:14px;border-radius:2px;background:#00e5ff;box-shadow:0 0 8px rgba(0,229,255,.65);margin-right:8px;animation:titleSpark 2.4s ease-in-out infinite;}
.module-title span:first-child{display:flex;align-items:center;color:#00e5ff;min-width:0;line-height:1.3;text-shadow:0 0 12px rgba(0,229,255,.5);}
.module-title small{font-size:var(--fs-label);color:rgba(232,234,246,.55);letter-spacing:0;text-transform:none;font-weight:500;line-height:1.3;margin-left:auto;}
.module-title small.update-time{font-size:var(--fs-label);color:rgba(232,234,246,.4);font-weight:400;flex-shrink:0;}
.module-title-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;margin-left:auto;}
.module-title-meta small{margin-left:0;white-space:nowrap;}
.module-title-meta .module-source{min-width:0;overflow:hidden;text-overflow:ellipsis;}
.module-unavailable{position:relative;z-index:2;text-align:center;padding:32px 16px;color:rgba(232,234,246,.35);font-size:var(--fs-value);font-weight:600;letter-spacing:.08em;}
.data-value{color:#00e5ff;text-shadow:0 0 10px rgba(0,229,255,.35);font-weight:800;}
.metric-grid{position:relative;z-index:2;display:flex;flex-wrap:wrap;flex:1;align-content:flex-start;}
.metric-grid.three{height:calc(100% - 40px);}
.metric{
  position:relative;overflow:hidden;min-height:54px;border-radius:9px;padding:10px;background:rgba(6,10,20,.74);
  border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;justify-content:center;
}
.metric::after,.temp-card::after,.mini-box::after,.extra-box::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(100deg,transparent,rgba(0,229,255,.12),transparent);transform:translateX(-120%);animation:shimmerX 6.5s ease-in-out infinite;pointer-events:none;}
.metric:nth-child(2)::after,.mini-box:nth-child(2)::after,.extra-box:nth-child(2)::after{animation-delay:.7s}
.metric:nth-child(3)::after,.extra-box:nth-child(3)::after{animation-delay:1.4s}
.metric:nth-child(4)::after,.extra-box:nth-child(4)::after{animation-delay:2.1s}
.metric:nth-child(5)::after,.extra-box:nth-child(5)::after{animation-delay:2.8s}
.metric:nth-child(6)::after,.extra-box:nth-child(6)::after{animation-delay:3.5s}
.metric .label{font-size:var(--fs-label);color:rgba(232,234,246,.78);margin-bottom:6px;line-height:1.35;font-weight:600;letter-spacing:.03em;}
.metric strong{position:relative;z-index:1;font-size:var(--fs-value);color:#00e5ff;text-shadow:0 0 8px rgba(0,229,255,.32);white-space:nowrap;animation:dataPulse 4.8s ease-in-out infinite;}
.wind-compass-wrap{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;}
.wind-compass{position:relative;flex:0 0 44px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(0,229,255,.42);background:radial-gradient(circle,rgba(0,229,255,.16),rgba(6,10,20,.72));box-shadow:inset 0 0 10px rgba(0,229,255,.16),0 0 12px rgba(0,229,255,.14);}
.wind-compass::before{content:"N";position:absolute;top:1px;left:50%;transform:translateX(-50%);font-size:9px;color:rgba(232,234,246,.72);font-weight:800;}
.wind-needle{position:absolute;left:50%;top:50%;width:3px;height:28px;margin-left:-1.5px;margin-top:-14px;transform:rotate(0deg);transition:transform .9s cubic-bezier(.2,.8,.2,1);transform-origin:50% 50%;}
.wind-needle::before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:16px solid #ffab00;-webkit-filter:drop-shadow(0 0 7px rgba(255,171,0,.8));}
.wind-needle::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:12px solid rgba(0,229,255,.68);}
.wind-text{min-width:0;font-size:clamp(17px,1.25vw,23px);color:#00e5ff;font-weight:800;text-shadow:0 0 8px rgba(0,229,255,.32);white-space:nowrap;}
.wind-text-big{font-size:clamp(22px,1.8vw,32px);text-align:center;}
.temp-strip{position:relative;z-index:2;margin-bottom:12px;display:flex;flex-wrap:wrap;min-width:0;flex-shrink:0;}
.temp-card{position:relative;overflow:hidden;min-width:0;flex:1;border-radius:9px;padding:10px;background:rgba(6,10,20,.74);border:1px solid rgba(255,255,255,.08);}
.temp-card .label{font-size:clamp(13px,0.92vw,17px);color:rgba(232,234,246,.78);font-weight:600;margin-bottom:5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;}
.temp-card .value{position:relative;z-index:1;font-size:clamp(17px,1.25vw,23px);line-height:1.05;color:#00e5ff;font-weight:800;text-shadow:0 0 8px rgba(0,229,255,.34);white-space:nowrap;animation:dataPulse 4.2s ease-in-out infinite;text-align:center;}
.temp-card.primary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;}
.temp-card.primary .label{margin-bottom:0;}
.temp-card.primary .value{font-size:clamp(24px,2.2vw,36px);flex:0 0 auto;}
.weather-grid{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;flex:1;min-height:0;}
.weather-cell{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;padding:10px 8px;background:rgba(6,10,20,.74);border:1px solid rgba(255,255,255,.08);min-width:0;}
.weather-cell .label{font-size:clamp(13px,0.92vw,17px);color:rgba(232,234,246,.78);font-weight:600;margin-bottom:6px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;order:1;flex:0 0 auto;}
.weather-cell-inner{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:0;width:100%;order:2;}
.weather-data-text{font-size:clamp(22px,2vw,32px);color:#00e5ff;font-weight:800;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(0,229,255,.5);}
.weather-data-value{font-size:clamp(22px,2vw,32px);color:#00e5ff;font-weight:800;text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(0,229,255,.5);white-space:nowrap;}
.weather-cell .wind-text-big{font-size:clamp(22px,2vw,32px);text-align:center;color:#00e5ff;font-weight:800;text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(0,229,255,.5);}
/* weather-current and weather-current-temp removed - simplified layout */
.weather-icon{position:relative;flex:0 0 56px;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(6,10,20,.70);border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 0 16px rgba(0,229,255,.10),0 0 18px rgba(0,229,255,.08);overflow:hidden;}
.weather-icon::before,.weather-icon::after{content:"";position:absolute;display:block;}
.weather-text-wrap{min-width:0;overflow:hidden;}
.weather-icon.sunny::before{width:20px;height:20px;border-radius:50%;background:#ffeb3b;box-shadow:0 0 18px rgba(255,235,59,.85);left:50%;top:50%;transform:translate(-50%,-50%);}
.weather-icon.sunny::after{width:34px;height:34px;border-radius:50%;border:2px dashed rgba(255,235,59,.72);animation:sunSpin 8s linear infinite;left:50%;top:50%;transform:translate(-50%,-50%);}
.weather-icon.cloudy::before,.weather-icon.rainy::before,.weather-icon.storm::before,.weather-icon.snow::before{width:30px;height:16px;left:50%;top:50%;transform:translate(-50%,-60%);border-radius:16px;background:linear-gradient(180deg,#d8f6ff,#7fb8d5);box-shadow:9px -8px 0 -1px #b9e6f5,-9px -5px 0 -3px #e7fbff;animation:floatCloud 3s ease-in-out infinite;}
.weather-icon.cloudy::after{width:38px;height:10px;left:50%;bottom:10px;transform:translateX(-50%);border-radius:999px;background:rgba(0,229,255,.18);-webkit-filter:blur(4px);}
.weather-icon.rainy::after{width:3px;height:13px;left:50%;top:58%;transform:translateX(-50%);border-radius:3px;background:#00e5ff;box-shadow:9px -4px 0 #00e5ff,18px 1px 0 #00e5ff;animation:rainFall 1.1s linear infinite;}
.weather-icon.storm::after{width:14px;height:20px;left:50%;top:55%;transform:translate(-50%,-50%);background:#ffeb3b;clip-path:polygon(42% 0,100% 0,61% 44%,92% 44%,30% 100%,45% 55%,10% 55%);animation:lightning 1.8s linear infinite;}
.weather-icon.fog::before,.weather-icon.fog::after{left:50%;transform:translateX(-50%);width:36px;height:3px;border-radius:999px;background:rgba(232,234,246,.75);box-shadow:0 9px 0 rgba(232,234,246,.52),0 18px 0 rgba(232,234,246,.38);animation:fogMove 2.8s ease-in-out infinite;}
.weather-icon.fog::before{top:12px}.weather-icon.fog::after{top:18px;animation-delay:.8s;opacity:.6;}
.weather-icon.snow::after{content:"✦";left:50%;top:50%;transform:translate(-50%,-50%);color:#e8f8ff;font-size:12px;text-shadow:11px -3px 0 #e8f8ff,20px 4px 0 #e8f8ff;animation:snowFall 1.9s linear infinite;}
.status-big{position:relative;z-index:2;display:flex;flex-direction:column;margin-bottom:6px;gap:5px;flex:0 0 auto;}
.status-inline-row{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.status-inline-row .status-badge{font-size:calc(var(--fs-badge) * 1.15);padding:6px 16px;}
.level-inline{display:flex;align-items:baseline;gap:5px;flex:0 0 auto;}
.level-inline-label{font-size:var(--fs-label);color:rgba(232,234,246,.55);font-weight:600;letter-spacing:.05em;white-space:nowrap;}
.level-inline .level-number{font-size:calc(var(--fs-large) * 1.2);line-height:1.05;white-space:nowrap;animation:dataPulse 3.8s ease-in-out infinite;}
.level-inline .level-number small{font-size:var(--fs-value);color:rgba(232,234,246,0.66);margin-left:3px;}
.status-badge{display:inline-flex;align-items:center;padding:6px 16px;border-radius:999px;background:rgba(0,229,255,.13);border:1px solid rgba(0,229,255,.35);color:#00e5ff;font-size:var(--fs-badge);font-weight:700;animation:badgePulse 2s ease-in-out infinite;text-shadow:0 0 10px rgba(0,229,255,.5);letter-spacing:.06em;}
.status-badge.rising{background:linear-gradient(135deg,rgba(255,171,0,.2),rgba(255,235,59,.12));border-color:rgba(255,171,0,.5);color:#ffd54f;text-shadow:0 0 12px rgba(255,171,0,.6);animation:badgePulseRising 1.8s ease-in-out infinite;}
.status-badge.falling{background:linear-gradient(135deg,rgba(0,229,255,.2),rgba(0,188,212,.12));border-color:rgba(0,229,255,.5);color:#4dd0e1;text-shadow:0 0 12px rgba(0,229,255,.6);animation:badgePulse 2s ease-in-out infinite;}
.status-text{font-size:var(--fs-label);color:rgba(232,234,246,0.66);line-height:1.35;}
.level-number{font-size:var(--fs-large);line-height:1.05;white-space:nowrap;animation:dataPulse 3.8s ease-in-out infinite;}
.level-number small{font-size:var(--fs-value);color:rgba(232,234,246,0.66);margin-left:3px;}
.mini-tide{position:relative;z-index:2;display:flex;margin-bottom:0;}
.mini-box{position:relative;overflow:hidden;background:rgba(6,10,20,.72);border:1px solid rgba(255,255,255,.08);border-radius:9px;padding:7px 8px;}
.mini-box .label{font-size:var(--fs-label);color:rgba(232,234,246,.78);margin-bottom:3px;font-weight:600;letter-spacing:.03em;}
.mini-box .value{font-size:var(--fs-value);color:#00e5ff;font-weight:800;text-shadow:0 0 8px rgba(0,229,255,.32);white-space:nowrap;}
.tide-status-row{position:relative;z-index:2;display:flex;flex:1;gap:8px;min-height:0;}
.tide-status-left{position:relative;z-index:2;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:6px;}
.tide-status-left .status-big{margin-bottom:0;flex:2;justify-content:center;}
.tide-status-left .mini-tide{margin-bottom:0;flex-shrink:0;}
.tide-extreme-row{position:relative;z-index:2;display:flex;gap:6px;flex:1;min-height:0;}
.tide-extreme-box{position:relative;overflow:hidden;background:rgba(6,10,20,.72);border:1px solid rgba(255,255,255,.08);border-radius:9px;padding:7px 9px;flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;}
.tide-extreme-box .label{font-size:var(--fs-label);color:rgba(232,234,246,.78);margin-bottom:3px;font-weight:600;letter-spacing:.03em;}
.tide-extreme-box .value{font-size:var(--fs-value);color:#00e5ff;font-weight:800;text-shadow:0 0 8px rgba(0,229,255,.32);white-space:nowrap;}
.tide-extra{position:relative;z-index:2;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:6px;}
.extra-row{position:relative;z-index:2;display:flex;gap:6px;flex:1;min-height:0;}
.extra-row .extra-box{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:6px 10px;min-height:0;}
.tide-extra .extra-box .label{margin-bottom:4px;flex:0 0 auto;margin-right:0;}
.tide-extra .extra-box .value{flex:0 0 auto;text-align:left;}
.tide-card{display:flex;flex-direction:column;}
.tide-card .module-title{padding-bottom:6px;margin-bottom:6px;}
/* 新海况数据模块 顶部独立行+三行三列 */
.ocean-data-grid{position:relative;z-index:2;display:flex;flex-direction:column;flex:1;gap:8px;min-height:0;}
.ocean-row{display:flex;gap:8px;flex:1;min-height:0;}
.ocean-row-top{flex:0 0 auto;min-height:64px;}
.ocean-cell{position:relative;overflow:hidden;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;padding:8px 6px;background:rgba(6,10,20,.72);border:1px solid rgba(0,229,255,.12);min-width:0;}
.ocean-cell::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(100deg,transparent,rgba(0,229,255,.12),transparent);transform:translateX(-120%);animation:shimmerX 6.5s ease-in-out infinite;pointer-events:none;}
.ocean-row:nth-child(1) .ocean-cell:nth-child(2)::after{animation-delay:.7s}
.ocean-row:nth-child(2) .ocean-cell:nth-child(1)::after{animation-delay:1.4s}
.ocean-row:nth-child(2) .ocean-cell:nth-child(2)::after{animation-delay:2.1s}
.ocean-row:nth-child(2) .ocean-cell:nth-child(3)::after{animation-delay:2.8s}
.ocean-row:nth-child(3) .ocean-cell:nth-child(1)::after{animation-delay:3.5s}
.ocean-row:nth-child(3) .ocean-cell:nth-child(2)::after{animation-delay:4.2s}
.ocean-row:nth-child(3) .ocean-cell:nth-child(3)::after{animation-delay:4.9s}
.ocean-row:nth-child(4) .ocean-cell:nth-child(1)::after{animation-delay:5.6s}
.ocean-row:nth-child(4) .ocean-cell:nth-child(2)::after{animation-delay:6.3s}
.ocean-row:nth-child(4) .ocean-cell:nth-child(3)::after{animation-delay:7s}
.ocean-cell .label{font-size:var(--fs-label-big);color:rgba(232,234,246,.82);font-weight:700;margin-bottom:6px;line-height:1.3;letter-spacing:.04em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.ocean-cell strong{font-size:var(--fs-value-big);color:#00e5ff;font-weight:800;text-shadow:-1px -1px 0 rgba(0,0,0,.8),1px -1px 0 rgba(0,0,0,.8),-1px 1px 0 rgba(0,0,0,.8),1px 1px 0 rgba(0,0,0,.8),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(0,229,255,.45);white-space:nowrap;text-align:center;display:inline-flex;align-items:baseline;gap:2px;}
.ocean-cell strong small{font-size:calc(var(--fs-value-big) * 0.55);color:inherit;margin-left:2px;font-weight:600;white-space:nowrap;}
.ocean-cell strong.data-error{color:#ff647c!important;font-size:clamp(16px,1.35vw,24px);letter-spacing:.04em;text-shadow:0 0 12px rgba(255,82,108,.48);animation:none;}
.ocean-cell .status-badge{font-size:var(--fs-value-big);padding:6px 18px;margin-top:0;}
/* 橙色数据单元格 */
.cell-orange .label{color:#ffab00;}
.cell-orange strong{color:#ffab00;text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(255,171,0,.55);}
.cell-orange strong small{color:inherit;}
/* 满潮行红字、低潮行绿字 */
.row-high-tide .ocean-cell .label{color:#ff5252;text-shadow:0 0 8px rgba(255,82,82,.4);}
.row-high-tide .ocean-cell strong{color:#ff5252;text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(255,82,82,.6);}
.row-high-tide .ocean-cell strong small{color:inherit;}
.row-low-tide .ocean-cell .label{color:#00e676;text-shadow:0 0 8px rgba(0,230,118,.4);}
.row-low-tide .ocean-cell strong{color:#00e676;text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(0,230,118,.6);}
.row-low-tide .ocean-cell strong small{color:inherit;}
/* 涨潮退潮状态文字颜色 */
.tide-status-cell.is-rising .status-badge{color:#ff5252;border-color:rgba(255,82,82,.5);background:rgba(255,82,82,.15);text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(255,82,82,.6);}
.tide-status-cell.is-falling .status-badge{color:#00e676;border-color:rgba(0,230,118,.5);background:rgba(0,230,118,.15);text-shadow:-1px -1px 0 rgba(0,0,0,.85),1px -1px 0 rgba(0,0,0,.85),-1px 1px 0 rgba(0,0,0,.85),1px 1px 0 rgba(0,0,0,.85),0 2px 4px rgba(0,0,0,.6),0 0 14px rgba(0,230,118,.6);}
/* ocean-extra-bar removed - items moved into first row */
.tide-card .beach-list{margin-top:6px;flex:0 0 auto;max-height:160px;}
.extra-box{position:relative;overflow:hidden;min-width:0;border-radius:9px;padding:4px 8px;background:rgba(6,10,20,.72);border:1px solid rgba(255,255,255,.08);}
.extra-box .label{font-size:var(--fs-label);color:rgba(232,234,246,.78);font-weight:600;margin-bottom:0;line-height:1.35;}
.extra-box .value{position:relative;z-index:1;font-size:var(--fs-value);color:#00e5ff;font-weight:800;text-shadow:0 0 8px rgba(0,229,255,.32);white-space:nowrap;animation:dataPulse 5.2s ease-in-out infinite;}
.map-card{display:flex;flex-direction:column}.map-shell{position:relative;z-index:2;height:calc(100% - 42px);border-radius:8px;overflow:hidden;border:1px solid rgba(0,229,255,.14);background:#060a14;}
.map-shell::before{content:"";position:absolute;z-index:3;left:50%;top:50%;width:120%;height:120%;transform-origin:0 0;pointer-events:none;background:conic-gradient(from 0deg,rgba(0,229,255,.18),rgba(0,229,255,.04) 22deg,transparent 54deg,transparent 360deg);animation:radarSweep 10s linear infinite;}
.map-shell::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;pointer-events:none;background-image:linear-gradient(rgba(0,229,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(0,229,255,.026) 1px,transparent 1px);background-size:50px 50px,50px 50px;}
.typhoon-frame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;-webkit-filter:saturate(1) brightness(1) contrast(1);}
.map-label{position:absolute;z-index:4;pointer-events:none;font-size:9px;color:rgba(232,234,246,.42);font-family:Consolas,monospace;text-shadow:0 0 6px rgba(0,0,0,.8);}
.map-label.n40{top:10px;left:12px}.map-label.n30{top:50%;left:12px;transform:translateY(-50%)}.map-label.n20{bottom:10px;left:12px}
.map-label.e125{bottom:10px;left:25%}.map-label.e130{bottom:10px;left:50%;transform:translateX(-50%)}.map-label.e135{bottom:10px;right:78px}
.map-actions{position:absolute;right:12px;bottom:12px;z-index:5;display:flex;gap:8px;}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(0,229,255,0.34);background:rgba(15,21,40,.88);color:#00e5ff;border-radius:999px;padding:7px 12px;font-size:var(--fs-label);text-decoration:none;cursor:pointer;box-shadow:0 0 12px rgba(0,229,255,.12);}
.mobile-map-open{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:6;min-width:220px;text-align:center;border:1px solid rgba(0,229,255,0.34);background:rgba(10,14,26,.90);color:#00e5ff;border-radius:14px;padding:12px 16px;font-size:var(--fs-value);font-weight:800;text-decoration:none;box-shadow:0 0 22px rgba(0,229,255,.28);}
.chart-card{display:flex;flex-direction:column;}
#tideChart{position:relative;z-index:2;flex:1;min-height:0;width:100%;border-radius:8px;background:radial-gradient(circle at 50% 50%,rgba(0,229,255,.08),transparent 42%),rgba(6,10,20,.58);border:1px solid rgba(0,229,255,.14);overflow:hidden;}
#tideChart::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(0,229,255,.10),transparent);animation:chartAura 6s ease-in-out infinite;z-index:1;}
.chart-load-status{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px;text-align:center;font-size:13px;line-height:1.6;color:#a9c4d4}
.beach-list{display:none;}
/* bottom-left-stack and right-bottom-stack removed - now using single row with independent columns */
.tide-table-wrap{position:relative;z-index:2;flex:1;min-height:0;overflow:hidden;}
table{width:100%;height:100%;border-collapse:collapse;background:rgba(6,10,20,.72);}
tr:nth-child(2){animation:tableScan 4.2s ease-in-out infinite}
tr:nth-child(3){animation:tableScan 4.2s ease-in-out infinite .7s}
tr:nth-child(4){animation:tableScan 4.2s ease-in-out infinite 1.4s}
tr:nth-child(5){animation:tableScan 4.2s ease-in-out infinite 2.1s}
th,td{border:1px solid rgba(0,229,255,.15);text-align:center;padding:6px 4px;font-size:var(--fs-table);color:#e8eaf6;vertical-align:middle;line-height:1.35;}
th{background:rgba(0,229,255,.12);color:#00e5ff;font-weight:800;}
.high{background:rgba(255,171,0,.12);color:#ffab00;font-weight:800;text-shadow:0 0 8px rgba(255,171,0,.25);}
.low{background:rgba(0,230,118,.10);color:#00e676;font-weight:800;text-shadow:0 0 8px rgba(0,230,118,.25);}
.high td{color:#ffab00;}
.low td{color:#00e676;}
.safe{color:#00e676!important}.bad{color:#ff5252!important}.warning{color:#ffab00!important}
.alarm-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:flex;align-items:center;justify-content:center;}
.alarm-modal-mask{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.65);backdrop-filter:blur(4px);}
.alarm-modal-box{position:relative;z-index:2;width:560px;max-width:90vw;max-height:75vh;background:linear-gradient(180deg,rgba(10,20,40,.98),rgba(5,10,25,.98));border:1px solid rgba(0,229,255,.25);border-radius:8px;box-shadow:0 0 40px rgba(0,229,255,.12),0 10px 40px rgba(0,0,0,.5);display:flex;flex-direction:column;overflow:hidden;}
.alarm-modal-box::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,rgba(0,229,255,.6),transparent);}
.alarm-modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid rgba(0,229,255,.15);flex:0 0 auto;}
.alarm-modal-title{font-size:var(--fs-value);font-weight:700;color:#e8eaf6;}
.alarm-modal-close{background:transparent;border:none;color:rgba(232,234,246,.5);font-size:16px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:all .2s;}
.alarm-modal-close:hover{color:#ff5252;background:rgba(255,82,82,.1);}
.alarm-modal-body{flex:1;min-height:0;overflow-y:auto;padding:16px;line-height:1.7;font-size:var(--fs-label);color:rgba(232,234,246,.85);word-break:break-word;}
.alarm-modal-loading{text-align:center;color:rgba(232,234,246,.4);padding:30px 0;}
.alarm-modal-body p{margin:0 0 12px 0;}
.alarm-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid rgba(0,229,255,.1);flex:0 0 auto;}
.alarm-modal-time{font-size:var(--fs-label);color:rgba(232,234,246,.45);}
.alarm-modal-link{font-size:var(--fs-label);color:#42a5f5;text-decoration:none;padding:4px 10px;border:1px solid rgba(66,165,245,.3);border-radius:4px;transition:all .2s;position:relative;z-index:10;}
.alarm-modal-link:hover{background:rgba(66,165,245,.1);}
.alarm-modal-link.disabled{color:rgba(232,234,246,.3);border-color:rgba(232,234,246,.15);cursor:not-allowed;pointer-events:none;}
.content>.row-main{margin-bottom:0;}.row-main>.card{margin-right:0;}.row-main>.card:last-child{margin-right:0;}.row-main>.left-stack-card:nth-child(1){flex:1;}.row-main>.right-stack-card:nth-child(2){flex:2;display:flex;}.metric-grid>.metric{width:calc(50% - 5px);margin-right:10px;margin-bottom:10px;}.metric-grid>.metric:nth-child(2n){margin-right:0;}.metric-grid.three>.metric{width:calc(33.33% - 7px);}.metric-grid.three>.metric:nth-child(3n){margin-right:0;}.temp-strip>.temp-card{width:calc(50% - 4px);margin-right:8px;margin-bottom:8px;}.temp-strip>.temp-card:nth-child(2n){margin-right:0;}.mini-tide>.mini-box{flex:1;margin-right:12px;}.mini-tide>.mini-box:last-child{margin-right:0;}.tide-extra>.extra-box{width:calc(33.33% - 6px);margin-right:8px;margin-bottom:8px;}.tide-extra>.extra-box:nth-child(3n){margin-right:0;}.map-card{padding:12px;}@media (max-width:1079px){
  html,body{overflow:auto}
  .app{height:auto;min-height:100vh;overflow:visible}
}
html.mobile .app{height:auto;min-height:100vh;overflow:visible}
html.mobile{overflow:auto}
html.mobile .topbar{height:auto;min-height:48px;flex:0 0 auto;flex-wrap:wrap;gap:6px 8px;padding:10px 10px 8px;align-items:center;position:relative;z-index:10}
html.mobile .brand{order:2;width:auto;justify-content:flex-start;gap:6px;flex:0 0 auto;}
html.mobile .brand-icon svg{width:36px;height:36px;}
html.mobile .brand-code{font-size:11px;letter-spacing:.10em}
html.mobile .topbar-title{order:1;flex:0 0 100%;width:100%;position:relative;left:auto;top:auto;transform:none;text-align:center;font-size:18px;letter-spacing:.08em;}
html.mobile .top-actions{order:3;flex:0 0 auto;justify-content:flex-end;gap:6px;flex-wrap:nowrap;min-width:0;}
html.mobile .sound-btn,html.mobile .refresh-btn,html.mobile .day-btn{font-size:12px;padding:5px 8px;min-width:0;justify-content:center}
html.mobile .sound-btn span{display:none}
html.mobile .refresh-btn{min-width:auto}
html.mobile .content{padding:10px 10px 16px;height:auto;display:block;overflow:visible;position:static}
html.mobile .quad-grid{display:block;}
html.mobile .quad .card{margin:10px 0;}
html.mobile .time-card{min-height:auto !important;padding:8px 12px;}
html.mobile .time-display{gap:4px;}
html.mobile .time-big{font-size:32px;}
html.mobile .date-big{font-size:13px;}
html.mobile .lunar-big{font-size:14px;}
html.mobile .time-sub{gap:10px;}
html.mobile .card{margin:10px 0;min-height:180px;padding:12px;}
html.mobile .map-card{min-height:420px}
html.mobile .chart-card{min-height:280px}
html.mobile .tide-card{min-height:240px}
html.mobile .alarm-bar{display:none}
html.mobile .sd-alarm-bar{display:none}
html.mobile .cma-alarm-bar{display:none}
html.mobile .map-shell{height:60vh;min-height:360px}
html.mobile .mobile-map-open{display:block}
html.mobile .map-actions{left:12px;right:12px;justify-content:center}
html.mobile .ocean-data-grid{gap:6px;}
html.mobile .ocean-row{display:flex;gap:6px;margin-bottom:6px;}
html.mobile .ocean-row-top{min-height:48px;margin-bottom:6px;}
html.mobile .ocean-cell{padding:6px 4px;}
html.mobile .ocean-cell .label{font-size:11px;margin-bottom:4px;}
html.mobile .ocean-cell strong{font-size:14px;}
html.mobile .ocean-cell strong small{font-size:10px;}
html.mobile .ocean-cell .status-badge{font-size:14px;padding:4px 10px;}
/* ocean-extra-bar mobile styles removed */
html.mobile .tide-card .beach-list{max-height:120px;}
html.mobile .module-title{font-size:13px;padding-bottom:8px;margin-bottom:10px;}
html.mobile .module-title small{font-size:11px;}
html.mobile .module-title-meta{gap:6px;}
html.mobile .module-title-meta .module-source{max-width:160px;}
html.mobile .chart-card .module-title{flex-wrap:nowrap;gap:6px}
html.mobile .chart-card #chartTitle{flex:0 0 auto;white-space:nowrap;font-size:12px;letter-spacing:.08em}
html.mobile .chart-card .module-title-meta{flex:1;gap:0;min-width:0}
html.mobile .chart-card .source-tooltip-control{margin-left:auto}
html.mobile .chart-card .module-title-meta .update-time{margin-left:6px;font-size:10px}
html.mobile .cma-alarm-bar-source{display:none;}
html.mobile .metric .label{font-size:12px;}
html.mobile .metric strong{font-size:15px;}
html.mobile .temp-card .label{font-size:13px;}
html.mobile .temp-card .value{font-size:16px;}
html.mobile .temp-card.primary .value{font-size:24px;}
html.mobile .weather-grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;}
html.mobile .weather-cell .label{font-size:12px;}
html.mobile .weather-data-text{font-size:18px;}
html.mobile .weather-data-value{font-size:18px;}
html.mobile .weather-cell .wind-text-big{font-size:18px;}
html.mobile .weather-icon{width:36px;height:36px;flex-basis:36px;}
html.mobile .status-badge{font-size:14px;padding:5px 12px;}
html.mobile .mini-box .label{font-size:11px;}
html.mobile .mini-box .value{font-size:13px;}
html.mobile .extra-box .label{font-size:11px;}
html.mobile .extra-box .value{font-size:12px;}
html.mobile th,html.mobile td{font-size:11px;padding:5px 3px;}

/* 2026 UI refinement: calmer hierarchy, clearer focus and robust sizing. */
:root{
  --surface:rgba(12,20,38,.88);--surface-strong:rgba(7,14,29,.96);
  --line:rgba(111,224,255,.16);--line-strong:rgba(111,224,255,.34);
  --text:#f3f7ff;--muted:#9eabc2;--accent:#42d7f5;
}
body{background:radial-gradient(circle at 14% -8%,rgba(32,155,196,.22),transparent 34%),radial-gradient(circle at 92% 8%,rgba(63,81,181,.14),transparent 28%),#07101f;color:var(--text)}
.topbar{height:64px;flex-basis:64px;padding:0 22px;background:rgba(6,13,27,.9);backdrop-filter:blur(18px);border-bottom-color:var(--line)}
.brand-code{font-size:13px;letter-spacing:.12em}
.topbar-title{font-size:clamp(20px,2.2vw,32px);letter-spacing:.15em;}
.top-actions{padding:4px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);border-radius:999px}
.sound-btn,.refresh-btn,.day-btn{min-height:32px;padding:6px 12px;border-color:transparent;background:transparent;box-shadow:none;color:var(--muted);transition:background .18s,color .18s,border-color .18s,transform .18s}
.sound-btn:hover,.refresh-btn:hover,.day-btn:hover{background:rgba(66,215,245,.1);color:var(--text)}
.sound-btn:focus-visible,.refresh-btn:focus-visible,.day-btn:focus-visible,.btn:focus-visible,.alarm-modal-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.refresh-btn{background:rgba(66,215,245,.1);color:var(--accent)}.day-btn.active{background:var(--accent);color:#04202a;border-color:transparent;font-weight:800}
.content{height:auto;flex:1 1 auto;min-height:0;padding:14px;gap:14px}.content>.quad-grid{margin-bottom:0}.quad-grid{gap:14px}
.card{padding:14px;border-radius:14px;background:linear-gradient(145deg,var(--surface),rgba(8,15,30,.82));border-color:var(--line);box-shadow:0 12px 32px rgba(0,0,0,.28);animation:none}
.card::after{display:none}.card::before{opacity:.45}.quad .card{border-radius:14px}
.module-title{font-size:13px;letter-spacing:.12em;padding-bottom:9px;margin-bottom:10px;color:var(--accent);text-shadow:0 0 10px rgba(0,229,255,.4);border-bottom-color:rgba(0,229,255,.18)}.module-title span:first-child{color:var(--accent)}.module-title::before{background:var(--accent);animation:none}.module-title small,.module-title small.update-time{color:rgba(232,234,246,.5)}
.metric,.weather-cell,.temp-card,.mini-box,.extra-box{background:rgba(4,11,24,.56);border-color:rgba(255,255,255,.075)}
.metric::after,.temp-card::after,.mini-box::after,.extra-box::after{display:none}.metric strong,.data-value{color:var(--accent);animation:none;text-shadow:none}
.cma-alarm-bar{height:30px;background:rgba(6,13,27,.86);border-bottom-color:var(--line)}
.map-shell,#tideChart{border-radius:10px}
button:disabled{cursor:wait;opacity:.65}.refresh-btn.is-loading{color:var(--text)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media (max-width:1079px){html:not(.mobile) .content{height:auto;flex:1 1 auto;min-height:0;overflow:auto}.quad-grid{min-height:520px}}
@media (max-height:740px) and (min-width:1080px){.topbar{height:56px;flex-basis:56px}.content{height:auto;flex:1 1 auto;min-height:0;padding:10px;gap:10px}.quad-grid{gap:10px}.quad-tl{gap:10px}.card{padding:10px}.module-title{margin-bottom:8px;padding-bottom:7px}}

/* Deep-sea telemetry skin: CSS-only visual refinement. */
:root{
  --tech-bg:#020812;
  --tech-panel:rgba(5,16,31,.86);
  --tech-panel-deep:rgba(2,10,22,.94);
  --tech-cyan:#19d9ff;
  --tech-cyan-soft:rgba(25,217,255,.16);
  --tech-line:rgba(99,222,255,.20);
  --tech-line-hot:rgba(99,222,255,.58);
  --tech-text:#eafaff;
  --tech-muted:#7e9bad;
  --tech-radius:10px;
}
@keyframes techGridDrift{to{background-position:56px 28px,28px 56px,0 0}}
@keyframes techEdgeRun{0%{transform:translateX(-115%);opacity:0}12%,78%{opacity:1}100%{transform:translateX(115%);opacity:0}}
@keyframes techPanelBreathe{0%,100%{border-color:rgba(99,222,255,.18);box-shadow:0 14px 34px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035)}50%{border-color:rgba(99,222,255,.31);box-shadow:0 14px 38px rgba(0,0,0,.38),0 0 26px rgba(25,217,255,.075),inset 0 1px 0 rgba(255,255,255,.055)}}
@keyframes techValuePulse{0%,100%{filter:brightness(1);text-shadow:0 0 8px rgba(25,217,255,.25)}50%{filter:brightness(1.15);text-shadow:0 0 16px rgba(25,217,255,.55)}}
@keyframes techTitleSignal{0%,100%{transform:scaleY(.68);opacity:.65}50%{transform:scaleY(1);opacity:1}}
@keyframes techSweep{0%{transform:translateY(-140%)}100%{transform:translateY(440%)}}
@keyframes techBootIn{0%{opacity:0;transform:translateY(16px) scale(.985);filter:blur(5px)}58%{opacity:1;filter:blur(0)}100%{transform:translateY(0) scale(1)}}
@keyframes techHoloShift{0%{background-position:0 0,0 0,0 0}100%{background-position:96px 48px,-72px 36px,0 0}}
@keyframes techCornerCharge{0%,100%{opacity:.5;filter:drop-shadow(0 0 3px rgba(25,217,255,.35))}50%{opacity:1;filter:drop-shadow(0 0 9px rgba(25,217,255,.95))}}
@keyframes techSignalGlitch{0%,91%,100%{text-shadow:0 0 8px rgba(25,217,255,.38);transform:translate(-50%,-50%)}92%{text-shadow:-2px 0 #19d9ff,2px 0 rgba(255,190,74,.75);transform:translate(calc(-50% - 1px),-50%)}93%{text-shadow:2px 0 #19d9ff,-2px 0 rgba(255,190,74,.75);transform:translate(calc(-50% + 1px),-50%)}94%{text-shadow:0 0 8px rgba(25,217,255,.38);transform:translate(-50%,-50%)}}
@keyframes techRadarSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes techRadarPing{0%{opacity:.05;transform:translate(-50%,-50%) scale(.65)}55%{opacity:.52}100%{opacity:0;transform:translate(-50%,-50%) scale(1.35)}}
@keyframes techWindFloat{0%,100%{transform:translateY(0);text-shadow:0 0 9px rgba(255,193,76,.28)}50%{transform:translateY(-2px);text-shadow:0 0 18px rgba(255,193,76,.58)}}
@keyframes techMapPulse{0%,100%{opacity:.32;filter:saturate(1)}50%{opacity:.62;filter:saturate(1.25)}}
@keyframes techTideCurrent{0%{transform:translateX(-135%);opacity:0}18%,76%{opacity:.7}100%{transform:translateX(135%);opacity:0}}
@keyframes techOrangePulse{0%,100%{text-shadow:0 0 8px rgba(255,171,0,.3);filter:brightness(1)}50%{text-shadow:0 0 10px rgba(255,171,0,.65),0 0 24px rgba(255,121,0,.24);filter:brightness(1.2)}}
@keyframes techClockEcho{0%,100%{text-shadow:0 0 8px rgba(25,217,255,.65),0 0 28px rgba(25,217,255,.22)}48%{text-shadow:-2px 0 rgba(25,217,255,.42),2px 0 rgba(92,125,255,.28),0 0 24px rgba(25,217,255,.4)}52%{text-shadow:2px 0 rgba(25,217,255,.42),-2px 0 rgba(92,125,255,.28),0 0 24px rgba(25,217,255,.4)}}
@keyframes techCellScan{0%{transform:translateY(-160%);opacity:0}20%,55%{opacity:.38}100%{transform:translateY(420%);opacity:0}}

html,body{background:var(--tech-bg);color:var(--tech-text)}
body{
  background:
    radial-gradient(ellipse at 50% -18%,rgba(0,141,184,.24),transparent 44%),
    radial-gradient(circle at 88% 78%,rgba(0,78,118,.12),transparent 34%),
    linear-gradient(rgba(25,217,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(25,217,255,.025) 1px,transparent 1px),
    var(--tech-bg);
  background-size:auto,auto,28px 28px,28px 28px,auto;
  animation:techGridDrift 28s linear infinite;
}
body::before{content:"";position:fixed;inset:0;z-index:1000;pointer-events:none;background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(145,232,255,.012) 4px);mix-blend-mode:screen}

.topbar{
  background:linear-gradient(180deg,rgba(3,12,25,.98),rgba(3,12,25,.88));
  border-bottom:1px solid var(--tech-line);
  box-shadow:0 10px 35px rgba(0,0,0,.34),0 1px 0 rgba(25,217,255,.06) inset;
  backdrop-filter:blur(18px) saturate(130%);
}
.topbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent 0,var(--tech-cyan) 28%,rgba(255,255,255,.88) 50%,var(--tech-cyan) 72%,transparent 100%);transform:translateX(-115%);animation:techEdgeRun 7s cubic-bezier(.4,0,.2,1) infinite}
.brand-icon{color:var(--tech-cyan);filter:drop-shadow(0 0 8px rgba(25,217,255,.36))}
.topbar-title{background:none;color:#b9f7ff;-webkit-text-fill-color:#b9f7ff;filter:drop-shadow(0 0 9px rgba(25,217,255,.34));letter-spacing:.18em;animation:techSignalGlitch 8s steps(1,end) infinite}
.top-actions{border-radius:8px;padding:3px;background:rgba(3,17,31,.72);border:1px solid rgba(99,222,255,.14);box-shadow:inset 0 0 18px rgba(25,217,255,.025)}
.sound-btn,.refresh-btn,.day-btn,.btn{border-radius:6px;border:1px solid transparent;background:transparent;box-shadow:none;color:#8eafbe;transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .12s ease}
.sound-btn:hover,.refresh-btn:hover,.day-btn:hover,.btn:hover{color:var(--tech-text);background:rgba(25,217,255,.09);border-color:rgba(25,217,255,.24);box-shadow:inset 0 0 16px rgba(25,217,255,.07)}
.sound-btn:active,.refresh-btn:active,.day-btn:active,.btn:active{transform:translateY(1px) scale(.985)}
.refresh-btn{color:var(--tech-cyan);background:rgba(25,217,255,.055)}
.day-btn.active{color:#00151d;background:linear-gradient(135deg,#72eaff,var(--tech-cyan));border-color:#80edff;box-shadow:0 0 16px rgba(25,217,255,.24),inset 0 1px 0 rgba(255,255,255,.5)}

.content{position:relative}
.content::before{content:"";position:absolute;inset:7px;pointer-events:none;border:1px solid rgba(25,217,255,.035);background:linear-gradient(90deg,var(--tech-cyan),var(--tech-cyan)) left top/18px 1px no-repeat,linear-gradient(180deg,var(--tech-cyan),var(--tech-cyan)) left top/1px 18px no-repeat,linear-gradient(270deg,var(--tech-cyan),var(--tech-cyan)) right bottom/18px 1px no-repeat,linear-gradient(0deg,var(--tech-cyan),var(--tech-cyan)) right bottom/1px 18px no-repeat;opacity:.36}
.quad-grid{position:relative;z-index:1}
.card{
  isolation:isolate;border-radius:var(--tech-radius);
  background:linear-gradient(145deg,rgba(7,22,40,.91),rgba(3,11,24,.94));
  border:1px solid var(--tech-line);
  box-shadow:0 14px 34px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035);
  animation:techBootIn .78s cubic-bezier(.16,1,.3,1) both,techPanelBreathe 8s ease-in-out .8s infinite;
}
.card::before{inset:0;opacity:1;background:linear-gradient(135deg,rgba(255,255,255,.045),transparent 18%),repeating-linear-gradient(0deg,transparent 0,transparent 4px,rgba(25,217,255,.014) 5px);z-index:0;animation:none}
.card::after{display:block;content:"";position:absolute;z-index:1;left:0;right:0;top:0;height:34%;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(25,217,255,.09),rgba(255,255,255,.035),transparent);animation:techSweep 6.8s cubic-bezier(.4,0,.2,1) infinite}
.quad-tr .card{animation-delay:.12s,.92s}.quad-bl .card{animation-delay:.22s,1.02s}.quad-br .card{animation-delay:.32s,1.12s}.quad-tl .weather-card{animation-delay:.1s,.9s}
.corner{display:block;width:16px;height:16px;border-color:var(--tech-cyan);opacity:.78;filter:drop-shadow(0 0 5px rgba(25,217,255,.65));animation:techCornerCharge 2.8s ease-in-out infinite}.tr,.bl{animation-delay:-.7s}.br{animation-delay:-1.4s}.tl{left:7px;top:7px;border-left:1px solid;border-top:1px solid}

.module-title{color:var(--tech-text);text-shadow:none;border-bottom:1px solid rgba(99,222,255,.14);letter-spacing:.16em}
.module-title span:first-child{color:var(--tech-text)}
.module-title::before{height:16px;width:2px;background:var(--tech-cyan);box-shadow:0 0 10px rgba(25,217,255,.8);animation:techTitleSignal 2.2s ease-in-out infinite}
.module-title::after{content:"";position:absolute;left:0;bottom:-1px;width:38%;height:1px;background:linear-gradient(90deg,var(--tech-cyan),transparent);opacity:.72}
.module-title small,.module-title small.update-time{color:var(--tech-muted)}

.time-card{background:radial-gradient(circle at 50% 48%,rgba(25,217,255,.10),transparent 48%),linear-gradient(145deg,rgba(7,22,40,.94),rgba(3,11,24,.96))}
.time-big{color:#bff7ff;text-shadow:0 0 8px rgba(25,217,255,.65),0 0 28px rgba(25,217,255,.22);font-variant-numeric:tabular-nums;animation:techClockEcho 3.8s ease-in-out infinite}
.date-big{color:#cfe4ed}.lunar-big{color:#ffbc4d;text-shadow:0 0 12px rgba(255,188,77,.3)}

.weather-cell,.ocean-cell,.extra-box{border-radius:7px;background:linear-gradient(145deg,rgba(4,14,29,.82),rgba(6,20,36,.62));border:1px solid rgba(99,222,255,.105);box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:background .2s ease,border-color .2s ease,transform .2s ease;animation:techBootIn .58s cubic-bezier(.16,1,.3,1) both}
.weather-cell:nth-child(1),.ocean-cell:nth-child(1){animation-delay:.32s}.weather-cell:nth-child(2),.ocean-cell:nth-child(2){animation-delay:.4s}.weather-cell:nth-child(3),.ocean-cell:nth-child(3){animation-delay:.48s}.weather-cell:nth-child(4),.ocean-cell:nth-child(4){animation-delay:.56s}
.weather-cell:hover,.ocean-cell:hover,.extra-box:hover{background:linear-gradient(145deg,rgba(6,25,44,.92),rgba(5,18,34,.8));border-color:rgba(99,222,255,.28);transform:translateY(-1px)}
.weather-cell .label,.ocean-cell .label,.extra-box .label{color:#84a5b6;letter-spacing:.045em}
.weather-data-value,.weather-data-text,.ocean-cell strong,.extra-box .value,.data-value{color:#8cecff;text-shadow:0 0 10px rgba(25,217,255,.28);animation:techValuePulse 4.8s ease-in-out infinite}
.weather-cell:nth-child(2) .weather-data-value,.ocean-cell:nth-child(2) strong{animation-delay:-1.2s}.weather-cell:nth-child(3) .weather-data-value,.ocean-cell:nth-child(3) strong{animation-delay:-2.4s}
.weather-cell:nth-child(2){isolation:isolate;background:radial-gradient(circle at 50% 58%,rgba(25,217,255,.085),transparent 42%),linear-gradient(145deg,rgba(5,18,33,.94),rgba(4,13,27,.82));border-color:rgba(99,222,255,.18);box-shadow:inset 0 0 26px rgba(25,217,255,.04),0 0 18px rgba(25,217,255,.035)}
.weather-cell:nth-child(2)::before{content:"";position:absolute;z-index:0;left:50%;top:58%;width:min(104px,70%);aspect-ratio:1;border-radius:50%;border:1px solid rgba(25,217,255,.24);background:repeating-radial-gradient(circle,transparent 0 15px,rgba(25,217,255,.075) 16px 17px),conic-gradient(from 0deg,transparent 0 76%,rgba(25,217,255,.28) 92%,transparent 100%);transform:translate(-50%,-50%);animation:techRadarSpin 4.8s linear infinite;filter:drop-shadow(0 0 7px rgba(25,217,255,.18))}
.weather-cell:nth-child(2)::after{content:"";position:absolute;z-index:0;left:50%;top:58%;width:min(86px,58%);aspect-ratio:1;border-radius:50%;border:1px solid rgba(25,217,255,.38);transform:translate(-50%,-50%);animation:techRadarPing 2.6s ease-out infinite}
.weather-cell:nth-child(2) .label{position:relative;z-index:2;color:#d6e8ef;text-shadow:0 1px 2px rgba(0,0,0,.8)}
.weather-cell:nth-child(2) .weather-cell-inner{position:relative;z-index:2}
.weather-cell:nth-child(2) .wind-text-big{color:#8cecff!important;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 12px rgba(25,217,255,.34)!important;animation:techValuePulse 4.8s ease-in-out infinite!important;letter-spacing:.02em}

/* Tide emphasis and telemetry effects. */
.ocean-cell.cell-orange .label{color:#ffb43f;text-shadow:0 0 8px rgba(255,171,0,.28)}
.ocean-cell.cell-orange strong,.ocean-cell.cell-orange strong.data-value,.ocean-cell.cell-orange strong small{color:#ffb43f!important}
#currentLevel,#tideProgress{animation:techOrangePulse 2.8s ease-in-out infinite!important;text-shadow:0 0 10px rgba(255,171,0,.48)!important}
.tide-card{box-shadow:0 14px 34px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035),inset 0 -18px 48px rgba(0,112,153,.045)}
#tideChart{animation:techPanelBreathe 6s ease-in-out infinite}
.status-badge{border-radius:6px;background:rgba(25,217,255,.08);border-color:rgba(25,217,255,.32);box-shadow:inset 0 0 18px rgba(25,217,255,.05)}

.map-shell,#tideChart{border-radius:7px;border:1px solid rgba(99,222,255,.2);box-shadow:inset 0 0 36px rgba(0,0,0,.38),0 0 0 1px rgba(0,0,0,.26);background-color:#020914}
.map-shell::before{opacity:.48;animation:radarSweep 7.5s linear infinite,techMapPulse 3.6s ease-in-out infinite}.map-shell::after{background-size:44px 44px,44px 44px;opacity:.75}
.typhoon-frame{-webkit-filter:saturate(.78) hue-rotate(4deg) brightness(.82) contrast(1.12)}
.map-actions{padding:4px;background:rgba(2,11,23,.72);border:1px solid rgba(99,222,255,.14);border-radius:8px;backdrop-filter:blur(10px)}
.map-actions .btn{background:rgba(5,19,34,.82);border-color:rgba(99,222,255,.18)}
#tideChart::before{background:linear-gradient(90deg,transparent,rgba(25,217,255,.08),transparent);animation-duration:8s}

.cma-alarm-bar{background:rgba(3,12,25,.94);border-bottom:1px solid rgba(99,222,255,.12);box-shadow:inset 0 -1px 0 rgba(255,255,255,.018)}
.cma-alarm-bar-label{border-radius:5px;text-shadow:none}.cma-alarm-marquee-inner{animation-duration:105s}
.alarm-modal-mask{background:rgba(0,5,12,.76);backdrop-filter:blur(12px)}
.alarm-modal-box{border-radius:var(--tech-radius);background:linear-gradient(145deg,rgba(7,22,40,.985),rgba(2,9,20,.99));border-color:rgba(99,222,255,.28);box-shadow:0 30px 80px rgba(0,0,0,.62),0 0 45px rgba(25,217,255,.08)}
.alarm-modal-header,.alarm-modal-footer{border-color:rgba(99,222,255,.14)}
.alarm-modal-link,.alarm-modal-close{border-radius:5px}

::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:rgba(255,255,255,.018)}::-webkit-scrollbar-thumb{background:rgba(25,217,255,.25);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:rgba(25,217,255,.44)}
@media (prefers-reduced-motion:reduce){body{animation:none}.card,.card::before,.card::after,.topbar::after,.topbar-title,.corner,.module-title::before,.time-big,.weather-cell,.ocean-cell,.extra-box,.weather-cell:nth-child(2)::before,.weather-cell:nth-child(2)::after,.weather-cell:nth-child(2) .wind-text-big,.ocean-cell.cell-orange::after,#currentLevel,#tideProgress,#tideChart,.map-shell::before,.weather-data-value,.weather-data-text,.ocean-cell strong,.extra-box .value,.data-value{animation:none!important;transform:none}}
@media (max-width:640px){.topbar-title{animation:none}.weather-cell:nth-child(2)::before{width:82px}.weather-cell:nth-child(2)::after{width:68px}.card::after{opacity:.55}}
@media (prefers-reduced-transparency:reduce){.topbar,.card,.map-actions,.alarm-modal-mask{backdrop-filter:none}.topbar{background:#05101f}.card{background:#071629}}
@media (max-width:1079px){body{animation-duration:42s}.content::before{display:none}.card{animation-duration:12s}.topbar-title{letter-spacing:.1em}}

/* Performance stabilization: keep the technology styling without continuous full-page repainting. */
body{animation:none}
body::before{display:none}
.topbar{backdrop-filter:none}
.topbar::after,.topbar-title,.corner,.module-title::before,.time-big,.weather-data-value,.weather-data-text,.ocean-cell strong,.extra-box .value,.data-value,.weather-cell:nth-child(2) .wind-text-big,#currentLevel,#tideProgress,#tideChart,.map-shell::before,tr{animation:none!important}
.card{contain:paint style;animation:techBootIn .38s cubic-bezier(.16,1,.3,1) both}
.quad-tr .card{animation-delay:.04s}.quad-bl .card{animation-delay:.08s}.quad-br .card{animation-delay:.12s}.quad-tl .weather-card{animation-delay:.03s}
.card::after,#tideChart::before{display:none}
.corner,.brand-icon,.topbar-title{filter:none}
.typhoon-frame{-webkit-filter:none;filter:none}
.map-actions{backdrop-filter:none}
.performance-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border:1px solid transparent;background:transparent;color:var(--tech-muted);border-radius:6px;font-size:var(--fs-label);cursor:pointer;white-space:nowrap;transition:color .16s ease,background .16s ease,border-color .16s ease}
.performance-btn:hover{color:var(--tech-text);background:rgba(25,217,255,.09);border-color:rgba(25,217,255,.24)}
.performance-btn.is-lite{color:#00151d;background:linear-gradient(135deg,#a2f3ff,var(--tech-cyan));border-color:#80edff}

html.performance-lite .card,html.performance-lite .weather-cell,html.performance-lite .ocean-cell,html.performance-lite .extra-box,html.performance-lite .alarm-bar-label::before,html.performance-lite .sd-alarm-bar-label::before,html.performance-lite .cma-alarm-bar-label::before,html.performance-lite .weather-icon *{animation:none!important;transition:none!important}
html.performance-lite .cma-alarm-marquee-inner,html.performance-lite .sd-alarm-marquee-inner,html.performance-lite .alarm-marquee-inner{animation:marqueeScroll 120s linear infinite!important}
html.performance-lite .card{box-shadow:0 8px 20px rgba(0,0,0,.25);contain:paint style}
html.performance-lite .map-shell,html.performance-lite #tideChart{box-shadow:inset 0 0 18px rgba(0,0,0,.28)}
html.performance-lite .content::before{display:none}
html.performance-lite .alarm-modal-mask{backdrop-filter:none}
html.page-paused *,html.page-paused *::before,html.page-paused *::after{animation-play-state:paused!important}
html.mobile .performance-btn{display:none}
@media(max-width:760px){.performance-btn{display:none}}

/* Weather and sunset-score panel switch. */
.stealth-module-title{appearance:none;-webkit-appearance:none;display:flex;align-items:center;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--tech-text);font:inherit;font-weight:700;letter-spacing:inherit;line-height:1.3;text-align:left;text-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default;user-select:none;-webkit-user-select:none}
.stealth-module-title:focus-visible{outline:1px solid rgba(25,217,255,.34);outline-offset:4px;border-radius:2px}
.stealth-module-title::-moz-focus-inner{padding:0;border:0}
.weather-module-title{overflow:visible}
.weather-tabs{display:flex;align-items:center;gap:4px;min-width:0;padding:2px;background:rgba(1,10,21,.72);border:1px solid rgba(99,222,255,.13);border-radius:6px}
.weather-tab{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:4px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#7897a9;font-size:var(--fs-label);font-weight:700;letter-spacing:.02em;line-height:1;white-space:nowrap;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease,transform .12s ease}
.weather-tab:hover{color:var(--tech-text);background:rgba(25,217,255,.07)}
.weather-tab:active{transform:translateY(1px)}
.weather-tab:focus-visible{outline:2px solid var(--tech-cyan);outline-offset:2px}
.weather-tab.active{color:#dffbff;background:rgba(25,217,255,.13);border-color:rgba(99,222,255,.28);box-shadow:inset 0 -1px 0 rgba(25,217,255,.45)}
.weather-panels{position:relative;z-index:2;display:flex;flex:1;min-height:0}
.weather-panel{width:100%;height:100%;min-height:0}
.weather-panel[hidden]{display:none!important}
.weather-panel>.weather-grid{height:100%}
.sunset-panel{display:flex;flex-direction:column;gap:8px;overflow:hidden}
.sunset-summary{display:grid;grid-template-columns:1fr 1.35fr 1fr;align-items:center;gap:8px;min-height:62px;padding:8px 10px;border:1px solid rgba(255,180,70,.22);border-radius:8px;background:linear-gradient(110deg,rgba(255,153,55,.09),rgba(4,13,26,.74) 52%,rgba(25,217,255,.04))}
.sunset-total{display:flex;align-items:baseline;gap:4px;min-width:0}
.sunset-score{font:800 clamp(30px,2.5vw,44px)/1 Consolas,"Microsoft YaHei",sans-serif;color:#ffb347;text-shadow:0 0 16px rgba(255,157,55,.36);font-variant-numeric:tabular-nums}
.sunset-total small{color:#a68466;font-size:clamp(10px,.7vw,12px);white-space:nowrap}
.sunset-rating{min-width:0;text-align:center}
.sunset-level-text{margin-bottom:5px;color:#ffd4a0;font-size:clamp(11px,.8vw,14px);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sunset-suns{display:flex;align-items:center;justify-content:center;gap:4px;min-height:21px}
.sun-token{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:#59616c;opacity:.3;font-size:20px;line-height:1;transition:color .2s ease,opacity .2s ease,transform .2s ease,text-shadow .2s ease}
.sun-token::before{content:"☀"}
.sun-token.active{color:#ffb33f;opacity:1;transform:scale(1.04);text-shadow:0 0 7px rgba(255,177,62,.72)}
.sunset-timing{display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#7897a9;font-size:clamp(10px,.7vw,12px);white-space:nowrap}
.sunset-timing b{color:#c9f7ff;font-family:Consolas,"Microsoft YaHei",sans-serif}
.sunset-components{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;flex:1;min-height:0}
.sunset-component{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:7px 5px;border:1px solid rgba(99,222,255,.12);border-radius:7px;background:rgba(3,13,26,.72)}
.sunset-component span{max-width:100%;margin-bottom:4px;color:#7897a9;font-size:clamp(9px,.65vw,12px);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sunset-component strong{color:#bdefff;font:800 clamp(17px,1.35vw,24px)/1 Consolas,"Microsoft YaHei",sans-serif;text-shadow:0 0 9px rgba(25,217,255,.25)}
.sunset-component strong small{margin-left:2px;color:#567787;font-size:clamp(9px,.6vw,11px)}
.sunset-reason{flex:0 0 auto;overflow:hidden;padding:1px 3px;color:#698898;font-size:clamp(9px,.62vw,11px);line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
html.performance-lite .sun-token{transition:none!important}

@media(max-width:1180px){.weather-module-title .module-title-meta .module-source{display:none}.weather-tab{padding-left:7px;padding-right:7px}.sunset-components{gap:5px}.sunset-component{padding-left:3px;padding-right:3px}}
@media(max-width:640px){.weather-module-title{align-items:flex-start;flex-wrap:wrap;gap:6px}.weather-tabs{width:100%;order:1}.weather-tab{flex:1;padding:5px 6px;font-size:11px}.weather-module-title .module-title-meta{order:2;width:100%;justify-content:flex-end}.weather-module-title .module-title-meta .module-source{display:block;max-width:none}.sunset-summary{grid-template-columns:1fr 1.45fr;min-height:74px}.sunset-timing{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.sunset-components{grid-template-columns:repeat(3,1fr);overflow:auto}.sunset-component:nth-child(4),.sunset-component:nth-child(5){grid-column:span 1}.sunset-reason{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}}

@media(max-width:640px){.weather-module-title,.situation-title,.ocean-module-title{align-items:center!important;flex-wrap:nowrap!important;gap:0!important;overflow:hidden}.weather-module-title .module-title-meta,.situation-title .module-title-meta,.ocean-module-title .module-title-meta{order:initial!important;width:auto!important;justify-content:flex-end}.weather-module-title .module-title-meta .module-source,.situation-title .module-title-meta .module-source,.ocean-module-title .module-title-meta .module-source{display:block;max-width:125px}}

/* Ocean data and fishing-score panel switch. */
.ocean-module-title{overflow:visible}
.ocean-tabs{display:flex;align-items:center;gap:4px;min-width:0;padding:2px;background:rgba(1,10,21,.72);border:1px solid rgba(99,222,255,.13);border-radius:6px}
.ocean-tab{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:4px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#7897a9;font-size:var(--fs-label);font-weight:700;line-height:1;white-space:nowrap;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease,transform .12s ease}
.ocean-tab:hover{color:var(--tech-text);background:rgba(25,217,255,.07)}.ocean-tab:active{transform:translateY(1px)}.ocean-tab:focus-visible{outline:2px solid var(--tech-cyan);outline-offset:2px}
.ocean-tab.active{color:#dffbff;background:rgba(25,217,255,.13);border-color:rgba(99,222,255,.28);box-shadow:inset 0 -1px 0 rgba(25,217,255,.45)}
.ocean-panels{position:relative;z-index:2;display:flex;flex:1;min-height:0}.ocean-panel{width:100%;height:100%;min-height:0}.ocean-panel[hidden]{display:none!important}
.fishing-panel{display:flex;flex-direction:column;gap:7px;overflow:hidden}
.fishing-summary{display:grid;grid-template-columns:.8fr 1.35fr 1fr;align-items:center;gap:8px;min-height:58px;padding:7px 10px;border:1px solid rgba(70,225,174,.2);border-radius:8px;background:linear-gradient(110deg,rgba(26,190,133,.09),rgba(4,13,26,.76) 52%,rgba(25,217,255,.045))}
.fishing-total{display:flex;align-items:baseline;gap:4px}.fishing-score{color:#55e2af;font:800 clamp(30px,2.5vw,44px)/1 Consolas,"Microsoft YaHei",sans-serif;text-shadow:0 0 16px rgba(60,221,166,.3);font-variant-numeric:tabular-nums}.fishing-total small{color:#6b9587;font-size:clamp(10px,.7vw,12px);white-space:nowrap}
.fishing-verdict{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;text-align:center}.fishing-verdict strong{color:#c7fff0;font-size:clamp(13px,.95vw,17px)}.fishing-verdict span{max-width:100%;overflow:hidden;color:#7ea99c;font-size:clamp(10px,.68vw,12px);white-space:nowrap;text-overflow:ellipsis}
.fishing-snapshot{display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#86a6b2;font-size:clamp(10px,.68vw,12px);white-space:nowrap}
.fishing-components{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-height:54px}.fishing-component{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:6px 4px;border:1px solid rgba(99,222,255,.12);border-radius:7px;background:rgba(3,13,26,.72)}.fishing-component span{max-width:100%;margin-bottom:3px;overflow:hidden;color:#7897a9;font-size:clamp(9px,.64vw,11px);font-weight:600;white-space:nowrap;text-overflow:ellipsis}.fishing-component strong{color:#bdefff;font:800 clamp(16px,1.25vw,22px)/1 Consolas,"Microsoft YaHei",sans-serif}.fishing-component small{margin-left:2px;color:#567787;font-size:clamp(8px,.55vw,10px)}
.fishing-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(142px,1.55fr);gap:5px;color:#668797;font-size:clamp(9px,.6vw,11px)}.fishing-metrics span{min-width:0;overflow:hidden;padding:4px 6px;border-radius:4px;background:rgba(25,217,255,.035);white-space:nowrap;text-overflow:ellipsis}.fishing-metrics b{color:#b5e9f2;font-family:Consolas,"Microsoft YaHei",sans-serif;font-weight:700}.fishing-temperature{display:flex;align-items:center;justify-content:center;gap:4px}.fishing-temperature b{flex:0 0 auto}
.fishing-windows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex:1;min-height:48px}.fishing-window{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:6px 8px;border:1px solid rgba(70,225,174,.16);border-radius:6px;background:rgba(19,83,68,.12)}.fishing-window strong{color:#8ef0cd;font-size:clamp(11px,.75vw,13px);font-variant-numeric:tabular-nums}.fishing-window span{margin-top:3px;overflow:hidden;color:#71998e;font-size:clamp(9px,.6vw,11px);white-space:nowrap;text-overflow:ellipsis}.fishing-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(99,222,255,.13);border-radius:6px;color:#6d8b99;font-size:clamp(10px,.68vw,12px)}
.fishing-warning{overflow:hidden;color:#718e9b;font-size:clamp(9px,.6vw,11px);line-height:1.3;white-space:nowrap;text-overflow:ellipsis}.fishing-warning.is-danger{color:#ff9b77}
html.performance-lite .ocean-tab{transition:none!important}
@media(max-width:1180px){.ocean-module-title .module-title-meta .module-source{display:none}.ocean-tab{padding-left:7px;padding-right:7px}.fishing-components{gap:4px}.fishing-component{padding-left:2px;padding-right:2px}}
@media(max-width:640px){.ocean-module-title{align-items:flex-start;flex-wrap:wrap;gap:6px}.ocean-tabs{width:100%;order:1}.ocean-tab{flex:1;padding:5px 6px;font-size:11px}.ocean-module-title .module-title-meta{order:2;width:100%;justify-content:flex-end}.ocean-module-title .module-title-meta .module-source{display:block;max-width:none}.fishing-panel{overflow:auto}.fishing-summary{grid-template-columns:.8fr 1.3fr}.fishing-snapshot{grid-column:1/-1;flex-direction:row;justify-content:space-between}.fishing-components{grid-template-columns:repeat(3,1fr)}.fishing-metrics{grid-template-columns:repeat(2,1fr)}.fishing-temperature{grid-column:1/-1;flex-direction:column;gap:1px;overflow:visible;white-space:normal}.fishing-windows{grid-template-columns:1fr}.fishing-warning{white-space:normal}}

/* Situation module tabs and sent-notification table. */
.situation-title{overflow:visible}
.situation-tabs{display:flex;align-items:center;gap:4px;min-width:0;padding:2px;background:rgba(1,10,21,.72);border:1px solid rgba(99,222,255,.13);border-radius:6px}
.situation-tab{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:27px;padding:4px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#7897a9;font-size:var(--fs-label);font-weight:700;letter-spacing:.02em;line-height:1;white-space:nowrap;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease,transform .12s ease}
.situation-tab:hover{color:var(--tech-text);background:rgba(25,217,255,.07)}
.situation-tab:active{transform:translateY(1px)}
.situation-tab:focus-visible,.notification-refresh:focus-visible{outline:2px solid var(--tech-cyan);outline-offset:2px}
.situation-tab.active{color:#dffbff;background:rgba(25,217,255,.13);border-color:rgba(99,222,255,.28);box-shadow:inset 0 -1px 0 rgba(25,217,255,.45)}
.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:18px;padding:0 5px;border-radius:4px;background:rgba(25,217,255,.1);color:#8beeff;font:700 10px/1 Consolas,"Microsoft YaHei",sans-serif}
.situation-tab.active .notification-count{background:rgba(25,217,255,.2);color:#e7fcff}
.situation-panels{position:relative;z-index:2;display:flex;flex:1;flex-direction:column;height:auto;min-height:0}.situation-panel{flex:1;height:auto;min-height:0}
.situation-panel[hidden]{display:none!important}
.map-card #typhoonPanel{display:flex;flex-direction:column}.map-card .situation-panel>.map-shell{flex:1;height:auto}
.notification-panel{display:flex;flex-direction:column;border:1px solid rgba(99,222,255,.16);border-radius:7px;background:linear-gradient(180deg,rgba(2,11,24,.92),rgba(3,13,27,.8));overflow:hidden}
.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:5px 9px;border-bottom:1px solid rgba(99,222,255,.12);color:#718fa0;font-size:clamp(10px,.7vw,12px);line-height:1.25}
.notification-toolbar-actions{display:flex;align-items:center;gap:6px;min-width:0}.notification-filter-summary{flex:0 0 auto;color:#6f9aaa;font:600 10px/1 Consolas,"Microsoft YaHei",sans-serif;white-space:nowrap}.notification-mobile-filter{display:none}
.notification-refresh{flex:0 0 auto;min-height:24px;padding:3px 9px;border:1px solid rgba(99,222,255,.2);border-radius:4px;background:rgba(25,217,255,.055);color:#8adff0;font-size:clamp(10px,.7vw,12px);font-weight:700;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease,transform .12s ease}
.notification-refresh:hover{color:#e8fcff;background:rgba(25,217,255,.11);border-color:rgba(99,222,255,.36)}
.notification-refresh:active{transform:translateY(1px)}
.notification-refresh:disabled{cursor:wait;opacity:.55}
.notification-table-wrap{flex:1;min-height:0;overflow:auto}
.notification-table{width:100%;height:auto;table-layout:fixed;border-collapse:collapse;background:transparent}
.notification-table th,.notification-table td{border:0;border-bottom:1px solid rgba(99,222,255,.09);padding:7px 9px;text-align:left;font-size:clamp(10px,.72vw,13px);line-height:1.35;vertical-align:middle}
.notification-table th{position:sticky;top:0;z-index:2;height:30px;background:#07182a;color:#79cfe0;font-weight:700;letter-spacing:.03em;box-shadow:0 1px 0 rgba(99,222,255,.12)}
.notification-rule-header label{display:flex;align-items:center;gap:6px;min-width:0}.notification-rule-header label>span{flex:0 0 auto}.notification-rule-header select,.notification-mobile-filter select{min-width:0;height:24px;padding:2px 22px 2px 7px;border:1px solid rgba(99,222,255,.2);border-radius:4px;outline:0;background:#092036;color:#a9deea;font:600 10px/1.2 "Microsoft YaHei",sans-serif;cursor:pointer}.notification-rule-header select{flex:1;width:100%}.notification-rule-header select:focus,.notification-mobile-filter select:focus{border-color:#19d9ff;box-shadow:0 0 0 2px rgba(25,217,255,.12)}
.notification-table th:nth-child(1){width:112px}.notification-table th:nth-child(2){width:24%}.notification-table th:nth-child(3){width:19%}
.notification-table tr{animation:none!important;background:transparent;transition:background .15s ease}
.notification-table tbody tr:hover{background:rgba(25,217,255,.045)}
.notification-time{color:#8bb0c1;font:600 clamp(10px,.7vw,12px)/1.3 Consolas,"Microsoft YaHei",sans-serif;white-space:nowrap}
.notification-rule strong{display:-webkit-box;overflow:hidden;color:#c9f7ff;font-weight:700;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.notification-roles{display:flex;flex-wrap:wrap;gap:3px;color:#8bb0c1}
.notification-role{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border:1px solid rgba(99,222,255,.15);border-radius:4px;background:rgba(25,217,255,.055);color:#8fd8e8;font-size:clamp(9px,.64vw,11px);font-weight:700;white-space:nowrap}
.notification-message{color:#b3c8d3;word-break:break-word}
.notification-message-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.notification-state{height:150px!important;text-align:center!important;color:#6f8b9a!important;font-weight:600!important;letter-spacing:.03em}
.notification-state.is-empty{color:#7898a7!important}.notification-state.is-error{color:#ff8d9c!important}

@media(max-width:1180px){
  .situation-title .module-title-meta .module-source{display:none}
  .situation-tab{padding-left:8px;padding-right:8px}
}

.source-tooltip-control{position:relative;display:none;flex:0 0 auto;letter-spacing:0;text-transform:none}
.source-tooltip-button{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;padding:0;border:1px solid rgba(99,222,255,.42);border-radius:50%;background:rgba(25,217,255,.09);color:#86efff;font:800 12px/1 Consolas,sans-serif;box-shadow:inset 0 0 8px rgba(25,217,255,.08);cursor:pointer}
.source-tooltip-button:focus-visible{outline:2px solid #19d9ff;outline-offset:2px}
.source-tooltip{position:absolute;z-index:40;display:none;top:calc(100% + 8px);right:-4px;width:max-content;max-width:min(270px,calc(100vw - 48px));padding:8px 10px;border:1px solid rgba(99,222,255,.28);border-radius:7px;background:rgba(2,15,29,.97);color:#c3eaf2;font:500 11px/1.45 "Microsoft YaHei",sans-serif;letter-spacing:0;white-space:normal;text-align:left;text-transform:none;box-shadow:0 10px 28px rgba(0,0,0,.45),inset 0 0 18px rgba(25,217,255,.045)}
.source-tooltip::before{content:"";position:absolute;right:8px;top:-5px;width:8px;height:8px;border-left:1px solid rgba(99,222,255,.28);border-top:1px solid rgba(99,222,255,.28);background:rgba(2,15,29,.97);transform:rotate(45deg)}
.source-tooltip-control.is-open .source-tooltip{display:block}
html.mobile .module-title{z-index:20;overflow:visible}
html.mobile .module-title-meta .module-source{display:none!important}
html.mobile .source-tooltip-control{display:inline-flex}
@media(max-width:640px){
  html.mobile .map-card{min-height:500px}
  .situation-title{align-items:flex-start;flex-wrap:wrap;gap:6px}
  .situation-tabs{width:100%;order:1}
  .situation-tab{flex:1;padding:5px 7px;font-size:11px}
  .situation-title .module-title-meta{order:2;width:100%;justify-content:flex-end}
  .situation-title .module-title-meta .module-source{display:block;max-width:none}
  .situation-panels{height:auto}
  .notification-toolbar{align-items:flex-start;font-size:10px}.notification-toolbar>span:first-child{display:none}.notification-toolbar-actions{width:100%;justify-content:flex-end}.notification-mobile-filter{display:flex;align-items:center;gap:5px;min-width:0;margin-right:auto;color:#668b9a}.notification-mobile-filter>span{flex:0 0 auto;white-space:nowrap}.notification-mobile-filter select{width:min(180px,45vw)}
  .notification-table thead{display:none}
  .notification-table,.notification-table tbody{display:block;width:100%}
  .notification-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin:7px;padding:8px;border:1px solid rgba(99,222,255,.11);border-radius:6px;background:rgba(4,16,30,.72)}
  .notification-table tbody td{display:block;border:0;padding:0;font-size:11px;min-width:0}
  .notification-table tbody td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#557483;font-size:9px;font-weight:700}
  .notification-table .notification-message{grid-column:1/-1}
  .notification-table .notification-message-text{-webkit-line-clamp:3;line-clamp:3}
  .notification-table .notification-state{display:flex;grid-column:1/-1;align-items:center;justify-content:center;height:170px!important}
  .notification-table .notification-state::before{display:none}
}

/* Keep the gap above and below the filing link equal. */
.app > .content{padding-bottom:0}
html.mobile .app > .content{padding-bottom:0}
html.mobile .quad:last-child .card:last-child{margin-bottom:0}
.personal-project-label{font-size:12px;font-weight:500;color:#a9c4d4;letter-spacing:.02em;white-space:nowrap;padding:2px 0;border:0;background:transparent}
.site-footer{flex-direction:row;flex-wrap:wrap;gap:6px 18px;padding:8px 16px}
.site-footer a{min-height:24px;white-space:nowrap}
.site-footer .public-security-icon{display:block;flex:0 0 auto;width:auto;height:1em;object-fit:contain}
.site-disclaimer{margin:0;max-width:1100px;color:#9cb4c5;font-size:11px;line-height:1.6;letter-spacing:.02em;text-align:center}
.site-privacy{font-size:10px;line-height:1.5;color:#8295a5;letter-spacing:0;text-align:center}
@media(max-width:1079px){html.mobile .brand{flex:1 1 100%;justify-content:center}.site-footer{padding:10px 14px}.site-disclaimer{font-size:11px}}
