/*
 * The article page (articles/page, .pg-article) and the Articles feed
 * (articles/feed, .pg-articles). Every rule under .shell, built from the
 * shell tokens (shell.css) and the shared ui-* pieces (ui.css). Night comes
 * from html.dark .shell; Google's preview keeps Google's own colors.
 */

/* ── Pieces only these pages use (the shared ones are in ui.css) ── */
.shell .art-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: ui-spin 0.8s linear infinite; }

/* The article page's cover without a picture: sheen rings, a type kicker
   and a site chip, sized to the cover. Feed rows use Home's ui-cover. */
.shell .art-fallback {
  position: absolute; inset: 0; display: block; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(255, 165, 82, 0.5) 0%, rgba(255, 224, 181, 0.32) 38%, transparent 72%),
    linear-gradient(135deg, #fbf8f2 0%, #fbefdf 58%, #ffdcb5 100%);
}
html.dark .shell .art-fallback {
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(255, 90, 60, 0.42) 0%, rgba(255, 165, 82, 0.14) 40%, transparent 72%),
    linear-gradient(135deg, #18121f 0%, #23141f 58%, #3a1a1d 100%);
}
.shell .art-fallback__rings {
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 calc(8cqw - 1.5px), rgba(255, 122, 69, 0.3) calc(8cqw - 1.5px) 8cqw);
  -webkit-mask: radial-gradient(75% 105% at 100% 100%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  mask: radial-gradient(75% 105% at 100% 100%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}
html.dark .shell .art-fallback__rings { background: repeating-radial-gradient(circle at 100% 100%, transparent 0 calc(8cqw - 1.5px), rgba(255, 165, 82, 0.28) calc(8cqw - 1.5px) 8cqw); }
.shell .art-fallback__type {
  position: absolute; left: 5cqw; top: 6cqw; display: inline-flex; align-items: center; gap: max(5px, 1.2cqw);
  font-family: var(--f-mono); font-size: max(10px, 1.9cqw); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--app-accent);
}
.shell .art-fallback__type i { width: max(5px, 0.9cqw); height: max(5px, 0.9cqw); border-radius: 50%; background: var(--app-ember); }
.shell .art-fallback__site {
  position: absolute; left: 5cqw; bottom: 5.5cqw; display: inline-flex; align-items: center; gap: max(6px, 1.2cqw);
  padding: max(4px, 0.8cqw) max(10px, 1.8cqw) max(4px, 0.8cqw) max(5px, 0.9cqw); border-radius: 99px;
  background: rgba(255, 255, 255, 0.62); box-shadow: 0 0 0 1px rgba(22, 18, 28, 0.06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: max(10px, 1.7cqw); color: #3d2d22;
}
.shell .art-fallback__site img { width: max(14px, 2.4cqw); height: max(14px, 2.4cqw); padding: 1px; border-radius: 4px; background: #fff; }
html.dark .shell .art-fallback__site { background: rgba(22, 18, 28, 0.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); color: #f1e6da; }

/* ══ Article page ══════════════════════════════════════════════════════ */

/* ── Action bar, in the page header ── */
.shell .app-head:has(.art-bar) .app-head__in { gap: 12px; }
.shell .app-head:has(.art-bar)::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--read, 0) * 100%);
  border-radius: 0 2px 2px 0; background: var(--app-sheen); box-shadow: 0 0 10px rgba(255, 106, 61, 0.45);
  pointer-events: none;
}
.shell .art-bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shell .art-back {
  display: inline-flex; align-items: center; gap: 4px; flex: none; height: 32px; padding: 0 10px 0 6px; border-radius: 8px;
  color: var(--app-ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s var(--app-ease), color 0.15s var(--app-ease);
}
.shell .art-back:hover { background: var(--app-hover); color: var(--app-ink); }
.shell .art-vsep { flex: none; width: 1px; height: 20px; background: var(--app-hair-2); }
.shell .art-bar .ui-chip { min-width: 0; }
.shell .art-actions { display: flex; align-items: center; gap: 8px; }
.shell .art-primary-form { margin: 0; display: inline-flex; }
.shell .art-m { display: none; }

.shell .art-more { position: relative; }
.shell .art-more .app-menu { left: auto; right: 0; width: 280px; transform-origin: top right; }
.shell .art-menu .app-menu__item.is-disabled { color: var(--app-ink-3); cursor: default; }
.shell .art-menu .app-menu__item.is-disabled:hover { background: none; }
.shell .art-menu .app-menu__item.is-disabled .app-menu__icon { color: var(--app-ink-3); opacity: 0.8; }
.shell .art-menu .app-menu__hint { font-size: 10.5px; }
.shell .art-menu__danger, .shell .art-menu__danger .app-menu__icon,
.shell .art-menu__danger:hover .app-menu__icon { color: var(--app-hot); }
.shell .art-menu__error { margin: 2px 10px 6px 36px; font-size: 12px; line-height: 1.4; color: var(--app-hot); }
/* Refresh: the reason it is suggested, under its name. */
.shell .art-menu__stack { display: grid; flex: 1; gap: 1px; min-width: 0; }
.shell .art-menu__line { display: flex; align-items: center; min-width: 0; }
.shell .art-menu__why { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--app-accent); }
.shell .art-refresh__why b, .shell .art-refresh__cost b { color: var(--app-ink); font-weight: 600; }
.shell .art-menu__formats { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 4px 6px 4px 10px; }
.shell .art-menu__formats-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--app-ink); }
.shell .art-seg-mini a {
  display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 6px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--app-ink-2); text-decoration: none;
  transition: background-color 0.15s var(--app-ease), color 0.15s var(--app-ease);
}
.shell .art-seg-mini a:hover, .shell .art-seg-mini a:focus-visible { background: var(--app-surface); color: var(--app-ink); box-shadow: var(--app-lift); outline-offset: 0; }

