/* Account, language and auth */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 49px;
  font-family: var(--mono);
  font-size: 8px;
}
.lang-trigger .icon { width: 15px; height: 15px; }
.account-state {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  background: var(--lime);
}
.account-trigger.is-authed { color: var(--ink); }
.menu-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.menu-lang-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu-lang-options { display: flex; gap: 4px; }
.menu-lang-options button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}
.menu-lang-options button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.lang-dialog,
.account-dialog,
.auth-dialog {
  margin: auto;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.lang-dialog { width: min(500px, calc(100vw - 32px)); }
.account-dialog { width: min(430px, calc(100vw - 32px)); }
.auth-dialog { width: min(450px, calc(100vw - 32px)); }

dialog.lang-dialog,
dialog.account-dialog,
dialog.auth-dialog {
  background: var(--surface);
}
.lang-shell,
.account-shell,
.auth-shell { padding: 24px; }
.lang-head,
.account-head,
.auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.lang-head h2,
.account-head h2,
.auth-head h2 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.lang-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 12px;
}
.lang-options button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.lang-options button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.lang-options button.is-active {
  border-color: var(--ink);
  background: var(--lime);
  color: #10120c;
}
.lang-options button span { font-size: 14px; font-weight: 600; }
.lang-options button strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}
.lang-options button small { color: var(--muted); font-size: 10px; }
.lang-options button.is-active strong,
.lang-options button.is-active small { color: rgba(16,18,12,.65); }
.lang-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.45;
}
.account-guest { padding: 21px 0 4px; }
.account-guest p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-actions { display: flex; gap: 8px; margin-top: 20px; }
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 41px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
}
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--lime); color: #10120c; }
.button-secondary { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--surface-2); }
.account-user { padding-top: 20px; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  color: #10120c;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.account-identity { display: flex; flex-direction: column; gap: 2px; margin-top: 13px; }
.account-identity strong { font-size: 16px; font-weight: 650; letter-spacing: -0.025em; }
.account-identity span { color: var(--muted); font-size: 11px; }
.account-identity em {
  align-self: flex-start;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.account-links .button-secondary { margin-left: auto; }
.account-links .icon { width: 14px; height: 14px; }
.auth-tabs {
  display: flex;
  gap: 3px;
  margin-top: 16px;
  padding: 3px;
  border-radius: 8px;
  background: var(--paper-2);
}
.auth-tabs button {
  flex: 1;
  height: 33px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.auth-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(16,18,12,.08);
}
.auth-form { display: flex; flex-direction: column; gap: 13px; padding-top: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field > span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.auth-input-wrap:focus-within { border-color: var(--ink); }
.auth-input-wrap .icon { width: 15px; height: 15px; color: var(--muted-2); }
.auth-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}
.auth-input-wrap input::placeholder { color: var(--muted-2); }
.auth-submit {
  height: 42px;
  margin-top: 3px;
  border-radius: 8px;
  background: var(--lime);
  color: #10120c;
  font-size: 11.5px;
  font-weight: 700;
}
.auth-submit:hover { background: #e2ff7c; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffe1db;
  color: #7d2417;
  font-size: 10.5px;
  line-height: 1.4;
}
html[data-theme='dark'] .auth-error { background: #3c1c17; color: #ffb5a8; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 13px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}
.google-auth:hover { border-color: var(--line-strong); background: var(--surface-2); }
.google-auth.is-disabled { opacity: .5; cursor: not-allowed; }
.google-g {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from -40deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.auth-note { margin-top: 15px; color: var(--muted-2); font-size: 9.5px; line-height: 1.45; }

/* Article reader */
html[data-route='article'] .hero-section,
html[data-route='article'] .ticker,
html[data-route='article'] .feed-section,
html[data-route='article'] .closing-band,
body.article-mode .hero-section,
body.article-mode .ticker,
body.article-mode .feed-section,
body.article-mode .closing-band { display: none !important; }
.article-page { display: block; padding: 0 0 75px; }
.article-page[hidden] { display: none !important; }
.article-wrap { padding-top: 35px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-back:hover { color: var(--ink); }
.article-header { max-width: 960px; }
.article-kicker { display: flex; align-items: center; gap: 7px; }
.format-chip-light { border-color: var(--line); background: transparent; color: var(--muted); }
.article-title {
  max-width: 930px;
  margin: 17px 0 16px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.04;
  text-wrap: balance;
}
.article-dek { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-hero {
  position: relative;
  width: 100%;
  max-height: 540px;
  aspect-ratio: 16 / 7.7;
  margin: 32px 0 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-2);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  margin-top: 40px;
}
.article-main { min-width: 0; }
.article-body { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.05em; }
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.55em 0 .55em;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.article-body h2 { font-size: 27px; }
.article-body h3 { font-size: 21px; }
.article-body h4 { font-size: 18px; }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-body img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 10px; }
.article-body figure { margin: 23px 0; }
.article-body figcaption { margin-top: 6px; color: var(--muted-2); font-family: var(--mono); font-size: 8px; line-height: 1.35; }
.article-body blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--lime-deep);
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}
.article-body ul,
.article-body ol { margin: 0 0 1.05em; padding-left: 22px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4em; }
.article-body pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}
.article-body code { font-family: var(--mono); font-size: .9em; }
.article-body table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 13px; }
.article-body th,
.article-body td { padding: 7px 8px; border: 1px solid var(--line); text-align: left; }
.article-body-preview { color: var(--muted); font-size: 18px; }
.article-notice {
  margin-top: 24px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.article-notice strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.article-notice a,
.article-original {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-notice .icon,
.article-original .icon { width: 12px; height: 12px; }
.article-side {
  position: sticky;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 2px;
}
.article-source-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.article-source-card > div { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.article-source-card small { color: var(--muted-2); font-family: var(--mono); font-size: 7px; letter-spacing: .05em; text-transform: uppercase; }
.article-source-card strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.article-source-card > a {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.article-source-card > a:hover { color: var(--ink); background: var(--surface-2); }
.article-source-card > a .icon { width: 13px; height: 13px; }
.article-actions { display: flex; align-items: center; gap: 7px; }
.article-action {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 37px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.article-action:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.article-bookmark {
  position: static;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.article-bookmark:hover { background: var(--surface); color: var(--ink); transform: none; }
.article-bookmark.is-saved { color: #10120c; }
.article-lang-note { color: var(--muted-2); font-size: 9.5px; line-height: 1.45; }
.related-section { margin-top: 68px; padding-top: 27px; border-top: 1px solid var(--line); }
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.related-head h2 { font-size: 28px; font-weight: 650; letter-spacing: -.04em; }
.related-head span { color: var(--muted-2); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.related-section .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.related-section .card-title { font-size: 15px; }
.related-section .card-body { padding: 13px 14px; }
.related-section .card-excerpt { display: none; }
.article-loading { padding: 60px 0; }
.sk-article-title { width: 70%; height: 57px; margin: 22px 0 20px; }
.sk-article-media { width: 100%; aspect-ratio: 16 / 7.7; margin-bottom: 30px; border-radius: 20px; }
.article-error { min-height: 480px; padding: 70px 0; }
.article-error h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 48px); font-weight: 650; letter-spacing: -.045em; }
.article-error p { max-width: 500px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }

@media (max-width: 1180px) {
  .lang-trigger { width: 39px; }
  .lang-trigger .lang-code { display: none; }
}
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .article-source-card,
  .article-actions,
  .article-lang-note { grid-column: 1 / -1; }
  .related-section .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lang-trigger { display: none; }
  .account-links .button-secondary { margin-left: 0; }
  .lang-dialog,
  .account-dialog,
  .auth-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .lang-shell,
  .account-shell,
  .auth-shell { padding: 20px 18px max(20px, env(safe-area-inset-bottom)); }
  .article-wrap { padding-top: 20px; }
  .article-title { margin-top: 13px; font-size: clamp(28px, 8.3vw, 38px); }
  .article-dek { font-size: 14px; }
  .article-hero { aspect-ratio: 16 / 9; margin-top: 22px; border-radius: 15px; }
  .article-layout { margin-top: 26px; gap: 24px; }
  .article-body { font-size: 15.5px; line-height: 1.66; }
  .article-body h2 { font-size: 23px; }
  .article-body h3 { font-size: 19px; }
  .article-side { grid-template-columns: 1fr; }
  .article-source-card,
  .article-actions,
  .article-lang-note { grid-column: auto; }
  .related-section { margin-top: 45px; }
  .related-section .news-grid { grid-template-columns: 1fr; }
  .related-head h2 { font-size: 24px; }
  .article-page { padding-bottom: 48px; }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  border-top: 1px solid rgba(212, 255, 79, 0.34);
  background: #0d0f0a;
  color: #f1f0e7;
  box-shadow: 0 -18px 45px -30px rgba(0, 0, 0, 0.7);
  animation: cookie-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.cookie-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(212, 255, 79, 0.28);
  border-radius: 50%;
  color: var(--lime);
}

.cookie-icon .icon {
  width: 15px;
  height: 15px;
}

.cookie-copy {
  flex: 1;
  min-width: 0;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-copy p {
  color: #a8ad9f;
  font-size: 10.5px;
  line-height: 1.45;
}

.cookie-copy a {
  color: #e7e9dc;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
}

.cookie-accept {
  display: grid;
  place-items: center;
  width: 72px;
  height: 36px;
  flex: none;
  border-radius: 6px;
  background: var(--lime);
  color: #10120c;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cookie-accept:hover {
  background: #e3ff82;
}

body.cookie-visible .new-items {
  bottom: 94px;
}

body.cookie-visible .back-to-top {
  bottom: 96px;
}

@media (max-width: 760px) {
  .cookie-inner {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 11px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .cookie-icon {
    width: 30px;
    height: 30px;
    align-self: start;
  }

  .cookie-copy strong {
    font-size: 7.5px;
  }

  .cookie-copy p {
    font-size: 9.5px;
  }

  .cookie-accept {
    grid-column: 1 / -1;
    width: 100%;
    height: 34px;
  }

  body.cookie-visible .new-items {
    bottom: 160px;
  }

  body.cookie-visible .back-to-top {
    bottom: 160px;
  }
}

.social-auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 38px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}

.social-auth:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.social-auth.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.social-mark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
}

.social-mark-yandex { background: #fc3f1d; }
.social-mark-vk { background: #0077ff; font-size: 6px; }
.social-mark-tg { background: #229ed9; }

@media (max-width: 420px) {
  .social-auth {
    gap: 4px;
    padding: 0 5px;
    font-size: 8.5px;
  }
}

/* Readability overrides for dialogs and reader */
.auth-field > span:first-child { font-size: 8.5px; }
.auth-input-wrap input { font-size: 13px; }
.auth-note { font-size: 10px; }
.social-auth { font-size: 10px; }
.cookie-copy p { font-size: 11px; }
.cookie-copy strong { font-size: 8.5px; }
.article-body { font-size: 17px; }
.article-dek { font-size: 17.5px; }
.article-notice strong { font-size: 12.5px; }
.article-lang-note { font-size: 10px; }
@media (max-width: 760px) {
  .auth-field > span:first-child { font-size: 8px; }
  .auth-input-wrap input { font-size: 12.5px; }
  .cookie-copy p { font-size: 10px; }
  .article-body { font-size: 16px; }
}

/* Email verification step */
.auth-code-copy {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.auth-code-copy strong {
  color: var(--ink);
}

.auth-form input#authCode {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: .3em;
  text-align: center;
}

.auth-code-back {
  width: 100%;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.auth-code-back:hover { color: var(--ink); }

/* Profile settings */
.profile-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.profile-shell {
  padding: 24px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.profile-shell .account-head {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.profile-avatar-row .account-avatar {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.profile-label,
.profile-section-title {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.avatar-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.avatar-swatches button {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(16,18,12,.18);
  background: var(--swatch);
  cursor: pointer;
}

.avatar-swatches button.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.profile-select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.profile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink-soft);
  font-size: 11px;
}

.profile-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime-deep);
}

.profile-password {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-sessions {
  margin-top: 12px;
}

.profile-session-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
}

.profile-session-btn:hover { color: var(--ink); }

body.is-compact .news-card { padding: 0; }
body.is-compact .card-body { padding: 13px 14px 12px; }
body.is-compact .card-excerpt { display: none; }
body.is-compact .lead-excerpt { display: none; }
body.is-compact .brief { padding: 10px 0; }

@media (max-width: 420px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-shell { padding: 18px; }
}

dialog.profile-dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

dialog.profile-dialog .modal-close {
  color: var(--ink);
  border-color: var(--line-strong);
}

.footer-cookie-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-button:hover { color: var(--ink); }
