:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --brand: #1747d1;
  --brand-2: #356cf5;
  --navy: #0b1739;
  --sky: #eef4ff;
  --surface: #fff;
  --soft: #f6f8fc;
  --line: #e4e9f2;
  --success: #137a4b;
  --danger: #b42318;
  --warning: #b54708;
  --radius: 18px;
  --shadow: 0 16px 45px rgba(15, 35, 82, 0.09);
  --shadow-lg: 0 25px 70px rgba(15, 35, 82, 0.16);
  --blue: var(--brand);
  --blue2: var(--brand-2);
  --text: var(--ink);
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  width: 100%;
  object-fit: cover;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.hidden,
[hidden] {
  display: none !important;
}
.desktop-only {
  display: inline-flex;
}
.meta,
small {
  color: var(--muted);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 233, 242, 0.9);
  backdrop-filter: blur(18px);
}
.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(260px, 520px) auto;
  gap: 24px;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo > span:last-child span {
  color: var(--brand-2);
}
.logo-symbol,
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 71, 209, 0.24);
}
.search {
  height: 44px;
  display: flex;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 6px 0 14px;
}
.search:focus-within {
  background: #fff;
  border-color: #afc4ff;
  box-shadow: 0 0 0 4px rgba(53, 108, 245, 0.08);
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}
.search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--brand);
  font-size: 20px;
}
.header-actions,
[data-auth-state] {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.nav a:hover,
.nav a.active {
  color: var(--brand);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.script-toggle {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  color: var(--brand);
  font-weight: 800;
}
.primary-btn,
.ghost-btn,
.secondary-btn,
.icon-btn {
  min-height: 42px;
  border-radius: 11px;
  border: 0;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  transition: 0.18s;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 9px 22px rgba(23, 71, 209, 0.2);
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 27px rgba(23, 71, 209, 0.28);
}
.ghost-btn,
.secondary-btn {
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}
.ghost-btn:hover,
.secondary-btn:hover {
  border-color: #afc4ff;
  color: var(--brand);
}
.icon-btn {
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.full {
  width: 100%;
}
.danger {
  color: var(--danger) !important;
}
.kicker,
.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.verified {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-2);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  vertical-align: 2px;
}
.home-main {
  padding: 28px 0 64px;
}
.home-status {
  margin: 12px 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 18px;
}
.hero-lead {
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-lead > a,
.hero-lead img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(4, 13, 37, 0.04) 20%,
    rgba(4, 13, 37, 0.9) 100%
  );
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 32px;
  color: #fff;
}
.hero-copy h1 {
  max-width: 800px;
  margin: 13px 0;
  font-size: clamp(32px, 4.1vw, 58px);
  line-height: 1.03;
  letter-spacing: -1.8px;
}
.hero-copy p {
  max-width: 760px;
  margin: 0 0 12px;
  color: #e8edff;
  line-height: 1.6;
}
.hero-copy small {
  color: #d4defa;
}
.hero-side {
  display: grid;
  gap: 14px;
}
.hero-side .news-card {
  display: grid;
}
.hero-side .news-media {
  height: 145px;
}
.hero-side .card-body p {
  display: none;
}
.hero-side .card-body h3 {
  font-size: 16px;
}
.section {
  padding: 50px 0 0;
}
.section-heading,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2,
.section-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.7px;
}
.section-heading > a,
.section-head > a {
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
  transition: 0.22s;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: #c9d6f7;
  box-shadow: var(--shadow);
}
.news-media {
  height: 180px;
  position: relative;
  background: #e8edf7;
  overflow: hidden;
}
.news-media img {
  height: 100%;
  transition: 0.35s;
}
.news-card:hover img {
  transform: scale(1.03);
}
.category-pill {
  display: inline-flex;
  border-radius: 7px;
  padding: 6px 9px;
  color: #fff;
  background: var(--brand);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-media .category-pill {
  position: absolute;
  left: 12px;
  top: 12px;
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 17px;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body p {
  min-height: 42px;
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}
.meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meta-inline + .meta-inline::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8c1d4;
  margin-right: 6px;
}
.meta-inline-views {
  font-weight: 600;
}
.meta-inline-views svg {
  width: 14px;
  height: 14px;
}
.news-card.compact .news-media {
  height: 120px;
}
.news-card.compact .card-body {
  padding: 13px;
}
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
}
.trend-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 18px;
  background: #fff;
}
.trend-list a {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.trend-list a:last-child {
  border: 0;
}
.trend-thumb {
  display: block;
  width: 104px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--soft);
}
.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trend-copy {
  display: grid;
  gap: 6px;
}
.trend-copy strong {
  line-height: 1.35;
  color: var(--navy);
}
.trend-copy small {
  font-size: 12px;
  color: var(--muted);
}
.author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.author-card {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}
.author-card:hover {
  border-color: #b8c9f1;
  box-shadow: var(--shadow);
}
.avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(145deg, #dfe8ff, #a8c1ff);
  color: var(--navy);
  font-weight: 900;
}
.avatar img {
  height: 100%;
}
.avatar.xl {
  width: 112px;
  height: 112px;
  font-size: 28px;
}
.region-grid,
.all-region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.region-grid a,
.region-tile {
  min-height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, var(--navy), #183c91);
  color: #fff;
  transition: 0.2s;
}
.region-grid a:hover,
.region-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.region-grid b,
.region-tile strong {
  font-size: 28px;
  margin-top: 16px;
}
.region-grid small,
.region-tile small {
  color: #cbd7f6;
}
.following-section {
  border-radius: 22px;
  padding: 28px;
  background: var(--sky);
}
.site-footer {
  margin-top: 56px;
  background: var(--navy);
  color: #fff;
}
.footer-grid {
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid p,
.footer-grid a {
  display: block;
  color: #b9c6e7;
  font-size: 13px;
  line-height: 1.8;
}
.footer-grid h4 {
  margin: 0 0 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  color: #aebddd;
  font-size: 12px;
}
.empty-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0, #eaf0ff, transparent 40%), var(--soft);
  text-align: center;
}
.empty-page > div {
  width: min(520px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.empty-page .logo-symbol {
  margin: auto;
}
.empty-page h1 {
  font-size: 42px;
  color: var(--navy);
  margin-bottom: 8px;
}
.empty-page p {
  color: var(--muted);
  margin-bottom: 24px;
}
.page-shell {
  padding: 42px 0 70px;
}
.page-hero {
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--navy), #1747b8);
  color: #fff;
  margin-bottom: 28px;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.4px;
  margin: 8px 0;
}
.page-hero p {
  max-width: 720px;
  color: #dbe4ff;
  line-height: 1.65;
}
.empty-state {
  grid-column: 1/-1;
  padding: 35px;
  border: 1px dashed #cbd5e1;
  border-radius: 15px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}
.skeleton {
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef1f6, #f9fafc, #eef1f6);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100% - 40px));
  padding: 14px 17px;
  border-radius: 12px;
  background: #173f2f;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
}
.toast.error {
  background: #8f261f;
}
.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(500px, 1.15fr);
}
.auth-intro {
  position: relative;
  overflow: hidden;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #08132f, #1747d1);
  color: #fff;
}
.auth-intro:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -210px;
  top: -100px;
  border: 70px solid rgba(255, 255, 255, 0.06);
}
.auth-intro h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 48px 0 18px;
}
.auth-intro p {
  max-width: 540px;
  color: #dbe5ff;
  line-height: 1.7;
}
.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.auth-benefits span {
  display: flex;
  gap: 10px;
  color: #eaf0ff;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--soft);
}
.auth-card {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 23px;
}
.auth-tabs button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 11px;
  font-weight: 800;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 5px 12px rgba(15, 35, 82, 0.08);
}
.auth-form,
.form-grid {
  display: grid;
  gap: 15px;
}
.auth-form h2 {
  margin: 3px 0;
}
.auth-form label,
.form-grid label,
.editor-form label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}
.auth-form input,
.auth-form select,
.auth-form textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.editor-form input,
.editor-form select,
.editor-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 13px;
  outline: 0;
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.editor-form input:focus,
.editor-form textarea:focus {
  border-color: #9eb6f7;
  box-shadow: 0 0 0 4px rgba(53, 108, 245, 0.08);
}
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: block;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.choice input:checked + span {
  border-color: var(--brand);
  background: var(--sky);
  color: var(--brand);
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
}
.notice-box {
  padding: 13px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--muted);
  font-size: 13px;
}
.dashboard-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--soft);
}
.dashboard-side {
  height: 100svh;
  position: sticky;
  top: 0;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.dashboard-side nav {
  display: grid;
  gap: 5px;
  margin: 30px 0;
}
.dashboard-side nav a {
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--ink-2);
}
.dashboard-side nav a:hover,
.dashboard-side nav a.active {
  background: var(--sky);
  color: var(--brand);
  font-weight: 800;
}
.dashboard-main {
  padding: 32px;
  min-width: 0;
}
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-head h1 {
  margin: 0;
  font-size: 32px;
}
.level-card {
  margin: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: #fff;
}
.level-card p,
.level-card small {
  color: #dbe4ff;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.metric strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 5px;
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.panel {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 35, 82, 0.04);
}
.panel h2 {
  margin-top: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid .panel {
  margin: 0;
}
.my-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.my-article:last-child {
  border: 0;
}
.my-article h3 {
  margin: 7px 0;
}
.row-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.status {
  display: inline-flex;
  border-radius: 99px;
  padding: 5px 9px;
  background: #edf1f7;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.status.published {
  background: #e9f7ef;
  color: var(--success);
}
.status.rejected {
  background: #fff0ef;
  color: var(--danger);
}
.status.revision_requested {
  background: #fff5e9;
  color: var(--warning);
}
.notice {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  margin: 8px 0;
}
.notice.unread {
  background: var(--sky);
  border-color: #bad0ff;
}
.notice span {
  color: var(--muted);
}
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  padding: 34px 0 72px;
}
.form-card,
.guide-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card h1 {
  margin: 5px 0;
  font-size: 37px;
  color: var(--navy);
}
.editor-form {
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rich-editor {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.editor-toolbar button {
  min-width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}
.editor-area {
  min-height: 430px;
  padding: 22px;
  outline: 0;
  line-height: 1.75;
}
.editor-area:empty:before {
  content: attr(data-placeholder);
  color: #98a2b3;
}
.editor-area img {
  height: auto;
  border-radius: 10px;
}
.editor-status {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.upload-box {
  padding: 22px;
  border: 2px dashed #c8d4ef;
  border-radius: 13px;
  background: #f9fbff;
  text-align: center;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px !important;
  font-weight: 500 !important;
}
.checkline input {
  width: auto;
  margin-top: 3px;
}
.guide-card {
  height: max-content;
  position: sticky;
  top: 104px;
}
.guide-card li {
  margin: 11px 0;
  color: var(--muted);
  line-height: 1.55;
}
.language-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--sky);
}
.language-preview > div {
  padding: 13px;
  border-radius: 11px;
  background: #fff;
}
.language-preview h3 {
  margin-top: 0;
}
.profile-page {
  padding: 38px 0 72px;
}
.profile-cover {
  height: 230px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 78% 20%, #4e7cf6, transparent 26%),
    linear-gradient(135deg, var(--navy), var(--brand));
}
.profile-header {
  position: relative;
  margin: -70px 24px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.profile-header .avatar {
  border: 5px solid #fff;
}
.profile-copy h1 {
  margin: 4px 0;
}
.profile-copy p {
  max-width: 600px;
  color: var(--muted);
}
.profile-actions {
  margin-top: 14px;
}
.profile-numbers {
  display: flex;
  gap: 24px;
}
.profile-numbers span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.profile-numbers b {
  display: block;
  color: var(--navy);
  font-size: 25px;
}
.profile-tabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 18px;
}
.profile-tabs button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
}
.profile-tabs button.active {
  background: var(--navy);
  color: #fff;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  gap: 44px;
  padding: 38px 0 74px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.article-title {
  margin: 24px 0;
}
.article-title h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  margin: 15px 0;
}
.article-title p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
}
.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.article-meta-line .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-meta-line .meta-link {
  color: var(--brand);
  font-weight: 700;
}
.article-meta-line svg,
.meta-inline-views svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-cover {
  margin: 26px 0;
  border-radius: 19px;
  max-height: 520px;
}
.article-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.85;
  color: #202939;
}
.article-content h2,
.article-content h3 {
  font-family:
    Inter,
    -apple-system,
    sans-serif;
  color: var(--navy);
  line-height: 1.2;
}
.article-content img {
  height: auto;
  border-radius: 14px;
}
.article-content a {
  color: var(--brand);
  text-decoration: underline;
}
.article-content blockquote {
  margin: 24px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--brand);
  background: var(--sky);
}
.source {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article-bottom-panel {
  margin: 30px 0 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(14, 30, 71, 0.06);
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.article-actions button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 750;
}
.article-actions .saved {
  background: #fff4cc;
}
.article-author-box {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.article-author-box:hover {
  border-color: #b8c9f1;
  box-shadow: var(--shadow);
}
.article-author-avatar {
  width: 58px;
  height: 58px;
  font-size: 18px;
}
.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-author-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.article-author-copy small {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--muted);
}
.article-author-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
}
.article-author-copy > span {
  color: var(--muted);
  font-size: 14px;
}
.article-author-arrow {
  margin-left: auto;
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}
.article-aside {
  padding-top: 80px;
}
.aside-cta {
  padding: 23px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--navy), var(--brand));
  color: #fff;
}
.aside-cta p {
  color: #dce6ff;
  line-height: 1.55;
}
.aside-list {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.aside-list a {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.aside-list a:last-child {
  border: 0;
}
.comments {
  margin-top: 35px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.comment-auth-required {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.6;
}
.comment-auth-required a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comment-form {
  display: grid;
  gap: 10px;
}
.comment-form textarea {
  min-height: 100px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.comment-form button {
  justify-self: end;
}
.comment {
  display: flex;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.comment .avatar {
  width: 42px;
  height: 42px;
  margin: 0;
}
.comment p {
  margin: 7px 0;
}
@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-layout,
  .home-split {
    grid-template-columns: 1fr;
  }
  .hero-side {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
  }
  .topbar > .search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }
  .nav.open {
    display: grid;
  }
  .hero-lead {
    min-height: 460px;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
  .hero-side .news-card {
    grid-template-columns: 140px 1fr;
  }
  .hero-side .news-media {
    height: 100%;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .author-grid,
  .region-grid,
  .all-region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    padding: 45px 28px;
  }
  .auth-intro h1 {
    margin-top: 35px;
  }
  .auth-panel {
    padding: 28px;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-side nav {
    grid-template-columns: repeat(3, 1fr);
    margin: 20px 0;
  }
  .dashboard-main {
    padding: 24px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .submit-layout {
    grid-template-columns: 1fr;
  }
  .guide-card {
    position: static;
  }
  .profile-header {
    grid-template-columns: auto 1fr;
  }
  .profile-numbers {
    grid-column: 1/-1;
    justify-content: space-around;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    padding-top: 0;
  }
  .aside-list {
    display: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .container {
    width: min(100% - 22px, 1180px);
  }
  .desktop-only {
    display: none !important;
  }
  .logo {
    font-size: 21px;
  }
  .logo-symbol,
  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }
  .header-actions {
    gap: 5px;
  }
  .script-toggle {
    padding: 8px;
  }
  .home-main {
    padding-top: 14px;
  }
  .hero-lead {
    min-height: 430px;
    border-radius: 18px;
  }
  .hero-copy {
    left: 19px;
    right: 19px;
    bottom: 20px;
  }
  .hero-copy h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .hero-copy p {
    font-size: 14px;
  }
  .section {
    padding-top: 38px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .news-card:not(.compact) {
    display: grid;
    grid-template-columns: 126px 1fr;
  }
  .news-card:not(.compact) .news-media {
    height: 100%;
    min-height: 150px;
  }
  .news-card:not(.compact) .category-pill {
    display: none;
  }
  .news-card:not(.compact) .card-body {
    padding: 13px;
  }
  .news-card:not(.compact) .card-body h3 {
    font-size: 15px;
  }
  .news-card:not(.compact) .card-body p {
    display: none;
  }
  .news-card:not(.compact) .card-meta {
    display: grid;
  }
  .author-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .region-grid,
  .all-region-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    display: grid;
    gap: 5px;
  }
  .auth-intro {
    padding: 35px 22px;
  }
  .auth-intro h1 {
    font-size: 38px;
  }
  .auth-panel {
    padding: 16px;
  }
  .auth-card {
    padding: 22px 17px;
  }
  .choice-row,
  .field-row,
  .language-preview {
    grid-template-columns: 1fr;
  }
  .dashboard-side nav {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-main {
    padding: 18px 12px;
  }
  .dashboard-head {
    align-items: flex-start;
  }
  .dashboard-head h1 {
    font-size: 26px;
  }
  .level-card {
    padding: 21px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 23px;
  }
  .panel {
    padding: 17px;
  }
  .my-article {
    display: grid;
  }
  .form-card,
  .guide-card {
    padding: 17px;
  }
  .form-card h1 {
    font-size: 30px;
  }
  .editor-area {
    min-height: 330px;
    padding: 15px;
  }
  .profile-cover {
    height: 170px;
    border-radius: 16px;
  }
  .profile-header {
    margin: -44px 10px 0;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  .profile-header .avatar {
    margin: auto;
  }
  .profile-numbers {
    gap: 10px;
  }
  .article-layout {
    padding-top: 24px;
  }
  .article-title h1 {
    font-size: 36px;
  }
  .article-title p,
  .article-content {
    font-size: 17px;
  }
  .article-actions button {
    flex: 1;
  }
  .toast {
    right: 11px;
    bottom: 11px;
    max-width: calc(100% - 22px);
  }
}

/* v13 professional account, social and editorial experience */
.global-verification-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 20px;
  background: #fff3d6;
  color: #7a2e0e;
  border-bottom: 1px solid #f1c98b;
  font-size: 13px;
}
.global-verification-alert a {
  font-weight: 900;
  color: #9a3412;
  text-decoration: underline;
}
.verification-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid #f2c36b;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e8, #fff2cf);
  color: #7a2e0e;
}
.verification-alert p {
  margin: 6px 0 0;
  line-height: 1.55;
}
.verification-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.verification-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.verification-method > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  font-weight: 900;
}
.verification-method div {
  display: grid;
  gap: 2px;
}
.verification-method small {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verification-method > b {
  grid-column: 1/-1;
  font-size: 11px;
  color: var(--warning);
}
.verification-method.verified {
  border-color: #a6dec3;
  background: #f3fff8;
}
.verification-method.verified > span {
  background: #dcfce7;
  color: #087443;
}
.verification-method.verified > b {
  color: #087443;
}
.notification-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font-size: 20px;
}
.notification-bell span {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.settings-page {
  max-width: 1120px;
}
.settings-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 9px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.settings-tabs a {
  white-space: nowrap;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.settings-tabs a:hover {
  background: var(--sky);
  color: var(--brand);
}
.settings-section {
  scroll-margin-top: 20px;
  margin-bottom: 34px;
}
.settings-intro {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 13px;
}
.settings-intro h2 {
  margin: 0 0 5px;
  color: var(--navy);
}
.settings-intro p {
  margin: 0;
  color: var(--muted);
}
.settings-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sky);
  color: var(--brand);
  font-weight: 900;
}
.settings-form-narrow {
  max-width: 600px;
}
.media-settings {
  display: grid;
  align-content: start;
  gap: 15px;
}
.media-settings h3 {
  margin: 0;
}
.device-list {
  display: grid;
}
.device-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.device-item:last-child {
  border-bottom: 0;
}
.device-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--sky);
  color: var(--brand);
  font-size: 22px;
}
.device-item p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}
.current-device {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #087443;
  font-size: 10px;
}
.danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.danger-zone p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.account-danger {
  padding: 20px;
  border: 1px solid #f1b5b0;
  border-radius: 16px;
  background: #fff8f7;
}
.field-help {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--muted);
}
.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 71, 209, 0.18);
}
.follow-btn.following {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #344054;
  box-shadow: none;
}
.follow-btn.following:hover {
  border-color: #f1a9a2;
  background: #fff1f0;
  color: #b42318;
}
.telegram-embed {
  width: min(100%, 520px);
  min-height: 180px;
  margin: 26px auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fc;
  overflow: hidden;
}
.telegram-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: #fff;
}
.editor-area .telegram-embed {
  min-height: 150px;
  padding: 20px;
  border: 2px dashed #a9bee8;
  background: #f2f6ff;
}
.reply-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--brand);
  font-weight: 800;
}
.reply-context button,
.comment-actions button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}
.comment-reply {
  margin-left: 54px;
  padding-left: 16px;
  border-left: 3px solid #dbe6ff;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.comment-actions button[data-comment-delete] {
  color: var(--danger);
}
@media (max-width: 820px) {
  .verification-methods {
    grid-template-columns: 1fr;
  }
  .verification-alert,
  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-tabs {
    top: 8px;
  }
  .device-item {
    grid-template-columns: auto 1fr;
  }
  .device-item > button {
    grid-column: 2;
  }
  .dashboard-side nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dashboard-side nav a {
    white-space: nowrap;
  }
  .global-verification-alert {
    align-items: flex-start;
    justify-content: space-between;
  }
}
@media (max-width: 560px) {
  .verification-alert {
    padding: 15px;
  }
  .settings-page {
    padding-top: 14px;
  }
  .settings-tabs {
    margin-inline: -4px;
  }
  .device-item {
    gap: 10px;
  }
  .comment-reply {
    margin-left: 20px;
  }
  .notification-bell {
    width: 38px;
    height: 38px;
  }
  .global-verification-alert {
    font-size: 12px;
    padding: 9px 12px;
  }
}

