:root {
  --ink: #091b36;
  --muted: #526176;
  --blue: #0162f7;
  --blue-hover: #0757cd;
  --blue-soft: #eaf3ff;
  --canvas: #f5f7fb;
  --paper: #ffffff;
  --line: #e7ebf1;
  --line-strong: #d8e2ee;
  --green: #08794f;
  --red: #b42334;
  --radius: 18px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4fc;
  --muted: #9cacc0;
  --blue: #3c8dff;
  --blue-hover: #70adff;
  --blue-soft: #182d48;
  --canvas: #0c1622;
  --paper: #111d2a;
  --line: #223142;
  --line-strong: #304258;
  --green: #5ac99b;
  --red: #ff8291;
}

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }
.theme-transitioning * { transition: none !important; }
.theme-wipe { position: fixed; z-index: 9998; width: 26px; height: 26px; border-radius: 50%; opacity: 1; pointer-events: none; transform: translate(-50%, -50%) scale(0); transition: transform .62s cubic-bezier(.22,.75,.2,1), opacity .18s ease; will-change: transform, opacity; }
.theme-wipe.active { transform: translate(-50%, -50%) scale(var(--wipe-scale)); }
.theme-wipe.fade { opacity: 0; }
.theme-fallback body, .theme-fallback .header, .theme-fallback .card, .theme-fallback .lead-story, .theme-fallback .question-box, .theme-fallback .talks, .theme-fallback .tools-box, .theme-fallback .article, .theme-fallback .comments, .theme-fallback dialog { transition: background-color .32s ease, color .32s ease, border-color .32s ease; }

