/* TOWN ALERT — V4 / VIBRANT INTERFACE
   A new visual language applied INSIDE the two apps, not the desktop review page.
   Functional workflows intentionally remain unchanged. Roboto + spacious line heights.
   Blue: trusted municipal publishing. Orange: citizen updates. Each category: strong visual code.
*/
:root{
  --v4-blue:#1257e8;
  --v4-indigo:#083fae;
  --v4-cyan:#04b6e7;
  --v4-orange:#ff941e;
  --v4-ink:#122541;
  --v4-paper:#f0f5ff;
}
.sender-app,.receiver-app{font-family:Roboto,Arial,sans-serif;color:var(--v4-ink);letter-spacing:.01em}
.sender-app button,.receiver-app button{transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
.sender-app button:active,.receiver-app button:active{transform:scale(.982)}
.sender-app .statusbar{background:#083da9;color:#fff}
.receiver-app .statusbar{background:#ffad18;color:#122541}
/* Sender: dramatic brand treatment, clear white identity. */
.sender-app{background:#edf4ff}
.sender-app .app-header{
  background:linear-gradient(118deg,#073bad 0%,#0959db 49%,#008feb 100%);
  padding:15px 19px 15px;min-height:126px;
  box-shadow:0 10px 22px rgba(0,65,191,.13);
}
.sender-app .app-header:after{border-color:#ffffff5c;box-shadow:0 0 0 26px #ffffff11,0 0 0 52px #ffffff08}
.sender-app .brand-icon{width:55px;height:55px;border-radius:18px;background:#fff;color:#1153d9;box-shadow:0 8px 19px #00338e66}
.sender-app .brand-icon .app-icon{width:31px;height:31px;stroke-width:2.1}
.sender-app .brand-title{font-size:26px;font-weight:900;letter-spacing:.008em}
.sender-app .brand-sub{font-size:13px;font-weight:650;color:#e6f6ff}
.sender-app .authority-seal{width:47px;height:47px;border:1.5px solid #ffffff88;background:#ffffff22;color:#fff;box-shadow:inset 0 1px 0 #ffffff45}
.sender-app .authority-seal .app-icon{color:#fff;width:27px;height:27px}
.sender-app .header-bottom-note{color:#eaf9ff;font-size:9.5px;letter-spacing:.125em;font-weight:800;margin-top:14px}
.sender-app .header-live-dot{background:#70ffbc;box-shadow:0 0 0 4px #70ffbc3b}
/* Sender category list: individual highly visible, elevated color panels. */
.sender-body{background:linear-gradient(170deg,#e6f0ff,#f3f7ff 70%,#eaf2ff);padding:16px 14px 10px;gap:0}
.sender-intro{margin:0 4px 13px}
.sender-intro .screen-eyebrow{font-size:11.5px;color:#075adb;font-weight:900;letter-spacing:.13em;margin-bottom:5px}
.sender-intro h2{font-size:21px;font-weight:900;letter-spacing:0;line-height:1.24;color:#122849}
.sender-list{
  display:flex;flex-direction:column;gap:9px;flex:1;min-height:0;
  background:none;box-shadow:none;border:0;border-radius:0;overflow:visible;
}
.sender-category{
  flex:1 1 0;min-height:66px;gap:14px;
  border-radius:18px;overflow:hidden;isolation:isolate;
  border:1px solid #ffffff33;padding:9px 13px;
  color:#fff;box-shadow:0 8px 12px rgba(27,61,116,.17),inset 0 1px 0 #ffffff52;
}
.sender-category:after{content:'';position:absolute;width:120px;height:120px;border-radius:50%;right:-55px;top:-64px;background:#ffffff16;pointer-events:none}
.sender-category+.sender-category:before{display:none}
.sender-category:hover{filter:brightness(1.075);box-shadow:0 12px 20px rgba(27,61,116,.25)}
.sender-category.cat-weather-row{background:linear-gradient(113deg,#0756cb,#006bd4)}
.sender-category.cat-fire-row{background:linear-gradient(113deg,#be321a,#d54819)}
.sender-category.cat-accident-row{background:linear-gradient(113deg,#573bcc,#7540d2)}
.sender-category.cat-health-row{background:linear-gradient(113deg,#be0c5b,#d81c62)}
.sender-category.cat-message-row{background:linear-gradient(113deg,#006d70,#008b78)}
.sender-category .category-medallion{
  width:51px;height:51px;flex:none;background:#ffffff26;color:#fff;
  border:1.5px solid #ffffff67;border-radius:15px;
  box-shadow:inset 0 1px 0 #ffffff40;
}
.sender-category .category-medallion .app-icon{width:29px;height:29px;stroke-width:2.25}
.sender-category .category-label{font-size:20px;line-height:1.2;font-weight:850;color:#fff;letter-spacing:.015em;text-shadow:0 1px 1px #00000015}
.sender-category .category-chevron{margin-left:auto;width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#ffffff38;color:#fff;flex:none;z-index:1}
.sender-category .category-chevron .app-icon{height:19px;width:19px;stroke-width:2.6}
/* Sender bottom controls pop against cool paper. */
.sender-bottom{background:#fff;padding:8px 14px 12px;border-top:1px solid #dae9ff;box-shadow:0 -7px 25px #0846b014}
.sender-bottom .greeting{font-size:12.5px;font-weight:800;color:#2257a5;margin-bottom:8px}
.sender-bottom .greeting-dot{background:#12b484;box-shadow:0 0 0 4px #12b48424}
.sender-three-actions{gap:8px}
.sender-bottom .small-action{min-height:49px;border-radius:13px;background:#fff;color:#174da6;border:1.5px solid #c9dcfb;font-size:12.5px;font-weight:850;box-shadow:0 4px 10px #1b60a015}
.sender-bottom .small-action .app-icon{width:18px;height:18px;stroke-width:2.25}
.sender-bottom .small-action:last-child{background:#1159d9;border-color:#1159d9;color:#fff;box-shadow:0 7px 17px #1159d944}
/* Sender secondary pages, message editor, location and controls. */
.sender-app .page-padding{background:linear-gradient(#eef5ff,#f6f9ff);padding:19px 16px}
.sender-app .section-title{font-size:24px;font-weight:900;color:#113671;letter-spacing:0}
.sender-app .section-description{font-size:14px;color:#536d98;font-weight:550}
.sender-app .back-icon-btn{width:46px;height:46px;border-radius:14px;background:#fff;border:1.5px solid #cde1ff;color:#1257d2;box-shadow:0 4px 9px #174ea51a}
.sender-app .field-title{font-size:15px;font-weight:850;color:#173e76}
.sender-app .message-box{font-size:18px;line-height:1.55;letter-spacing:.01em;border:2px solid #bed8ff;background:#fff;box-shadow:0 8px 22px #114fc21b;color:#163252}
.sender-app .message-box:focus,.sender-app .input-box:focus{border-color:#1665eb;outline:3px solid #1665eb29}
.sender-app .photo-tile,.sender-app .location-tile{border:1.5px solid #bdd7fc;background:#fff;color:#1058c2;box-shadow:0 8px 18px #084ea51b;border-radius:17px;min-height:115px}
.sender-app .photo-tile .app-icon,.sender-app .location-tile>.app-icon{color:#0f64e0;width:28px;height:28px}
.sender-app .attach-name{font-size:14px;font-weight:850;color:#174480}
.sender-app .attach-help,.sender-app .location-name{font-size:12px;color:#536987}
.sender-app .btn-primary{background:linear-gradient(116deg,#064bd3,#0c7dfa);color:#fff;border-color:#0959ed;box-shadow:0 9px 18px #1159dc4f}
.sender-app .btn-secondary{background:#fff;border:2px solid #c9dcf6;color:#2458aa}
.sender-app .btn{font-size:17px;min-height:56px;font-weight:850;border-radius:15px}
.sender-app .info-text{font-size:12.5px;color:#577090}
.sender-app .current-item{border:1.5px solid #cde0ff;border-left:5px solid #1763e8;border-radius:16px;box-shadow:0 7px 19px #1353c91f;padding:15px}
.sender-app .current-title{font-size:17px;font-weight:850}
.sender-app .current-sub{font-size:12px}
.sender-app .input-box{font-size:16px;border:1.5px solid #bbd6fd}
/* Citizen app: energetic orange/blue system. Visual emphasis inside phone. */
.receiver-app{background:#f0f5ff}
.receiver-app .app-header{
  min-height:116px;padding:19px 16px 22px;color:#172541;
  background:linear-gradient(109deg,#ffc523 0%,#ffa21a 56%,#ff7a2b 100%);
  box-shadow:0 8px 21px #f68a2226;
}
.receiver-app .app-header:after{border-color:#fff7;box-shadow:0 0 0 27px #fff3,0 0 0 55px #fff2}
.receiver-app .brand-title{font-size:25px;font-weight:900;color:#142846;line-height:1.16}
.receiver-app .brand-sub{font-size:12.5px;font-weight:650;color:#633414}
.receiver-app .round-icon-button{width:43px;height:44px;background:#fff;border:1px solid #fff;box-shadow:0 6px 14px #ba4b1636;border-radius:14px;color:#134ec4}
.receiver-app .round-icon-button .app-icon{width:23px;height:23px;stroke-width:2.05}
/* Welcome: retain single primary CTA, richer illustration treatment and bold hierarchy. */
.receiver-app .welcome-screen{background:#f0f5ff}
.receiver-app .welcome-illustration{height:244px;background:radial-gradient(circle at 50% 45%,#ffef99 0%,#ffe4a1 36%,#fff5d3 72%,#f0f5ff 100%)}
.receiver-app .welcome-illustration svg{width:100%;height:233px;filter:saturate(1.55) contrast(1.12) drop-shadow(0 9px 6px #1958a526)}
.receiver-app .receiver-hero{
  margin:-12px 14px 0;padding:23px 20px 21px;border:2px solid #d8e7ff;
  border-radius:24px;background:#fff;box-shadow:0 15px 33px #0643c02c;
}
.receiver-app .welcome-label{font-size:11px;letter-spacing:.105em;color:#1153c7;font-weight:900;margin-bottom:11px}
.receiver-app .welcome-status-dot{background:#ff891e;box-shadow:0 0 0 4px #ff991f28;width:7px;height:7px}
.receiver-app .receiver-hero h2{font-size:31px;line-height:1.15;color:#112b53;font-weight:900;letter-spacing:0;margin-bottom:13px}
.receiver-app .receiver-hero h2 span{color:#f47709}
.receiver-app .receiver-hero p{font-size:16px;line-height:1.55;color:#465d79;margin-bottom:19px;font-weight:500}
.receiver-app .receiver-big-btn{
  height:64px;padding:0 18px;background:linear-gradient(111deg,#0752d9,#0a6fdd);
  color:#fff;border:1px solid #095de4;font-weight:900;font-size:18px;
  border-radius:16px;box-shadow:0 10px 19px #0863e64c;
}
.receiver-app .receiver-big-btn .app-icon{width:24px;height:24px;stroke-width:2.8}
.receiver-app .receiver-footnote{font-size:12px;color:#59708b;font-weight:650;margin-top:18px}
/* Town subscriptions: bold selected states, readable rows. */
.receiver-app .towns-screen{background:#eff5ff}
.receiver-app .towns-intro{background:linear-gradient(125deg,#ffca26,#ff8b22);box-shadow:0 7px 17px #e98e232d;padding:16px 19px 17px}
.receiver-app .towns-mini-brand{font-size:15px;color:#19334e;font-weight:850}
.receiver-app .towns-title{font-size:29px;font-weight:900;color:#172b45}
.receiver-app .towns-intro .screen-eyebrow{font-size:11px;color:#644120;font-weight:900}
.receiver-app .towns-intro p:not(.screen-eyebrow){font-size:14px;line-height:1.45;color:#5a3d25;font-weight:550}
.receiver-app .text-button{background:#fff;border:1px solid #fff;width:41px;height:41px;border-radius:13px;box-shadow:0 4px 12px #b9581530;color:#1854c8}
.receiver-app .towns-list{margin:13px 12px 0;border:1px solid #cddfff;border-radius:18px;box-shadow:0 10px 22px #174ab01f;background:#fff}
.receiver-app .town-option{min-height:56px;padding:9px 12px;border-bottom:1px solid #e1ebf9;color:#1b365a}
.receiver-app .town-option[aria-pressed=true]{background:linear-gradient(90deg,#e5f0ff,#f4faff)}
.receiver-app .town-label{font-size:16px;font-weight:750;color:#173755;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;overflow-wrap:anywhere}
.receiver-app .town-check{height:28px;width:28px;border-radius:10px}
.receiver-app .town-check.selected{background:#095cdb;color:white;box-shadow:0 4px 10px #095cdb38}
.receiver-app .town-check.not-selected{background:#e9edf3;color:#7b899a}
.receiver-app .town-choice{font-size:11.5px;color:#0759cf;font-weight:850}
.receiver-app .towns-done{padding:10px 15px 13px;box-shadow:0 -5px 16px #063e9a15}
.receiver-app .towns-count{font-size:12px;color:#315078;font-weight:800}
.receiver-app .towns-done .btn{height:58px;background:linear-gradient(115deg,#0b50d3,#0b6fdc);color:#fff;border:0;border-radius:15px;box-shadow:0 7px 16px #0a61e345;font-size:17px;font-weight:900}
/* Feed: vivid category accents and stronger visual separation. */
.receiver-app .feed-screen{background:linear-gradient(175deg,#edf4ff 0%,#f6f9ff 100%);padding:19px 13px 28px}
.receiver-app .feed-meta{margin:0 3px 16px}
.receiver-app .feed-meta .screen-eyebrow{font-size:10.5px;color:#135cd5;letter-spacing:.105em;font-weight:900}
.receiver-app .feed-meta h2{font-size:27px;color:#122e56;font-weight:900;letter-spacing:0}
.receiver-app .selected-towns{font-size:12px;font-weight:900;color:#1152bc;background:#fff;border:1px solid #bcd4fb;padding:9px 11px;box-shadow:0 3px 10px #0d4c9a14}
.receiver-app .alert-card{
  position:relative;overflow:hidden;background:#fff;border:1px solid #cbdcff;
  border-left:6px solid #f28b21;border-radius:17px;margin-bottom:12px;
  padding:15px 13px 13px 14px;color:#183453;
  box-shadow:0 8px 20px #113e991e;
}
.receiver-app .alert-card:hover{box-shadow:0 12px 22px #113e9931;transform:translateY(-2px)}
.receiver-app .alert-card.cat-weather-alert{border-left-color:#0877e8}
.receiver-app .alert-card.cat-fire-alert{border-left-color:#ef4822}
.receiver-app .alert-card.cat-accident-alert{border-left-color:#6b44d7}
.receiver-app .alert-card.cat-health-alert{border-left-color:#d71967}
.receiver-app .alert-card.cat-message-alert{border-left-color:#009c91}
.receiver-app .alert-icon{width:53px;height:53px;border-radius:14px;box-shadow:0 4px 10px #1d439b18}
.receiver-app .alert-icon .app-icon{height:29px;width:29px;stroke-width:2.2}
.receiver-app .alert-icon.cat-weather{background:#0b73e4;color:#fff}
.receiver-app .alert-icon.cat-fire{background:#c53d1b;color:#fff}
.receiver-app .alert-icon.cat-accident{background:#7144da;color:#fff}
.receiver-app .alert-icon.cat-health{background:#da1e71;color:#fff}
.receiver-app .alert-icon.cat-message{background:#007d72;color:#fff}
.receiver-app .alert-card-category{color:#135acc;font-size:11px;font-weight:900;letter-spacing:.115em}
.receiver-app .alert-card-title{font-size:17.5px;font-weight:850;line-height:1.35;letter-spacing:.004em;color:#152e50;margin-top:4px}
.receiver-app .card-arrow{width:18px;height:18px;color:#1c5dcc;stroke-width:2.5}
.receiver-app .alert-card-from{font-size:13.5px;color:#425976;margin-top:11px;font-weight:550}
.receiver-app .alert-card-from strong{font-weight:850;color:#183858}
.receiver-app .alert-card-datetime{font-size:12px;font-weight:700;color:#536985}
.receiver-app .alert-card-datetime .app-icon{height:16px;width:16px}
.receiver-app .alert-card-town{color:#34547c;font-weight:850;font-size:12.5px;border-top:1px solid #e1eafa;padding-top:10px}
.receiver-app .pill{background:#d4f9e9;color:#087a4f;font-size:11px;font-weight:900;padding:6px 10px;border:1px solid #a0edcb}
/* Details: full-size message content, bold status and navigation. */
.receiver-app .alert-detail-screen{background:#edf4ff}
.receiver-app .detail-scroll{padding:14px 12px 10px}
.receiver-app .detail-panel{border:1px solid #cbdcff;border-top:5px solid #0d65e0;border-radius:18px;padding:18px 17px;box-shadow:0 10px 26px #0d4aaf21}
.receiver-app .detail-category{font-size:18px;font-weight:900;color:#173861}
.receiver-app .detail-stamp{font-size:12.5px;color:#526d8e;font-weight:650}
.receiver-app .detail-body{font-size:19px;line-height:1.52;font-weight:680;letter-spacing:.005em;color:#1b3655;margin-top:20px;margin-bottom:18px}
.receiver-app .detail-byline{font-size:14px;color:#4b647f;font-weight:550}
.receiver-app .detail-byline strong{color:#174fa8;font-weight:900}
.receiver-app .detail-location-label{font-size:13px;font-weight:800;color:#355b8b}
.receiver-app .detail-footer{gap:9px;padding:11px 12px 13px;border-top:1px solid #d1e1f7}
.receiver-app .detail-footer button{height:57px;background:#e3efff;border:1px solid #bad3fc;border-radius:14px;color:#1159cf;font-size:21px;font-weight:900}
.receiver-app .detail-footer .home-btn{background:linear-gradient(115deg,#0b57db,#0c6dda);border-color:#0b57db;color:#fff;font-size:17px;box-shadow:0 7px 18px #0b57db4d}
/* Notification must be strongly noticeable and readable. */
.receiver-app .push-notification{background:#fff;border:1.5px solid #b9d3ff;border-left:5px solid #1167ed;border-radius:19px;box-shadow:0 17px 46px #0d338477}
.receiver-app .push-icon{height:32px;width:32px;border-radius:10px;background:#1164e4;color:white}
.receiver-app .push-icon .app-icon{height:20px;width:20px}
.receiver-app .push-app{font-size:11px;font-weight:900;color:#1354b9}
.receiver-app .push-title{font-size:16px;font-weight:900;color:#173b6f;line-height:1.4}
.receiver-app .push-message{font-size:13px;color:#455e7b;line-height:1.45}
.receiver-app .push-now{color:#617b9e;font-weight:750}
/* Modal and feedback consistent with vivid product UI. */
.sender-app .toast,.receiver-app .toast{background:#064ecb;border-radius:14px;font-size:14px;font-weight:700}
.sender-app .dialog,.receiver-app .dialog{border-radius:22px;border-top:5px solid #1463ec;box-shadow:0 22px 60px #0828556a}
.sender-app .dialog h3,.receiver-app .dialog h3{color:#14356b;font-size:23px;font-weight:900}
.sender-app .dialog p,.receiver-app .dialog p{font-size:15px;color:#3f5675;line-height:1.5}
.receiver-app .dialog .btn-primary{background:#115ddb;color:#fff;border:0;font-size:17px;font-weight:900}
/* Refresh branded splash visuals as an internal-screen treatment. */
.splash-app.sender-app{background:#0647c8;color:#fff}
.splash-app.receiver-app{background:#ffb322;color:#172640}
.splash-app .splash-sender{background:radial-gradient(circle at 36% 32%,#27b6fc 0%,#0967dc 43%,#053aa3 100%)}
.splash-app .splash-receiver{background:radial-gradient(circle at 41% 31%,#ffef98 0%,#ffc535 43%,#f87c23 100%)}
.splash-app .splash-title{font-size:35px;font-weight:900}
.splash-app .splash-subtitle{font-size:15px;font-weight:650;letter-spacing:.02em}
.splash-app .splash-logo-inner{background:#fff;color:#0b59dd;box-shadow:0 16px 40px #02327c61}
.splash-app.receiver-app .splash-logo-inner{color:#f2780c}
/* Smaller phones: adjust spacing instead of shrinking essential text. */
@media(max-width:360px){
  .sender-app .app-header{min-height:118px;padding:13px 13px}
  .sender-app .brand-title{font-size:24px}
  .sender-app .brand-icon{width:48px;height:48px}
  .sender-body{padding:12px 11px 7px}
  .sender-intro{margin-bottom:10px}
  .sender-intro h2{font-size:19px}
  .sender-list{gap:7px}
  .sender-category{min-height:59px;gap:10px;padding:6px 11px;border-radius:15px}
  .sender-category .category-medallion{height:43px;width:43px;border-radius:13px}
  .sender-category .category-medallion .app-icon{width:25px;height:25px}
  .sender-category .category-label{font-size:18px}
  .sender-bottom{padding:6px 10px 10px}
  .sender-bottom .small-action{font-size:12px;min-height:45px}
  .receiver-app .app-header{padding:15px 11px 18px;min-height:107px}
  .receiver-app .brand-title{font-size:22px}
  .receiver-app .round-icon-button{width:38px;height:39px}
  .receiver-app .welcome-illustration{height:210px}
  .receiver-app .welcome-illustration svg{height:205px}
  .receiver-app .receiver-hero{margin:-8px 11px 0;padding:18px 16px 18px}
  .receiver-app .receiver-hero h2{font-size:28px}
  .receiver-app .receiver-hero p{font-size:15px}
  .receiver-app .town-label{font-size:15px}
  .receiver-app .town-option{min-height:54px;padding:7px 9px}
  .receiver-app .alert-card{padding:12px 10px 12px 11px}
  .receiver-app .alert-card-title{font-size:16.5px}
  .receiver-app .alert-card-datetime{font-size:11px}
}
@media(max-height:710px){
  .sender-category{min-height:56px;border-radius:14px}
  .sender-list{gap:6px}
  .sender-category .category-medallion{width:43px;height:43px}
  .sender-category .category-label{font-size:18px}
  .sender-app .app-header{min-height:110px}
  .sender-intro h2{font-size:19px}
  .receiver-app .welcome-illustration{height:185px}
  .receiver-app .welcome-illustration svg{height:180px}
}
