:root {
  --bg: #05070a;
  --panel: #0d1117;
  --panel2: #151b23;
  --text: #f2f6ff;
  --muted: #93a4b8;
  --line: #253044;
  --red: #ff3b30;
  --amber: #ffcc00;
  --green: #34c759;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #111827, var(--bg));
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* Desktop scale reduction */
.page-scale {
  transform: scale(0.8);
  transform-origin: top left;
  width: 125%;
}

.topbar {
  min-height: 88px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, .92);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

h1, h2, h3, p { margin: 0; }

.header-left { text-align: left; }

.brand-rating-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

h1 {
  letter-spacing: 5px;
  font-size: 34px;
  background: linear-gradient(180deg, #ffffff 15%, #7db7ff 55%, #2f81f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #7db7ff;
  text-shadow: 0 0 8px rgba(125, 183, 255, .65), 0 0 18px rgba(47, 129, 247, .45);
}

.site-rating-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 129, 247, .9);
  background: rgba(13,17,23,.92);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 8px rgba(47, 129, 247, .45), inset 0 0 12px rgba(47, 129, 247, .08);
  white-space: nowrap;
}

.site-rating-label {
  color: #ffffff;
  font-size: 15px;
}

.site-rating-stars {
  color: #ffcc00;
  font-size: 16px;
  text-shadow: 0 0 6px rgba(255, 204, 0, .45);
}

.header-left p {
  color: #bcdcff;
  margin-top: 8px;
  font-size: 15px;
  text-shadow: 0 0 6px rgba(125, 183, 255, .45), 0 0 14px rgba(47, 129, 247, .25);
}

.header-logo { text-align: center; }

.header-logo img {
  max-height: 108px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(47, 129, 247, .85)) drop-shadow(0 0 28px rgba(47, 129, 247, .45));
  animation: logoGlow 2.8s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 7px rgba(47, 129, 247, .55)) drop-shadow(0 0 18px rgba(47, 129, 247, .25));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(47, 129, 247, .95)) drop-shadow(0 0 34px rgba(47, 129, 247, .55));
  }
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.top-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid rgba(125, 183, 255, .9);
  background: rgba(47, 129, 247, .12);
  color: #d8eaff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 0 8px rgba(47, 129, 247, .45), inset 0 0 12px rgba(47, 129, 247, .08);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.top-login-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(125, 183, 255, .75), 0 0 24px rgba(47, 129, 247, .35), inset 0 0 14px rgba(47, 129, 247, .12);
}

.clock {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.clock span,
.clock small {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 0 6px rgba(255,255,255,.55), 0 0 12px rgba(255,255,255,.25);
  background: rgba(255,255,255,.03);
}

.clock span {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
}

.clock small {
  font-size: 15px;
  color: #d8eaff;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 18px;
  padding: 18px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.section-title h2 { letter-spacing: 3px; }

.section-title span {
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
}

.alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.alert-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 86px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-left: 8px solid var(--cat);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.alert-left {
  padding: 6px;
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  text-align: center;
  overflow: hidden;
}

.cat-icon {
  font-size: 30px;
  line-height: 1;
}

.cat-name {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  line-height: 1.05;
  max-width: 108px;
  margin: 0 auto;
  overflow-wrap: break-word;
  white-space: normal;
}

.service-logo {
  max-width: 62px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.3));
}

.alert-body { padding: 8px 12px; }

.alert-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.alert-head h3 {
  font-size: 24px;
  text-transform: uppercase;
  line-height: 1.12;
}

.priority {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--cat);
  color: #000;
  font-weight: 900;
  min-width: 54px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 0 6px rgba(255,255,255,.55), 0 0 12px rgba(255,255,255,.25);
}

.location {
  margin: 7px 0 4px;
  color: #d7e2f1;
  font-size: 17px;
  font-weight: 700;
}

.details {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  white-space: pre-line;
}

.meta {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.critical { animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 59, 48, 0); }
  50% { box-shadow: 0 0 35px rgba(255, 59, 48, .45); }
}