.shell .art-copy { position: relative; }
.shell .art-copy__error {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; width: 260px; margin: 0; padding: 8px 10px; border-radius: 8px;
  background: var(--app-raised); box-shadow: var(--app-menu-shadow); font-size: 12.5px; line-height: 1.4; color: var(--app-hot);
}

/* ── Layout ── */
.shell .pg-article { padding-top: 4px; }
.shell .art-grid {
  display: grid; grid-template-columns: minmax(0, 680px); justify-content: center;
  grid-template-areas: "head" "serp" "side" "main";
}
.shell .art-head { grid-area: head; min-width: 0; }
.shell .art-serp { grid-area: serp; }
.shell .art-side { grid-area: side; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.shell .art-main { grid-area: main; min-width: 0; margin-top: 40px; }
.shell .art-toc { display: none; }

@media (min-width: 1180px) {
  .shell .art-grid {
    grid-template-columns: minmax(0, 680px) 300px; column-gap: 56px;
    grid-template-areas: "head side" "serp side" "main side"; grid-template-rows: auto auto 1fr;
  }
  /* The column runs the full height of the article. The card and the facts
     sit at its top; the outline follows the reader (all three together are
     taller than most windows, so a sticky column would hide its end). */
  .shell .art-side { grid-template-columns: minmax(0, 1fr); align-self: stretch; align-content: start; gap: 28px; margin-top: 0; }
  .shell .art-toc {
    display: block; position: sticky; top: calc(var(--app-head-h) + 24px);
    max-height: calc(100dvh - var(--app-head-h) - 48px); overflow-y: auto; scrollbar-width: thin;
  }
}

/* Tall windows fit the whole column: it sticks as one. */
@media (min-width: 1180px) and (min-height: 1060px) {
  .shell .art-side { position: sticky; top: calc(var(--app-head-h) + 24px); align-self: start; }
  .shell .art-toc { position: static; max-height: none; }
}

/* ── Cover ── */
.shell .art-cover-wrap { margin: 0; }
.shell .art-cover {
  position: relative; aspect-ratio: 1200 / 630; border-radius: 14px; overflow: hidden;
  background: var(--app-hover); box-shadow: var(--app-lift);
}
.shell .art-cover > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.shell .art-cover__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--app-ink-3); }
.shell .art-cover__credit { min-width: 0; text-align: right; }
.shell .art-cover__credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--app-hair-2); text-underline-offset: 3px; }
.shell .art-cover--pending { display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--app-hair); }
.shell .art-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 7px 12px; border-radius: 99px;
  background: var(--app-surface); box-shadow: var(--app-lift); font-size: 12.5px; color: var(--app-ink-2); text-align: center;
}
.shell .art-pill svg { flex: none; color: var(--app-ink-3); }
.shell .art-paint {
  position: absolute; inset: -40%; z-index: 1;
  background:
    radial-gradient(30% 40% at 30% 40%, rgba(255, 165, 82, 0.85), transparent 70%),
    radial-gradient(35% 45% at 70% 60%, rgba(255, 90, 60, 0.6), transparent 70%),
    radial-gradient(40% 40% at 50% 20%, rgba(255, 224, 181, 0.7), transparent 70%);
  filter: blur(30px); opacity: 0.7; animation: art-paint 7s ease-in-out infinite alternate;
}
.shell .art-pill--painting {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; color: var(--app-ink);
  background: linear-gradient(100deg, var(--app-surface) 30%, color-mix(in srgb, var(--app-amber) 22%, var(--app-surface)) 50%, var(--app-surface) 70%);
  background-size: 250% 100%; animation: ui-shimmer 2.4s linear infinite;
}
.shell .art-pill--painting i { width: 8px; height: 8px; border-radius: 50%; background: var(--app-ember); animation: app-ping 1.4s ease-out infinite; }

