/* Community dashboard. Shared camera/observation components keep their lifecycle. */
:root{--ink:#16343d;--muted:#566b74;--teal:#087e82;--bg:#f4f7f9;--border:#dce6e9;--nav-width:210px}html{scroll-behavior:smooth}body{background:var(--bg)}button,a{touch-action:manipulation}header{position:sticky;top:0;z-index:1100;margin-left:var(--nav-width);height:68px;min-height:68px;padding:12px 28px;background:#ffffffed;backdrop-filter:blur(12px);justify-content:flex-end}header .brand{position:fixed;left:18px;top:20px;width:174px;align-items:flex-start;z-index:1201;font-size:15px;line-height:1.35}header .brand-logo{width:35px;height:37px;border-radius:11px;font-size:28px;background:#def2ef;color:var(--teal);flex-shrink:0}.brand b{display:block;font-size:14px}.brand small{font-size:8px;line-height:1.5;max-width:130px}.header-actions{gap:13px}.version{background:none;color:#5f737c;padding:0;font-size:9px;letter-spacing:1.3px}.original{display:none}#language{background:#f3f7f8;border-color:transparent;min-width:74px;font-weight:700}.app-nav{position:fixed;inset:0 auto 0 0;width:var(--nav-width);padding:112px 12px 210px;background:white;border-right:1px solid var(--border);z-index:1100;display:flex;flex-direction:column;gap:8px}.app-nav button{display:flex;align-items:center;gap:12px;text-align:left;min-height:48px;border:0;background:transparent;border-radius:12px;font-size:13px;font-weight:500;color:#546a74;padding:12px}.app-nav button>span:first-child{font-size:22px;width:22px;text-align:center}.app-nav button:hover{background:#eef6f5}.app-nav button[aria-current=page]{background:#0a7b80;color:#fff;box-shadow:0 4px 12px #087e8218}.sidebar-bottom{position:fixed;bottom:24px;left:24px;width:163px;z-index:1101;font-size:11px;color:var(--muted)}.sidebar-bottom .sidebar-wave{display:block;font-size:65px;line-height:1.2;color:#b3dbd8}.sidebar-bottom b{font-size:15px;color:#285c63}.sidebar-bottom p{line-height:1.8;margin:7px 0}.sidebar-bottom a{font-size:10px}main{max-width:1900px;margin-left:var(--nav-width);padding:26px 28px 20px}.intro{margin:0 0 20px;align-items:flex-start}.intro h1{font-size:clamp(24px,2.3vw,34px);letter-spacing:-.5px;margin:5px 0}.intro p{font-size:13px;max-width:620px;line-height:1.7}.intro-meta{display:none}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#6b858e}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric{display:flex;gap:13px;align-items:center;text-align:left;padding:17px 15px;border-radius:15px;min-width:0;box-shadow:0 2px 7px #17333e03}.metric-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:44px;border-radius:12px;font-size:25px}.camera-icon{background:#e4f3f1;color:#087e82}.water-icon{background:#e9f0fe;color:#376bc0}.rain-icon{background:#f0eafb;color:#8058b0}.report-icon{background:#fff0e0;color:#b26c26}.metric>span:last-child{min-width:0}.metric small,.metric em{display:block;font-style:normal;font-size:10px;color:var(--muted);font-weight:400}.metric strong{font-size:26px;display:block;line-height:1.3;font-weight:700;letter-spacing:-.5px}.metric em{font-size:9px;line-height:1.6;margin-top:2px}.notice{background:#fffaf0;border:1px solid #efe3c7;border-radius:10px;font-size:11px;margin-bottom:22px;padding:9px 13px}.workspace-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.workspace-title h2{font-size:21px;margin:3px 0}.workspace-title p{font-size:12px;color:var(--muted);margin:2px 0}.report-cta{display:flex;gap:8px;align-items:center;background:#087e82;color:white;border:0;box-shadow:0 4px 10px #087e8222;white-space:nowrap;font-size:12px;min-height:46px}.report-cta:hover{background:#066b70}.report-cta>span:first-child{font-size:19px}.map-layers{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;align-items:center}.map-layers label{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:white;font-size:11px;cursor:pointer}.map-layers label:has(input:checked){border-color:#73b4b2;color:#066e72;background:#edf8f5}.map-layers input{width:16px;height:16px;accent-color:var(--teal);margin:0}.layer-more{margin-left:auto;font-size:10px;color:var(--teal);background:transparent;border:0;padding:5px}.workspace{height:620px;min-height:480px;max-height:820px;grid-template-columns:minmax(0,1fr) 310px;box-shadow:0 3px 18px #233e4806;border-radius:16px;gap:0}.camera-directory{display:none}.map-section{height:100%;min-height:400px;grid-column:auto;grid-row:auto}.viewer{padding:19px;grid-column:auto;grid-row:auto}.viewer h2{font-size:19px}.viewer>p.muted{font-size:11px}.viewer .image-frame{aspect-ratio:16/11}.map-toolbar{top:12px;left:12px;right:12px}.map-toolbar button{min-height:44px}.map-caption{display:none}.map-legend{bottom:25px;flex-wrap:wrap;max-width:calc(100% - 24px);font-size:10px;gap:6px}.map-legend .legend-camera{display:none}.depth-key{display:inline-flex;align-items:center;gap:4px;font-size:9px}.depth-key i{width:8px;height:8px;border-radius:50%;margin-left:3px;display:inline-block}.dry{background:#168778}.low{background:#b98012}.mid{background:#dc672b}.high{background:#cb3b49}.deep{background:#790d39}.find-camera{display:inline-flex;align-items:center;background:white;border:1px solid var(--border);border-radius:9px;min-height:44px;padding:8px 11px;text-decoration:none;font-size:11px;font-weight:600}.map-status{bottom:90px}.leaflet-control-zoom{margin-top:75px!important}.community,.forecast{background:#fff;border:1px solid var(--border);border-radius:16px;padding:23px;margin-top:22px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:21px;margin:5px 0}.panel-heading p{font-size:12px;color:var(--muted);margin:3px 0}.panel-heading button{font-size:11px;flex-shrink:0}.forecast-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin:18px 0}.forecast-day{padding:15px 9px;background:#f7f9fb;border:1px solid #e7eef1;border-radius:12px;text-align:center;min-width:0}.forecast-day:first-child{background:#eef8f6;border-color:#9ccac4}.forecast-day h3{font-size:11px;margin:0 0 12px;font-weight:600}.forecast-day .weather-symbol{font-size:26px;display:block;color:#587e99;margin-bottom:10px}.forecast-day strong{font-size:17px;display:block}.forecast-day p{font-size:10px;line-height:1.7;margin:7px 0;color:var(--muted)}.forecast-day b{font-size:18px;display:block;color:#176c83}.forecast-day small{font-size:9px;color:var(--muted)}.data-explainer{padding:10px 12px;border-radius:9px;background:#f4f7fa;font-size:11px;line-height:1.8;color:#526a75}.forecast>a{font-size:12px;display:inline-flex;min-height:44px;align-items:center}.community-controls{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.community-controls label{display:flex;align-items:center;gap:8px;font-size:12px}.community-controls select{font-size:12px}.community-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:17px}.community-card{padding:16px;text-align:left;min-width:0;display:flex;flex-direction:column;gap:8px;align-items:flex-start;background:white;border:1px solid var(--border);border-left:4px solid var(--depth-color);border-radius:11px;font-weight:400}.community-card strong{font-size:13px;overflow-wrap:anywhere}.community-card .report-depth{font-size:23px;font-weight:700;color:var(--depth-color)}.community-card p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.community-card small{font-size:10px;color:#61747c}.community-card .photo-label{color:#467882;font-size:10px;background:#edf6f5;border-radius:5px;padding:3px 5px}.report-pin{min-width:35px;height:35px;border-radius:12px;border:3px solid white;display:grid;place-items:center;font-size:10px;font-weight:700;box-shadow:0 3px 9px #2139404a;color:white}.report-pin.old{opacity:.65;border-style:dashed}.report-pin.conflict{border-color:#dbc6f0}.pick-banner{position:sticky;top:76px;background:#103f4c;color:white;z-index:1000;width:100%;margin:10px 0}.app-footer{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#667e88;margin:24px 0;line-height:1.8}.app-footer a{white-space:nowrap}.environment,.observations,.bulletins{margin-top:22px;border-radius:16px}.environment h2,.observations h2,.bulletins h2{font-size:21px}.bulletins{border-top-width:3px}.hydro-pin{box-shadow:0 3px 10px #1c3b4b30}.empty-state{grid-column:1/-1;padding:35px 18px;text-align:center;color:var(--muted);font-size:13px;background:#f6f9fa;border:1px dashed var(--border);border-radius:12px}.empty-state b{display:block;color:#264d59;font-size:17px;margin-bottom:7px}.report-detail-list{display:grid;gap:12px}.report-detail-record{padding:13px;border:1px solid var(--border);border-radius:10px;font-size:13px}.report-detail-record p{line-height:1.8;overflow-wrap:anywhere}.report-detail-record img{max-height:330px;background:#f1f5f6;border-radius:8px}.report-detail-record small{font-size:11px;color:var(--muted)}#community-status,#forecast-status{font-size:12px;line-height:1.8}#report-detail-dialog{max-width:650px}#report-detail-dialog .dialog-top{position:sticky;top:-18px;background:white;z-index:2;padding:10px 0}#report-detail-body{padding-top:10px}body[data-panel=map] .community,body[data-panel=map] .forecast,body[data-panel=map] .environment,body[data-panel=map] .observations,body[data-panel=map] .bulletins{display:none}body[data-panel=cameras] .community,body[data-panel=cameras] .forecast,body[data-panel=cameras] .environment,body[data-panel=cameras] .observations,body[data-panel=cameras] .bulletins,body[data-panel=cameras] .map-section{display:none}body[data-panel=cameras] .workspace{grid-template-columns:300px minmax(0,1fr);height:auto;min-height:650px;max-height:none}body[data-panel=cameras] .camera-directory{display:flex;max-height:850px}body[data-panel=cameras] .viewer{overflow:visible}body[data-panel=cameras] .image-frame{max-height:520px;aspect-ratio:16/9}body[data-panel=cameras] .map-layers{display:none}body[data-panel=weather] .workspace-title,body[data-panel=weather] .map-layers,body[data-panel=weather] .community,body[data-panel=weather] .bulletins{display:none}body[data-panel=weather] .workspace{height:440px;min-height:380px;grid-template-columns:1fr}body[data-panel=weather] .viewer{display:none}body[data-panel=reports] .forecast,body[data-panel=reports] .environment,body[data-panel=reports] .observations,body[data-panel=reports] .bulletins{display:none}body[data-panel=reports] .workspace{height:430px;min-height:380px;grid-template-columns:1fr}body[data-panel=reports] .viewer{display:none}body[data-panel=updates] .workspace-title,body[data-panel=updates] .map-layers,body[data-panel=updates] .workspace,body[data-panel=updates] .forecast,body[data-panel=updates] .environment,body[data-panel=updates] .observations,body[data-panel=updates] .community{display:none}
/* The existing secure submission logic is shared with the original website. */
#report-dialog{max-width:620px}#report-form{display:grid;gap:15px;padding:6px}#report-form h2{font-size:24px;margin:6px 0}#report-form>.muted{margin:0;line-height:1.8}#report-form .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}#report-form .close{font-size:25px;border:0}#report-form label{font-size:13px;display:block;font-weight:600;line-height:1.8}#report-form input:not([type=checkbox]),#report-form textarea,#report-form select{display:block;width:100%;min-width:0;min-height:46px;margin:6px 0 0;padding:10px 12px;border:1px solid #b9cdd3;border-radius:9px;background:white;font:inherit;color:var(--ink)}#report-form input[aria-invalid=true],#report-form textarea[aria-invalid=true]{border-color:#b53243;background:#fff8f9}#report-form .coords{display:grid;grid-template-columns:1fr 1fr;gap:12px}#report-form .depth-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}#report-form .depth-choice{padding:6px;min-width:0;font-size:11px;display:grid;justify-items:center;gap:2px}#report-form .depth-choice svg{height:67px;width:65px}#report-form .depth-choice b{font-size:12px}#report-form .depth-choice small{font-size:10px;font-weight:400;color:var(--muted)}#report-form .depth-choice.selected{border:2px solid var(--teal);background:#edf7f5}#report-form .depth-scale-note{font-size:10px;color:var(--muted);line-height:1.8}#report-form .photo-consent{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;font-weight:400;align-items:center}#report-form .photo-consent input{width:19px;height:19px;margin:0}#report-form .photo-consent .field-error{order:3;width:100%}.field-error{font-size:12px;color:#a62c3f;font-weight:500;display:block;margin-top:5px}#submit-status.error{color:#a62c3f;background:#fff1f2;padding:10px;border-radius:8px}#report-form .submit{min-height:48px}#report-form .photo-metadata{background:#f1f7f8;padding:12px;border-radius:10px;font-size:11px}#report-form .photo-metadata p{line-height:1.8}#report-form #photo-preview{max-height:200px;background:#f4f6f7;margin:0;border-radius:8px}.turnstile{max-width:100%;overflow:auto}#report-form .privacy-note{font-size:10px}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 370px;height:700px}.viewer{padding:24px}.metric{padding:20px}.metric strong{font-size:30px}}
@media(max-width:1150px){:root{--nav-width:180px}.app-nav button{font-size:11px;padding:10px;gap:8px}header .brand{left:14px;width:155px;font-size:13px}.brand b{font-size:12px}.sidebar-bottom{left:22px;width:140px}main{padding:22px 18px}.workspace{grid-template-columns:minmax(0,1fr) 280px;height:600px}.metric{padding:13px 11px;gap:8px}.metric-icon{width:31px;height:37px;font-size:22px}.metric small{font-size:9px}.metric em{font-size:8px}.metric strong{font-size:23px}.forecast-days{grid-template-columns:repeat(4,minmax(0,1fr))}.community-list{grid-template-columns:repeat(2,minmax(0,1fr))}.viewer{padding:16px}}
@media(max-width:900px){:root{--nav-width:0px}header{padding:12px 18px;position:sticky;justify-content:space-between;height:76px;min-height:76px}header .brand{position:static;width:auto;font-size:15px;align-items:center}.brand b{display:inline;font-size:15px}.brand small{max-width:none;font-size:9px}.brand-logo{width:36px;height:39px}.sidebar-bottom{display:none}.app-nav{position:sticky;top:76px;inset:auto;width:100%;height:59px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px 12px;background:#fffffff5;backdrop-filter:blur(12px);border:0;border-bottom:1px solid var(--border);z-index:1090}.app-nav button{padding:5px 4px;min-height:47px;font-size:10px;gap:3px;justify-content:center;flex-direction:column;line-height:1.2;border-radius:9px}.app-nav button>span:first-child{font-size:18px}.workspace{grid-template-columns:minmax(0,1fr) 290px;height:590px;max-height:none}.camera-directory{grid-column:auto;grid-row:auto}.map-section{grid-column:auto;grid-row:auto;height:100%}.viewer{grid-column:auto;grid-row:auto;overflow:auto;border-top:0;border-left:1px solid var(--border)}main{padding:20px 18px}.version{display:none}.metric-grid{gap:9px}.pick-banner{top:145px}body[data-panel=cameras] .workspace{grid-template-columns:260px minmax(0,1fr)}.app-footer{font-size:9px}}
@media(max-width:650px){header{padding:10px 13px;height:70px;min-height:70px}.brand{gap:8px}header .brand{font-size:13px}.brand b{font-size:13px}.brand small{font-size:8px}.brand-logo{width:33px!important;height:36px!important;font-size:27px!important}.app-nav{top:70px;padding:5px 7px;height:59px}.app-nav button{font-size:9px;min-width:0;white-space:normal;text-align:center}.app-nav button>span:first-child{font-size:17px}.header-actions{gap:0}#language{font-size:11px;min-width:57px;padding:8px 5px}main{padding:18px 12px}.intro{margin:0 0 17px}.intro h1{font-size:24px;line-height:1.5;letter-spacing:-.5px}.intro p{font-size:11px;line-height:1.8}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.metric{padding:12px 11px;gap:11px;border-radius:12px}.metric-icon{width:33px;height:39px;font-size:23px}.metric strong{font-size:24px}.metric small{font-size:9px}.metric em{font-size:8px}.notice{font-size:10px;padding:9px 11px;line-height:1.7;margin-bottom:18px}.workspace-title{align-items:center;margin-bottom:12px;gap:8px}.workspace-title h2{font-size:18px}.workspace-title p{font-size:10px;max-width:180px}.workspace-title .eyebrow{font-size:8px}.report-cta{font-size:10px;padding:8px 10px;gap:4px;min-height:44px}.report-cta>span:first-child{font-size:17px}.map-layers{gap:6px}.map-layers label{font-size:10px;padding:7px 8px;min-height:44px;flex:1 0 auto;justify-content:center}.map-layers input{width:15px;height:15px}.layer-more{font-size:10px;min-height:38px;padding:4px 0;margin-left:0}.workspace{display:flex;height:auto;min-height:0;flex-direction:column;border-radius:13px;overflow:hidden}.map-section{height:440px;min-height:330px;order:0;flex:none}.viewer{overflow:visible;border:0;border-top:1px solid var(--border);order:1;padding:18px}.viewer h2{font-size:20px}.viewer .image-frame{aspect-ratio:16/9;max-height:none}.map-toolbar{left:9px;right:9px;top:9px;gap:5px}.map-toolbar button,.find-camera{font-size:9px;padding:8px;min-height:44px}.map-legend{left:8px;right:8px;bottom:24px;max-width:calc(100% - 16px);font-size:9px;gap:4px;padding:7px 8px}.depth-key{font-size:8px;gap:3px}.depth-key i{width:7px;height:7px;margin-left:2px}.leaflet-control-zoom{margin-top:70px!important}.map-status{bottom:95px}.forecast,.community,.environment,.observations,.bulletins{padding:18px 15px;margin-top:18px}.panel-heading{align-items:flex-start;gap:8px}.panel-heading h2,.environment h2,.observations h2,.bulletins h2{font-size:19px;line-height:1.5}.panel-heading p{font-size:11px}.panel-heading button{font-size:10px;padding:8px;min-height:44px}.forecast-days{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.forecast-day:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;text-align:left;padding:15px 18px;column-gap:12px}.forecast-day:first-child h3{margin:0}.forecast-day:first-child .weather-symbol{grid-row:1/4;grid-column:2;font-size:48px;text-align:center;margin:0}.forecast-day:first-child strong{font-size:25px}.forecast-day:first-child p{margin:5px 0}.forecast-day{padding:13px 9px}.forecast-day h3{font-size:12px}.forecast-day p{font-size:11px}.community-list{grid-template-columns:1fr}.community-controls{gap:9px}.community-controls label{font-size:11px;gap:5px}.community-controls select{font-size:11px;padding:7px}.app-footer{display:block;font-size:9px;line-height:2}.app-footer a{display:block;min-height:44px;padding-top:6px}.data-explainer{font-size:10px}.observations{display:block}.station-detail{margin-top:15px}.pick-banner{top:138px;font-size:11px}.camera-directory{max-height:none}body[data-panel=cameras] .workspace{display:flex;min-height:0}body[data-panel=cameras] .camera-directory{order:1;max-height:470px;display:flex;overflow:auto}body[data-panel=cameras] .viewer{order:0}body[data-panel=cameras] .image-frame{aspect-ratio:16/9}body[data-panel=weather] .workspace,body[data-panel=reports] .workspace{height:auto;min-height:0}body[data-panel=weather] .map-section,body[data-panel=reports] .map-section{height:390px}.app-nav button:focus-visible{outline-offset:0}#report-dialog{width:96vw;padding:12px}#report-form{gap:13px;padding:2px}#report-form h2{font-size:22px}#report-form .coords{gap:8px}#report-form .depth-choice svg{height:60px}#report-form .depth-choice b{font-size:11px}#report-form .depth-cards{gap:6px}#report-form .depth-scale-note{font-size:10px}.panel-heading .eyebrow{font-size:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* A filtered ancestor changes fixed positioning; keep the brand anchored to the rail. */
@media(min-width:901px){header{backdrop-filter:none;z-index:1200}.metric small{font-size:11px}.metric em{font-size:10px}.app-nav button{font-size:13px}}
@media(min-width:901px) and (max-width:1150px){.metric small{font-size:9px}.metric em{font-size:9px}.app-nav button{font-size:11px}}
#overview{scroll-margin-top:145px}.map-toolbar .find-camera{scroll-margin-top:145px}#camera-title,#camera-search{scroll-margin-top:155px}
body[data-panel=weather] main{display:flex;flex-direction:column}body[data-panel=weather] .intro{order:0}body[data-panel=weather] .metric-grid{order:1}body[data-panel=weather] .notice{order:2}body[data-panel=weather] .forecast{order:3;margin-top:0}body[data-panel=weather] .workspace{order:4;margin-top:20px}body[data-panel=weather] .environment{order:5}body[data-panel=weather] .observations{order:6}body[data-panel=weather] .app-footer{order:7}
@media(max-width:650px){.app-nav{height:66px}.app-nav button{font-size:10.5px;line-height:1.3}.metric small{font-size:10px}.metric em{font-size:9px}.map-layers label{font-size:11px}.map-toolbar button,.find-camera{font-size:10px}.sidebar-bottom{display:none}.pick-banner{top:143px}}
@media(max-width:350px){.app-nav button{font-size:9.5px}.brand small{font-size:7px}.metric{gap:7px;padding:11px 9px}.metric small{font-size:9px}.metric em{font-size:8px}.metric-icon{width:29px}.report-cta{font-size:9px}.workspace-title h2{font-size:16px}}
.app-nav .terrain-nav{display:flex;align-items:center;gap:12px;text-align:left;min-height:48px;border-radius:12px;font-size:13px;font-weight:500;color:#546a74;padding:12px;text-decoration:none}.terrain-nav>span:first-child{font-size:22px;width:22px;text-align:center}.terrain-nav:hover{background:#eef6f5}#camera-guide{padding:12px;border:1px solid #d4e4df;border-radius:10px;background:#f2f8f6}#camera-guide summary{min-height:44px;cursor:pointer;font-weight:600}#camera-guide p{font-size:12px;line-height:1.65}#camera-guide-more{font-size:12px;display:block;margin-top:10px}
@media(max-width:900px){.app-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:66px;gap:2px;padding:4px 6px}.app-nav button,.app-nav .terrain-nav{min-width:0;min-height:48px;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:2px;padding:3px;font-size:9px;line-height:1.3;overflow-wrap:anywhere}.app-nav .terrain-nav>span:first-child{font-size:20px}}

/* An unselected map uses the whole workspace; explicit camera links keep the viewer. */
body[data-panel=map]:not([data-camera-selected]) .workspace{grid-template-columns:minmax(0,1fr)}body[data-panel=map]:not([data-camera-selected]) .viewer{display:none}
.camera-hover-preview{max-height:300px;overflow:auto;white-space:normal;width:264px;max-width:calc(100vw - 40px);padding:12px;border:1px solid var(--border);border-radius:12px;box-shadow:0 6px 24px #15333e33;color:var(--ink)}.camera-preview-content{font-family:"Noto Sans Thai",Tahoma,system-ui,sans-serif}.camera-preview-content strong{display:block;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.camera-preview-content img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#15333e;border-radius:7px;margin-top:8px}.camera-preview-content p{white-space:normal;font-size:10px;line-height:1.6;margin:7px 0}.camera-preview-content small{display:block;font-size:9px;color:var(--muted);line-height:1.6}

.app-footer{flex-wrap:wrap}

/* Official owner-supplied brand image, kept intact. */
header .brand .brand-logo.tws-logo{width:62px!important;height:38px!important;min-width:62px;flex-shrink:0;background:#fff;border-radius:4px;display:flex;align-items:center;padding:2px}
header .brand .tws-logo img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:650px){header .brand .brand-logo.tws-logo{width:58px!important;min-width:58px;height:34px!important}header .brand{max-width:calc(100vw - 100px)}}

/* A stationary mobile camera viewer with a selector immediately below the picture. */
.camera-quick-picker{display:none}
@media(max-width:768px){body[data-panel=cameras] .camera-quick-picker{display:grid;gap:5px;margin:10px 0;font-size:12px}body[data-panel=cameras] #camera-quick-select{width:100%;min-width:0;min-height:44px;font-size:14px}body[data-panel=cameras] .image-frame{width:100%;aspect-ratio:16/9;min-height:0;flex-shrink:0;overflow-anchor:none}body[data-panel=cameras] .viewer{overflow-anchor:none}body[data-panel=cameras] .viewer h2{font-size:20px;height:56px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0;line-height:1.4}body[data-panel=cameras] .viewer #camera-area{height:20px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 10px}}
/* Report-form legibility: iOS Safari zooms into inputs under 16px; consent and privacy text must stay readable (Fable review I1/I2). */
#report-form input:not([type=checkbox]):not([type=radio]),#report-form select,#report-form textarea{font-size:16px}#report-form .photo-consent,#report-form .photo-metadata{font-size:13px}#report-form .privacy-note,#report-form .depth-scale-note{font-size:12px}