html { scroll-padding-top: 96px; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); }
h1, h2, h3 { color: var(--ink); }
a:hover { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline-color: #72aaf6; }

.header { position: static; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: none; width: min(1280px, calc(100% - 48px)); padding: 0; }
.header-main { min-height: 82px; gap: 20px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--ink); }
.brand-lockup:hover { color: var(--ink); }
.gid-logo { display: block; width: 143px; height: auto; flex-shrink: 0; }
.life-word { color: var(--blue); font-size: 20px; font-weight: 700; line-height: 1; }
.brand-divider { width: 1px; height: 22px; margin: 0 2px; background: var(--line-strong); }
.ecosystem-nav { display: flex; align-items: center; gap: 20px; margin-left: 18px; }
.ecosystem-nav a { color: var(--ink); font-size: 14px; }
.ecosystem-nav a:hover { color: var(--blue); }
.search { margin-left: auto; width: min(300px, 26vw); max-width: none; flex: none; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; padding: 10px 2px; }
.search input { color: var(--ink); }
.search input::placeholder { color: #66758a; }
.search svg { color: var(--muted); }
.primary, .secondary { min-height: 44px; border-radius: 12px; }
.primary { background: var(--blue); }
.primary:hover { background: var(--blue-hover); }
.secondary { border: 1px solid #bcd6fb; background: var(--paper); color: var(--blue-hover); }
.secondary:hover { background: #f5f9ff; color: var(--blue-hover); }
.profile-button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--canvas); font-weight: 600; }
.profile-button:hover { border-color: #bcd6fb; background: var(--blue-soft); color: var(--blue-hover); }
.profile-button { display: inline-flex; align-items: center; justify-content: center; background-position: center; background-size: cover; }
.profile-button.signed-in { border-color: #a9c9f5; color: var(--blue-hover); }
.theme-toggle { position: relative; width: 50px; height: 28px; flex: 0 0 50px; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 999px; background: #e9eff7; color: var(--muted); transition: border-color .2s ease, background-color .35s ease, box-shadow .2s ease; }
.theme-toggle:hover { border-color: #a9c5e7; box-shadow: 0 0 0 3px rgba(1,98,247,.08); }
.theme-toggle svg { position: absolute; top: 7px; z-index: 2; width: 13px; height: 13px; transition: color .28s ease, opacity .28s ease; }
.theme-sun { left: 7px; color: var(--blue-hover); }
.theme-moon { right: 7px; color: #748398; }
.theme-thumb { position: absolute; top: 2px; left: 2px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 7px rgba(9,27,54,.24); transform: translateX(0); transition: transform .42s cubic-bezier(.2,1.45,.32,1), background-color .3s ease, box-shadow .3s ease; }
.gid-logo-dark-theme { display: none; }

.preview-note { max-width: none; width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0 0; color: var(--muted); }
.preview-note > button { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); }
.page-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 72px; }
.main-nav, .topic-nav { display: flex; flex-direction: row; align-items: center; width: 100%; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar, .topic-nav::-webkit-scrollbar { display: none; }
.main-nav { gap: 30px; min-height: 48px; border-bottom: 1px solid var(--line-strong); }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 650; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; }
.main-nav a:hover { background: transparent; color: var(--blue-hover); }
.main-nav a.active { background: transparent; color: var(--blue-hover); }
.main-nav a.active::after { background: var(--blue); }
.topic-nav { gap: 22px; padding: 15px 0 30px; border-bottom: 0; }
.topic-nav a { display: inline-flex; align-items: center; min-height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.topic-nav a:hover, .topic-nav a.active { background: transparent; color: var(--ink); }
.topic-nav a.active { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.layout { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 34px; padding: 0; align-items: start; }
main { min-width: 0; }
.page-heading { min-height: 50px; align-items: baseline; margin-bottom: 18px; }
.page-heading h1 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.page-heading > span { color: var(--muted); }
.feed-tabs { gap: 24px; margin-bottom: 22px; border-color: var(--line); }
.feed-tabs a { color: var(--muted); }
.feed-tabs a.active { border-color: var(--blue); color: var(--ink); }

.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); grid-template-areas: "body image" "footer image"; }
.card.featured .card-body { grid-area: body; padding: 32px 32px 16px; }
.card.featured > a[aria-hidden="true"] { grid-area: image; min-height: 100%; }
.card.featured .cover { height: 100%; min-height: 360px; margin: 0; border-left: 1px solid var(--line); object-fit: cover; }
.card.featured .card-footer { grid-area: footer; }
.card:not(.featured) { min-height: 310px; }
.card-body { flex: 1; padding: 24px 24px 10px; }
.author-line { color: var(--muted); }
.avatar { width: 34px; height: 34px; background: var(--blue-soft); color: var(--blue-hover); }
.avatar.dot-avatar { background: #eef5ff; color: #1769cf; }
.author-name { color: var(--ink); font-weight: 500; }
.ai-badge, .local-tag { border-color: var(--line-strong); border-radius: 6px; color: var(--muted); }
.category-line { margin: 20px 0 10px; }
.category-line a { color: var(--blue-hover); }
.category-line span { color: var(--muted); }
.card h2, .card:not(.featured) h2 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.card.featured h2 { max-width: 560px; font-size: 32px; }
.card .excerpt { color: var(--muted); font-size: 15px; }
.cover { background: var(--canvas); }
.card-footer { min-height: 58px; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); }
.bookmark.saved { color: var(--blue); }
.bookmark.saved svg { fill: var(--blue-soft); }
.question-card { border-left: 1px solid var(--line-strong); background: #fbfdff; }
.news-card .category-line span, .news-article .category-line span { color: var(--blue-hover); font-weight: 600; }
.ad-card { min-height: 310px; justify-content: space-between; background: #f8fafc; }
.ad-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 18px; }
.ad-disclosure { align-self: flex-start; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 11px; line-height: 1; }
.ad-slot { flex: 1; display: grid; place-items: center; min-height: 190px; }
.ad-placeholder { max-width: 250px; text-align: center; }
.ad-placeholder-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 28px; margin-bottom: 14px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.ad-placeholder strong { display: block; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.25; }
.ad-placeholder p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ad-card-footer { min-height: 58px; display: flex; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.front-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.front-heading .eyebrow { display: block; margin-bottom: 7px; color: var(--blue-hover); font-weight: 700; letter-spacing: .06em; }
.front-heading h1 { max-width: 760px; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; font-weight: 650; letter-spacing: -.045em; }
.front-heading > span { padding-bottom: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.front-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-areas: "latest lead"; gap: 22px; margin-bottom: 38px; }
.latest-panel { grid-area: latest; border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line-strong); }
.latest-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 11px; border-bottom: 1px solid var(--line-strong); }
.latest-panel header h2 { font-size: 20px; font-weight: 650; }
.latest-panel header a { color: var(--blue-hover); font-size: 12px; font-weight: 650; }
.latest-item { display: grid; grid-template-columns: 42px 1fr; gap: 2px 10px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.latest-item:last-child { border-bottom: 0; }
.latest-item time { grid-row: 1 / 3; color: var(--blue-hover); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.latest-item span { font-size: 14px; line-height: 1.3; font-weight: 600; }
.latest-item small { color: var(--muted); font-size: 11px; }
.lead-story { grid-area: lead; min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.lead-image { display: block; overflow: hidden; aspect-ratio: 16 / 8.1; background: var(--canvas); }
.lead-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lead-story:hover .lead-image img { transform: scale(1.015); }
.lead-story-body { padding: 24px 27px 25px; }
.lead-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--muted); font-size: 12px; font-weight: 650; }
.lead-kicker a { color: var(--blue-hover); }
.lead-kicker span::before { content: "·"; margin-right: 9px; }
.lead-story h2 { max-width: 680px; font-size: clamp(29px, 3vw, 42px); line-height: 1.08; font-weight: 650; letter-spacing: -.035em; }
.lead-story p { max-width: 670px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.lead-actions { display: flex; align-items: center; gap: 20px; margin-top: 21px; font-size: 13px; }
.lead-actions .lead-read { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 650; }
.lead-actions .lead-read:hover { background: var(--blue-hover); color: #fff; }
.lead-actions > a:last-child { color: var(--muted); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.section-heading .eyebrow { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 650; letter-spacing: .05em; }
.section-heading h2 { font-size: 28px; line-height: 1.14; font-weight: 650; letter-spacing: -.025em; }
.section-heading > a { padding-bottom: 3px; color: var(--blue-hover); font-size: 13px; font-weight: 650; }
.front-feed .card.featured { grid-column: auto; display: flex; }
.front-feed .card.featured .card-body { padding: 24px 24px 10px; }
.front-feed .card.featured > a[aria-hidden="true"] { display: none; }
.front-feed .card.featured .card-footer { grid-area: auto; }
.front-feed .card.featured h2 { font-size: 24px; }

.news-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -4px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.news-intro p { color: var(--muted); }
.news-intro span { color: var(--blue-hover); font-size: 12px; font-weight: 650; white-space: nowrap; }
.news-stream { border-top: 4px solid var(--blue); }
.news-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; min-height: 178px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.news-row-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; color: var(--muted); font-size: 12px; }
.news-row-meta time { color: var(--blue-hover); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-row-meta a { color: var(--muted); }
.news-row-body h2 { max-width: 680px; font-size: 25px; line-height: 1.16; font-weight: 650; letter-spacing: -.022em; }
.news-row-body > p { max-width: 720px; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.news-row-body footer { display: flex; align-items: center; gap: 16px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.news-row-body footer > a:first-child { color: var(--blue-hover); }
.news-row-body .bookmark { margin-left: auto; }
.news-ad-row { background: #f8fafc; }
.news-ad-row .ad-slot { min-height: 128px; place-items: center start; }
.news-ad-row .ad-placeholder { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; max-width: 520px; text-align: left; }
.news-ad-row .ad-placeholder-mark { grid-row: 1 / 3; margin: 0; }
.news-ad-row .ad-placeholder p { margin-top: 3px; }

.rightbar { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 20px; padding-top: 0; }
.question-box, .talks, .tools-box, .business-side { margin-top: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper); padding: 22px; }
.eyebrow, .small-category { color: var(--muted); }
.question-box { background: var(--paper); }
.question-box h2 { font-size: 26px; font-weight: 600; }
.question-box p { color: var(--muted); }
.question-box button { color: var(--blue-hover); border-color: var(--line); }
.talks > h2, .tools-box h2 { font-size: 17px; font-weight: 600; }
.talks > a { padding: 18px 0; border-color: var(--line); }
.talks > a:last-child { padding-bottom: 0; border-bottom: 0; }
.talks h3 { font-size: 16px; font-weight: 600; }
.text-link { color: var(--blue-hover); }
.tools-box > p { color: var(--muted); }
.tools-box a > span { border-color: var(--line-strong); color: var(--muted); font-variant-numeric: tabular-nums; }
.business-side { background: var(--ink); color: #fff; }
.business-side .eyebrow { color: #9fc5ff; }
.business-side h2 { margin-top: 9px; color: #fff; font-size: 21px; line-height: 1.2; }
.business-side p { margin-top: 9px; color: #cbd6e6; font-size: 13px; line-height: 1.55; }
.business-side a { display: inline-flex; margin-top: 17px; color: #fff; font-size: 13px; font-weight: 650; }
.sidebar-foot { display: none; }

.empty { grid-column: 1 / -1; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--canvas); }
.empty h2 { font-weight: 600; }
.empty p { color: var(--muted); }
.topic-summary { grid-column: 1 / -1; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--canvas); }
.topic-summary p, .list-caption { color: var(--muted); }
.back { color: var(--muted); }
.article { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.article-head { padding: 36px 38px 28px; }
.article h1 { max-width: 760px; font-size: 42px; font-weight: 600; letter-spacing: -.03em; }
.article .lead { max-width: 720px; color: var(--muted); }
.article .cover { aspect-ratio: 1.72; }
.image-caption { margin: 9px 38px 0; color: var(--muted); }
.article-copy { max-width: 760px; padding: 28px 38px 38px; }
.article-copy h2 { font-weight: 600; letter-spacing: -.02em; }
.article-copy blockquote { padding: 20px 22px; border-left-color: var(--blue); border-radius: 0 14px 14px 0; background: var(--blue-soft); }
.related-tool { border-color: #bcd6fb; background: #f8fbff; }
.related-tool a { color: var(--blue-hover); }
.remove-post { color: var(--red); }
.comments { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.comments h2 { font-weight: 600; }
.comments h2 span, .comments-note { color: var(--muted); }
.comment { border-color: var(--line); }
.comment button, .reply-context, .following-row button { color: var(--blue-hover); }
.following-card { padding: 8px 24px; margin-bottom: 20px; }
.reply-form textarea, dialog input, dialog select, dialog textarea { border-color: var(--line-strong); border-radius: 14px; background: #f9fbfe; color: var(--ink); }
.reply-form textarea:focus, dialog input:focus, dialog select:focus, dialog textarea:focus { border-color: #72aaf6; background: var(--paper); }
dialog select { min-height: 44px; padding-right: 42px; appearance: none; background-color: #f9fbfe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23526176' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
dialog select:hover { border-color: #b7cae1; background-color: var(--paper); }
dialog select:focus-visible { border-color: #72aaf6; box-shadow: 0 0 0 3px rgba(1,98,247,.12); outline: 0; }
dialog select:disabled { cursor: not-allowed; opacity: .58; }

@supports (appearance: base-select) {
  dialog select, ::picker(select) { appearance: base-select; }
  dialog select { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 13px; background-image: none; }
  dialog select::picker-icon { margin-left: auto; color: var(--muted); transition: rotate .18s ease, color .16s ease; }
  dialog select:hover::picker-icon, dialog select:focus-visible::picker-icon { color: var(--blue-hover); }
  dialog select:open::picker-icon { rotate: 180deg; }
  ::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); box-shadow: 0 18px 44px rgba(9,27,54,.16), 0 2px 8px rgba(9,27,54,.08); }
  dialog option { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--ink); font-size: 14px; cursor: pointer; }
  dialog option:hover, dialog option:focus-visible { background: #f1f6fd; color: var(--blue-hover); outline: 0; }
  dialog option:checked { background: var(--blue-soft); color: var(--blue-hover); font-weight: 650; }
  dialog option::checkmark { order: 2; margin-left: auto; color: var(--blue); }
  .editor-toolbar select { padding: 5px 9px 5px 10px; }
}
.reply-bottom p, .muted { color: var(--muted); }

dialog { border-radius: 24px; color: var(--ink); box-shadow: 0 28px 90px rgba(0, 0, 0, .22); }
dialog::backdrop { background: #091b3673; backdrop-filter: blur(2px); }
.icon-button { width: 42px; height: 42px; background: var(--canvas); }
dialog h2 { font-weight: 600; letter-spacing: -.025em; }
.dialog-bottom { border-color: var(--line); }
.text-button { color: var(--muted); }
#toast { border-radius: 12px; background: var(--ink); }

.compose-dialog { max-width: 820px; }
.compose-kind-note { min-height: 22px; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.rich-editor-field { margin-top: 20px; }
.compose-dialog textarea[name="body"] { display: none !important; }
.field-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.editor-toolbar { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 6px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 14px 14px 0 0; background: #f5f8fc; scrollbar-width: thin; }
.editor-toolbar select { flex: 0 0 auto; width: auto; min-width: 155px; min-height: 34px; height: 34px; margin: 0; padding: 5px 34px 5px 10px; border: 1px solid transparent; border-radius: 8px; background-color: transparent; font-size: 13px; font-weight: 600; }
.editor-toolbar select:hover, .editor-toolbar select:focus-visible, .editor-toolbar select:open { border-color: #c8d7ea; background-color: var(--paper); }
.editor-toolbar button { flex: 0 0 auto; min-width: 34px; min-height: 34px; padding: 5px 9px; border: 1px solid transparent; border-radius: 8px; color: #43516a; font-size: 13px; white-space: nowrap; }
.editor-toolbar button:hover { border-color: #c8d7ea; background: var(--paper); color: var(--blue-hover); }
.toolbar-divider { flex: 0 0 1px; width: 1px; height: 24px; margin: 0 3px; background: var(--line-strong); }
.toolbar-spacer { flex: 1 0 10px; }
.editor-link-panel { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 9px; border-right: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: #f8fbff; }
.editor-link-panel[hidden] { display: none; }
.editor-link-panel input { min-width: 0; margin: 0; padding: 9px 11px; }
.editor-link-panel button { min-height: 38px; padding: 7px 12px; }
.editor-table-panel { display: grid; grid-template-columns: 110px 110px 1fr; gap: 12px; padding: 14px; border-right: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: #f8fbff; }
.editor-table-panel[hidden] { display: none; }
.editor-table-panel label { margin: 0; }
.editor-table-panel select, .editor-table-panel input { margin-top: 5px; padding: 9px 10px; }
.table-caption-field { grid-column: 3; grid-row: 1 / span 2; }
.table-header-toggle { display: flex !important; grid-column: 1 / 3; align-items: center; gap: 8px; font-weight: 500 !important; }
.table-header-toggle input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; }
.editor-table-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
.editor-table-actions button { min-height: 38px; padding: 7px 12px; }
.editor-image-panel { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px; border-right: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: #f8fbff; }
.editor-image-panel[hidden] { display: none; }
.inline-image-file { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; margin: 0; }
.inline-image-file input { min-width: 0; margin: 0; padding: 8px; border-radius: 10px; background: var(--paper); }
.inline-image-file small { grid-column: 2; color: var(--muted); font-size: 11px; font-weight: 400; }
.inline-image-preview { display: block; width: 150px; aspect-ratio: 1.35; object-fit: cover; border-radius: 14px; background: var(--canvas); }
.inline-image-fields label:first-child { margin: 0; }
.inline-image-fields .rights-confirm { display: grid; grid-template-columns: 18px 1fr; gap: 8px; margin-top: 12px; color: var(--muted); font-weight: 500; }
.inline-image-fields .rights-confirm input { width: 18px; height: 18px; margin: 2px 0 0; }
.editor-image-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
.editor-image-actions button { min-height: 38px; padding: 7px 12px; }
.rich-editor { min-height: 280px; max-height: 52vh; overflow-y: auto; padding: 18px 20px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 14px 14px; background: var(--paper); font-size: 16px; line-height: 1.7; outline: 0; }
.rich-editor:focus { border-color: #72aaf6; box-shadow: inset 0 0 0 1px #72aaf6; }
.rich-editor[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.rich-editor:empty::before { color: #8691a3; content: attr(data-placeholder); pointer-events: none; }
.rich-editor p, .rich-content p { margin: 0 0 16px; }
.rich-editor h2, .rich-content h2 { margin: 25px 0 10px; font-size: 26px; line-height: 1.22; letter-spacing: -.025em; }
.rich-editor h3, .rich-content h3 { margin: 22px 0 8px; font-size: 20px; line-height: 1.3; }
.rich-editor blockquote, .rich-content blockquote { margin: 22px 0; padding: 14px 17px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #213758; }
.rich-editor ul, .rich-editor ol, .rich-content ul, .rich-content ol { margin: 15px 0 20px; padding-left: 26px; }
.rich-editor li, .rich-content li { margin: 6px 0; }
.rich-editor a, .rich-content a { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.rich-editor figure, .rich-content figure { margin: 26px 0; }
.rich-editor figure img, .rich-content figure img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: contain; border-radius: 16px; background: var(--canvas); }
.rich-editor figcaption, .rich-content figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.rich-editor table { width: 100%; margin: 22px 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.rich-editor caption, .rich-content caption { padding: 13px 15px 11px; border-bottom: 1px solid var(--line); background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.rich-editor th, .rich-editor td, .rich-content th, .rich-content td { min-width: 110px; padding: 12px 14px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich-editor tr > :last-child, .rich-content tr > :last-child { border-right: 0; }
.rich-editor tbody tr:last-child > *, .rich-content tbody tr:last-child > *, .rich-editor > tr:last-child > *, .rich-content table > tr:last-child > * { border-bottom: 0; }
.rich-editor th, .rich-content th { background: var(--blue-soft); color: var(--ink); font-weight: 700; }
.table-scroll { width: 100%; max-width: 100%; margin: 24px 0 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); box-shadow: 0 1px 0 rgba(9,27,54,.03); -webkit-overflow-scrolling: touch; scrollbar-color: #b7c8df transparent; scrollbar-width: thin; }
.table-scroll:focus-visible { outline: 3px solid #5374ef; outline-offset: 3px; }
.table-scroll table { display: table; width: 100%; min-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.table-scroll[data-columns="4"] table { min-width: 560px; }
.table-scroll[data-columns="5"] table { min-width: 700px; }
.table-scroll[data-columns="6"] table { min-width: 840px; }
.table-scroll-hint { display: none; margin: 7px 2px 22px !important; color: var(--muted); font-size: 11px !important; line-height: 1.4 !important; }
.rich-content { min-width: 0; }
.editor-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.editor-meta span:last-child { flex: 0 0 auto; }
.article-copy .rich-content > :first-child, .preview-copy .rich-content > :first-child { margin-top: 0; }
.article-copy .rich-content > :last-child, .preview-copy .rich-content > :last-child { margin-bottom: 0; }
.article-copy .rich-content p { font-size: 17px; line-height: 1.75; white-space: normal; }
.preview-copy .rich-content { font-size: 16px; line-height: 1.7; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.compose-extra { margin-top: 22px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: #fbfcfe; }
.compose-extra-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compose-extra-head > div { display: flex; flex-direction: column; gap: 2px; }
.compose-extra-head span { color: var(--muted); font-size: 12px; }
.compact-upload { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin: 0; padding: 7px 13px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-hover); cursor: pointer; }
.compact-upload input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.compose-image-panel { display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin-top: 17px; }
.compose-image-panel[hidden] { display: none; }
.compose-image-panel img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 13px; background: var(--canvas); }
.compose-image-panel label { margin-top: 0; }
.compose-image-panel .rights-confirm { display: grid; grid-template-columns: 18px 1fr; gap: 9px; margin-top: 13px; color: var(--muted); font-weight: 400; }
.rights-confirm input, .poll-toggle input { width: 18px; height: 18px; margin: 2px 0 0; }
.danger { color: var(--red); }
.poll-toggle { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0; cursor: pointer; }
.poll-toggle span { display: flex; flex-direction: column; gap: 2px; }
.poll-toggle small { color: var(--muted); font-weight: 400; }
#poll-fields { margin-top: 18px; padding-top: 1px; border-top: 1px solid var(--line); }
.poll-options { margin: 20px 0 0; padding: 0; border: 0; }
.poll-options legend { margin-bottom: 9px; font-size: 14px; font-weight: 650; }
.poll-option-row { display: grid; grid-template-columns: 1fr 38px; gap: 8px; margin-top: 8px; }
.poll-option-row input { margin: 0; }
.poll-option-row button { border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 20px; }
.small-action { min-height: 38px; margin-top: 10px; padding: 7px 13px; }
.compose-actions > div { display: flex; gap: 10px; }
.preview-dialog { max-width: 760px; }
.preview-article { margin-top: 12px; }
.preview-article > h2 { margin: 8px 0 18px; font-size: clamp(30px, 5vw, 42px); }
.preview-article > .cover { margin-top: 22px; border-radius: 16px; }
.preview-copy { margin-top: 23px; }
.preview-copy > p { margin-bottom: 18px; font-size: 16px; line-height: 1.7; white-space: pre-line; }

.poll-card { margin: 30px 0; padding: 22px; border: 1px solid #bcd6fb; border-radius: 18px; background: #f8fbff; }
.article-copy .poll-card h2, .poll-card h2 { margin: 7px 0 17px; font-size: 23px; line-height: 1.25; }
.poll-card fieldset { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.poll-card fieldset label { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); cursor: pointer; }
.poll-card fieldset input { width: 18px; height: 18px; margin: 0; }
.poll-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.poll-foot button:not(.primary) { color: var(--blue-hover); font-weight: 650; }
.poll-error { min-height: 18px; margin: 8px 0 0 !important; color: var(--red); font-size: 12px !important; }
.poll-results { display: grid; gap: 15px; }
.poll-result > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.poll-meter { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #dce8f8; }
.poll-meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.poll-preview-option { margin-top: 8px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); }
.preview-poll > p { margin: 13px 0 0; color: var(--muted); font-size: 12px; }

.auth-dialog { max-width: 610px; }
.auth-lead { max-width: 520px; color: var(--muted); font-size: 16px; }
.auth-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.auth-provider { display: grid; grid-template-columns: 42px 1fr; gap: 2px 12px; min-height: 94px; padding: 17px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); text-align: left; }
.auth-provider:hover { border-color: #8ebaf3; background: #f8fbff; }
.auth-provider > span { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; font-size: 14px; font-weight: 800; }
.auth-provider.vk > span { background: #2787f5; }
.auth-provider.yandex > span { background: #fc3f1d; }
.auth-provider.email { grid-column: 1 / -1; min-height: 78px; }
.auth-provider.email > span { background: var(--ink); }
.auth-provider strong { align-self: end; font-size: 14px; }
.auth-provider small { color: var(--muted); }
.auth-prototype-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.auth-back { margin-top: 14px; padding: 0; color: var(--blue-hover); font-size: 13px; }
.auth-email-step h2 { margin-top: 18px; }
.auth-code-input { max-width: 220px; font-size: 28px; font-weight: 750; letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.auth-profile-row { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.auth-avatar-preview, .account-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 22px; background: var(--blue-soft); background-position: center; background-size: cover; color: var(--blue-hover); font-weight: 750; }
.auth-avatar-preview { width: 76px; height: 76px; font-size: 20px; }
.avatar-upload { flex: 1; margin: 0; }
.avatar-upload input { padding: 9px; font-size: 12px; }
.avatar-upload small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.auth-interests { margin: 23px 0 0; padding: 0; border: 0; }
.auth-interests legend { margin-bottom: 10px; font-size: 14px; font-weight: 650; }
#auth-topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
#auth-topic-options label { margin: 0; }
#auth-topic-options input { position: absolute; opacity: 0; pointer-events: none; }
#auth-topic-options span { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
#auth-topic-options input:focus-visible + span { outline: 3px solid #5374ef; outline-offset: 2px; }
#auth-topic-options input:checked + span { border-color: #86b3ef; background: var(--blue-soft); color: var(--blue-hover); }
.auth-consent { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px; margin-top: 23px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.auth-consent input { width: 18px; height: 18px; margin: 2px 0 0; }
.auth-consent a { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 2px; }
#auth-status { min-height: 22px; margin-top: 10px; }
.account-dialog { max-width: 520px; }
.account-head { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.account-avatar { width: 64px; height: 64px; font-size: 18px; }
.account-head h2 { margin: 0 0 4px; }
.account-head p { margin: 0; color: var(--muted); font-size: 13px; }
.account-interests { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--canvas); }
.account-interests span { color: var(--muted); font-size: 12px; }
.account-interests p { margin: 4px 0 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.account-logout { margin-left: auto; }
.profile-user { background-position: center; background-size: cover; }

.site-footer { width: min(1280px, calc(100% - 48px)); display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin: 0 auto; padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; font-weight: 700; }
.footer-brand img { width: 126px; height: auto; }
.footer-brand .brand-divider { height: 18px; }
.footer-brand span { color: var(--blue); }
.site-footer p { margin-top: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer button { padding: 0; color: inherit; font-size: inherit; }
.mobile-services { display: none; }

.role-badge, .verified-label, .verified-badge { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.role-badge { min-height: 22px; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--muted); font-size: 11px; line-height: 1; }
.role-specialist { border-color: #b9d8c6; background: #f2fbf6; color: #11613f; }
.role-company { border-color: #bcd6fb; background: var(--blue-soft); color: var(--blue-hover); }
.role-editorial { background: var(--canvas); color: var(--ink); }
.verified-badge { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; }
.people-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.people-heading h1 { margin-top: 7px; font-size: clamp(34px, 4vw, 50px); line-height: 1.03; letter-spacing: -.04em; }
.people-heading p { max-width: 690px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.people-cta { flex-shrink: 0; display: inline-flex; align-items: center; padding: 0 18px; color: #fff; font-size: 14px; font-weight: 650; }
.people-cta:hover { color: #fff; }
.profile-groups { display: flex; flex-direction: column; gap: 32px; }
.section-heading.compact { margin-bottom: 15px; padding-top: 0; border-top: 0; }
.section-heading.compact h2 { font-size: 25px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper); }
.profile-card-main { display: flex; gap: 14px; color: var(--ink); }
.profile-avatar { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 18px; background: var(--canvas); color: var(--ink); font-size: 15px; font-weight: 750; }
.profile-avatar.profile-company { background: var(--blue); color: #fff; }
.profile-avatar.profile-specialist { background: #eaf7ef; color: #11613f; }
.profile-avatar.profile-editorial { background: var(--ink); color: #fff; }
.profile-avatar.profile-ai { background: #eef5ff; color: #1769cf; }
.profile-card-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-card-top { display: flex; align-items: center; gap: 7px; }
.profile-card-top strong { font-size: 17px; }
.profile-type { color: var(--blue-hover); font-size: 12px; font-weight: 650; }
.profile-bio { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.reputation-list { display: flex; flex-wrap: wrap; gap: 7px; }
.reputation-list span { display: inline-flex; min-height: 27px; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 11px; font-weight: 600; }
.reputation-list.large span { min-height: 32px; padding: 5px 11px; background: #f1f6ff; color: var(--blue-hover); font-size: 12px; }
.profile-page { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper); }
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 32px; }
.profile-hero .profile-avatar { width: 76px; height: 76px; flex-basis: 76px; border-radius: 22px; font-size: 20px; }
.profile-labels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.verified-label { min-height: 22px; padding: 3px 8px; border-radius: 7px; background: var(--blue-soft); color: var(--blue-hover); font-size: 11px; font-weight: 650; }
.profile-identity h1 { font-size: clamp(31px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.profile-city { margin-top: 7px; color: var(--blue-hover)!important; font-size: 13px!important; font-weight: 650; }
.profile-identity > p:last-child { max-width: 690px; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.profile-disclosure { padding: 13px 32px; border-top: 1px solid #cfe0f9; border-bottom: 1px solid #cfe0f9; background: #f5f9ff; color: #38506f; font-size: 12px; line-height: 1.5; }
.profile-columns { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 30px; padding: 6px 32px 32px; }
.profile-section { padding-top: 26px; }
.profile-section + .profile-section { margin-top: 25px; border-top: 1px solid var(--line); }
.profile-section h2, .profile-aside h2 { font-size: 21px; line-height: 1.25; }
.section-note { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.service-list span { padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 13px; }
.profile-materials { display: flex; flex-direction: column; margin-top: 11px; }
.profile-materials a { display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-top: 1px solid var(--line); }
.profile-materials a span { color: var(--blue-hover); font-size: 11px; font-weight: 650; text-transform: uppercase; }
.profile-materials a strong { color: var(--ink); font-size: 16px; line-height: 1.35; }
.profile-aside { align-self: start; margin-top: 26px; padding: 18px; border-radius: 16px; background: var(--canvas); }
.profile-aside p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.review-section, .profile-page > .profile-section:last-child { margin: 0 32px 32px; padding-top: 27px; border-top: 1px solid var(--line-strong); }
.profile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-section-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.review-empty { margin-top: 15px; padding: 18px; border-radius: 14px; background: var(--canvas); color: var(--muted); font-size: 13px; line-height: 1.55; }
.profile-review { margin-top: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; }
.profile-review .review-meta { margin-top: 11px; color: var(--blue-hover); font-size: 12px; font-weight: 650; }
.profile-review > p { margin-top: 7px; font-size: 14px; line-height: 1.6; }
.business-page { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--paper); }
.business-page > header { padding: 42px; background: var(--ink); color: #fff; }
.business-page > header .eyebrow { color: #9fc5ff; }
.business-page > header h1 { max-width: 740px; margin-top: 12px; color: #fff; font-size: clamp(37px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.business-page > header p { max-width: 670px; margin-top: 17px; color: #cbd6e6; font-size: 17px; line-height: 1.6; }
.business-page > header button { margin-top: 25px; background: #fff; color: var(--ink); }
.business-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.business-benefits article { min-height: 210px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.business-benefits article:nth-child(2n) { border-right: 0; }
.business-benefits article > span { color: var(--blue-hover); font-size: 12px; font-weight: 750; }
.business-benefits h2 { margin-top: 20px; font-size: 23px; }
.business-benefits p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.business-benefits small { display: block; margin-top: 13px; color: #748195; font-size: 11px; line-height: 1.5; }
.business-benefits .ai-visibility-benefit { grid-column: 1 / -1; min-height: 0; border-right: 0; background: #f5f9ff; }
.business-rules { display: grid; grid-template-columns: minmax(230px, .7fr) 1.3fr; gap: 34px; padding: 34px 40px; border-bottom: 1px solid var(--line); }
.business-rules h2 { margin-top: 7px; font-size: 28px; }
.business-rules > p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.business-steps { padding: 38px 40px 42px; }
.business-steps > h2 { font-size: 30px; }
.business-steps ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 20px 0 28px; padding-left: 20px; }
.business-steps li { padding-left: 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.business-steps strong { color: var(--ink); }
.rules-page { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--paper); }
.rules-page > header { padding: 40px; border-bottom: 1px solid var(--line); }
.rules-page > header h1 { max-width: 760px; margin-top: 9px; font-size: clamp(36px, 5vw, 56px); line-height: 1.03; letter-spacing: -.045em; }
.rules-page > header > p { max-width: 720px; margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules-grid section { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-grid section:nth-child(2n) { border-right: 0; }
.rules-grid section > span { color: var(--blue-hover); font-size: 12px; font-weight: 750; }
.rules-grid h2 { margin-top: 18px; font-size: 23px; }
.rules-grid p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.rules-moderation { display: grid; grid-template-columns: minmax(250px, .9fr) 1.1fr; gap: 34px; padding: 36px 40px 40px; }
.rules-moderation h2 { margin-top: 8px; font-size: 28px; line-height: 1.2; }
.rules-moderation > p { color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 1240px) {
  .ecosystem-nav { display: none; }
  .search { width: min(360px, 36vw); }
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
  .card.featured { grid-template-columns: minmax(0, 1fr) 320px; }
  .card.featured h2 { font-size: 29px; }
  .front-grid { grid-template-columns: 222px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .layout { display: block; }
  .rightbar { position: static; display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .tools-box { grid-column: 1 / -1; }
  .search { width: auto; flex: 1; }
  .card.featured { grid-template-columns: minmax(0, 1fr) 44%; }
  .front-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .profile-columns { grid-template-columns: 1fr; }
  .profile-aside { margin-top: 0; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 122px; }
  .header { position: sticky; top: 0; z-index: 20; }
  .header-inner, .preview-note, .page-shell, .site-footer { width: calc(100% - 32px); }
  .header-main { min-height: 70px; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
  .brand-lockup { gap: 7px; }
  .gid-logo { width: 122px; }
  .life-word { font-size: 17px; }
  .brand-divider { height: 19px; }
  .profile-button { display: none; }
  .write { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .write span { font-size: 23px; }
  .search { order: 2; width: 100%; flex-basis: 100%; padding: 8px 1px; }
  .preview-note { align-items: flex-start; padding-top: 10px; font-size: 11px; line-height: 1.45; }
  .page-shell { padding: 18px 0 48px; }
  .main-nav { gap: 23px; margin-right: -16px; padding-right: 16px; }
  .main-nav a { min-height: 44px; font-size: 13px; }
  .topic-nav { gap: 18px; margin-right: -16px; padding: 12px 16px 22px 0; }
  .topic-nav a { min-height: 26px; font-size: 12px; }
  .front-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
  .front-heading h1 { font-size: 36px; }
  .front-heading > span { padding: 0; font-size: 11px; }
  .front-grid { grid-template-columns: 1fr; grid-template-areas: "lead" "latest"; gap: 18px; margin-bottom: 30px; }
  .lead-image { aspect-ratio: 16 / 9.2; }
  .lead-story-body { padding: 21px 20px 22px; }
  .lead-story h2 { font-size: 30px; }
  .lead-story p { font-size: 15px; }
  .latest-panel { padding-bottom: 3px; }
  .latest-item { grid-template-columns: 40px 1fr; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 25px; }
  .news-intro { align-items: flex-start; flex-direction: column; gap: 7px; }
  .news-row { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 20px 0; }
  .news-row-meta { align-items: center; flex-direction: row; }
  .news-row-body h2 { font-size: 23px; }
  .news-ad-row { margin: 0 -16px; padding: 20px 16px; }
  .news-ad-row .ad-placeholder { grid-template-columns: 1fr; text-align: center; }
  .news-ad-row .ad-placeholder-mark { grid-row: auto; margin: 0 auto 10px; }
  .page-heading { min-height: auto; align-items: flex-end; margin: 0 0 16px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading > span { font-size: 11px; }
  .feed-tabs { gap: 20px; margin: 0 0 18px; }
  .feed { grid-template-columns: 1fr; gap: 14px; }
  .card, .card.featured { grid-column: auto; display: flex; min-height: 0; border-radius: 20px; }
  .ad-card { min-height: 310px; }
  .card.featured .card-body, .card-body { padding: 22px 20px 10px; }
  .card.featured > a[aria-hidden="true"] { min-height: 0; }
  .card.featured .cover { height: auto; min-height: 0; margin-top: 8px; border-top: 1px solid var(--line); border-left: 0; aspect-ratio: 1.55; }
  .card h2, .card:not(.featured) h2, .card.featured h2 { font-size: 25px; }
  .card .excerpt { font-size: 15px; }
  .card-footer { min-height: 55px; padding: 10px 20px; gap: 14px; }
  .rightbar { display: none; }
  .people-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: auto 1fr; gap: 15px; padding: 22px 20px; }
  .profile-hero > button { grid-column: 1 / -1; width: 100%; }
  .profile-hero .profile-avatar { width: 60px; height: 60px; flex-basis: 60px; border-radius: 18px; font-size: 16px; }
  .profile-disclosure { padding: 12px 20px; }
  .profile-columns { padding: 4px 20px 24px; }
  .service-list { grid-template-columns: 1fr; }
  .review-section, .profile-page > .profile-section:last-child { margin: 0 20px 24px; }
  .profile-section-head { align-items: flex-start; flex-direction: column; }
  .business-page > header { padding: 32px 22px; }
  .business-benefits { grid-template-columns: 1fr; }
  .business-benefits article, .business-benefits article:nth-child(2n) { min-height: 0; border-right: 0; }
  .business-benefits .ai-visibility-benefit { grid-column: auto; }
  .business-rules { grid-template-columns: 1fr; gap: 15px; padding: 28px 22px; }
  .business-steps { padding: 30px 22px 34px; }
  .business-steps ol { grid-template-columns: 1fr; }
  .rules-page > header { padding: 32px 22px; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid section, .rules-grid section:nth-child(2n) { min-height: 0; border-right: 0; }
  .rules-moderation { grid-template-columns: 1fr; gap: 16px; padding: 30px 22px 34px; }
  .topic-summary { align-items: flex-start; flex-direction: column; padding: 16px; }
  .article { border-radius: 20px; }
  .article-head { padding: 27px 21px 22px; }
  .article h1 { font-size: 34px; }
  .article .lead { font-size: 18px; }
  .image-caption { margin: 8px 21px 0; }
  .article-copy { padding: 23px 21px 28px; }
  .article-copy p { font-size: 16px; }
  .article-copy blockquote { padding: 17px; font-size: 19px; }
  .comments { padding: 25px 21px; border-radius: 20px; }
  .reply-form .reply-bottom { align-items: stretch; flex-direction: column; }
  .reply-bottom .primary { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 28px 0 40px; }
  .site-footer nav { flex-direction: column; gap: 12px; }
  .following-card { padding: 6px 18px; }
  dialog { max-height: 93dvh; padding: 23px; border-radius: 20px; }
  dialog h2 { font-size: 28px; }
  .form-row { gap: 10px; }
  .form-row select { font-size: 14px; }
  .dialog-bottom { align-items: stretch; flex-direction: column-reverse; }
  .dialog-bottom button { min-height: 44px; }
}

@media (max-width: 640px) {
  .profile-button { display: inline-flex; width: 40px; height: 40px; }
  .theme-toggle { width: 48px; flex-basis: 48px; }
  .auth-dialog { padding: 22px; }
  .auth-providers { grid-template-columns: 1fr; }
  .auth-provider { min-height: 82px; }
  .auth-profile-row { align-items: flex-start; }
  .auth-avatar-preview { width: 64px; height: 64px; border-radius: 18px; }
  .account-actions { flex-direction: column; }
  .account-actions > * { width: 100%; }
  .account-logout { margin-left: 0; }
  .compose-dialog { padding: 20px; }
  .editor-toolbar { align-items: center; flex-wrap: nowrap; margin-right: -4px; }
  .toolbar-spacer { flex: 0 0 2px; }
  .editor-link-panel { grid-template-columns: 1fr 1fr; }
  .editor-link-panel input { grid-column: 1 / -1; }
  .editor-table-panel { grid-template-columns: 1fr 1fr; }
  .table-caption-field { grid-column: 1 / -1; grid-row: auto; }
  .table-header-toggle { grid-column: 1 / -1; }
  .editor-image-panel { grid-template-columns: 1fr; }
  .inline-image-file { grid-template-columns: 1fr; }
  .inline-image-file small { grid-column: 1; }
  .inline-image-preview { width: 100%; max-height: 220px; }
  .inline-image-fields { grid-column: 1; }
  .rich-editor figure img, .rich-content figure img { border-radius: 14px; }
  .table-scroll { border-radius: 14px; }
  .table-scroll[data-columns="3"] table { min-width: 420px; }
  .table-scroll[data-columns="3"] + .table-scroll-hint, .table-scroll[data-columns="4"] + .table-scroll-hint, .table-scroll[data-columns="5"] + .table-scroll-hint, .table-scroll[data-columns="6"] + .table-scroll-hint { display: block; }
  .rich-editor { min-height: 235px; max-height: 45vh; padding: 16px; }
  .editor-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .compose-image-panel { grid-template-columns: 1fr; }
  .compose-image-panel img { max-height: 220px; }
  .compose-actions > div { display: grid; }
  .poll-card { margin: 24px 0; padding: 18px; }
  .poll-foot { align-items: stretch; flex-direction: column; }
  .poll-foot .primary { width: 100%; }
}

html[data-theme="dark"] body { background: #09131f; }
html[data-theme="dark"] .header { background: #0d1825; }
html[data-theme="dark"] .gid-logo-light-theme { display: none; }
html[data-theme="dark"] .gid-logo-dark-theme { display: block; }
html[data-theme="dark"] .theme-toggle { background: #263545; }
html[data-theme="dark"] .theme-thumb { background: #f0f5fb; box-shadow: 0 2px 8px rgba(0,0,0,.45); transform: translateX(22px); }
html[data-theme="dark"] .theme-sun { color: #8797aa; }
html[data-theme="dark"] .theme-moon { color: #172536; }
html[data-theme="dark"] .secondary { border-color: #385779; background: #142236; color: var(--blue-hover); }
html[data-theme="dark"] .secondary:hover { background: #1a2c43; }
html[data-theme="dark"] .profile-button { border-color: var(--line-strong); background-color: var(--canvas); color: var(--ink); }
html[data-theme="dark"] .search input { color: var(--ink); }
html[data-theme="dark"] .search input::placeholder { color: #8090a4; }
html[data-theme="dark"] .question-card,
html[data-theme="dark"] .ad-card,
html[data-theme="dark"] .news-ad-row { background: #0f1a27; }
html[data-theme="dark"] .business-side,
html[data-theme="dark"] .business-page > header { background: #07111c; }
html[data-theme="dark"] .business-side h2,
html[data-theme="dark"] .business-page > header h1 { color: #f5f8fc; }
html[data-theme="dark"] .business-page > header button { background: #f3f7fc; color: #091b36; }
html[data-theme="dark"] .article,
html[data-theme="dark"] .comments,
html[data-theme="dark"] dialog { background: var(--paper); }
html[data-theme="dark"] dialog::backdrop { background: rgba(0,5,12,.72); }
html[data-theme="dark"] .reply-form textarea,
html[data-theme="dark"] dialog input,
html[data-theme="dark"] dialog select,
html[data-theme="dark"] dialog textarea { background-color: #162333; }
html[data-theme="dark"] .reply-form textarea:focus,
html[data-theme="dark"] dialog input:focus,
html[data-theme="dark"] dialog select:focus,
html[data-theme="dark"] dialog textarea:focus { background: #19293a; }
html[data-theme="dark"] .editor-toolbar { background: #101b28; }
html[data-theme="dark"] .editor-link-panel,
html[data-theme="dark"] .editor-table-panel,
html[data-theme="dark"] .editor-image-panel { background: #0d1926; }
html[data-theme="dark"] .editor-toolbar button { color: #aab8ca; }
html[data-theme="dark"] .editor-toolbar button:hover,
html[data-theme="dark"] .editor-toolbar select:hover,
html[data-theme="dark"] .editor-toolbar select:focus-visible,
html[data-theme="dark"] .editor-toolbar select:open { background: #182637; }
html[data-theme="dark"] .compose-extra { background: #0e1926; }
html[data-theme="dark"] .rich-editor blockquote,
html[data-theme="dark"] .rich-content blockquote { color: #c9dbef; }
html[data-theme="dark"] .rich-editor caption,
html[data-theme="dark"] .rich-content caption { background: #142131; }
html[data-theme="dark"] .related-tool,
html[data-theme="dark"] .poll-card,
html[data-theme="dark"] .auth-provider:hover,
html[data-theme="dark"] .profile-disclosure,
html[data-theme="dark"] .business-benefits .ai-visibility-benefit { border-color: #315176; background: #111f30; }
html[data-theme="dark"] .profile-disclosure { color: #b3c6dd; }
html[data-theme="dark"] .poll-meter { background: #293b50; }
html[data-theme="dark"] .profile-avatar.profile-editorial { background: #07111c; }
html[data-theme="dark"] .profile-avatar.profile-specialist { background: #153126; color: #7bd4aa; }
html[data-theme="dark"] .profile-avatar.profile-ai { background: #172b45; color: #7db7ff; }
html[data-theme="dark"] .role-specialist { border-color: #315e4a; background: #142d23; color: #7bd4aa; }
html[data-theme="dark"] .reputation-list.large span { background: #162a43; }
html[data-theme="dark"] #toast { background: #dcecff; color: #091b36; }
html[data-theme="dark"] ::picker(select) { border-color: var(--line-strong); background: #121f2d; box-shadow: 0 18px 50px rgba(0,0,0,.42); }
html[data-theme="dark"] dialog option:hover,
html[data-theme="dark"] dialog option:focus-visible { background: #1a2b3e; }
html[data-theme="dark"] dialog option:checked { background: #193659; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .theme-wipe { display: none; }
}