/* ── Kicker, title, byline ── */
.shell .art-kicker {
  display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 28px 0 0;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-ink-3);
}
.shell .art-kicker__type { color: var(--app-accent); }
.shell .art-title {
  max-width: 20ch; margin: 10px 0 0; font-family: var(--f-display); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--app-ink); text-wrap: balance; overflow-wrap: anywhere;
}
.shell .art-byline { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.shell .art-byline__avatar {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--app-sheen); color: #16121c; font-family: var(--f-display); font-size: 11.5px; font-weight: 800;
}
.shell .art-byline__text { min-width: 0; }
.shell .art-byline__who { margin: 0; font-size: 13px; line-height: 1.35; color: var(--app-ink-2); }
.shell .art-byline__who b { font-weight: 600; color: var(--app-ink); }
.shell .art-byline__meta { margin: 1px 0 0; font-family: var(--f-mono); font-size: 12px; color: var(--app-ink-3); font-variant-numeric: tabular-nums; }

/* ── Google preview ── */
.shell .art-serp {
  --g-title: #1a0dab; --g-site: #202124; --g-url: #4d5156; --g-desc: #4d5156; --g-date: #70757a; --g-chip: #f1f3f4;
  margin-top: 28px; overflow: hidden;
}
html.dark .shell .art-serp { --g-title: #99c3ff; --g-site: #dadce0; --g-url: #bdc1c6; --g-desc: #bdc1c6; --g-date: #9aa0a6; --g-chip: #e8eaed; }
.shell .art-serp__head { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; box-shadow: inset 0 -1px 0 var(--app-hair); }
.shell .art-serp__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--app-ink); white-space: nowrap; }
.shell .art-serp__label svg { color: var(--app-ink-3); }
.shell .art-serp__tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--app-ink-3); white-space: nowrap; }
.shell .art-serp__tag.is-ok svg { color: var(--app-ok); }
.shell .art-serp__edit { margin-left: auto; }
.shell .art-serp.is-editing .art-serp__edit { visibility: hidden; }

.shell .art-g { max-width: 636px; padding: 16px 18px 18px; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; }
.shell .art-g__site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shell .art-g__who { min-width: 0; }
.shell .art-g__fav { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--g-chip); }
.shell .art-g__fav img { width: 18px; height: 18px; border-radius: 3px; }
.shell .art-g__name { font-size: 14px; line-height: 20px; color: var(--g-site); }
.shell .art-g__url { font-size: 12px; line-height: 18px; color: var(--g-url); overflow-wrap: anywhere; }
.shell .art-g__title { display: block; margin-top: 6px; overflow: hidden; font-size: 20px; line-height: 26px; color: var(--g-title); white-space: nowrap; text-overflow: ellipsis; }
.shell .art-g__desc { margin: 4px 0 0; font-size: 14px; line-height: 1.58; color: var(--g-desc); overflow-wrap: anywhere; }
.shell .art-g__date { color: var(--g-date); }
.shell .art-g .is-editable { border-radius: 4px; cursor: text; transition: background-color 0.15s var(--app-ease), box-shadow 0.15s var(--app-ease); }
.shell .art-g .is-editable:hover { background: var(--app-hover); box-shadow: 0 0 0 4px var(--app-hover); }
.shell .art-g .is-editable:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 3px; }

.shell .art-serp__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-height: 40px; padding: 8px 16px;
  box-shadow: inset 0 1px 0 var(--app-hair); font-size: 12.5px; color: var(--app-ink-2);
}
.shell .art-serp.is-editing .art-serp__foot { display: none; }
.shell .art-len { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.shell .art-len .ui-meter { width: 48px; }
.shell .art-len__n { font-family: var(--f-mono); font-size: 11.5px; color: var(--app-ink-3); font-variant-numeric: tabular-nums; }
.shell .art-len__n b { font-weight: 500; color: var(--app-ink); }
.shell .art-len.is-over .art-len__n, .shell .art-len.is-over .art-len__n b { color: var(--app-hot); }
.shell .art-kwcheck { display: inline-flex; align-items: center; }
.shell .art-kwcheck__ok { display: none; align-items: center; gap: 6px; color: var(--app-ink-2); }
.shell .art-kwcheck__ok svg { color: var(--app-ok); }
.shell .art-kwcheck__no { color: var(--app-ink-3); }
.shell .art-kwcheck.is-ok .art-kwcheck__ok { display: inline-flex; }
.shell .art-kwcheck.is-ok .art-kwcheck__no { display: none; }

.shell .art-serp__form { display: none; gap: 16px; padding: 16px 16px 16px; box-shadow: inset 0 1px 0 var(--app-hair); }
.shell .art-serp.is-editing .art-serp__form { display: grid; }
.shell .art-serp__error { margin: 0; font-size: 13px; color: var(--app-hot); }
.shell .art-serp__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.shell .art-serp__note { margin-right: auto; }

/* Form fields, shared by the preview's form and the dialogs. */
.shell .art-field { display: grid; gap: 6px; min-width: 0; }
.shell .art-field__label { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--app-ink); }
.shell .art-field__label em { font-style: normal; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--app-ink-3); font-variant-numeric: tabular-nums; }
.shell .art-field__label em.is-over { color: var(--app-hot); }
.shell .art-field input[type="text"], .shell .art-field textarea, .shell .art-field select, .shell .art-slug {
  width: 100%; min-height: 38px; margin: 0; padding: 8px 11px; border: 0; border-radius: 9px;
  background: var(--app-surface); color: var(--app-ink); box-shadow: inset 0 0 0 1px var(--app-hair-2);
  font: 14px/1.45 var(--f-body);
  transition: box-shadow 0.15s var(--app-ease);
}
.shell .art-field textarea { resize: vertical; }
.shell .art-field input[type="text"]:focus, .shell .art-field textarea:focus, .shell .art-field select:focus, .shell .art-slug:focus-within {
  outline: none; box-shadow: inset 0 0 0 1px var(--app-focus), 0 0 0 3px color-mix(in srgb, var(--app-focus) 20%, transparent);
}
.shell .art-slug { display: flex; align-items: center; gap: 0; padding: 0 0 0 11px; }
.shell .art-slug__base { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: 12.5px; color: var(--app-ink-3); direction: rtl; text-align: left; }
.shell .art-slug input[type="text"] { flex: 1 1 40%; min-width: 0; padding-left: 0; background: none; box-shadow: none; font-family: var(--f-mono); font-size: 12.5px; }
.shell .art-slug input[type="text"]:focus { box-shadow: none; }
.shell .art-slug.is-readonly { min-height: 38px; background: var(--app-hover); padding-right: 11px; }
.shell .art-slug.is-readonly .art-slug__base { direction: ltr; color: var(--app-ink-2); }
.shell .art-field__hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--app-ink-3); }

