/* ==========================================================================
   TVP Player Web Portal — Native Frosted Dark Design System
   Matches TVP Player's desktop Native theme: matte neutral graphite,
   hairline dividers, crisp white primary actions, generous whitespace.
   ========================================================================== */

:root {
  --bg: #0f0f12;
  --surface: #17171b;
  --surface-subtle: #131317;
  --surface-hover: #1d1d22;
  --surface-active: #202026;
  --frosted: rgba(26, 26, 30, 0.86);
  --frosted-strong: rgba(20, 20, 24, 0.92);

  --border: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.34);

  --text-primary: #f4f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --btn-primary-bg: #ffffff;
  --btn-primary-fg: #111114;
  --btn-primary-hover: #e7e7ec;

  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.24);

  --success-text: #d1d5db;
  --success-bg: rgba(255, 255, 255, 0.05);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-frame: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.72);
  --container: 1120px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.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;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Layout Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.36);
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ==========================================================================
   Sticky Top Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--frosted);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.nav-link-btn {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 140ms ease;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
}

.nav-links a:hover,
.nav-link-btn:hover {
  color: var(--text-primary);
}

.nav-links a.is-active {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-user-name {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 4px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 88px 0 72px;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
}

.download-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-primary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.download-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.download-alt-link {
  color: var(--text-secondary);
  transition: color 140ms ease;
}

.download-alt-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-alt-link.is-disabled {
  color: var(--text-muted);
  opacity: 0.6;
  pointer-events: none;
}

.meta-sep {
  color: rgba(255, 255, 255, 0.16);
  user-select: none;
}

.hero-frame {
  margin-top: 52px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.hero-frame img {
  width: 100%;
  display: block;
}

.hero-video-frame {
  margin: 52px 0 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: #0b0b0e;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.intro-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0b0b0e;
}

.intro-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 20px;
  background: rgba(11, 11, 14, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
}

.intro-video-overlay:hover {
  background: rgba(11, 11, 14, 0.12);
}

.intro-video-overlay:focus-visible {
  outline: none;
}

.intro-video-overlay:focus-visible .intro-play-pill {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.intro-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.84);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.intro-video-overlay:hover .intro-play-pill {
  background: rgba(24, 24, 29, 0.90);
  border-color: rgba(255, 255, 255, 0.26);
}

.intro-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 160ms ease, background-color 160ms ease;
}

.intro-play-circle svg {
  margin-left: 2px;
}

.intro-video-overlay:hover .intro-play-circle {
  transform: scale(1.04);
  background: var(--btn-primary-hover);
}

.intro-play-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-align: left;
}

.intro-play-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.intro-play-duration {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 600px;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-header p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Feature Showcase (2-column borderless figures)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 32px;
}

.feature-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screenshot-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.screenshot-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.feature-item h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-spotlight {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.feature-spotlight .screenshot-frame img {
  object-position: center center;
}

.feature-spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-spotlight-copy h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.feature-spotlight-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-spotlight-copy code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 1px 5px;
}

.feature-spotlight-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.feature-spotlight-list li {
  position: relative;
  padding-left: 16px;
}

.feature-spotlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.feature-spotlight-list strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Shaders Spec List (hairline-divided rows, zero nested cards)
   ========================================================================== */