.side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.notice, .card {
  background: rgba(13,17,23,.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.notice strong {
  display: block;
  margin-bottom: 8px;
}

.notice span, .notice a, .hint { color: var(--muted); }

.notice.emergency { border-color: var(--red); }

.notice a {
  display: inline-block;
  color: #7db7ff;
  text-decoration: none;
  font-weight: 700;
  margin-top: 8px;
}

.notice a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.notice:not(.emergency) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.notice:not(.emergency) strong {
  width: 100%;
  text-align: left;
  margin-bottom: 12px;
}

.notice:not(.emergency) a { margin-top: 0; }

.notice:not(.emergency) a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice:not(.emergency) a img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(0, 140, 255, 0.45);
}

/* COMMUNITY CHAT */

.chat-open-box {
  display: block !important;
  border-color: #1d4ed8;
  box-shadow: 0 0 14px rgba(47, 129, 247, .12);
}

.chat-open-text {
  color: #d8eaff;
  font-size: 13px;
  line-height: 1.35;
  margin: 8px 0 12px;
}

.chat-popup-open-btn {
  width: 100%;
  border: 1px solid rgba(47, 129, 247, .55);
  background: rgba(47, 129, 247, .18);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .5px;
  box-shadow: inset 0 0 12px rgba(47, 129, 247, .08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.chat-popup-open-btn:hover {
  transform: translateY(-1px);
  background: rgba(47, 129, 247, .28);
  box-shadow: 0 0 14px rgba(47, 129, 247, .35), inset 0 0 12px rgba(47, 129, 247, .12);
}

.chat-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.chat-popup.hidden {
  display: none !important;
}

.chat-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
}

.chat-popup-panel {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  border: 1px solid rgba(47, 129, 247, .75);
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(17, 24, 39, .98), rgba(5, 7, 10, .98));
  box-shadow: 0 0 28px rgba(47, 129, 247, .35), 0 22px 80px rgba(0,0,0,.65);
  padding: 18px;
  overflow: hidden;
}

.chat-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255, 59, 48, .18);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 59, 48, .25);
}

.chat-popup-close:hover {
  background: rgba(255, 59, 48, .32);
}

.chat-box {
  display: block !important;
  border-color: #1d4ed8;
  box-shadow: 0 0 14px rgba(47, 129, 247, .12);
}

.chat-box-popup {
  width: 100%;
  max-height: calc(100vh - 92px);
  padding: 20px;
  overflow: hidden;
}

.chat-box-popup .chat-head strong {
  font-size: 22px;
}

.chat-box-popup .chat-head small {
  font-size: 13px;
  padding-right: 45px;
}

.chat-box-popup .chat-messages {
  max-height: min(560px, calc(100vh - 285px));
  min-height: 360px;
  padding: 12px;
}

.chat-box-popup .chat-message {
  padding: 10px;
}

.chat-box-popup .chat-message p {
  font-size: 15px;
}

.chat-box-popup .chat-meta strong {
  font-size: 14px;
}

.chat-box-popup .chat-meta span {
  font-size: 11px;
}

.chat-box-popup .chat-nickname-wrap input,
.chat-box-popup .chat-send-wrap input {
  padding: 12px;
  font-size: 15px;
}

.chat-box-popup .chat-nickname-wrap .mini,
.chat-box-popup .chat-send-wrap .mini {
  padding: 11px 16px;
  font-size: 14px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-head strong {
  width: auto !important;
  margin: 0 !important;
  color: #7db7ff;
  letter-spacing: .5px;
}

.chat-head small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.chat-messages {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(47, 129, 247, .25);
  border-radius: 12px;
  background: rgba(5, 7, 10, .55);
}

.chat-message {
  width: 100%;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.chat-message:last-child {
  border-bottom: 0;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.chat-meta strong {
  width: auto !important;
  margin: 0 !important;
  color: #bcdcff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.chat-meta span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.chat-message p {
  color: #f2f6ff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-nickname-wrap,
.chat-send-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.chat-nickname-wrap input,
.chat-send-wrap input {
  min-width: 0;
  padding: 9px 10px;
  font-size: 13px;
}

#chatNickname::placeholder {
  color: #ffffff;
  font-weight: 900;
  opacity: 1;
}

.chat-nickname-wrap .mini,
.chat-send-wrap .mini {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  border-color: rgba(47, 129, 247, .45);
  background: rgba(47, 129, 247, .12);
}

.chat-tools {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.change-nickname-btn {
  min-width: 180px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  border-color: rgba(255, 204, 0, .45);
  background: rgba(255, 204, 0, .12);
  color: #ffcc00;
}

.change-nickname-btn:hover {
  background: rgba(255, 204, 0, .22);
  color: #ffffff;
}

.chat-box .msg {
  width: 100%;
  font-size: 12px;
  margin-top: 8px;
}

/* COMMUNITY REVIEWS */

.reviews-box {
  display: block !important;
  border-color: #1d4ed8;
  box-shadow: 0 0 14px rgba(47, 129, 247, .12);
}

.reviews-box h2 {
  width: 100%;
  margin-bottom: 12px;
  color: #7db7ff;
  font-size: 18px;
  text-align: center;
  letter-spacing: .5px;
}

#reviewForm {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

#reviewForm input,
#reviewForm select,
#reviewForm textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font-size: 13px;
  border: 1px solid rgba(47, 129, 247, .35);
  background: rgba(5, 7, 10, .75);
  color: var(--text);
  border-radius: 10px;
}

#reviewForm select {
  color: #ffcc00;
  font-weight: 800;
  cursor: pointer;
}

#reviewForm input[readonly] {
  opacity: .85;
  cursor: not-allowed;
}

#reviewForm textarea {
  min-height: 82px;
  max-height: 140px;
  resize: vertical;
  line-height: 1.35;
}