/* ── This article (the page's one raised card) ── */
.shell .art-story { padding: 20px; }
.shell .art-story__say { margin: 8px 0 0; font-family: var(--f-display); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--app-ink); text-wrap: pretty; }
.shell .art-steps { display: grid; margin: 16px 0 0; padding: 0; list-style: none; }
.shell .art-step { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 12px; padding-bottom: 16px; }
.shell .art-step:last-child { padding-bottom: 0; }
.shell .art-step::before { content: ''; position: absolute; left: 7.5px; top: 20px; bottom: 3px; width: 1px; background: var(--app-hair-2); }
.shell .art-step:last-child::before { content: none; }
.shell .art-step.is-done::before { background: color-mix(in srgb, var(--app-amber) 55%, var(--app-hair-2)); }
.shell .art-step .ui-node { margin-top: 1px; }
.shell .art-step__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.shell .art-step__name { font-size: 13.5px; font-weight: 600; color: var(--app-ink); }
.shell .art-step.is-ahead .art-step__name { font-weight: 500; color: var(--app-ink-3); }
.shell .art-step__date { flex: none; font-family: var(--f-mono); font-size: 11.5px; color: var(--app-ink-3); font-variant-numeric: tabular-nums; }
.shell .art-step__sub { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--app-ink-2); overflow-wrap: anywhere; }
.shell .art-step__sub b { font-weight: 600; color: var(--app-ink); }
.shell .art-step.is-ahead .art-step__sub { color: var(--app-ink-3); }
.shell .art-step__sub a { color: var(--app-accent); text-decoration: none; }
.shell .art-step__sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shell .art-story__compact { display: none; }
.shell .art-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.shell .art-stat { padding: 10px 12px; border-radius: 10px; background: var(--app-hover); box-shadow: inset 0 0 0 1px var(--app-hair); }
.shell .art-stat__v { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--app-ink); font-variant-numeric: tabular-nums; }
.shell .art-stat__k { display: block; margin-top: 3px; font-size: 12px; color: var(--app-ink-3); }
.shell .art-stat__v .ui-hatch { width: 64px; height: 26px; vertical-align: middle; }
.shell .art-story__cta { margin-top: 16px; }

/* The post on the site (articles/_sync): a flat note under the steps. */
.shell .art-sync { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--app-hair); }
.shell .art-sync .art-spin { width: 12px; height: 12px; border-width: 1.5px; color: var(--app-ember); }
.shell .art-sync__main { display: grid; gap: 4px; min-width: 0; }
.shell .art-sync__title { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--app-ink); }
.shell .art-sync__text { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--app-ink-2); overflow-wrap: anywhere; }
.shell .art-sync__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.shell .art-sync__actions form { margin: 0; }
.shell .art-sync__actions .ui-link { font-size: 13px; }

/* Before you publish (articles/_check): a calm card above the text. */
.shell .art-check { display: flex; align-items: flex-start; gap: 12px; max-width: 680px; margin: 0 0 32px; padding: 16px 20px; }
.shell .art-check__main { min-width: 0; }
.shell .art-check__title { margin: 4px 0 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--app-ink); }
.shell .art-check__list { display: grid; gap: 4px; margin: 0; padding-left: 18px; list-style: disc; font-size: 13.5px; line-height: 1.5; color: var(--app-ink-2); overflow-wrap: anywhere; }
.shell .art-check__list li::marker { color: var(--app-ink-3); }

