:root {
  --navy: #18233f;
  --navy-soft: #33415f;
  --text: #202739;
  --muted: #778092;
  --line: #e7e9ee;
  --bg: #f5f7f4;
  --card: rgba(255,255,255,.95);
  --green: #52a866;
  --green-bg: #eef8ef;
  --yellow: #e5a72a;
  --yellow-bg: #fff8e8;
  --red: #dc5259;
  --red-bg: #fff0f1;
  --pink: #f3c8cf;
  --shadow: 0 18px 45px rgba(31,45,70,.09);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(231,239,224,.8), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(249,229,231,.7), transparent 25%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  height: 70px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229,232,238,.9);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1520px;
  height: 100%;
  padding: 0 28px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brand img { width: 126px; height: auto; display: block; }
.brand span { color: #8a909c; font-size: 14px; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 38px; height: 100%; }
.topnav a { height: 100%; display: grid; place-items: center; text-decoration: none; color: #596172; font-size: 15px; position: relative; }
.topnav a.active, .topnav a:hover { color: var(--navy); font-weight: 700; }
.topnav a.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 14px; height: 3px; border-radius: 3px; background: var(--navy); }
.profile-chip { justify-self: end; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; font-size: 14px; }
.profile-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.hero {
  min-height: 330px;
  position: relative;
  background-image: url('/assets/hero-background.png');
  background-position: center 52%;
  background-size: cover;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,35,58,.45) 0%, rgba(30,45,62,.24) 34%, rgba(255,255,255,.03) 67%, rgba(22,35,58,.18) 100%);
  backdrop-filter: saturate(.82) brightness(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(246,248,245,.72), transparent 28%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 46px 38px 56px;
  min-height: 330px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  align-items: center;
  gap: 46px;
}
.hero-main { display: flex; align-items: center; gap: 32px; min-width: 0; }
.hero-avatar-wrap { width: 176px; height: 176px; flex: 0 0 176px; border-radius: 50%; padding: 7px; background: rgba(255,255,255,.96); box-shadow: 0 14px 35px rgba(14,28,48,.25); }
.hero-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.hero-copy { color: #fff; text-shadow: 0 2px 10px rgba(17,29,42,.16); }
.hero-kicker { margin: 0 0 5px; font-size: 11px; letter-spacing: .18em; font-weight: 800; opacity: .85; }
.hero h1 { margin: 0; font-size: clamp(46px,4.8vw,68px); line-height: 1; letter-spacing: -.04em; }
.hero h2 { margin: 10px 0 0; font-size: 20px; }
.hero-subtitle { max-width: 620px; margin: 15px 0 0; font-size: 15px; line-height: 1.65; opacity: .92; }
.hero-meta { margin-top: 23px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; opacity: .94; }
.meta-divider { width: 1px; height: 14px; background: rgba(255,255,255,.5); }
.hero-notices { border: 1px solid rgba(255,255,255,.58); border-radius: 18px; padding: 18px 18px 14px; background: rgba(255,255,255,.72); backdrop-filter: blur(16px); color: #3f4858; box-shadow: 0 16px 35px rgba(31,44,63,.10); }
.hero-notices:empty { display: none; }
.hero-notices h3 { margin: 0 0 10px; color: var(--navy); font-size: 13px; }
.notice-line { padding: 9px 0; border-top: 1px solid rgba(83,92,110,.10); }
.notice-line:first-of-type { border-top: 0; }
.notice-line strong { display: block; font-size: 11px; }
.notice-line p { margin: 3px 0 0; color: #7b8390; font-size: 10px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.dashboard-shell { max-width: 1520px; margin: -36px auto 0; padding: 0 28px 30px; position: relative; z-index: 4; }
.summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(226,230,233,.95); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.summary-card { min-height: 112px; padding: 20px 26px; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 15px; border-right: 1px solid var(--line); }
.summary-card:last-child { border-right: 0; }
.summary-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; }
.summary-card.normal .summary-icon { background: var(--green-bg); color: var(--green); box-shadow: 0 0 0 9px rgba(82,168,102,.07); }
.summary-card.partial .summary-icon { background: var(--yellow-bg); color: var(--yellow); box-shadow: 0 0 0 9px rgba(229,167,42,.07); }
.summary-card.core .summary-icon { background: var(--red-bg); color: var(--red); box-shadow: 0 0 0 9px rgba(220,82,89,.07); }
.summary-card span { display: block; font-size: 12px; color: #646d7a; }
.summary-card strong { display: inline-block; margin-top: 2px; font-size: 27px; color: var(--navy); }
.summary-card small { display: block; margin-top: 3px; color: #9aa1ab; font-size: 10px; }

.banner-area { margin-top: 16px; display: grid; gap: 10px; }
.banner { border: 1px solid #e3e6eb; border-radius: 16px; background: rgba(255,255,255,.86); padding: 14px 17px; display: flex; align-items: flex-start; gap: 12px; box-shadow: 0 8px 22px rgba(31,43,62,.04); }
.banner.warning { border-color: #f0dfb9; background: #fffdf6; }
.banner.critical { border-color: #f0ced2; background: #fff8f8; }
.banner-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; }
.banner-content strong { font-size: 12px; }
.banner-content p { margin: 3px 0 0; color: #7b8390; font-size: 11px; line-height: 1.55; }

.section-head { margin: 34px 2px 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-kicker { color: #a2a8b1; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.section-head h2 { margin: 3px 0 5px; color: var(--navy); font-size: 23px; }
.section-head p { margin: 0; color: #89919d; font-size: 11px; line-height: 1.6; }
.filter-group { display: flex; gap: 7px; padding: 4px; border-radius: 12px; background: #e9ecec; }
.filter { border: 0; padding: 8px 13px; border-radius: 9px; background: transparent; color: #747c88; font-size: 11px; }
.filter.active { background: #fff; color: var(--navy); font-weight: 800; box-shadow: 0 2px 8px rgba(34,45,61,.08); }

/* Two broad columns keep every platform as a clear, self-contained block. Grid rows stretch
   all cards in the same row to the same height, avoiding a visually ragged dashboard. */
.platform-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.platform-grid > .platform-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
.platform-card {
  --platform-color: #64748b;
  position: relative;
  overflow: hidden;
  min-height: 390px;
  height: 100%;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(31,44,63,.055);
  display: flex;
  flex-direction: column;
}
.platform-card.status-partial { border-color: #ead8a8; }
.platform-card.status-core { border-color: #efc7cb; }
.platform-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--platform-color); opacity: .95; }
.platform-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.platform-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.platform-icon { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--platform-color) 9%, white); border: 1px solid color-mix(in srgb, var(--platform-color) 18%, #e5e7eb); display: grid; place-items: center; flex: 0 0 44px; overflow: hidden; color: var(--platform-color); font-size: 16px; font-weight: 900; }
.platform-icon img { width: 23px; height: 23px; object-fit: contain; display: block; }
.platform-name { margin: 0; font-size: 18px; color: #252c38; }
.platform-description { margin: 4px 0 0; color: #8f97a3; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.platform-status-block { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; }
.platform-count { color: #9aa1ab; font-size: 10px; }
.status-pill, .mini-status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.status-pill { padding: 6px 11px; font-size: 11px; }
.mini-status { padding: 5px 9px; font-size: 10px; }
.status-pill.normal, .mini-status.normal { background: #e9f7eb; color: #41844e; }
.status-pill.partial, .mini-status.partial { background: #fff3d7; color: #9a6903; }
.status-pill.core, .mini-status.core { background: #ffe5e7; color: #bd3e47; }
.account-list { margin-top: 16px; display: grid; gap: 11px; flex: 1; align-content: start; }
.account-card {
  width: 100%;
  min-height: 260px;
  padding: 15px;
  border: 1px solid #eceef1;
  border-radius: 17px;
  background: #fbfcfc;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.account-card:hover, .account-card:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--platform-color) 25%, #dfe3e8); background: #fff; box-shadow: 0 10px 24px rgba(31,43,62,.07); outline: none; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.account-title-area { display: flex; gap: 10px; align-items: center; min-width: 0; }
.account-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; overflow: hidden; background: #edf0f2; display: grid; place-items: center; color: #8c94a0; font-size: 9px; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-text { min-width: 0; }
.account-label { display: block; color: #9299a5; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.account-title { display: block; margin-top: 2px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #2d3440; }
.account-current-id { display: block; margin-top: 4px; color: #848d9a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-status-body { margin-top: 13px; padding: 12px 12px 11px; border-radius: 13px; background: #fff; border: 1px solid #eef0f2; min-height: 118px; }
.status-summary-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-summary-label { color: #9199a5; font-size: 10px; }
.status-summary-title { color: #3a414c; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.account-features { margin-top: 9px; min-height: 20px; }
.feature { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.feature.blocked { background: #ffe7e9; color: #c0444c; }
.feature.limited { background: #fff2d3; color: #9c6d0a; }
.feature.degraded { background: #eef1f5; color: #66717f; }
.feature.normal-feature { background: #eaf7ec; color: #43834e; }
.account-time-row { margin-top: 9px; display: grid; grid-template-columns: 66px 1fr; gap: 8px; color: #8e96a2; font-size: 10px; }
.account-time-row strong { color: #6e7682; font-weight: 600; text-align: right; }
.account-description { margin: 9px 0 0; color: #737c89; font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 28px; }
.archive-inline { margin-top: 9px; border: 1px solid #f0d4d7; border-radius: 11px; background: #fff7f8; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.archive-inline-label { color: #a16f75; font-size: 10px; white-space: nowrap; }
.archive-inline-value { color: #6f474c; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-actions-row { margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0f2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-detail-action { color: #657189; font-size: 11px; font-weight: 700; }
.account-detail-action b { font-size: 15px; vertical-align: -1px; }
.qr-ready { padding: 5px 9px; border-radius: 999px; color: #466e54; background: #e9f7ec; font-size: 10px; font-weight: 800; }
.platform-foot { margin-top: 15px; min-height: 31px; padding-top: 12px; border-top: 1px solid #edf0f2; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #8e97a4; font-size: 10px; }
.platform-foot-state { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.platform-foot-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--platform-color); }
.platform-official { flex: 0 0 auto; color: color-mix(in srgb, var(--platform-color) 82%, #394253); font-weight: 700; text-decoration: none; }
.platform-official:hover { text-decoration: underline; }

.legend-card { margin-top: 26px; border: 1px solid #e4e7eb; border-radius: 18px; background: rgba(255,255,255,.78); padding: 18px 20px; }
.legend-title { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.legend-items { display: grid; gap: 7px; color: #6f7784; font-size: 11px; }
.legend-items span { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.dot.normal { background: var(--green); }
.dot.partial { background: var(--yellow); }
.dot.core { background: var(--red); }
.footer-note { margin: 16px 0 0; color: #979da8; font-size: 11px; text-align: center; }

.site-footer { border-top: 1px solid #e1e5e7; background: rgba(255,255,255,.88); }
.footer-inner { max-width: 1520px; margin: 0 auto; padding: 24px 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: #707987; font-size: 12px; }
.icp-row { display: inline-flex; align-items: center; gap: 7px; }
.icp-row img { display: block; object-fit: contain; }
.icp-row a { color: #0000ff; text-decoration: underline; font-weight: bold; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(30,37,52,.30); backdrop-filter: blur(5px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.announcement-modal { position: relative; width: min(410px,100%); border-radius: 24px; background: #fff; padding: 28px 28px 24px; text-align: center; box-shadow: 0 28px 70px rgba(25,35,52,.25); }
.modal-close { position: absolute; right: 17px; top: 13px; z-index: 2; border: 0; background: transparent; color: #9097a3; font-size: 25px; line-height: 1; }
.announcement-illustration { font-size: 42px; margin: 5px 0 12px; }
.announcement-modal h3 { margin: 0 0 13px; color: var(--navy); }
.announcement-modal p { white-space: pre-wrap; color: #626b79; font-size: 13px; line-height: 1.75; margin: 0; }
.primary-btn { margin-top: 22px; min-width: 150px; border: 0; border-radius: 999px; padding: 11px 22px; background: var(--navy); color: #fff; font-weight: 700; }

.account-modal-backdrop { align-items: center; overflow-y: auto; }
.account-modal { --platform-color: #64748b; position: relative; width: min(760px,100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 24px; background: #fff; padding: 25px; box-shadow: 0 28px 80px rgba(23,34,52,.27); }
.account-modal-platform { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding-right: 38px; }
.modal-platform-icon { width: 48px; height: 48px; flex-basis: 48px; }
.modal-platform-description { display: block; color: #929aa6; font-size: 11px; }
.account-modal-platform h3 { margin: 2px 0 0; font-size: 17px; }
.account-modal-profile { margin-top: 20px; padding: 17px; border-radius: 17px; display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, color-mix(in srgb, var(--platform-color) 7%, white), #fbfbfc); border: 1px solid color-mix(in srgb, var(--platform-color) 16%, #e7e9ed); }
.account-modal-profile img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: #e9ecef; }
.account-modal-profile h2 { margin: 3px 0 0; font-size: 20px; }
.account-modal-profile p { margin: 4px 0 0; color: #77808e; font-size: 12px; }
.modal-note { margin-top: 12px; padding: 11px 13px; border-radius: 12px; color: #6d7581; background: #f7f8f9; font-size: 12px; line-height: 1.55; }
.modal-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eceef1; }
.modal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.modal-section h4 { margin: 0; font-size: 13px; color: #333a46; }
.section-subtle { color: #9aa2ad; font-size: 10px; }
.modal-incidents { display: grid; gap: 10px; }
.modal-incident { border: 1px solid #e9ebee; border-radius: 14px; padding: 13px; background: #fbfcfc; }
.modal-incident.core { border-color: #f1d1d4; background: #fff9f9; }
.modal-incident.partial { border-color: #eee0bd; background: #fffdf8; }
.modal-incident-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.modal-incident-head strong { font-size: 13px; }
.modal-incident-time { margin-top: 7px; color: #858e9b; font-size: 11px; }
.modal-incident .feature-pills { margin-top: 9px; }
.modal-incident p { margin: 9px 0 0; color: #6f7784; font-size: 12px; line-height: 1.6; }
.normal-message { padding: 12px 13px; border-radius: 13px; background: #eef8ef; color: #4a7953; font-size: 12px; line-height: 1.6; }
.archive-badge { padding: 4px 8px; border-radius: 999px; color: #9a5f66; background: #fff0f1; font-size: 10px; font-weight: 800; }
.identity-archive { border: 1px solid #f0d3d6; border-radius: 14px; background: #fff8f8; padding: 13px; }
.archive-main { display: flex; align-items: center; gap: 11px; }
.archive-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #f0e5e6; }
.archive-fields { display: grid; gap: 5px; min-width: 0; }
.archive-fields div { font-size: 12px; color: #737b87; }
.archive-fields b { color: #343a46; }
.archive-note { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: #8e6268; }
.archive-time { margin-top: 8px; font-size: 10px; color: #a6878b; }
.qr-section { display: grid; grid-template-columns: 1fr 210px; gap: 22px; align-items: center; padding: 18px !important; border: 1px solid #dfe9e1 !important; border-radius: 16px; background: linear-gradient(135deg,#f6fbf7,#fff); }
.qr-copy h4 { margin: 5px 0 0; font-size: 16px; }
.qr-copy p { margin: 9px 0 0; color: #747e8a; font-size: 12px; line-height: 1.7; }
.qr-image-shell { justify-self: end; width: 190px; height: 190px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #e4e8e5; box-shadow: 0 10px 24px rgba(40,64,45,.08); }
.qr-image-shell img { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal-history { display: grid; gap: 7px; }
.history-entry { padding: 10px 11px; border-radius: 10px; background: #f7f8f9; color: #747d89; font-size: 11px; }

.skeleton-card { height: 390px; border-radius: 20px; background: linear-gradient(90deg,#edf0f2 25%,#f7f8f8 37%,#edf0f2 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:100% 0}100%{background-position:0 0} }

@media (max-width: 1000px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-notices { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-grid > .platform-card:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
  .platform-card { min-height: 0; }
}

@media (max-width: 700px) {
  .topbar { height: 62px; }
  .topbar-inner { padding: 0 16px; }
  .brand img { width: 104px; }
  .brand span { display: none; }
  .profile-chip span { display: none; }
  .profile-chip { padding-right: 6px; }
  .hero { min-height: 380px; background-position: 58% center; }
  .hero-inner { padding: 38px 20px 62px; }
  .hero-main { align-items: flex-end; gap: 18px; }
  .hero-avatar-wrap { width: 102px; height: 102px; flex-basis: 102px; padding: 4px; }
  .hero h1 { font-size: 42px; }
  .hero h2 { font-size: 16px; }
  .hero-subtitle { font-size: 13px; }
  .hero-meta { font-size: 10px; }
  .dashboard-shell { padding: 0 14px 22px; margin-top: -34px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 48px 1fr; padding: 15px 18px; }
  .summary-card:last-child { border-bottom: 0; }
  .summary-icon { width: 42px; height: 42px; }
  .summary-card strong { font-size: 22px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filter-group { align-self: stretch; }
  .filter { flex: 1; }
  .platform-card { padding: 15px; }
  .platform-description { max-width: 160px; }
  .account-card { padding: 13px; min-height: 250px; }
  .account-title { max-width: 170px; }
  .account-time-row { grid-template-columns: 52px 1fr; }
  .footer-inner { padding: 20px 16px 26px; align-items: flex-start; flex-direction: column; }
  .account-modal { padding: 20px 15px; border-radius: 20px; }
  .account-modal-platform { grid-template-columns: 42px 1fr; padding-right: 28px; }
  .account-modal-platform .status-pill { grid-column: 1/-1; justify-self: start; }
  .qr-section { grid-template-columns: 1fr; }
  .qr-image-shell { justify-self: center; width: min(220px,100%); height: auto; aspect-ratio: 1; }
}

/* === v4: language, manual-maintenance status and public feedback === */
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.public-actions { justify-self:end; display:flex; align-items:center; gap:10px; min-width:0; }
.language-control { position:relative; display:block; }
.language-control select { appearance:none; min-width:118px; height:40px; padding:0 30px 0 12px; border:1px solid #e4e7ec; border-radius:999px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23778092' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E") no-repeat right 10px center; color:#596172; font-size:12px; cursor:pointer; outline:none; }
.language-control select:focus { border-color:#b7c0cf; box-shadow:0 0 0 3px rgba(51,65,95,.08); }
.manual-source { display:inline-flex; align-items:center; gap:7px; }
.manual-source i { color:#d9f3df; font-style:normal; font-size:8px; text-shadow:none; }

.feedback-fab { position:fixed; right:24px; bottom:24px; z-index:45; border:1px solid rgba(215,80,88,.18); border-radius:999px; padding:10px 16px 10px 10px; display:flex; align-items:center; gap:9px; background:rgba(255,255,255,.96); color:#b23f47; box-shadow:0 14px 34px rgba(42,48,62,.16); backdrop-filter:blur(14px); font-size:12px; font-weight:800; transition:transform .18s ease,box-shadow .18s ease; }
.feedback-fab:hover { transform:translateY(-2px); box-shadow:0 18px 40px rgba(42,48,62,.2); }
.feedback-fab-icon { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#fff0f1; color:#d64e57; font-weight:900; }

.account-modal-footer { margin-top:18px; padding-top:16px; border-top:1px solid #eceef1; display:flex; justify-content:flex-end; }
.outline-danger-btn { border:1px solid #efc9cd; border-radius:999px; padding:9px 14px; display:inline-flex; align-items:center; gap:8px; background:#fff; color:#b54a52; font-size:11px; font-weight:800; }
.outline-danger-btn:hover { background:#fff6f7; }
.outline-danger-btn > span:first-child { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:#fff0f1; }

.feedback-modal-backdrop { overflow-y:auto; align-items:center; }
.feedback-modal { position:relative; width:min(660px,100%); max-height:calc(100vh - 40px); overflow-y:auto; border-radius:25px; background:#fff; padding:28px; box-shadow:0 28px 80px rgba(23,34,52,.28); }
.feedback-heading { display:grid; grid-template-columns:48px 1fr; gap:14px; align-items:start; padding-right:32px; }
.feedback-symbol { width:46px; height:46px; border-radius:16px; display:grid; place-items:center; background:#fff0f1; color:#d95058; font-size:20px; font-weight:900; box-shadow:inset 0 0 0 1px #f5d5d8; }
.feedback-heading h3 { margin:3px 0 6px; color:var(--navy); font-size:20px; }
.feedback-heading p:not(.section-kicker) { margin:0; color:#7a8390; font-size:12px; line-height:1.7; }
.feedback-form { margin-top:22px; }
.feedback-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.feedback-grid .span-2 { grid-column:1/-1; }
.feedback-grid label { display:grid; gap:6px; color:#68717e; font-size:11px; font-weight:700; }
.feedback-grid input,.feedback-grid select,.feedback-grid textarea { width:100%; border:1px solid #dde1e7; border-radius:12px; padding:10px 11px; background:#fbfcfc; color:#303846; outline:none; font-size:12px; transition:border-color .15s ease,box-shadow .15s ease; }
.feedback-grid textarea { min-height:92px; resize:vertical; line-height:1.6; }
.feedback-grid input:focus,.feedback-grid select:focus,.feedback-grid textarea:focus { border-color:#aeb8c9; box-shadow:0 0 0 3px rgba(51,65,95,.07); background:#fff; }
.feedback-privacy-note { margin-top:13px; padding:10px 12px; display:flex; align-items:flex-start; gap:8px; border-radius:12px; background:#f5f8f5; color:#728079; font-size:10px; line-height:1.55; }
.feedback-privacy-note > span:first-child { width:18px; height:18px; flex:0 0 18px; display:grid; place-items:center; border-radius:50%; background:#e6f4e8; color:#4f915e; font-weight:900; }
.feedback-submit-btn { width:100%; margin-top:16px; border:0; border-radius:14px; padding:14px 18px; display:flex; align-items:center; justify-content:center; gap:10px; background:linear-gradient(135deg,#d94d56,#c53f48); color:#fff; font-size:13px; font-weight:900; box-shadow:0 12px 25px rgba(197,63,72,.18); }
.feedback-submit-btn:hover { filter:brightness(.98); transform:translateY(-1px); }
.feedback-submit-btn:disabled { opacity:.65; cursor:wait; transform:none; }
.submit-icon { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.16); }
.feedback-error { margin:10px 0 0; color:#bf3f48; font-size:11px; text-align:center; }
.feedback-success { padding:35px 10px 10px; text-align:center; }
.success-mark { width:58px; height:58px; margin:0 auto 14px; border-radius:50%; display:grid; place-items:center; background:#eaf7ec; color:#4f9a5f; font-size:25px; font-weight:900; }
.feedback-success h3 { margin:0; color:var(--navy); }
.feedback-success p { margin:8px 0 0; color:#7a8390; font-size:12px; line-height:1.65; }

.empty-platform-card { min-height:160px; display:grid; place-items:center; color:#858e9b; font-size:12px; }
.legend-items > span > span { display:inline; }

@media (max-width: 1000px) {
  .topbar-inner { grid-template-columns:1fr auto; }
  .public-actions { grid-column:2; }
}

@media (max-width: 700px) {
  .public-actions { gap:6px; }
  .language-control select { min-width:96px; height:36px; padding-left:9px; padding-right:26px; font-size:10px; }
  .feedback-fab { right:14px; bottom:14px; padding:8px 12px 8px 8px; }
  .feedback-fab-icon { width:26px; height:26px; }
  .feedback-modal { padding:22px 15px; border-radius:20px; }
  .feedback-heading { grid-template-columns:40px 1fr; gap:10px; }
  .feedback-symbol { width:40px; height:40px; border-radius:13px; }
  .feedback-grid { grid-template-columns:1fr; }
  .feedback-grid .span-2 { grid-column:auto; }
}