#reviewForm button {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(47, 129, 247, .45);
  background: rgba(47, 129, 247, .18);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#reviewForm button:hover {
  transform: translateY(-1px);
  background: rgba(47, 129, 247, .28);
  box-shadow: 0 0 12px rgba(47, 129, 247, .35);
}

#reviewForm button:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#reviewsList {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(47, 129, 247, .25);
  border-radius: 12px;
  background: rgba(5, 7, 10, .55);
}

.review-item {
  width: 100%;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.review-item:last-child {
  border-bottom: 0;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.review-meta strong {
  width: auto !important;
  margin: 0 !important;
  color: #ffcc00;
  font-size: 12px;
  overflow-wrap: anywhere;
  text-shadow: 0 0 5px rgba(255, 204, 0, .35);
}

.review-meta span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.review-item p {
  color: #f2f6ff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.review-ticker-wrap {
  flex: 1;
  max-width: 1200px;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(47, 129, 247, .35);
  border-radius: 999px;
  background: rgba(47, 129, 247, .08);
  box-shadow: inset 0 0 10px rgba(47, 129, 247, .08);
  padding: 7px 0;
}

.review-highlight {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  color: #d8eaff;
  font-size: 13px;
  line-height: 1;
  animation: reviewScroll 28s linear infinite;
}

.review-highlight span {
  color: #d8eaff;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.review-highlight strong {
  color: #ffcc00;
  text-shadow: 0 0 5px rgba(255, 204, 0, .35);
}

.review-separator {
  color: var(--muted) !important;
  margin: 0 12px;
}

@keyframes reviewScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* USEFUL LINKS SECTION */

.useful-links {
  display: block !important;
  position: relative;
  z-index: 10;
}

.useful-links * {
  pointer-events: auto;
}

.useful-links strong {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.useful-links a {
  display: block !important;
  width: 100%;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  cursor: pointer;
  margin-top: 8px !important;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(47, 129, 247, .35);
  background: rgba(47, 129, 247, .08);
  color: #bcdcff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.useful-links a:hover {
  color: #ffffff !important;
  text-decoration: none;
  transform: translateX(3px);
  box-shadow: 0 0 12px rgba(47, 129, 247, .35);
}

.advert-box {
  border-color: #1d4ed8;
}

.advert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.advert-title {
  color: #7db7ff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  line-height: 1.2;
  margin-top: 0 !important;
}

.advert-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  padding: 4px;
}

.advert-text {
  margin-top: 12px;
  color: #d8eaff;
  line-height: 1.45;
  font-size: 14px;
}

.advert-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}

.phone-icon {
  font-size: 15px;
  line-height: 1;
}

.phone-number {
  letter-spacing: 0.4px;
}

.advert-extra {
  margin-top: 10px;
  color: #bcd4f5;
  font-size: 13px;
  line-height: 1.45;
}

.empty {
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.admin-wrap {
  padding: 20px;
  max-width: 1450px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 18px;
  align-items: start;
}

.card h2 { margin-bottom: 16px; }

label {
  display: block;
  color: var(--muted);
  margin: 14px 0 6px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #05070a;
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
}

.btn {
  margin-top: 16px;
  border: 0;
  background: #2f81f7;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.btn.danger {
  background: var(--red);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.hidden { display: none !important; }

.msg {
  color: var(--muted);
  margin-top: 12px;
}

.admin-alert, .category-row, .admin-review {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-alert span,
.admin-review span {
  color: var(--muted);
}

.admin-review {
  align-items: flex-start;
}

.admin-review-text {
  flex: 1;
  min-width: 0;
}

.admin-review-text strong {
  display: block;
  color: #bcdcff;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.admin-review-text p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-review-text span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.mini {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.category-row span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
}

.owner-only { grid-column: span 1; }

@media (max-width: 900px) {
  html {
    overflow-x: scroll;
  }

  body {
    overflow-x: scroll;
    min-width: 2063px;
  }

  .page-scale {
    width: 2063px;
    min-width: 2063px;
    transform: scale(0.8);
    transform-origin: top left;
  }

  .topbar {
    grid-template-columns: 1fr auto 1fr;
    text-align: initial;
    padding: 14px 28px;
    gap: 20px;
  }

  .header-left {
    text-align: left;
  }

  .brand-rating-row {
    justify-content: flex-start;
    flex-direction: row;
    gap: 18px;
  }

  .header-right {
    justify-content: flex-end;
    gap: 14px;
  }

  .clock {
    align-items: flex-end;
    text-align: right;
    gap: 8px;
  }

  .layout {
    grid-template-columns: 300px 1fr 300px;
    gap: 18px;
    padding: 18px;
  }

  .main-board,
  .right-panel,
  .left-panel {
    order: initial;
  }

  .section-title {
    margin-bottom: 14px;
    flex-direction: row;
    align-items: center;
  }

  .section-title h2 {
    font-size: inherit;
    letter-spacing: 3px;
  }

  .section-title span {
    font-size: inherit;
    padding: 7px 12px;
  }

  .review-ticker-wrap {
    width: auto;
    max-width: 1200px;
  }

  .review-highlight {
    font-size: 13px;
  }

  #reviewsList {
    max-height: 300px;
  }

  .review-item p {
    font-size: 13px;
  }

  .alerts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .alert-card {
    grid-template-columns: 128px 1fr;
    min-height: 86px;
    border-left-width: 8px;
    border-radius: 14px;
  }

  .alert-left {
    padding: 6px;
    gap: 7px;
  }

  .service-logo {
    max-width: 62px;
    max-height: 48px;
  }

  .cat-name {
    font-size: 13px;
    max-width: 108px;
  }

  .alert-body {
    padding: 8px 12px;
  }

  .alert-head {
    gap: 14px;
  }

  .alert-head h3 {
    font-size: 24px;
    line-height: 1.12;
  }

  .priority {
    font-size: inherit;
    min-width: 54px;
    padding: 7px 10px;
  }

  .location {
    font-size: 17px;
    margin: 7px 0 4px;
  }

  .details {
    font-size: 16px;
    line-height: 1.25;
  }

  .meta {
    font-size: 12px;
    gap: 16px;
    flex-wrap: nowrap;
    margin-top: 8px;
  }

  .notice,
  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .notice:not(.emergency) {
    gap: 12px;
  }

  .notice:not(.emergency) a img {
    width: 50px;
    height: 50px;
  }

  .chat-popup {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-width: 0;
    transform: none;
  }

  .chat-popup-panel {
    width: min(920px, calc(100vw - 56px));
    min-width: 0;
  }

  .chat-messages {
    max-height: 220px;
  }

  .chat-box-popup .chat-messages {
    max-height: min(560px, calc(100vh - 285px));
    min-height: 360px;
  }

  .chat-message p {
    font-size: 13px;
  }

  .chat-head small {
    font-size: 11px;
  }

  .useful-links a {
    font-size: 14px;
    padding: 9px 10px;
  }

  .advert-head {
    gap: 12px;
  }

  .advert-title {
    font-size: 18px;
  }

  .advert-logo {
    width: 84px;
    height: 84px;
  }

  .advert-text {
    font-size: 14px;
    margin-top: 12px;
  }

  .advert-extra {
    font-size: 13px;
    margin-top: 10px;
  }

  .grid {
    grid-template-columns: 460px 1fr;
  }

  .admin-review {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* New alert category bar flash - only the left colour bar */
.alert-card.is-new {
  animation: alertBarFlash 1.6s ease-in-out infinite;
}

@keyframes alertBarFlash {
  0%, 100% {
    border-left-color: var(--cat);
  }

  50% {
    border-left-color: color-mix(in srgb, var(--cat) 55%, black);
  }
}

.alert-image {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.chat-note {
  margin: 8px 2px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}