/* ── Facts: flat rows with hair rules ── */
.shell .art-fact__k { display: block; font-size: 12.5px; color: var(--app-ink-3); }
.shell .art-fact__v { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--app-ink); font-variant-numeric: tabular-nums; }
.shell .art-fact__v .ui-hatch { width: 64px; height: 22px; vertical-align: middle; }
.shell .art-fact--kw { padding-bottom: 14px; box-shadow: inset 0 -1px 0 var(--app-hair); }
.shell .art-kws { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* A long keyword wraps inside the side column instead of running out of it. */
.shell .art-kws .ui-chip--kw { max-width: 100%; height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.shell .art-facts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shell .art-facts__grid .art-fact { padding: 14px 0; box-shadow: inset 0 -1px 0 var(--app-hair); }
.shell .art-facts__grid .art-fact:nth-child(even) { padding-left: 16px; box-shadow: inset 0 -1px 0 var(--app-hair), inset 1px 0 0 var(--app-hair); }

/* ── On this page ── */
.shell .art-toc .ui-label { margin-bottom: 8px; padding-left: 14px; }
.shell .art-toc ol { margin: 0; padding: 0; list-style: none; }
.shell .art-toc a, .shell .art-toc ol span {
  position: relative; display: block; padding: 5px 10px 5px 14px; font-size: 13px; line-height: 1.4;
  color: var(--app-ink-2); text-decoration: none; box-shadow: inset 1px 0 0 var(--app-hair-2);
  transition: color 0.15s var(--app-ease);
}
.shell .art-toc a:hover { color: var(--app-ink); }
.shell .art-toc a.is-active { color: var(--app-ink); font-weight: 600; }
.shell .art-toc a.is-active::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px;
  background: var(--app-sheen-y); box-shadow: 0 0 10px rgba(255, 106, 61, 0.45);
}
.shell .art-toc .is-todo { color: var(--app-ink-3); }
.shell .art-toc .is-now { color: var(--app-ink); }
.shell .art-toc .is-now::before { content: ''; position: absolute; left: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--app-ember); animation: app-ping 2s ease-out infinite; }

/* ── The article ── */
.shell .art-prose {
  max-width: 680px; counter-reset: art-sec;
  font-family: var(--f-body); font-size: 17px; line-height: 1.75; color: var(--app-ink); overflow-wrap: break-word;
}
.shell .art-prose > :first-child { margin-top: 0; }
.shell .art-prose p { margin: 0 0 1.2em; }
.shell .art-prose h2 {
  counter-increment: art-sec; scroll-margin-top: calc(var(--app-head-h) + 24px);
  margin: 56px 0 16px; padding-top: 16px; border-top: 1px solid var(--app-hair);
  font-family: var(--f-display); font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--app-ink);
}
.shell .art-prose h2::before {
  content: counter(art-sec, decimal-leading-zero); display: block; margin-bottom: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.08em; color: var(--app-accent);
}
.shell .art-prose h3 { margin: 36px 0 10px; font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.012em; color: var(--app-ink); }
.shell .art-prose h4 { margin: 28px 0 8px; font-family: var(--f-display); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--app-ink); }
.shell .art-prose h1 { margin: 0 0 16px; font-family: var(--f-display); font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--app-ink); }
.shell .art-prose a { color: var(--app-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--app-accent) 45%, transparent); }
.shell .art-prose a:hover { text-decoration-color: currentColor; }
.shell .art-prose strong, .shell .art-prose b { font-weight: 650; color: var(--app-ink); }
.shell .art-prose ul, .shell .art-prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.shell .art-prose ul { list-style: disc; }
.shell .art-prose ol { list-style: decimal; }
.shell .art-prose li { margin: 0.35em 0; padding-left: 0.2em; }
.shell .art-prose li::marker { color: var(--app-ink-3); }
.shell .art-prose li > p { margin: 0; }
.shell .art-prose img { display: block; max-width: 100%; height: auto; margin: 1.5em 0; border-radius: 10px; }
.shell .art-prose figure { margin: 1.5em 0; }
.shell .art-prose figure img { margin: 0; }
.shell .art-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--app-ink-3); }
.shell .art-prose blockquote { position: relative; margin: 1.5em 0; padding: 2px 0 2px 20px; color: var(--app-ink-2); }
.shell .art-prose blockquote::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--app-sheen-y); }
.shell .art-prose blockquote p:last-child { margin-bottom: 0; }
.shell .art-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--app-hair); }
.shell .art-prose code { padding: 1px 5px; border-radius: 5px; background: var(--app-hover); font-family: var(--f-mono); font-size: 0.86em; }
.shell .art-prose pre { margin: 1.5em 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: var(--app-hover); box-shadow: inset 0 0 0 1px var(--app-hair); font-size: 14px; line-height: 1.6; }
.shell .art-prose pre code { padding: 0; background: none; }
/* The Sources list and the AI disclosure end the article, as on the site
   (ArticleSources, Article#published_html): quieter than the text, and
   the Sources heading is not a numbered section. */
