/* Shared components on top of brand.css: the one disclosure style, report
   check cards and score breakdown, admin tabs and forms. Loaded last. */

/* ---------- Disclosure (.fold): the only way to hide secondary text ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fold:hover {
  border-color: var(--line-strong);
}
.fold[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px 10px 18px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d43d8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition:
    transform 0.25s var(--ease),
    background-color 0.2s;
}
.fold > summary:hover::after {
  background-color: #dde5ff;
}
.fold[open] > summary::after {
  transform: rotate(180deg);
}
.fold > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.fold > :not(summary) {
  margin: 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 760px;
}
.fold > :not(summary) + :not(summary) {
  margin-top: 10px;
}
.fold > :last-child:not(summary) {
  margin-bottom: 16px;
}
.fold[open] > :not(summary) {
  animation: fold-in 0.28s var(--ease);
}
.fold a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Compact variant inside panels and reports. */
.fold-sm {
  border-radius: 12px;
  background: #fafbfe;
}
.fold-sm > summary {
  min-height: 44px;
  padding: 7px 8px 7px 14px;
  border-radius: 11px;
  font-size: 14px;
}
.fold-sm > summary::after {
  width: 26px;
  height: 26px;
  background-size: 14px;
}
.fold-sm > :not(summary) {
  margin-inline: 14px;
  font-size: 14px;
}
.fold-sm > :last-child:not(summary) {
  margin-bottom: 12px;
}
@supports (interpolate-size: allow-keywords) {
  .fold {
    interpolate-size: allow-keywords;
  }
  .fold::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.28s var(--ease),
      content-visibility 0.28s allow-discrete;
  }
  .fold[open]::details-content {
    height: auto;
  }
}
@keyframes fold-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
/* Places where a fold sits. */
.qa-list {
  display: grid;
  gap: 10px;
}
.faq-item > summary {
  font-size: 16px;
}
.seo-article > summary {
  padding-block: 14px;
}
.seo-article > summary h2 {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 22px);
  letter-spacing: -0.4px;
}
.compact-help .fold {
  margin-top: 16px;
}
.profile-tech.fold {
  margin-top: 18px;
}
.risk-details.fold,
.chart-panel .fold {
  margin-top: 14px;
}