.spec-list {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr 140px;
  align-items: baseline;
  gap: 12px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.spec-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.spec-tag {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* ==========================================================================
   Android Section
   ========================================================================== */

.android-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.android-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

.android-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.android-mini-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.android-mini-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.android-mini-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   Changelog & Release Cards
   ========================================================================== */

.modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-entry {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.changelog-entry.is-latest {
  border-color: var(--border-strong);
  background: var(--surface);
}

.changelog-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.changelog-version-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}

.changelog-latest-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
}

.changelog-entry-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.changelog-date {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.changelog-notes {
  margin: 0 0 14px;
}

.changelog-notes-empty {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.release-platform-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.release-platform-pill:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.release-platform-pill.is-missing {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   Browser Extensions Section
   ========================================================================== */

.extension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.extension-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.extension-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.extension-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extension-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--surface-active);
  border: 1px solid var(--border);
  color: var(--text-primary);
  flex-shrink: 0;
}

.extension-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.extension-meta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.extension-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.extension-steps {
  margin: 0;
  padding: 12px 14px 12px 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.extension-steps strong {
  color: var(--text-primary);
  font-weight: 500;
}

.extension-note-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

#extensions code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .extension-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Interactive Theme Switcher
   ========================================================================== */

.theme-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.theme-tab {
  height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.theme-tab:hover {
  color: var(--text-primary);
}

.theme-tab[aria-selected="true"] {
  background: var(--surface-active);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.theme-preview-stage {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.theme-preview-stage img {
  width: 100%;
  display: block;
}

.theme-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.theme-caption-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Feedback Section
   ========================================================================== */

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.feedback-panel {
  padding-top: 4px;
}

.feedback-history-panel {
  border-left: 1px solid var(--border-subtle);
  padding-left: 40px;
}

.feedback-history-panel h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.feedback-history-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.segmented-btn {
  height: 30px;
  padding: 0 13px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.segmented-btn:hover {
  color: var(--text-primary);
}

.segmented-btn.is-active {
  background: var(--surface-active);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.input,
.textarea,
.select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--border-strong);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #1a1a1f;
}

.textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.identity-line {
  font-size: 13px;
  color: var(--text-muted);
}

.identity-line strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.inline-notice {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--success-bg);
  font-size: 13px;
  color: var(--success-text);
  line-height: 1.45;
}

.inline-notice.is-error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger);
}

/* ==========================================================================
   Hairline Lists (Feedback history, Releases, Admin tables)
   ========================================================================== */

.list-rows {
  border-top: 1px solid var(--border);
}

.list-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.list-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.list-row-body {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-reply-box {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-reply-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.status-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--text-secondary);
}

.status-label.is-pending,
.status-label.is-open {
  color: var(--text-primary);
}

.status-label.is-in_progress {
  color: #e5e7eb;
}

.status-label.is-planned {
  color: #cbd5e1;
}

.status-label.is-rejected {
  color: var(--danger);
}

.status-label.is-resolved,
.status-label.is-closed,
.status-label.is-approved {
  color: var(--text-muted);
}

/* ==========================================================================
   Feedback & Bug Tracker (Linear-style borderless rows + Discussion Modal)
   ========================================================================== */

.tracker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.tracker-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tracker-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-select {
  width: auto;
  height: 36px;
  padding: 0 30px 0 12px;
  font-size: 13px;
}

.tracker-search {
  width: 220px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.page-intro {
  padding: 52px 0 28px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-intro p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 620px;
}

.feedback-page-main {
  padding-bottom: 84px;
}

.feedback-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 0;
}

.feedback-callout h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feedback-callout p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 540px;
}

.upload-row-primary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.upload-slot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.upload-slot-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-slot-selected {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-fallback-details {
  margin-top: 6px;
}

.url-fallback-details summary {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
}

.url-fallback-details summary:hover {
  color: var(--text-primary);
}

.url-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 10px;
}

.tracker-list {
  border-top: 1px solid var(--border);
}

.tracker-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  margin: 0 -8px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 120ms ease;
}

.tracker-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tracker-row-main {
  min-width: 0;
  flex: 1;
}

.tracker-row-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.tracker-row-meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.tracker-row-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-chip.is-open {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.status-chip.is-in_progress {
  color: #f4f4f6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
}

.status-chip.is-planned {
  color: #d1d5db;
  border-color: var(--border);
}

.status-chip.is-resolved,
.status-chip.is-closed {
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.role-tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.comment-count {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Thread Modal & Inline Admin Thread */
.thread-origin {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.thread-origin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.thread-origin-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-comments-header {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.thread-comments {
  display: flex;
  flex-direction: column;
}

.thread-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.thread-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.thread-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.thread-comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.thread-comment-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-reply-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.thread-guest-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-thread-drawer {
  margin-top: 4px;
  padding: 14px 0 4px 16px;
  border-left: 2px solid var(--border);
}

.admin-reply-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: flex-start;
}

.admin-reply-form .input {
  flex: 1;
}

.empty-state {
  padding: 28px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals (Frosted Dark Surface)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 440px;
  background: var(--frosted-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal-dialog.modal-wide {
  max-width: 560px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 20px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.modal-switch {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 44px;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a,
.footer-links button {
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  transition: color 140ms ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Admin Dashboard Shell (TVP Settings Dialog Aesthetic)
   ========================================================================== */

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px 24px;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-login-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.admin-login-brand h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-login-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.admin-sidebar {
  background: var(--surface-subtle);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.admin-sidebar-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.admin-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.admin-sidebar-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-btn {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.admin-nav-btn > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-nav-btn.is-active {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--text-primary);
}

.admin-nav-count {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.admin-account-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px;
}

.admin-account-info strong {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-sidebar-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.admin-sidebar-links .btn {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
}

.admin-signout-btn {
  width: 100%;
}

.admin-main {
  padding: 32px 40px 64px;
  max-width: 1040px;
  width: 100%;
  min-width: 0;
}

.admin-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.admin-stat-cell {
  padding: 16px 20px 16px 0;
}

.admin-stat-cell + .admin-stat-cell {
  padding-left: 20px;
  border-left: 1px solid var(--border-subtle);
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.admin-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-section-bar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.filter-tab {
  height: 30px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.is-active {
  background: var(--surface-active);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Admin Data Table (borderless rows with hairline dividers) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.cell-primary {
  font-weight: 500;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.cell-secondary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.cell-muted {
  font-size: 13px;
  color: var(--text-muted);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

/* Admin Feedback Row */
.feedback-admin-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.feedback-admin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feedback-cat {
  color: var(--text-primary);
  font-weight: 500;
  text-transform: capitalize;
}

.feedback-admin-controls {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.save-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* Admin Releases Form & Automation Guide */
.admin-subsection {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.admin-subsection h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.admin-subsection-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-upload-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.platform-upload-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.platform-upload-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.file-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.file-picker input[type="file"] {
  display: none;
}

.file-selected-name {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.release-platform-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-platform-missing {
  color: var(--text-muted);
}

.release-snippet {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-row-expanded td {
  border-bottom-color: transparent;
}

.release-notes-row td {
  padding: 0 0 18px 0 !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border-subtle);
}

.release-notes-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  max-width: 780px;
}

/* Formatted Markdown Release Notes */
.md-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.md-content > *:first-child {
  margin-top: 0;
}

.md-content > *:last-child {
  margin-bottom: 0;
}

.md-content h3,
.md-content h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.md-content p {
  margin: 0 0 10px;
}

.md-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.md-content li {
  margin-bottom: 5px;
}

.md-content li:last-child {
  margin-bottom: 0;
}

.md-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

.md-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.md-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
}

.md-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Collapsible Automation Details */
.guide-details {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-subtle);
}

.guide-details summary {
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.guide-details summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
}

.guide-details[open] summary::after {
  content: "−";
}

.guide-body {
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.guide-kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
}

.guide-code-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  overflow-x: auto;
}

.guide-code-wrap pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre;
}

.guide-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-copy-row code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  word-break: break-all;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .feature-grid,
  .feature-spotlight,
  .android-highlights-grid {
    grid-template-columns: 1fr;
  }

  .feature-spotlight {
    gap: 24px;
  }

  .feedback-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feedback-history-panel {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 32px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spec-tag {
    text-align: left;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-nav-btn {
    width: auto;
  }

  .admin-main {
    padding: 24px 20px 48px;
  }

  .admin-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stat-cell:nth-child(3) {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .admin-stat-cell:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    gap: 12px;
  }

  .nav-user-name {
    max-width: 110px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .feedback-admin-controls {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .platform-upload-row,
  .upload-row-primary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .url-fallback-grid {
    grid-template-columns: 1fr;
  }

  .tracker-search {
    width: 100%;
  }

  .guide-kv {
    grid-template-columns: 1fr;
  }

  .tracker-row {
    flex-direction: column;
    gap: 10px;
  }

  .tracker-row-aside {
    padding-top: 0;
  }

  .admin-reply-form {
    flex-direction: column;
    align-items: stretch;
  }
}