.shell .art-prose h2[data-balzac-sources] {
  counter-increment: none; margin-top: 48px; font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0;
}
.shell .art-prose h2[data-balzac-sources]::before { content: none; }
.shell .art-prose ul[data-balzac-sources] { font-size: 14.5px; line-height: 1.6; color: var(--app-ink-2); }
.shell .art-prose .art-disclosure { margin-top: 32px; font-size: 14.5px; line-height: 1.6; color: var(--app-ink-2); }
.shell .art-table { max-width: 100%; margin: 1.5em 0; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--app-hair); -webkit-overflow-scrolling: touch; }
.shell .art-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.shell .art-table th {
  padding: 10px 12px; background: var(--app-hover); text-align: left; vertical-align: bottom; white-space: nowrap;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-ink-2);
}
.shell .art-table td { padding: 10px 12px; border-top: 1px solid var(--app-hair); vertical-align: top; }
.shell .art-table td p { margin: 0; }

/* While writing: the Studio document's feel. */
.shell .art-sec { margin-top: 40px; }
.shell .art-sec:first-child { margin-top: 0; }
.shell .art-sec__label { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-accent); }
.shell .art-sec.is-todo .art-sec__label { color: var(--app-ink-3); }
.shell .art-prose .art-sec.is-todo h2 { color: var(--app-ink-3); }
.shell .art-prose .art-sec.is-todo h2::before { color: var(--app-ink-3); }
.shell .art-ph, .shell .art-lines { display: grid; gap: 12px; }
.shell .art-ph i, .shell .art-lines i { display: block; height: 12px; border-radius: 6px; background: var(--app-hover); }
.shell .art-ph i {
  background: linear-gradient(90deg, var(--app-hover) 0%, color-mix(in srgb, var(--app-amber) 22%, transparent) 50%, var(--app-hover) 100%);
  background-size: 200% 100%; animation: ui-shimmer 1.4s linear infinite;
}
.shell .art-ph i:nth-child(2), .shell .art-lines i:nth-child(2) { width: 94%; }
.shell .art-ph i:nth-child(3), .shell .art-lines i:nth-child(3) { width: 86%; }
.shell .art-ph i:nth-child(4) { width: 58%; }
.shell .art-lines i:nth-child(3) { width: 62%; }

.shell .art-note {
  display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(100deg, rgba(255, 224, 181, 0.38), rgba(255, 165, 82, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 165, 82, 0.28); font-size: 14px; line-height: 1.45; color: var(--app-ink-2);
}
html.dark .shell .art-note { background: linear-gradient(100deg, rgba(255, 165, 82, 0.12), rgba(255, 90, 60, 0.06)); }
.shell .art-prose--writing .art-note { margin-top: 32px; }
.shell .art-note__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--app-ember); animation: app-ping 2s ease-out infinite; }

/* ── Dialogs ── */
.shell .art-dialog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 16px;
  background: var(--app-raised); color: var(--app-ink); box-shadow: var(--app-menu-shadow); overflow: auto; overscroll-behavior: contain;
}
.shell .art-dialog--sm { width: min(420px, calc(100vw - 32px)); }
.shell .art-dialog--lg { width: min(640px, calc(100vw - 32px)); }
.shell .art-dialog::backdrop { background: rgba(22, 18, 28, 0.36); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
html.dark .shell .art-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.shell .art-dialog[open] { animation: art-dialog-in 0.18s var(--app-ease); }
.shell .art-dialog__in { position: relative; display: block; margin: 0; padding: 24px; }
.shell .art-dialog__x {
  position: absolute; top: 12px; right: 12px; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; color: var(--app-ink-3); cursor: pointer;
}
.shell .art-dialog__x:hover { background: var(--app-hover); color: var(--app-ink); }
.shell .art-dialog__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--app-hover); box-shadow: inset 0 0 0 1px var(--app-hair); color: var(--app-ink-2); }
.shell .art-dialog__icon.is-hot { color: var(--app-hot); background: color-mix(in srgb, var(--app-hot) 8%, transparent); }
.shell .art-dialog__title { margin: 14px 0 0; font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--app-ink); }
.shell .art-dialog__text { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--app-ink-2); }
.shell .art-dialog__fields { display: grid; gap: 14px; margin-top: 20px; }
.shell .art-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.shell .art-dialog__form { display: inline-flex; margin: 0; }
.shell .art-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
/* AI covers off (Workspace#ai_images): two kinds of cover only. */
.shell .art-modes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell .art-mode { position: relative; display: grid; align-content: start; gap: 4px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--app-hair-2); cursor: pointer; transition: box-shadow 0.15s var(--app-ease), background-color 0.15s var(--app-ease); }
.shell .art-mode input { position: absolute; opacity: 0; pointer-events: none; }
.shell .art-mode:hover { background: var(--app-hover); }
.shell .art-mode:has(input:checked) { background: color-mix(in srgb, var(--app-amber) 9%, transparent); box-shadow: inset 0 0 0 1.5px var(--app-ember); }
.shell .art-mode:has(input:focus-visible) { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.shell .art-mode__name { font-size: 13.5px; font-weight: 600; color: var(--app-ink); }
.shell .art-mode__hint { font-size: 12px; line-height: 1.4; color: var(--app-ink-3); }
.shell .art-mode-panel { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.shell .art-mode-panel[hidden] { display: none; }
.shell .art-mode-panel .art-field + .art-field, .shell .art-styles + .art-field { margin-top: 14px; }
.shell .art-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 236px; padding: 3px; overflow-y: auto; }
.shell .art-style { position: relative; display: grid; gap: 4px; font-size: 12px; color: var(--app-ink-2); cursor: pointer; }
.shell .art-style input { position: absolute; opacity: 0; pointer-events: none; }
.shell .art-style img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--app-hair); }
.shell .art-style:has(input:checked) img { box-shadow: 0 0 0 2px var(--app-ember); }
.shell .art-style:has(input:checked) span { color: var(--app-ink); font-weight: 600; }
.shell .art-style:has(input:focus-visible) img { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.shell .art-brand { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--app-hair); font-size: 13px; line-height: 1.45; color: var(--app-ink-2); }
.shell .art-brand b { font-weight: 600; color: var(--app-ink); }
.shell .art-brand__swatch { flex: none; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.shell .art-inline-link { color: var(--app-accent); }

@keyframes art-paint { from { transform: rotate(0deg) scale(1); } to { transform: rotate(14deg) scale(1.15); } }
@keyframes art-dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }

/* ══ Articles feed ═════════════════════════════════════════════════════ */

.shell .art-feed__status { font-variant-numeric: tabular-nums; }
.shell .art-feed__status b { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--app-ink); }

/* Filters: an app-seg with mono counts. */
.shell .art-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--app-hover); box-shadow: inset 0 0 0 1px var(--app-hair); }
.shell .art-seg a {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--app-ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--app-ease), color 0.15s var(--app-ease);
}
.shell .art-seg a:hover { color: var(--app-ink); }
.shell .art-seg a[aria-current="page"] { background: var(--app-surface); color: var(--app-ink); box-shadow: var(--app-lift); }
.shell .art-seg__n { font-family: var(--f-mono); font-size: 11px; color: var(--app-ink-3); font-variant-numeric: tabular-nums; }
.shell .art-seg a[aria-current="page"] .art-seg__n { color: var(--app-ink-2); }

.shell .art-feed { padding-top: 8px; }
.shell .art-feed__group + .art-feed__group { margin-top: 32px; }
.shell .art-feed__label { margin-bottom: 4px; }
.shell .art-list { border-top: 1px solid var(--app-hair); }

/* A row: the title link stretches over it, the menu sits above. */
.shell .art-row {
  position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr) auto 36px; align-items: center; gap: 16px;
  min-height: 88px; padding: 12px 0; border-bottom: 1px solid var(--app-hair);
}
.shell .art-row::before {
  content: ''; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 12px; background: var(--app-hover);
  opacity: 0; transition: opacity 0.15s var(--app-ease);
}
.shell .art-row:hover::before, .shell .art-row:focus-within::before { opacity: 1; }
.shell .art-list, .shell .art-feed__group { position: relative; z-index: 0; }
.shell .art-row .art-row__thumb { width: 128px; height: 67px; border-radius: 8px; }
.shell .art-row--queued .art-row__thumb, .shell .art-row--writing .art-row__thumb { opacity: 0.8; }
.shell .art-row__body { min-width: 0; }
.shell .art-row__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; color: var(--app-ink); text-decoration: none;
}
.shell .art-row__title::after { content: ''; position: absolute; inset: 0; }
.shell .art-row__title:focus-visible { outline: none; }
.shell .art-row__title:focus-visible::after { border-radius: 12px; outline: 2px solid var(--app-focus); outline-offset: 2px; }
.shell .art-row__meta { margin: 4px 0 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--app-ink-3); font-variant-numeric: tabular-nums; }
.shell .art-row__ladder { margin-top: 8px; }
.shell .art-row__meter.app-meter { width: 160px; height: 3px; margin-top: 10px; }
.shell .art-row__chip-m { display: none; }
.shell .art-row__side { display: grid; justify-items: end; gap: 6px; }
.shell .art-row__date { font-family: var(--f-mono); font-size: 11.5px; color: var(--app-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shell .art-row__menu { position: relative; z-index: 1; width: 36px; }
.shell .art-row__menu .app-menu { left: auto; right: 0; width: 248px; transform-origin: top right; }
.shell .art-menu__form { margin: 0; }
.shell .art-menu__form .app-menu__item { width: 100%; }

.shell .art-loadmore { display: flex; justify-content: center; padding: 20px 0 4px; }
.shell .art-feed__more { margin: 12px 0 0; font-size: 13px; color: var(--app-ink-3); }
.shell .art-feed__more a { margin-left: 4px; font-weight: 500; text-decoration: none; }
.shell .art-feed__more a:hover { text-decoration: underline; }

@media (max-width: 1023.98px) {
  .shell .app-head:has(.art-seg) .app-head__in { flex-wrap: wrap; row-gap: 12px; }
  .shell .app-head:has(.art-seg) .app-head__actions { flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--app-gutter)); padding: 0 var(--app-gutter) 2px; }
  .shell .app-head:has(.art-seg) .app-head__actions::-webkit-scrollbar { display: none; }
}