/* ---------- Score breakdown ---------- */
.score-breakdown {
  margin: 12px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.score-breakdown h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.score-breakdown ol {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.score-part {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.score-part > b {
  align-self: start;
  padding: 3px 0;
  border-radius: 8px;
  background: #f1f4fa;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.score-part.level-warning > b {
  background: #fff4dc;
  color: var(--amber);
}
.score-part.level-danger > b {
  background: var(--red-soft);
  color: var(--red);
}
.score-part.level-good > b {
  background: var(--green-soft);
  color: var(--green);
}
.score-part-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.score-part-head strong {
  font-size: 15px;
}
.score-part p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.source-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}
.score-note {
  margin: 0;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Report: one card per check, same parts in every card ---------- */
.check-section {
  margin-top: 22px;
}
.check-section > h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.check-list {
  display: grid;
  gap: 10px;
}
.check-card {
  --tone: var(--line-strong);
  --tone-soft: #f1f4fa;
  --tone-ink: var(--muted);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name state"
    "icon about about"
    "icon result result"
    "icon note note";
  gap: 6px 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--tone);
  animation: card-in 0.32s var(--ease) both;
}
.check-card:nth-child(2) {
  animation-delay: 40ms;
}
.check-card:nth-child(3) {
  animation-delay: 80ms;
}
.check-card:nth-child(4) {
  animation-delay: 120ms;
}
.check-card:nth-child(5) {
  animation-delay: 160ms;
}
.check-card.tone-clear,
.check-card.tone-good {
  --tone: var(--green);
  --tone-soft: var(--green-soft);
  --tone-ink: var(--green);
}
.check-card.tone-warning {
  --tone: #d99a1e;
  --tone-soft: #fff4dc;
  --tone-ink: var(--amber);
}
.check-card.tone-danger {
  --tone: var(--red);
  --tone-soft: var(--red-soft);
  --tone-ink: var(--red);
  border-color: #f2c6c4;
}
.check-card > header {
  display: contents;
}
.check-icon {
  grid-area: icon;
  align-self: start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}
.check-icon .icon {
  width: 20px;
  height: 20px;
}
.check-card h4 {
  grid-area: name;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
.check-state {
  grid-area: state;
  justify-self: end;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.check-about {
  grid-area: about;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.check-results {
  grid-area: result;
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.check-results li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.check-results li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.check-results .tone-good::before {
  background: var(--green);
}
.check-results .tone-warning::before {
  background: #d99a1e;
}
.check-results .tone-danger::before {
  background: var(--red);
}
.check-results .tone-off {
  color: var(--muted);
  font-weight: 500;
}
.check-warning {
  grid-area: note;
  display: flex;
  gap: 8px;
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e8;
  color: #5c3d00;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.check-warning .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 520px) {
  .check-card {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "icon state"
      "about about"
      "result result"
      "note note";
    padding: 14px;
  }
  .check-icon {
    width: 36px;
    height: 36px;
  }
  .check-state {
    justify-self: start;
  }
}

/* ---------- Report: details for specialists ---------- */
.file-facts {
  margin-top: 16px;
}
.file-facts dl {
  display: grid;
  grid-template-columns: minmax(110px, max-content) minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 14px;
}
.file-facts dt {
  color: var(--muted);
}
.file-facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fold > h4 {
  margin-top: 16px;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}
.file-facts ul {
  padding-left: 18px;
  font-size: 14px;
}
@media (max-width: 520px) {
  .file-facts dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .file-facts dd {
    margin-bottom: 8px;
  }
}

/* ---------- Admin ---------- */
.admin-page .profile-head h1 {
  margin: 0;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 14px;
  background: #e8ecf5;
}
.admin-tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.admin-tabs [role="tab"]:hover {
  color: var(--ink);
}
.admin-tabs [aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.admin-tabs .icon {
  width: 16px;
  height: 16px;
}
.admin-page [role="tabpanel"]:not([hidden]) {
  animation: fold-in 0.25s var(--ease);
}
.chart-metrics {
  margin: 0 0 12px;
}
.status-danger {
  background: var(--red-soft);
  color: var(--red);
}
.user-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.user-row {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.user-row.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.user-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 750;
}
.user-who {
  display: grid;
  flex: 1 1 200px;
  min-width: 0;
}
.user-who strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-who small {
  color: var(--muted);
  font-size: 13px;
}
.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.user-toggle[aria-expanded="true"] {
  background: var(--blue-soft);
  color: var(--blue);
}
.user-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 14px;
}
.user-usage-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.user-usage-item small {
  color: var(--muted);
  font-size: 13px;
}
.user-usage-item em {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}
.user-edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.user-edit:not([hidden]) {
  animation: fold-in 0.25s var(--ease);
}
.field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.field input:focus {
  outline: 3px solid #c9d6ff;
  border-color: var(--blue);
}
.field small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.user-edit-actions,
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  grid-column: 1 / -1;
}
.settings-actions p {
  margin: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  .fold,
  .fold > summary::after,
  .admin-tabs [role="tab"] {
    transition: none;
  }
  .fold::details-content {
    transition: none;
  }
  .fold[open] > :not(summary),
  .check-card,
  .admin-page [role="tabpanel"]:not([hidden]),
  .user-edit:not([hidden]) {
    animation: none;
  }
}
.profile-notice:empty {
  min-height: 0;
  margin: 0;
}

/* ---------- articles ---------- */
.articles-page,
.article {
  padding: 40px 0 72px;
}
.articles-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.articles-head h1,
.article-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.4px;
  text-wrap: balance;
}
.articles-head .lead,
.article-lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-grid > li:first-child:not(:only-child) {
  grid-column: span 2;
}
.article-grid-compact > li:first-child:not(:only-child) {
  grid-column: auto;
}
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.article-card:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}
.article-card-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
}
.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.article-card:hover .article-card-cover img {
  transform: scale(1.03);
}
.article-card-mark .icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
}
.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
}
.article-card-body strong {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-wrap: balance;
}
.article-grid > li:first-child:not(:only-child) .article-card-body strong {
  font-size: 24px;
}
.article-card-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.article-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.article-card.is-read {
  opacity: 0.78;
}
.article-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.article-badge.is-new {
  background: var(--blue);
  color: #fff;
}
.article-badge.is-read {
  background: var(--green-soft);
  color: var(--green);
}
.article {
  max-width: 760px;
  margin: 0 auto;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--blue);
}
.article-head {
  margin-bottom: 26px;
}
.article-meta {
  margin: 16px 0 0;
}
.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 0 30px;
  border-radius: var(--r-lg);
  background: var(--blue-soft);
  box-shadow: var(--shadow-md);
}
.article-toc {
  display: block;
  margin: 0 0 34px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.article-toc h2 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.article-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.article-toc a {
  color: var(--ink);
  font-weight: 600;
}
.article-toc a:hover {
  color: var(--blue);
}
.article-body {
  font-size: 18px;
  line-height: 1.75;
}
.article-body > * {
  margin: 0 0 20px;
}
.article-body h2 {
  margin: 44px 0 14px;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  scroll-margin-top: 90px;
}
.article-body h3 {
  margin: 30px 0 10px;
  font-size: 21px;
  scroll-margin-top: 90px;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
}
.article-body li + li {
  margin-top: 8px;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--blue-soft);
  font-size: 0.88em;
}
.article-body figure {
  margin: 30px 0;
}
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.article-body .table-scroll {
  max-height: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.article-body .data-table {
  font-size: 15px;
  line-height: 1.5;
}
.article-note {
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--blue-soft);
}
.article-note p {
  margin: 0;
}
.article-note p + p {
  margin-top: 8px;
}
.article-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.article-inline-cta p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.article-body .article-inline-cta a.button {
  color: #fff;
  text-decoration: none;
}
.article-cta {
  display: grid;
  gap: 22px;
  margin: 48px 0 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(58 109 255 / 45%), transparent 55%),
    linear-gradient(160deg, var(--night-2), var(--night));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.article-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.article-cta p {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  line-height: 1.6;
}
.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.article-cta .button-outline {
  border-color: rgb(255 255 255 / 35%);
  background: transparent;
  color: #fff;
}
.article-cta .button-outline:hover {
  background: rgb(255 255 255 / 10%);
}
.article-cta-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 85%);
  font-weight: 650;
}
.article-cta-install:hover {
  color: #fff;
}
.article-more {
  margin-top: 56px;
}
.article-more h2 {
  margin: 0 0 18px;
  font-size: 24px;
}
@media (max-width: 760px) {
  .article-grid > li:first-child:not(:only-child) {
    grid-column: auto;
  }
  .article-grid > li:first-child:not(:only-child) .article-card-body strong {
    font-size: 19px;
  }
  .article-body {
    font-size: 17px;
  }
  .article-body h2 {
    font-size: 23px;
  }
  .articles-page,
  .article {
    padding-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card-cover img {
    transition: none;
  }
  .article-card:hover,
  .article-card:hover .article-card-cover img {
    transform: none;
  }
}

/* ---------- admin: hours, audience ---------- */
.hours-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 28px;
}
.share-list {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.share-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.share-head span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-head strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.share-head small {
  min-width: 3ch;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.share-list .usage-bar {
  height: 6px;
}
.share-empty {
  color: var(--muted);
  font-size: 14px;
}
.settings-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

/* ---------- admin: articles ---------- */
.article-admin-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.article-admin-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.article-admin-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.article-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-admin-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.article-admin-info strong {
  line-height: 1.35;
}
.article-admin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 13px;
}
.article-admin-actions {
  display: flex;
  gap: 8px;
}
.article-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.article-form-main,
.article-form-side {
  display: grid;
  gap: 18px;
}
.article-form-side {
  position: sticky;
  top: 90px;
}
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  resize: vertical;
}
.field textarea:focus {
  outline: 3px solid #c9d6ff;
  border-color: var(--blue);
}
#article-body {
  min-height: 420px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
}
.counter {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.slug-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f6f8fc;
  overflow: hidden;
}
.slug-field > span {
  padding: 0 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.slug-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.editor-toolbar button,
.editor-upload {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.editor-toolbar button:hover,
.editor-upload:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.editor-toolbar [aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.article-preview {
  min-height: 420px;
  max-height: 70vh;
  overflow: auto;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-weight: 400;
}
.cover-drop {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #f6f8fc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.cover-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-button {
  cursor: pointer;
}
.seo-check ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.seo-check li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.seo-check .icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.seo-check .is-ok {
  color: var(--green);
}
.seo-check .is-todo {
  color: var(--amber);
}
.link-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.link-danger .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 900px) {
  .article-form-grid {
    grid-template-columns: 1fr;
  }
  .article-form-side {
    position: static;
  }
}
@media (max-width: 560px) {
  .article-admin-row {
    grid-template-columns: 72px 1fr;
  }
  .article-admin-actions {
    grid-column: 1 / -1;
  }
}
