:root {
  --ink: #151b25;
  --navy: #1e2531;
  --navy-soft: #252e3d;
  --navy-light: #303a4b;
  --orange: #d88d20;
  --orange-bright: #efa332;
  --orange-soft: #edb059;
  --cream: #f6f3ec;
  --white: #ffffff;
  --muted: #aeb5c0;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 80px rgba(4, 8, 14, 0.32);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 27, 37, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}

.brand img { width: 170px; height: auto; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.brand-section {
  color: var(--orange-soft);
  font-family: Heebo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  color: #d5d9df;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--orange);
  border-radius: 99px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--white); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .nav-link:focus-visible, .github-link:focus-visible, .text-link:focus-visible, .brand:focus-visible {
  outline: 3px solid rgba(237, 176, 89, 0.55);
  outline-offset: 4px;
}
.button-small { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.button-outline { border-color: rgba(237, 176, 89, 0.55); color: var(--orange-soft); }
.button-outline:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.button-primary { background: var(--orange); color: var(--white); box-shadow: 0 14px 30px rgba(216, 141, 32, 0.2); }
.button-primary:hover { background: var(--orange-bright); box-shadow: 0 18px 36px rgba(216, 141, 32, 0.3); }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { background: var(--cream); }

.catalogue-intro {
  position: relative;
  overflow: hidden;
  padding: 96px 0 82px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 60% -20%, rgba(216, 141, 32, .15), transparent 45%),
    var(--ink);
  background-size: 48px 48px, 48px 48px, auto, auto;
}
.catalogue-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,141,32,.55), transparent);
}
.intro-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.intro-glow-one { width: 380px; height: 380px; top: -250px; right: 8%; border: 1px solid rgba(216,141,32,.2); box-shadow: 0 0 100px rgba(216,141,32,.08) inset; }
.intro-glow-two { width: 160px; height: 160px; bottom: -100px; left: 3%; border: 1px solid rgba(255,255,255,.06); }
.intro-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; align-items: end; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--orange-soft);
  font-family: Heebo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.intro-copy h1 {
  margin: 0;
  max-width: 790px;
  font-family: Heebo, sans-serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .99;
}
.intro-copy h1 strong { color: var(--orange); font-weight: 800; }
.intro-text { max-width: 680px; margin: 28px 0 0; color: #bdc4ce; font-size: 18px; }
.intro-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.count-card { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.count { color: var(--orange-soft); font-family: Heebo, sans-serif; font-size: 44px; font-weight: 800; line-height: 1; }
.count-label { color: #cbd0d7; font-size: 12px; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }
.intro-meta > p { margin: 0; color: #8f98a6; font-size: 14px; text-align: right; line-height: 1.7; }
.intro-meta strong { color: var(--white); }

.projects-section { padding: 92px 0 100px; background: var(--navy); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-kicker { margin-bottom: 8px; }
.section-heading h2, .submit-copy h2 {
  margin: 0;
  font-family: Heebo, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.025em;
  line-height: 1.08;
}
.section-summary { max-width: 420px; margin: 0 0 5px; color: var(--muted); text-align: right; }
.project-list { display: grid; gap: 28px; }
.project-card {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #26303f, #202834);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(237,176,89,.25); box-shadow: 0 36px 90px rgba(4,8,14,.42); }
.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 55px 44px;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid var(--line);
  background: #171d27;
}
.project-visual::before { content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .35; }
.btc-visual::before { background: var(--orange); }
.aurora-visual::before { background: #3d76a5; }
.visual-grid { position: absolute; inset: 0; z-index: -2; opacity: .42; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, black, transparent 96%); }
.project-number { position: absolute; top: 22px; left: 26px; color: rgba(255,255,255,.14); font-family: Heebo, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .15em; }
.device { position: relative; width: min(100%, 330px); padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: linear-gradient(145deg, #3b4350, #181d25 65%); box-shadow: 0 28px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16); transform: perspective(900px) rotateY(7deg) rotateX(2deg); }
.device-camera { position: absolute; top: 6px; left: 50%; z-index: 2; width: 6px; height: 6px; border-radius: 50%; background: #05080c; box-shadow: 0 0 0 2px rgba(255,255,255,.05); }
.device-screen { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 3px solid #090c10; border-radius: 10px; background: #0b0e13; }
.btc-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); font-family: Heebo, sans-serif; }
.btc-screen::after { content: ""; position: absolute; inset: auto 8% 12% 8%; height: 3px; border-radius: 10px; background: linear-gradient(90deg, var(--orange) 70%, rgba(255,255,255,.12) 70%); }
.btc-screen img { width: 76px; height: 76px; margin-bottom: 8px; object-fit: contain; }
.btc-screen span { color: var(--orange-soft); font-size: 20px; font-weight: 800; letter-spacing: .12em; }
.btc-screen small { color: #8f98a5; font-size: 10px; letter-spacing: .08em; }
.aurora-screen img { width: 100%; height: 100%; object-fit: cover; }
.photo-screen img { width: 100%; height: 100%; object-fit: cover; }
.hardware-label { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 34px); padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: #aeb6c2; background: rgba(15,19,26,.7); font-size: 10px; font-weight: 700; line-height: 1.35; letter-spacing: .12em; text-align: center; overflow-wrap: anywhere; backdrop-filter: blur(8px); }
.project-content { display: flex; flex-direction: column; justify-content: center; padding: 54px 58px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.project-tags span { padding: 5px 10px; border: 1px solid rgba(237,176,89,.24); border-radius: 99px; color: var(--orange-soft); background: rgba(216,141,32,.07); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.project-content h3 { margin: 0 0 16px; color: var(--orange-bright); font-family: Heebo, sans-serif; font-size: clamp(32px, 3.2vw, 45px); line-height: 1.08; letter-spacing: -.025em; }
.project-description { margin: 0; color: #c9ced5; font-size: 16px; line-height: 1.75; }
.project-features { display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 24px 0 34px; padding: 0; list-style: none; }
.project-features li { position: relative; padding-left: 17px; color: #99a2ae; font-size: 12px; font-weight: 600; }
.project-features li::before { content: ""; position: absolute; top: .68em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(216,141,32,.1); }
.project-features + .project-footer { margin-top: 0; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.project-credits { display: flex; align-items: center; gap: 14px; }
.github-link { display: inline-flex; align-items: center; gap: 7px; color: #d5d9df; font-size: 12px; font-weight: 700; text-decoration: none; }
.github-link:hover { color: var(--white); }
.github-link img { width: 22px; height: 22px; border-radius: 50%; filter: invert(1); opacity: .9; }
.credit-separator { width: 1px; height: 25px; background: var(--line); }
.author { display: inline-flex; align-items: center; gap: 8px; color: #929ca9; font-size: 11px; }
.author strong { color: #dfe3e8; font-weight: 700; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(237,176,89,.3); border-radius: 50%; color: var(--orange-soft); background: rgba(216,141,32,.1); font-family: Heebo, sans-serif; font-size: 11px; font-weight: 800; }

.submit-section { padding: 0 0 100px; background: var(--navy); }
.submit-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 34px; overflow: hidden; padding: 52px 56px; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(120deg, #c97913, #df9629 55%, #eba73d); box-shadow: 0 30px 70px rgba(8,12,18,.3); }
.submit-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 0%, rgba(255,255,255,.22), transparent 32%), linear-gradient(90deg, rgba(0,0,0,.08), transparent 50%); pointer-events: none; }
.submit-icon, .submit-copy, .submit-actions { position: relative; z-index: 1; }
.submit-icon { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; background: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transform: rotate(-4deg); }
.submit-icon span { font-family: Heebo, sans-serif; font-size: 44px; font-weight: 400; line-height: 1; }
.section-kicker.light { margin-bottom: 6px; color: rgba(255,255,255,.78); }
.submit-copy h2 { font-size: clamp(32px, 4vw, 45px); }
.submit-copy p:last-child { max-width: 630px; margin: 12px 0 0; color: rgba(255,255,255,.83); }
.submit-actions { display: flex; flex-direction: column; align-items: center; gap: 13px; min-width: 190px; }
.submit-actions .button { width: 100%; }
.text-link { color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--white); }
.circuit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.circuit-one { width: 260px; height: 260px; right: -95px; bottom: -150px; }
.circuit-two { width: 120px; height: 120px; left: 38%; top: -90px; }

.site-footer { padding: 34px 0; background: #11161e; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #7f8996; font-size: 12px; }
.footer-inner a { opacity: .82; transition: opacity 160ms ease; }
.footer-inner a:hover { opacity: 1; }
.footer-inner img { width: 130px; height: auto; }
.footer-inner p { margin: 0; }

.flash-zone { position: fixed; z-index: 150; top: 98px; left: 0; right: 0; pointer-events: none; }
.alert { margin-bottom: 14px; padding: 14px 17px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; box-shadow: 0 14px 38px rgba(0,0,0,.25); pointer-events: auto; }
.flash-zone .alert { margin-left: auto; max-width: 640px; }
.alert-success { color: #d6fae7; background: rgba(22,100,65,.96); border-color: rgba(87,221,153,.28); }
.alert-warning { color: #fff2d1; background: rgba(117,75,18,.97); border-color: rgba(237,176,89,.35); }
.alert-error { color: #ffe2e2; background: rgba(113,35,43,.97); border-color: rgba(255,128,139,.28); }

.account-page, .dashboard-page { background: var(--ink); }
.form-page { min-height: calc(100vh - 160px); padding: 72px 0 90px; background: radial-gradient(circle at 18% 20%, rgba(216,141,32,.12), transparent 34%), var(--ink); }
.narrow-container { max-width: 1050px; }
.form-shell { display: grid; grid-template-columns: .86fr 1.14fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--shadow); }
.form-intro { position: relative; overflow: hidden; padding: 62px 48px; background: linear-gradient(145deg, #1a202b, #222b38); }
.form-intro::after { content: ""; position: absolute; width: 260px; height: 260px; right: -150px; bottom: -140px; border: 1px solid rgba(216,141,32,.25); border-radius: 50%; box-shadow: 0 0 100px rgba(216,141,32,.08) inset; }
.form-intro h1, .form-panel h1 { margin: 0 0 18px; font-family: Heebo, sans-serif; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
.form-intro > p:last-of-type { color: var(--muted); }
.form-panel { padding: 54px 52px; background: #252e3d; }
.form-panel h2 { margin: 0 0 28px; font-family: Heebo, sans-serif; font-size: 32px; }
.panel-lead { margin: -6px 0 26px; color: var(--muted); }
.single-form-page .form-container { max-width: 680px; }
.single-form-page .form-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stacked-form { display: grid; gap: 21px; }
.field { display: grid; gap: 8px; }
.field label { color: #edf0f4; font-size: 13px; font-weight: 700; }
.field label span:not(.optional) { color: var(--orange-soft); }
.field .optional { margin-left: 5px; color: #7f8996; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: var(--white); background: rgba(9,13,19,.3); font: inherit; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.field input { min-height: 50px; padding: 10px 14px; }
.field textarea { min-height: 160px; padding: 13px 14px; resize: vertical; line-height: 1.6; }
.field input[type="file"] { padding: 11px; }
.field input::file-selector-button { margin-right: 12px; padding: 8px 11px; border: 0; border-radius: 7px; color: var(--ink); background: var(--orange-soft); font-weight: 700; cursor: pointer; }
.field input:focus, .field textarea:focus { border-color: var(--orange-soft); background: rgba(9,13,19,.48); box-shadow: 0 0 0 4px rgba(216,141,32,.12); }
.field small { color: #858f9c; font-size: 11px; line-height: 1.45; }
.field .field-error { color: #ff9aa4; }
.button-full { width: 100%; }
.form-switch { margin: 24px 0 0; color: #929ba7; font-size: 13px; text-align: center; }
.form-switch a { color: var(--orange-soft); font-weight: 700; }
.approval-note { position: relative; display: flex; align-items: flex-start; gap: 13px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.approval-note > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; color: var(--orange-soft); background: rgba(216,141,32,.12); font-weight: 800; }
.approval-note p { margin: 0; color: #8f98a5; font-size: 12px; }
.approval-note strong { color: #e7eaee; }

.dashboard-main, .editor-main { min-height: calc(100vh - 160px); padding: 72px 0 96px; background: radial-gradient(circle at 84% -4%, rgba(216,141,32,.09), transparent 32%), var(--ink); }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.dashboard-heading h1, .editor-heading h1 { margin: 0; font-family: Heebo, sans-serif; font-size: clamp(42px, 5vw, 62px); line-height: 1.05; letter-spacing: -.035em; }
.dashboard-heading p:last-child, .editor-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 26px; align-items: start; }
.dashboard-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, #252e3d, #202834); box-shadow: 0 20px 58px rgba(4,8,14,.22); }
.account-card { padding: 30px; }
.dashboard-card h2 { margin: 0; font-family: Heebo, sans-serif; font-size: 25px; }
.account-details { margin: 24px 0; }
.account-details div { padding: 14px 0; border-top: 1px solid var(--line); }
.account-details dt { color: #7f8996; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.account-details dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #e7eaef; font-size: 13px; font-weight: 600; }
.account-actions { display: grid; gap: 15px; }
.button-secondary { border-color: rgba(255,255,255,.14); color: #e7eaef; background: rgba(255,255,255,.035); }
.button-secondary:hover { border-color: rgba(237,176,89,.34); color: var(--orange-soft); }
.text-button { padding: 0; border: 0; color: #8f99a6; background: transparent; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.projects-table-card { overflow: hidden; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.card-heading p { margin: 3px 0 0; color: #7f8996; font-size: 11px; }
.card-heading > a { color: var(--orange-soft); font-size: 12px; font-weight: 700; text-decoration: none; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 14px 20px; color: #7f8996; background: rgba(5,9,14,.16); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 17px 20px; border-top: 1px solid rgba(255,255,255,.06); color: #b7bec7; vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.018); }
td strong { color: #eef0f3; }
.table-actions a { color: var(--orange-soft); font-weight: 700; text-decoration: none; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-published, .status-active { color: #8ee4b5; background: rgba(40,146,91,.14); }
.status-pending { color: #f3c271; background: rgba(216,141,32,.14); }
.status-rejected, .status-suspended { color: #ff9ba4; background: rgba(180,57,68,.14); }
.status-draft, .status-deleted { color: #9ba4b0; background: rgba(146,157,171,.11); }
.empty-state { padding: 60px 30px; border: 1px dashed rgba(255,255,255,.13); border-radius: var(--radius-md); color: var(--muted); text-align: center; }
.empty-state h3 { margin: 0 0 7px; color: var(--white); font-family: Heebo, sans-serif; font-size: 24px; }
.empty-state p { margin: 0 0 22px; }
.empty-state.compact { padding: 34px 24px; border: 0; }
.empty-state.compact p:last-child { margin-bottom: 0; }

.editor-container { max-width: 920px; }
.editor-heading { margin-bottom: 32px; }
.editor-card { padding: 38px; }
.project-form { display: grid; gap: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-wide { grid-column: 1 / -1; }
.current-project-image { width: 170px; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; }
.author-preview { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6,10,15,.16); }
.author-preview > span { color: #858f9c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.author-preview strong { display: flex; align-items: center; gap: 10px; color: #e7eaef; }
.dynamic-list { display: grid; gap: 9px; }
.dynamic-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; }
.dynamic-row input { min-height: 46px; }
.remove-row, .add-row { border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #b8c0ca; background: rgba(255,255,255,.035); font: inherit; font-weight: 700; cursor: pointer; }
.remove-row { color: #ff9da6; font-size: 20px; }
.add-row { justify-self: start; padding: 8px 12px; color: var(--orange-soft); font-size: 11px; }
.remove-row:hover, .add-row:hover { border-color: rgba(237,176,89,.35); background: rgba(216,141,32,.08); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 38px; padding-top: 28px; border-top: 1px solid rgba(255,107,119,.2); }
.danger-zone strong { color: #ffb0b7; }
.danger-zone p { margin: 4px 0 0; color: #858f9c; font-size: 12px; }
.button-danger { border-color: rgba(255,107,119,.25); color: #ffabb3; background: rgba(159,42,52,.12); }
.button-danger:hover { border-color: #b9444f; background: #9e3540; color: var(--white); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { display: grid; gap: 7px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #252e3d, #202834); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(237,176,89,.26); }
.stat-card span { color: #8f98a5; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { color: var(--orange-soft); font-family: Heebo, sans-serif; font-size: 38px; line-height: 1; }
.stat-card small { color: #c8cdd4; font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.admin-list-card { overflow: hidden; }
.admin-items { display: grid; }
.admin-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 15px 22px; border-top: 1px solid rgba(255,255,255,.06); }
.admin-item:first-child { border-top: 0; }
.admin-item strong, .admin-item small { display: block; }
.admin-item strong { color: #ebedf1; font-size: 13px; }
.admin-item small { color: #7f8996; font-size: 10px; }
.project-mini-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--orange-soft); background: rgba(216,141,32,.12); font-family: Heebo, sans-serif; font-weight: 800; }
.mini-action { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #c8cdd4; background: rgba(255,255,255,.025); font: inherit; font-size: 10px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mini-action.approve { color: #9ce8bd; border-color: rgba(78,201,133,.22); background: rgba(40,146,91,.1); }
.mini-action.danger { color: #ffa5ae; border-color: rgba(235,91,104,.22); background: rgba(159,42,52,.1); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-tabs a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; color: #9ba4b0; font-size: 11px; font-weight: 700; text-decoration: none; }
.filter-tabs a.active { border-color: rgba(237,176,89,.35); color: var(--orange-soft); background: rgba(216,141,32,.09); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-actions form { display: inline-flex; }
.policy-form { align-items: center; gap: 6px; }
.policy-form select { min-height: 30px; max-width: 170px; padding: 4px 26px 4px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #c8cdd4; background: #161d27; font: inherit; font-size: 10px; }
.publication-policy { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.publication-policy.direct { border-color: rgba(78,201,133,.22); color: #9ce8bd; background: rgba(40,146,91,.1); }
.publication-policy.review { border-color: rgba(237,176,89,.22); color: var(--orange-soft); background: rgba(216,141,32,.08); }
.user-cell, .project-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.user-cell strong, .user-cell small { display: block; }
.user-cell small { color: #7f8996; font-size: 10px; }
.project-cell img { width: 42px; height: 34px; border-radius: 6px; object-fit: cover; background: #0e131a; }
.muted-text { color: #6f7884; font-size: 10px; }

.error-page { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 80px 0; text-align: center; }
.error-code { margin: 0; color: rgba(216,141,32,.24); font-family: Heebo, sans-serif; font-size: clamp(100px, 22vw, 210px); font-weight: 800; line-height: .7; }
.error-page h1 { margin: 28px 0 10px; font-family: Heebo, sans-serif; font-size: clamp(32px, 5vw, 52px); }
.error-page p:not(.error-code) { margin: 0 0 28px; color: var(--muted); }

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; gap: 38px; }
  .intro-meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .intro-meta > p { text-align: left; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
  .submit-card { grid-template-columns: auto 1fr; }
  .submit-actions { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .submit-actions .button { width: auto; }
  .form-shell { grid-template-columns: 1fr; }
  .form-intro { padding: 44px 46px; }
  .account-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 72px; }
  .brand img { width: 136px; }
  .brand-divider, .brand-section { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 1px); left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #1a212d; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 11px 8px; }
  .nav-link.active::after { display: none; }
  .catalogue-intro { padding: 65px 0 58px; }
  .intro-copy h1 { font-size: clamp(41px, 13vw, 59px); }
  .intro-text { font-size: 16px; }
  .intro-meta { align-items: flex-start; }
  .intro-meta > p { display: none; }
  .projects-section { padding: 64px 0 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 26px; }
  .section-summary { text-align: left; }
  .project-card { min-height: 0; border-radius: 20px; }
  .project-visual { min-height: 330px; padding: 44px 28px; }
  .device { width: min(88%, 310px); }
  .project-content { padding: 36px 26px; }
  .project-description { font-size: 15px; }
  .project-features { display: grid; }
  .project-footer { align-items: stretch; flex-direction: column; }
  .project-footer .button { width: 100%; }
  .project-credits { justify-content: space-between; }
  .submit-section { padding-bottom: 72px; }
  .submit-card { grid-template-columns: 1fr; gap: 22px; padding: 38px 26px; border-radius: 20px; }
  .submit-icon { width: 60px; height: 60px; border-radius: 16px; }
  .submit-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
  .submit-actions .button { width: 100%; }
  .submit-actions .text-link { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .flash-zone { top: 82px; }
  .form-page, .dashboard-main, .editor-main { padding: 48px 0 70px; }
  .form-intro, .form-panel { padding: 34px 25px; }
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .dashboard-heading .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .editor-card { padding: 27px 20px; }
  .form-actions, .danger-zone { align-items: stretch; flex-direction: column; }
  .form-actions .button, .danger-zone .button { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .card-heading { padding: 21px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