@media (max-width: 767.98px) {
  .shell .art-row { grid-template-columns: 72px minmax(0, 1fr) 44px; align-items: start; gap: 12px; }
  .shell .art-row::before { inset: 0 -8px; }
  .shell .art-row .art-row__thumb { width: 72px; height: 72px; }
  /* A 72px tile keeps the format, small, and drops the site chip. */
  .shell .art-row .art-row__thumb .ui-cover__site { display: none; }
  .shell .art-row .art-row__thumb .ui-cover__kicker { top: 8px; left: 8px; right: 6px; font-size: 8px; letter-spacing: 0.02em; line-height: 1.25; }
  .shell .art-row .art-row__thumb .ui-cover__kicker i { display: none; }
  .shell .art-row__title { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .shell .art-row__side { display: none; }
  .shell .art-row__chip-m { display: block; margin-top: 8px; }
  .shell .art-row__menu { width: 44px; }
  .shell .art-row__meter.app-meter { width: 100%; max-width: 200px; }
}

/* ── Phones and tablets: no rail, the bar sticks under the top bar ── */
@media (max-width: 1023.98px) {
  .shell .app-head:has(.art-bar) {
    position: sticky; top: var(--app-top-full); z-index: 30; border-bottom: 1px solid var(--app-hair);
  }
  .shell .app-head:has(.art-bar)::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--app-glass);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  }
  .shell .app-head:has(.art-bar) .app-head__in { min-height: 51px; padding-top: 4px; padding-bottom: 4px; align-items: center; }
  /* More opens from the bar's right edge, so it stays inside the window
     whatever sits next to the button. */
  .shell .art-more { position: static; }
  .shell .art-more .app-menu {
    top: calc(100% + 4px); right: max(12px, env(safe-area-inset-right));
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--app-top-full) - 52px - var(--app-tab-h) - env(safe-area-inset-bottom) - 20px);
  }
  .shell .pg-article { padding-top: 0; }
}

@media (max-width: 767.98px) {
  .shell .art-back { width: 44px; height: 44px; padding: 0; justify-content: center; margin-left: -10px; }
  .shell .art-back span { display: none; }
  .shell .art-vsep { display: none; }
  .shell .art-bar { gap: 4px; }
  .shell .art-actions { gap: 4px; }
  .shell .ui-btn.art-more__btn { width: 44px; height: 44px; padding: 0; }
  .shell .art-d { display: none; }
  .shell .art-m { display: inline; }
  .shell .ui-btn.art-primary { height: 44px; padding: 0 14px; }
  .shell .art-copy__error { width: min(260px, calc(100vw - 32px)); }

  .shell .art-grid { grid-template-areas: "head" "story" "serp" "main" "facts"; }
  .shell .art-side { display: contents; }
  .shell .art-story { grid-area: story; margin-top: 24px; padding: 16px; }
  .shell .art-facts { grid-area: facts; margin-top: 40px; }
  .shell .art-serp { margin-top: 16px; }
  .shell .art-main { margin-top: 32px; }

  .shell .art-steps { display: none; }
  .shell .art-story__compact { display: block; margin-top: 14px; }
  .shell .art-story__bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .shell .art-story__bars i { height: 4px; border-radius: 4px; background: var(--app-press); }
  .shell .art-story__bars i.is-done { background: var(--app-sheen); }
  .shell .art-story__bars i.is-current { background: none; box-shadow: inset 0 0 0 1px var(--app-ember); }
  .shell .art-story__names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; font-family: var(--f-mono); font-size: 10.5px; color: var(--app-ink-3); }
  .shell .art-story__names .is-done, .shell .art-story__names .is-current { color: var(--app-ink); }
  .shell .art-story__line { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--app-ink-2); }

  .shell .art-kicker { margin-top: 20px; }
  .shell .art-title { max-width: none; font-size: 30px; }
  .shell .art-g { padding: 14px 16px 16px; }
  .shell .art-g__title { font-size: 18px; line-height: 24px; white-space: normal; }
  .shell .art-serp__head { gap: 8px; padding-left: 14px; padding-right: 4px; }
  .shell .ui-btn.art-serp__edit { width: 44px; height: 44px; padding: 0; }
  .shell .art-serp__edit-label { display: none; }
  .shell .art-serp__foot { gap: 8px 16px; padding: 10px 14px; }
  .shell .art-serp__form { padding: 14px; }
  .shell .art-prose h2 { scroll-margin-top: calc(var(--app-top-full) + 64px); margin-top: 48px; font-size: 23px; }
  .shell .art-modes { grid-template-columns: minmax(0, 1fr); }
  .shell .art-dialog__in { padding: 20px 16px; }
  .shell .art-dialog__actions .ui-btn, .shell .art-dialog__actions .art-dialog__form { flex: 1 1 auto; }
  .shell .art-dialog__actions .art-dialog__form .ui-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .shell .pg-article *, .shell .pg-article *::before, .shell .pg-article *::after,
  .shell .pg-articles *, .shell .pg-articles *::before, .shell .pg-articles *::after,
  .shell .art-dialog, .shell .app-head:has(.art-bar) * { animation: none !important; transition-duration: 0.01ms !important; }
}
