:root {
  color-scheme: dark;
  --bg: #151617;
  --surface: #1d1e20;
  --raised: #242527;
  --line: #333438;
  --text: #f6f4f1;
  --muted: #b5b3b2;
  --orange: #ff7942;
  --orange-light: #ff9466;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
img { display: block; width: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1760px, calc(100% - clamp(52px, 4.5vw, 96px))); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 8px 14px; background: var(--orange); color: #151515; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { background: #171819; border-bottom: 1px solid #303031; position: relative; z-index: 2; }
.header-inner, .footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 1.42rem; line-height: 1; font-weight: 800; letter-spacing: -.9px; }
.logo span span { color: var(--text); }
.logo .logo-dot { color: var(--orange); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--orange); color: #191919; }
.logo-mark svg { width: 23px; height: 23px; }
nav { display: flex; align-items: center; gap: clamp(16px,3vw,41px); }
nav a { display: flex; align-items: center; min-height: 73px; color: #c5c3c1; font-size: .94rem; font-weight: 600; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); border-color: var(--orange); }
.header-actions { display: flex; gap: 10px; }
.header-actions .profile-button { min-height: 42px; padding-inline: 10px; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; position: relative; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); }
.icon-button:hover, .icon-button[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }
.icon-button[aria-pressed="true"] svg { fill: currentColor; }
.icon-button span, .button span, .meta span, .eyebrow span { display: inline-flex; align-items: center; }
svg { width: 20px; height: 20px; }
.count-dot { font: 700 .68rem var(--mono); position: absolute; right: -5px; top: -5px; min-width: 17px; min-height: 17px; padding: 1px 4px; border-radius: 12px; background: var(--orange); color: #181818; }
.menu { display: none; }
.hero { isolation: isolate; position: relative; overflow: hidden; background: #141415; border-bottom: 1px solid #3a302c; }
.hero-picture { position: absolute; width: 74%; height: 100%; right: 0; top: 0; object-position: 59% 53%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #151516 0%, #151516 19%, #151516ed 32%, #1515169c 46%, transparent 70%), linear-gradient(0deg,#15151665,transparent 25%); }
.hero-inner { display: flex; align-items: center; min-height: 492px; padding-block: 54px 64px; }
.hero-copy { max-width: 615px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange-light); font: 700 .78rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 2px; background: var(--orange); flex: none; }
.hero h1 { margin: 16px 0 20px; font-size: clamp(3.45rem, 6.45vw, 6.25rem); line-height: .99; letter-spacing: -.074em; font-weight: 800; }
.hero h1 span { color: var(--orange); }
.hero p { color: #d5d0cc; max-width: 470px; font-size: 1.06rem; line-height: 1.62; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 9px 16px; border: 1px solid #48484a; border-radius: 8px; background: #212224; color: var(--text); font-size: .94rem; font-weight: 700; line-height: 1.3; }
.button:hover { background: #2f3032; border-color: #777; }
.button.primary { background: var(--orange); border-color: var(--orange); color: #1a1512; }
.button.primary:hover { background: var(--orange-light); border-color: var(--orange-light); }
.button.subtle { background: transparent; min-height: 40px; }
.button svg { width: 18px; height: 18px; }
.section { padding-block: 47px 56px; }
.section.divider { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-head h2, .split-title h2 { font-size: clamp(1.95rem,3.2vw,2.7rem); font-weight: 780; line-height: 1.12; letter-spacing: -.048em; }
.section-head .eyebrow { margin-bottom: 7px; }
.page-head { padding: 52px 0 27px; }
.page-head h1 { font-size: clamp(2.7rem, 7vw, 5.1rem); line-height: 1.03; letter-spacing: -.066em; margin: 6px 0 12px; }
.page-head p, .intro { color: var(--muted); max-width: 690px; }
.page-content { padding-bottom: 60px; min-height: 48vh; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 19px; }
.chip { background: #202123; border: 1px solid var(--line); min-height: 35px; padding: 4px 13px; border-radius: 6px; color: #d2d0cd; font-size: .875rem; font-weight: 650; }
.chip:hover { border-color: var(--orange); }
.chip[aria-pressed="true"] { color: var(--orange-light); border-color: #92543c; background: #39271f; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; position: relative; }
.card:hover { border-color: #5e5651; }
.card-image { display: block; position: relative; overflow: hidden; background: #262526; }
.card-image img { aspect-ratio: 1.7; transition: transform .28s ease; }
.card-image:hover img { transform: scale(1.045); }
.card .save { position: absolute; right: 11px; top: 11px; background: #1b1b1de8; width: 38px; height: 38px; }
.card .save svg { width: 17px; height: 17px; }
.image-tag { position: absolute; left: 12px; bottom: 12px; background: #141416eb; border: 1px solid #555; border-radius: 5px; padding: 2px 8px; font: 700 .73rem/1.7 var(--mono); color: #f0e8df; }
.card-body { padding: 16px 17px 17px; }
.card-body h3 { font-size: 1.12rem; line-height: 1.32; margin-bottom: 5px; letter-spacing: -.02em; }
.card-body p { color: var(--muted); font-size: .91rem; line-height: 1.55; }
.card h3 a:hover, .list-title:hover, .inline:hover { color: var(--orange-light); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .85rem; }
.meta svg { width: 15px; height: 15px; margin-right: 5px; color: var(--orange-light); }
.card-body .meta { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 13px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.split-title { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.inline { font-size: .9rem; color: var(--orange-light); font-weight: 700; }
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { padding: 15px 8px; min-height: 70px; display: flex; align-items: center; gap: 15px; }
.list a:hover { background: var(--surface); }
.list-icon { color: var(--orange-light); background: #35271f; border-radius: 7px; width: 39px; height: 39px; flex: none; display: grid; place-items: center; }
.list-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.list-details { flex: 1; }
.list-details small { color: var(--muted); display: block; font-size: .84rem; margin-top: 3px; }
.list-aside { color: var(--muted); font: .78rem var(--mono); text-align: right; flex: none; }
.catalog-tools, .catalog-inputs { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.catalog-tools { justify-content: space-between; margin: 0 0 15px; }
.catalog-tools .filter-bar { margin: 0; }
.catalog-inputs { margin: 0 0 18px; }
.catalog-status:not(:empty) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.field { display: grid; gap: 5px; font-size: .88rem; font-weight: 650; }
.field.search-field { flex: 1; min-width: min(100%,220px); }
input, select, textarea { width: 100%; border: 1px solid #48494c; border-radius: 7px; background: #1d1e20; padding: 9px 12px; min-height: 44px; }
select { appearance: none; padding-right: 35px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23cfc9c4' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
textarea { resize: vertical; min-height: 112px; }
::placeholder { color: #a5a3a0; }
.result-count { color: var(--muted); margin-bottom: 13px; font-size: .88rem; }
.empty { grid-column: 1 / -1; padding: 25px; color: var(--muted); border: 1px dashed #4d4b4a; border-radius: 9px; }
.empty .button { margin-top: 12px; }
.model-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0,1fr); gap: 28px; align-items: start; }
.viewer, .panel, .reply { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.viewer { position: relative; overflow: hidden; }
.viewer canvas { display:block; width: 100%; height: clamp(270px, 40vw, 450px); touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.viewer-bar p, .note { color: var(--muted); font-size: .88rem; }
.viewer-buttons { display: inline-flex; gap: 6px; }
.viewer-buttons .icon-button { width: 38px; height: 38px; }
#viewer-state { position:absolute; top: 13px; left: 15px; right: 15px; color: var(--muted); }
.panel { padding: 21px; }
.panel h2, .article h2 { font-size: 1.32rem; line-height: 1.3; letter-spacing: -.025em; }
.panel p, .article p { margin-block: 9px 15px; color: var(--muted); }
.specs { margin: 15px 0; }
.specs div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 650; }
.breadcrumb { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--muted); }
.breadcrumb:hover { color: var(--orange-light); }
.breadcrumb svg { width: 15px; height: 15px; }
.article > * { max-width: 820px; }
.article img { max-height: 370px; aspect-ratio: 1.8; border-radius: 10px; margin: 0 0 24px; }
.article h2:not(:first-child) { margin-top: 20px; }
.article ul, .article ol { color: var(--muted); padding-left: 23px; }
.reply-list { display: grid; gap: 10px; margin: 16px 0 22px; }
.reply { padding: 12px 16px; }
.reply small { color: var(--muted); display: block; font-size: .84rem; }
.reply p, .thread-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-text { margin: 12px 0 23px; }
.form { display: grid; gap: 13px; }
.form .button { justify-self: start; }
.site-footer { border-top: 1px solid var(--line); background: #191a1c; }
.footer-inner { min-height: 98px; }
.footer-inner p { color: var(--muted); font-size: .91rem; }
.footer-inner div { display: flex; gap: 18px; font-size: .9rem; }
.footer-inner div a:hover { color: var(--orange); }
dialog { width: min(650px,calc(100% - 30px)); color: var(--text); max-height: 87dvh; border: 1px solid #4c4845; background: #202123; border-radius: 12px; padding: 24px; }
dialog::backdrop { background: #000b; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.dialog-head h2 { line-height: 1.2; }
#search-results { margin-top: 15px; }
.toast { position: fixed; z-index: 4; right: 19px; bottom: 19px; padding: 11px 16px; border: 1px solid #85513a; background: #35271f; color: var(--text); border-radius: 8px; max-width: calc(100% - 38px); box-shadow: 0 7px 25px #0006; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 52px); }
  .header-actions .profile-button { width: 42px; padding: 0; }
  .profile-button .profile-button-label { display: none; }
  .hero-inner { min-height: 440px; }
  .hero-picture { width: 80%; }
  .hero::after { background: linear-gradient(90deg,#151516 0%,#151516ef 23%,#151516b0 44%,transparent 91%); }
  .split { gap: 24px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .menu { display: inline-grid; }
  nav { display: none; position: absolute; inset: 64px 0 auto; background: #1c1d1f; padding: 5px 16px 12px; border-bottom: 1px solid var(--line); }
  nav.open { display: grid; gap: 0; }
  nav a { min-height: 45px; }
  .hero-inner { min-height: 500px; align-items: end; padding: 130px 0 32px; }
  .hero-picture { width: 100%; height: 100%; object-position: 69% 45%; }
  .hero::after { background: linear-gradient(0deg,#151516 0%,#151516ef 23%,#151516a5 52%,#15151635 84%); }
  .hero h1 { font-size: clamp(3.25rem,11vw,4.7rem); }
  .hero p { font-size: 1rem; }
  .grid, .model-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .model-layout, .split { grid-template-columns: 1fr; }
  .section { padding-block: 34px 40px; }
  .footer-inner { padding-block: 20px; flex-wrap: wrap; gap: 12px 25px; }
}
@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 16px; }
  .hero .action-row { gap: 8px; }
  .hero .action-row .button { padding-inline: 11px; font-size: .88rem; }
  .header-actions { gap: 5px; }
  .header-actions .icon-button { width: 37px; height: 37px; }
  .header-actions .profile-button { width: 37px; min-height: 37px; }
  .catalog-inputs .field.search-field { flex-basis: 100%; }
  .list-aside { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.forum-account {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.forum-account > div { flex: 1; }
.forum-account p { margin: 4px 0 0; }
.registration-intro { color: var(--muted); margin-bottom: 16px; }
.form [aria-invalid="true"] { border-color: #ff927c; }
.form-error { color: #ffab98; font-size: .94rem; }
.form-error:empty { display: none; }
.button:disabled { cursor: wait; opacity: .7; }
@media (max-width: 520px) {
  .forum-account { flex-wrap: wrap; }
  .forum-account .button { flex-basis: 100%; }
}

.forum-account .forum-auth-actions {
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .forum-account .forum-auth-actions { flex-basis: 100%; }
}

.project-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-tabs a { display: inline-flex; align-items: center; }
.project-tabs [aria-current="page"] {
  color: var(--orange-light);
  border-color: #92543c;
  background: #39271f;
}
.community-actions, .community-download {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 16px;
}
.community-description, .community-feedback { max-width: 970px; }
.community-description .community-download { margin-bottom: 0; }
.community-description .community-download .note { overflow-wrap: anywhere; }
.community-feedback { margin-top: 30px; }
.community-card h3 { overflow-wrap: anywhere; }
.community-card .community-summary {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.community-review strong { color: var(--orange-light); }
.community-review small { overflow-wrap: anywhere; }
.community-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) {
  .community-fields { grid-template-columns: 1fr; }
}
.community-feed-note { margin-bottom: 12px; }
.community-feed { margin-top: 14px; }
.external-catalogs { align-items: center; }
.external-source { margin-top: 22px; }
.external-source h2 { font-size: 1.25rem; }
.external-link { display: block; height: 100%; }
.external-link:focus-visible { outline-offset: -4px; }
.external-link:hover h3 { color: var(--orange-light); }
.external-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
.external-preview img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
  background: var(--raised);
}
.external-card .inline { display: inline-block; margin-top: 10px; }
.admin-results { display: grid; gap: 12px; list-style: none; padding: 0; }
.admin-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-content { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.admin-content h2 { font-size: 1.05rem; }
.admin-content details { margin-top: 6px; }
.admin-content summary { cursor: pointer; }
.admin-content details p { margin-top: 8px; }
.admin-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
