:root {
  --ink: #14181f;
  --ink-soft: #3a4554;
  --paper: #e7ecf2;
  --paper-2: #d5dde8;
  --steel: #1f6f8b;
  --steel-deep: #154a5c;
  --blade: #c23b22;
  --line: rgba(20, 24, 31, 0.12);
  --ok: #1f6f4a;
  --ok-bg: rgba(31, 111, 74, 0.12);
  --wip: #9a5b12;
  --wip-bg: rgba(154, 91, 18, 0.14);
  --private: #3a4554;
  --private-bg: rgba(58, 69, 84, 0.12);
  --shadow: 0 18px 50px rgba(20, 24, 31, 0.08);
  /* System / local stacks — no Google Fonts (avoids mainland hang) */
  --font-brand: "Segoe UI", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --font-display: "PingFang TC", "Hiragino Sans CNS", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif;
  --font-body: "Segoe UI", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--paper);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(31, 111, 139, 0.18), transparent 55%),
    radial-gradient(900px 600px at 100% 8%, rgba(194, 59, 34, 0.1), transparent 50%),
    linear-gradient(165deg, #f3f6fa 0%, var(--paper) 42%, var(--paper-2) 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 14px,
      rgba(20, 24, 31, 0.025) 14px,
      rgba(20, 24, 31, 0.025) 15px
    );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1.2%, 0.8%); }
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.hero-mark {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand {
    background: linear-gradient(120deg, var(--ink) 30%, var(--steel) 70%, var(--blade) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark,
  .hero-line,
  .hero-actions {
    animation: rise 0.9s ease both;
  }

  .hero-line {
    animation-delay: 0.12s;
  }

  .hero-actions {
    animation-delay: 0.22s;
  }

  .brand {
    animation: brandIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

.hero-line {
  margin: 1.4rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--ink);
  color: #f4f7fb;
}

.btn.primary:hover {
  background: var(--steel-deep);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn.ghost:hover {
  border-color: var(--steel);
  color: var(--steel-deep);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 5rem);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head p,
.about-copy p {
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 840px) {
  .about-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

.about-copy p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.about-copy strong {
  color: var(--ink);
}

.about-pair {
  padding-top: 0.25rem;
  border-left: 2px solid var(--steel);
  padding-left: 1.1rem;
}

.pair + .pair {
  margin-top: 1.1rem;
}

.pair-name {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pair-role {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head p {
  margin: 0.5rem 0 0;
  max-width: 36rem;
}

.works-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.1rem;
}

.works-nav a {
  color: var(--steel-deep);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.works-nav a:hover {
  color: var(--blade);
  border-bottom-color: rgba(194, 59, 34, 0.45);
}

.system-map {
  margin: 0 0 1.6rem;
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}

.system-map h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.system-lede {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.system-remind {
  margin: 0.7rem 0 0;
  max-width: 42rem;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--blade);
  background: rgba(194, 59, 34, 0.06);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
  scroll-margin-top: 1.25rem;
}

.system-ask {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  scroll-margin-top: 1.25rem;
}

.system-ask-how {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.system-ask-how.cycle-links {
  margin-top: 0.55rem;
}

.system-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.9rem 0 0;
}

.system-scale a {
  color: var(--steel-deep);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.system-scale a:hover {
  color: var(--blade);
  border-bottom-color: rgba(194, 59, 34, 0.45);
}

.system-sep {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.system-map-head {
  margin-bottom: 0.35rem;
}

.system-map.is-collapsed .work-group-chevron {
  transform: rotate(-90deg);
}

.system-map.is-collapsed .system-map-body {
  display: none;
}

.cycle-fold {
  margin-top: 0.85rem;
  padding-top: 0.15rem;
  scroll-margin-top: 1.25rem;
}

.cycle-fold > .cycle-title {
  margin: 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.cycle-fold > .cycle-title::-webkit-details-marker {
  display: none;
}

.cycle-fold > .cycle-title::before {
  content: "▾";
  display: inline-block;
  width: 1.1rem;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cycle-fold:not([open]) > .cycle-title::before {
  transform: rotate(-90deg);
}

.cycle-fold > .cycle-note:first-of-type {
  margin-top: 0.45rem;
}

.cycle-note {
  margin: 0.3rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.cycle {
  width: 100%;
  max-width: 44rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.cycle th,
.cycle td {
  text-align: left;
  padding: 0.45rem 0.65rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cycle th {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.78rem;
}

.cycle td:first-child {
  font-weight: 650;
  white-space: nowrap;
  width: 5.5rem;
}

.cycle-wide {
  max-width: 52rem;
}

.cycle-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
}

.cycle-links a {
  color: var(--steel-deep);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cycle-links a:hover {
  color: var(--blade);
  border-bottom-color: rgba(194, 59, 34, 0.45);
}

#cycle-self,
#cycle-feasible,
#cycle-tie,
#cycle-cohort,
#cycle-live,
#cycle-world,
#cycle-nation,
#cycle-verify {
  scroll-margin-top: 1.25rem;
}

.cycle-world td:nth-child(2) {
  white-space: nowrap;
  font-weight: 600;
}

.works-fold-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.works-fold-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, var(--steel) 12%);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.works-fold-btn:hover {
  color: var(--blade);
  border-color: color-mix(in srgb, var(--blade) 40%, var(--line));
}

.work-group + .work-group {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.work-group {
  scroll-margin-top: 1.25rem;
}

.work-group-head {
  margin-bottom: 0;
}

.work-group:not(.is-collapsed) .work-group-head {
  margin-bottom: 1.1rem;
}

.work-group-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.work-group-toggle:hover {
  background: color-mix(in srgb, var(--steel) 8%, transparent);
}

.work-group-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--blade) 55%, transparent);
  outline-offset: 2px;
}

.work-group-chevron {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  width: 1.1rem;
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.work-group.is-collapsed .work-group-chevron {
  transform: rotate(-90deg);
}

.work-group-toggle-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.work-group-toggle-title {
  font-family: var(--font-brand);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.work-group-toggle-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.work-group-toggle-blurb {
  flex: 1 1 100%;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 36rem;
}

.work-group.is-collapsed .works {
  display: none;
}

.work-group-head h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.work-group-head p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 36rem;
}

.hk-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
}

.work-compact {
  padding: 1rem 1.1rem;
}

.work-compact p {
  font-size: 0.88rem;
  margin: 0.35rem 0 0.6rem;
}

.work-compact .work-top h3 {
  font-size: 1rem;
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.work {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem 1.35rem;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease;
}

.work:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.work-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.work h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.work p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge.ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.badge.wip {
  color: var(--wip);
  background: var(--wip-bg);
}

.badge.hobby {
  color: #5c4a2e;
  background: rgba(154, 91, 18, 0.12);
}

.badge.private {
  color: var(--private);
  background: var(--private-bg);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.work-links a,
.path-btn {
  color: var(--steel-deep);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.work-links a:hover,
.path-btn:hover {
  color: var(--blade);
  border-bottom-color: rgba(194, 59, 34, 0.45);
}

.work-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f7fb;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-bottom: none;
}

.work-links a.work-open:hover {
  background: var(--steel-deep);
  color: #f4f7fb;
  border-bottom: none;
  transform: none;
}

.work-more {
  position: relative;
}

.work-more summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0.15rem;
}

.work-more summary::-webkit-details-marker {
  display: none;
}

.work-more summary::after {
  content: " ▾";
  font-size: 0.72rem;
}

.work-more[open] summary {
  color: var(--blade);
}

.work-more-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.2rem);
  z-index: 4;
  min-width: 11rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, #fff 8%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.work-more-panel a {
  font-size: 0.82rem;
}

.footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 5rem) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer a {
  color: var(--steel-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
}

.tester-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.tester-toggle[aria-pressed="true"] {
  color: var(--steel-deep);
  border-color: rgba(47, 74, 95, 0.35);
  background: #fff;
}

.tester-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink);
  background: rgba(255, 248, 230, 0.96);
  border-bottom: 1px solid rgba(194, 59, 34, 0.2);
  backdrop-filter: blur(6px);
}

.tester-banner-close {
  margin-left: 0.35rem;
  border: none;
  background: none;
  color: var(--blade);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.work-react {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.work-react-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.work-react-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.work-react-btns button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--steel-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.work-react-btns button:hover:not(:disabled) {
  border-color: rgba(47, 74, 95, 0.35);
  background: #fff;
}

.work-react-btns button:disabled {
  opacity: 0.55;
  cursor: default;
}

.work-react.is-done .work-react-btns button {
  opacity: 0.45;
}

.work-react-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.work-react-note.ok {
  color: var(--ok, #2f6b4f);
}

.work-react-note.err {
  color: var(--blade);
}

.work-interop {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.work-interop-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.work-interop a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 111, 139, 0.35);
}

.work-interop a:hover {
  color: var(--blade);
  border-bottom-color: rgba(194, 59, 34, 0.45);
}

.footer a:hover {
  color: var(--blade);
  border-bottom-color: rgba(194, 59, 34, 0.45);
}

.brand-mini {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* —— 建議箱 —— */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 5rem) 0.5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--steel-deep);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--blade);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
}

.page-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

.feedback-cta {
  border-top: 1px solid var(--line);
}

.feedback-cta .btn {
  margin-top: 0.5rem;
}

.interop-cta {
  border-top: 1px solid var(--line);
}

.interop-cta .section-head {
  max-width: 40rem;
}

.interop-cta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 0.35rem;
}

.interop-cta-card {
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.interop-cta-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.interop-cta-card p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.interop-cta-card .btn {
  display: inline-flex;
}

.interop-hint {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.interop-cta code {
  font-size: 0.88em;
}

.feedback-layout {
  display: grid;
  gap: 2rem;
  padding-top: 1.5rem !important;
}

@media (min-width: 900px) {
  .feedback-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.feedback-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.feedback-panel .hint {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feedback-form {
  display: grid;
  gap: 1rem;
}

.feedback-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: var(--ink);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.feedback-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.feedback-status {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.feedback-status.ok {
  color: var(--ok);
}

.feedback-status.err {
  color: var(--blade);
}

.feedback-board {
  display: grid;
  gap: 1rem;
}

.feedback-card {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.feedback-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.feedback-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(31, 111, 139, 0.12);
  color: var(--steel-deep);
  font-weight: 600;
  font-size: 0.78rem;
}

.feedback-suggestion {
  margin: 0;
  color: var(--ink);
}

.feedback-reply {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--steel);
  background: rgba(255, 255, 255, 0.45);
}

.feedback-reply-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.feedback-reply p {
  margin: 0;
  color: var(--ink-soft);
}

.feedback-empty {
  margin: 0;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

.back-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--steel-deep);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 24, 31, 0.1);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.2s ease, color 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: #fff;
  color: var(--blade);
}

.back-top:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.04em;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere {
    animation: none;
  }

  .hero-mark,
  .brand,
  .hero-line,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .back-top {
    transition: none;
  }
}