/* v13.1 responsive bilingual editor and accessible dialogs */
.notification-bell svg,
.logout-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.danger-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: #b42318;
  color: #fff;
  font-weight: 800;
}
.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 18, 43, 0.62);
  backdrop-filter: blur(5px);
}
.ui-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(8, 18, 43, 0.32);
}
.ui-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #475467;
  font-size: 25px;
  line-height: 1;
}
.ui-modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}
.ui-modal-icon.link {
  font-size: 21px;
}
.ui-modal h2 {
  margin: 0 42px 8px 0;
  color: var(--navy);
  font-size: 24px;
}
.ui-modal > p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}
.ui-modal form {
  display: grid;
  gap: 8px;
}
.ui-modal input,
.ui-modal textarea {
  width: 100%;
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  padding: 13px 14px;
  outline: 0;
  resize: vertical;
}
.ui-modal input:focus,
.ui-modal textarea:focus {
  border-color: #8cacf8;
  box-shadow: 0 0 0 4px rgba(53, 108, 245, 0.1);
}
.ui-modal-help {
  display: block;
  line-height: 1.45;
}
.ui-modal-error {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff0ef;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}
.ui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}
.translation-workspace {
  scroll-margin-top: 92px;
  padding: 22px;
  border: 1px solid #b9caef;
  border-radius: 18px;
  background: #f7f9ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}
.translation-workspace.is-stale {
  border-color: #e3a13e;
  background: #fffaf0;
}
.translation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.translation-head h2 {
  margin: 5px 0 6px;
  color: var(--navy);
}
.translation-head p {
  margin: 0;
  line-height: 1.5;
}
.translation-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #087443;
  font-size: 11px;
  font-weight: 900;
}
.translation-workspace.is-stale .translation-state {
  background: #fff0d5;
  color: #9a4c08;
}
.translation-tabs {
  display: flex;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.translation-tabs button {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 900;
}
.translation-tabs button.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 23, 57, 0.18);
}
.translation-pane {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.variant-editor {
  min-height: 380px;
  max-height: none;
  overflow: visible;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
}
.variant-editor:focus {
  border-color: #9eb6f7;
  box-shadow: 0 0 0 4px rgba(53, 108, 245, 0.08);
}
.variant-editor img {
  height: auto;
  border-radius: 10px;
}
.variant-editor figure {
  max-width: 100%;
}
.variant-status {
  margin-top: -10px;
}
.bilingual-open {
  width: 100%;
  min-height: 48px;
  border-color: #a9bee8;
  background: #f3f7ff;
  color: var(--brand);
}

@media (max-width: 820px) {
  .dashboard-side {
    position: sticky;
    top: 0;
    z-index: 45;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 5px 18px rgba(15, 35, 82, 0.06);
  }
  .dashboard-side nav {
    grid-column: 1/-1;
    display: flex;
    gap: 5px;
    order: 3;
    margin: 3px -4px 0;
    padding: 3px 4px 1px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .dashboard-side nav::-webkit-scrollbar {
    display: none;
  }
  .dashboard-side nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .dashboard-side > a.ghost-btn.full {
    display: none;
  }
  .dashboard-side > button.ghost-btn.full {
    width: auto;
    margin: 0 !important;
    padding: 9px 12px;
  }
  .dashboard-main {
    width: 100%;
    padding: 22px 18px 40px;
  }
  .submit-layout {
    padding-top: 22px;
  }
  .translation-workspace {
    scroll-margin-top: 76px;
  }
  .translation-head {
    display: grid;
  }
  .translation-state {
    justify-self: start;
  }
  .editor-header .topbar {
    grid-template-columns: auto 1fr;
  }
  .editor-header .topbar-spacer {
    display: none;
  }
  .editor-header .header-actions {
    justify-self: end;
  }
}
@media (max-width: 560px) {
  .dashboard-main {
    padding: 18px 11px 34px;
  }
  .dashboard-head {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-head > .primary-btn {
    width: 100%;
  }
  .dashboard-head h1 {
    font-size: 25px;
  }
  .level-card {
    flex-direction: column;
    margin: 16px 0;
    padding: 19px;
  }
  .level-card p {
    margin-bottom: 0;
  }
  .metric-grid {
    gap: 8px;
  }
  .metric {
    min-width: 0;
    padding: 14px 12px;
  }
  .metric span {
    display: block;
    line-height: 1.3;
  }
  .panel {
    margin-top: 14px;
    padding: 15px 13px;
    border-radius: 15px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 13px;
  }
  .verification-alert .primary-btn {
    width: 100%;
  }
  .verification-alert .actions {
    width: 100%;
  }
  .verification-alert .actions > * {
    flex: 1;
  }
  .my-article .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .my-article .row-actions > * {
    width: 100%;
  }
  .form-card,
  .guide-card {
    padding: 16px 13px;
  }
  .submit-layout {
    width: min(100% - 18px, 1180px);
    padding-top: 13px;
  }
  .editor-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .editor-toolbar > * {
    flex: 0 0 auto;
  }
  .editor-area {
    min-height: 300px;
    padding: 14px;
  }
  .translation-workspace {
    padding: 13px;
  }
  .translation-head h2 {
    font-size: 21px;
  }
  .translation-pane {
    padding: 13px;
  }
  .variant-editor {
    min-height: 320px;
    padding: 14px;
  }
  .ui-modal-backdrop {
    align-items: end;
    padding: 10px;
  }
  .ui-modal {
    max-height: min(88svh, 720px);
    overflow: auto;
    padding: 23px 17px 17px;
    border-radius: 20px;
  }
  .ui-modal h2 {
    font-size: 21px;
  }
  .ui-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ui-modal-actions > * {
    width: 100%;
  }
  .editor-header .container {
    width: min(100% - 18px, 1180px);
  }
  .editor-header .topbar {
    gap: 7px;
  }
  .editor-header [data-auth-state] {
    gap: 5px;
  }
  .editor-header .cabinet-link {
    padding-inline: 10px;
  }
  .editor-header .notification-bell,
  .editor-header .logout-icon {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
}
@media (max-width: 400px) {
  .editor-header .logo > span:last-child {
    display: none;
  }
  .dashboard-side .logo {
    font-size: 20px;
  }
  .dashboard-side .logo-symbol {
    width: 32px;
    height: 32px;
  }
  .translation-tabs button {
    padding-inline: 8px;
  }
}

/* v13.2 Telegram widget, script switch and mobile news cards */
.telegram-embed {
  padding: 0;
}
.telegram-loading {
  padding: 28px;
  color: var(--muted);
  font-family:
    Inter,
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.telegram-fallback {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  color: var(--brand);
  font-family:
    Inter,
    -apple-system,
    sans-serif;
  font-weight: 900;
}
.author-strip time {
  font-variant-numeric: tabular-nums;
}
.article-title {
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .hero-lead {
    min-height: 510px;
  }
  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.08;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-side .news-card,
  .news-grid .news-card:not(.compact) {
    display: block;
  }
  .hero-side .news-card > a,
  .news-grid .news-card:not(.compact) > a {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 164px;
  }
  .hero-side .news-card .news-media,
  .news-grid .news-card:not(.compact) .news-media {
    width: 116px;
    height: 100%;
    min-height: 164px;
  }
  .hero-side .news-card .news-media img,
  .news-grid .news-card:not(.compact) .news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero-side .news-card .card-body,
  .news-grid .news-card:not(.compact) .card-body {
    min-width: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
  }
  .hero-side .news-card .card-body h3,
  .news-grid .news-card:not(.compact) .card-body h3 {
    margin-bottom: 7px;
    font-size: 15px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
  }
  .hero-side .news-card .card-body p,
  .news-grid .news-card:not(.compact) .card-body p {
    min-height: 0;
    margin: 0 0 9px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
  }
  .hero-side .news-card .card-meta,
  .news-grid .news-card:not(.compact) .card-meta {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: auto;
    gap: 5px;
    font-size: 10px;
  }
  .article-title h1 {
    font-size: 34px;
  }
  .author-strip {
    align-items: flex-start;
  }
  .author-strip .views {
    margin-left: auto;
  }
  .telegram-embed {
    width: 100%;
    margin: 20px 0;
    border-radius: 13px;
  }
}
@media (max-width: 380px) {
  .hero-side .news-card > a,
  .news-grid .news-card:not(.compact) > a {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .hero-side .news-card .news-media,
  .news-grid .news-card:not(.compact) .news-media {
    width: 104px;
  }
  .hero-copy h1 {
    font-size: 26px;
  }
  .card-meta span:first-child {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* v14 route-based locale, theme, header, footer and publishing UX */
html {
  color-scheme: light;
}

.clipboard-proxy {
  position: fixed;
  width: 1px;
  height: 1px;
  inset: -10000px auto auto -10000px;
  opacity: 0;
  pointer-events: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f6fc;
  --ink-2: #d6deed;
  --muted: #aab6ca;
  --surface: #0b1220;
  --soft: #111b2e;
  --line: #283650;
  --sky: #14264b;
  --success: #35c98a;
  --danger: #ff7b72;
  --warning: #f7b955;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.4);
}
body,
.site-header,
.news-card,
.panel,
.form-card,
.guide-card,
.profile-header,
.aside-list,
.comments,
.settings-tabs,
.settings-section,
.metric,
.admin-card,
.review-item,
input,
textarea,
select,
.editor-area,
.translation-pane,
.variant-editor,
.ui-modal,
.modal {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.script-toggle,
.theme-toggle,
.cabinet-link,
.login-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  padding: 9px 12px;
  font-weight: 850;
  white-space: nowrap;
}
.script-toggle:hover,
.theme-toggle:hover,
.cabinet-link:hover,
.login-link:hover {
  border-color: #98b2f7;
  background: var(--sky);
  color: var(--brand);
}
.theme-toggle {
  width: 42px;
  padding: 0;
}
.script-toggle svg,
.theme-toggle svg,
.cabinet-link svg,
.login-link svg,
.menu-toggle svg,
.search button svg,
.notification-bell svg,
.logout-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cabinet-link {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.cabinet-link:hover {
  background: #183a7d;
  color: #fff;
}
.login-link svg,
.cabinet-link svg {
  width: 19px;
  height: 19px;
}
.menu-toggle {
  font-size: 0;
}
.menu-toggle svg {
  width: 21px;
  height: 21px;
}
.search button {
  display: grid;
  place-items: center;
}
.search button svg {
  width: 18px;
  height: 18px;
}
.required-mark {
  color: #d92d20;
  font-weight: 900;
}
.cover-preview {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.cover-preview[hidden] {
  display: none;
}
.cover-preview img {
  width: 150px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}
.cover-preview div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cover-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cover-preview small {
  color: var(--muted);
}
.cover-preview button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fee4e2;
  color: #b42318;
  font-size: 22px;
}
.short-link-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.short-link-box > span {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.short-link-box input {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.short-link-box button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}
.site-footer {
  padding: 0;
  background: #091326;
  color: #e7ecf7;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(300px, 1.2fr) auto minmax(
      250px,
      auto
    );
  gap: 30px;
  align-items: center;
  padding: 40px 0 32px;
}
.footer-brand .logo {
  color: #fff;
}
.footer-brand p {
  max-width: 390px;
  margin: 15px 0 0;
  color: #aebbd1;
  line-height: 1.6;
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 23px;
}
.footer-links a {
  color: #e7ecf7;
  font-size: 13px;
  font-weight: 750;
}
.footer-links a:hover {
  color: #79a2ff;
}
.footer-social {
  display: flex;
  gap: 9px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #2f405f;
  border-radius: 50%;
  color: #fff;
}
.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.footer-social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-apps {
  position: relative;
  display: flex;
  gap: 8px;
}
.store-coming {
  position: absolute;
  right: 0;
  top: -19px;
  color: #8fa3c6;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.store-badge {
  min-width: 132px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #66758f;
  border-radius: 8px;
  background: #fff;
  color: #080d16;
  opacity: 0.88;
}
.store-badge svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.store-badge > span {
  display: grid;
}
.store-badge small {
  color: #303948;
  font-size: 8px;
  line-height: 1;
}
.store-badge b {
  font-size: 15px;
  line-height: 1.15;
}
.footer-legal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0 26px;
  border-top: 1px solid #26354e;
  color: #8fa0bc;
  font-size: 11px;
  line-height: 1.65;
}
html[data-theme="dark"] body {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="dark"] .site-header {
  background: rgba(11, 18, 32, 0.94);
  border-color: var(--line);
}
html[data-theme="dark"]
  :is(
    .search,
    .news-card,
    .panel,
    .form-card,
    .guide-card,
    .profile-header,
    .aside-list,
    .settings-tabs,
    .settings-section,
    .metric,
    .admin-card,
    .review-item,
    .auth-card,
    .translation-pane,
    .ui-modal,
    .modal,
    .language-preview > div
  ) {
  background: #111b2e;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"]
  :is(
    input,
    textarea,
    select,
    .editor-area,
    .variant-editor,
    .admin-editor,
    .editor-toolbar button,
    .ui-modal input,
    .ui-modal textarea
  ) {
  background: #0b1220;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"]
  :is(
    .news-card h3,
    .section-heading h2,
    .form-card h1,
    .article-content h2,
    .article-content h3,
    .admin-head h1,
    .metric strong,
    .settings-intro h2,
    .profile-copy h1,
    .article-title h1
  ) {
  color: var(--ink);
}
html[data-theme="dark"]
  :is(
    .ghost-btn,
    .secondary-btn,
    .icon-btn,
    .notification-bell,
    .menu-toggle,
    .article-actions button,
    .script-toggle,
    .theme-toggle,
    .login-link
  ) {
  background: #111b2e;
  color: var(--ink-2);
  border-color: var(--line);
}
html[data-theme="dark"]
  :is(.page-hero, .hero-lead, .level-card, .aside-cta, .auth-intro) {
  background: linear-gradient(145deg, #081225, #17367c);
  color: #fff;
}
html[data-theme="dark"] .nav {
  color: var(--ink-2);
}
html[data-theme="dark"] .nav.open {
  background: #111b2e;
  border-color: var(--line);
}
html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #111b2e, #1a2942, #111b2e);
}
html[data-theme="dark"] .global-verification-alert {
  background: #38270d;
  color: #ffd995;
  border-color: #624818;
}
html[data-theme="dark"] .verification-alert {
  background: linear-gradient(135deg, #35240b, #2d200d);
  color: #ffd995;
  border-color: #6d4c16;
}
html[data-theme="dark"] .verification-method {
  background: #111b2e;
  border-color: var(--line);
}
html[data-theme="dark"] .verification-method.verified {
  background: #0d2b22;
  border-color: #26644d;
}
html[data-theme="dark"] .translation-workspace {
  background: #0e192c;
  border-color: #36518a;
}
html[data-theme="dark"] .translation-tabs {
  background: #0b1220;
  border-color: var(--line);
}
html[data-theme="dark"] .upload-box {
  background: #0e192c;
  border-color: #40557d;
}
html[data-theme="dark"] .cover-preview,
html[data-theme="dark"] .short-link-box {
  background: #111b2e;
  border-color: var(--line);
}
html[data-theme="dark"] .admin-sidebar {
  background: #071126;
}
html[data-theme="dark"] .admin-main {
  background: #0b1220;
}
html[data-theme="dark"] table {
  color: var(--ink);
}
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  border-color: var(--line);
}
html[data-theme="dark"] .btn-ghost {
  background: #1a2639;
  color: #d9e1ef;
}
html[data-theme="dark"] .btn-soft {
  background: #142858;
  color: #9db9ff;
}
html[data-theme="dark"] .btn-danger {
  background: #3a171a;
  color: #ff9b94;
}
html[data-theme="dark"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}
html[data-theme="dark"] .toast {
  border: 1px solid #34445f;
}
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-apps {
    justify-self: start;
  }
  .footer-social {
    justify-self: end;
  }
}
@media (max-width: 700px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0 25px;
  }
  .footer-social {
    justify-self: start;
  }
  .footer-apps {
    width: 100%;
    overflow-x: auto;
    padding-top: 5px;
  }
  .footer-legal {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cover-preview {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }
  .cover-preview img {
    width: 104px;
    height: 78px;
  }
  .short-link-box {
    grid-template-columns: 1fr;
  }
  .short-link-box > span {
    display: block;
  }
  .short-link-box button {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .cabinet-link,
  .login-link {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }
  .cabinet-link > span,
  .login-link > span {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .theme-toggle,
  .script-toggle,
  .notification-bell,
  .logout-icon {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }
  .language-label {
    display: none;
  }
  .store-badge {
    min-width: 126px;
  }
  .footer-links {
    gap: 13px 20px;
  }
  .cover-preview {
    grid-template-columns: 86px minmax(0, 1fr) auto;
  }
  .cover-preview img {
    width: 86px;
    height: 68px;
  }
}
@media (max-width: 440px) {
  .site-header .topbar > .logo {
    gap: 7px;
    font-size: 18px;
    letter-spacing: -0.7px;
    white-space: nowrap;
  }
  .site-header .topbar > .logo .logo-symbol {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
  .site-header .topbar {
    gap: 7px;
  }
  .header-actions {
    gap: 4px;
  }
}
html[data-theme="dark"]
  :is(
    .site-header .logo,
    .section-head h2,
    .profile-numbers b,
    .empty-page h1,
    .ui-modal h2,
    .translation-head h2
  ) {
  color: var(--ink);
}
html[data-theme="dark"] .cabinet-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* v15 CSP-safe utilities and accessibility */
.span-all {
  grid-column: 1/-1;
}
.mt-7 {
  margin-top: 7px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-15 {
  margin-top: 15px;
}
.mt-18 {
  margin-top: 18px;
}
.skeleton-fill {
  height: 100%;
}
.logo-on-dark {
  color: #fff;
}
.kicker-light {
  color: #bcd0ff;
}
.kicker-level {
  color: #c9d8ff;
}
.score-large {
  font-size: 42px;
}
.compact-label {
  font-size: 13px;
  font-weight: 800;
}
.align-end {
  align-self: end;
}
.verification-select {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.soft-page {
  background: var(--soft);
}
.editor-image-button {
  min-height: 36px;
  padding: 7px 10px;
}
.location-fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.location-fieldset legend {
  padding: 0 8px;
  font-weight: 800;
}
.location-fieldset > .field-help {
  display: block;
  margin-top: 10px;
}
.external-embed,
.telegram-embed {
  width: min(100%, 720px);
  margin: 28px auto;
}
.external-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--surface, #fff);
}
.youtube-embed iframe {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}
.instagram-embed iframe {
  min-height: 660px;
}
.security-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.security-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.security-status.enabled {
  background: #e6f8ee;
  color: #087a45;
}
.totp-secret-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
}
.totp-secret-box code {
  overflow-wrap: anywhere;
  font-size: 17px;
  letter-spacing: 0.09em;
}
.login-history {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history-item div {
  display: grid;
  gap: 4px;
}
.history-item span,
.history-item small {
  color: var(--muted);
  font-size: 12px;
}
.breaking-hero {
  background: linear-gradient(135deg, #8d1010, #df2a22);
}
.breaking-timeline,
.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.breaking-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface, #fff);
}
.breaking-row.is-live {
  border-color: #e53832;
  box-shadow: inset 4px 0 #e53832;
}
.breaking-row time,
.breaking-row small {
  color: var(--muted);
  font-size: 13px;
}
.breaking-row h2 {
  margin: 8px 0;
}
.breaking-row h2 a {
  color: var(--ink);
}
.breaking-row p {
  margin: 0 0 10px;
  color: var(--muted);
}
.breaking-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ffe9e7;
  color: #bd1e18;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}
.ranking-row {
  display: grid;
  grid-template-columns: 50px 52px minmax(0, 1fr) 90px 120px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--ink);
}
.ranking-position {
  font-size: 23px;
  color: var(--brand);
}
.ranking-row > div,
.ranking-score,
.ranking-accuracy {
  display: grid;
  gap: 3px;
}
.ranking-row small {
  color: var(--muted);
  font-size: 12px;
}
.featured-comment {
  border-color: #f0bd49;
  background: #fffaf0;
}
.featured-label {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff0bc;
  color: #885400;
  font-size: 10px;
  font-style: normal;
}
.comment-sort {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.comment-sort select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--ink);
}
.regional-services {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}
.regional-services a {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--ink);
  font-weight: 800;
}
.regional-map-card {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface, #fff);
}
.regional-map {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
}
.regional-map > path {
  fill: #dbe8ff;
  stroke: #7fa4ed;
  stroke-width: 3;
}
.regional-map circle {
  fill: #e6332a;
  stroke: #fff;
  stroke-width: 4;
  transition: r 0.16s ease;
}
.regional-map a:focus circle,
.regional-map a:hover circle {
  r: 15;
}
@media (max-width: 700px) {
  .breaking-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ranking-row {
    grid-template-columns: 38px 46px minmax(0, 1fr);
    padding: 14px;
  }
  .ranking-score,
  .ranking-accuracy {
    grid-column: 3;
    display: inline-flex;
    gap: 5px;
  }
}
:focus-visible {
  outline: 3px solid #6f98ff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


@media (max-width: 820px) {
  .article-bottom-panel {
    padding: 16px;
  }
  .article-author-copy strong {
    font-size: 21px;
  }
}
@media (max-width: 560px) {
  .article-meta-line {
    gap: 8px 14px;
    font-size: 13px;
  }
  .article-bottom-panel {
    padding: 14px;
    border-radius: 18px;
  }
  .article-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .short-link-box {
    grid-template-columns: 1fr;
  }
  .article-author-box {
    align-items: flex-start;
  }
  .article-author-copy strong {
    font-size: 20px;
  }
  .article-author-arrow {
    display: none;
  }
  .trend-list a {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }
  .trend-thumb {
    width: 86px;
    height: 64px;
    border-radius: 12px;
  }
}
html[data-theme="dark"] .article-bottom-panel,
html[data-theme="dark"] .article-author-box {
  background: #101b30;
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .trend-list {
  background: #101b30;
}
