  /* Presentation mode: full-screen, one-category-at-a-time view used for live
     demos and screen-sharing. Toolbar, hero, footer and progress card are
     hidden so the slide-style content takes the full viewport. */
  body.presentation-mode {
    overflow-x: hidden;
  }
  body.presentation-mode .toolbar,
  body.presentation-mode .cat-nav,
  body.presentation-mode .progress-card,
  body.presentation-mode header.hero,
  body.presentation-mode .install-banner,
  body.presentation-mode footer {
    display: none !important;
  }
  body.presentation-mode .wrap {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  body.presentation-mode section.category {
    display: none;
    padding: 60px clamp(20px, 5vw, 80px);
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
    box-sizing: border-box;
  }
  body.presentation-mode section.category.presenting {
    display: block;
    animation: fadeSlide 0.3s ease;
  }
  body.presentation-mode .cat-header {
    cursor: default;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
  }
  body.presentation-mode .cat-header .chevron {
    display: none;
  }
  body.presentation-mode .cat-header .num {
    font-size: 13px;
  }
  body.presentation-mode .cat-header .title h2 {
    font-size: 26px;
  }
  body.presentation-mode .cat-header .title p {
    font-size: 15px;
  }
  body.presentation-mode .feature-head h3 {
    font-size: 19px;
  }
  body.presentation-mode .feature-desc {
    font-size: 15px;
  }
  body.presentation-mode .level-text {
    font-size: 15px;
  }
  body.presentation-mode .feature-note-toggle,
  body.presentation-mode .feature-note {
    display: none !important;
  }

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

  /* Presentation mode: fixed top context bar (app name on the left,
     active filter chip on the right). Slides in from the top when
     presentation mode is entered. */
  .pres-context-bar { display: none; }
  body.presentation-mode .pres-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 28px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    z-index: 1000;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    animation: presBarIn 0.3s ease;
  }
  @keyframes presBarIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .pres-context-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .pres-context-emoji {
    font-size: 22px;
    line-height: 1;
  }
  .pres-context-app {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pres-context-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .pres-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--hero-grad);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.10);
  }
  .pres-context-chip-label {
    letter-spacing: -0.005em;
  }
  .pres-context-chip-count {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--surface);
    color: var(--text-dim);
    border-radius: 999px;
    border: 1px solid var(--border);
    letter-spacing: 0.04em;
  }
  /* Color the chip according to the active filter (MVP / Release) */
  body.presentation-mode.pres-filter-mvp .pres-context-chip {
    background: var(--mvp-bg);
    border-color: var(--mvp-border);
    box-shadow: 0 0 0 3px var(--mvp-strong);
    color: var(--mvp);
  }
  body.presentation-mode.pres-filter-release .pres-context-chip {
    background: var(--release-bg);
    border-color: var(--release-border);
    box-shadow: 0 0 0 3px var(--release-strong);
    color: var(--release);
  }

  /* Presentation mode card layout: each feature becomes its own card,
     laid out in an auto-fitting grid for easy scanning on stage. */
  body.presentation-mode .feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 18px;
    padding: 0;
    margin-top: 24px;
  }
  body.presentation-mode .feature {
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    padding: 22px 24px;
    background: var(--surface-2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  body.presentation-mode .feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }
  /* Items and categories filtered out should remain hidden in presentation
     mode too. Without this rule the .feature { display: flex } above would
     override .hidden and reveal them. */
  body.presentation-mode .feature.hidden { display: none !important; }
  body.presentation-mode .category.hidden { display: none !important; }
  /* Card header: ID badge plus title */
  body.presentation-mode .feature .feature-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  body.presentation-mode .feature .feature-head .id {
    font-size: 12px;
    background: var(--surface-3);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-2);
    flex-shrink: 0;
  }
  body.presentation-mode .feature .feature-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
  }
  body.presentation-mode .feature .feature-desc {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
  }
  body.presentation-mode .feature .level {
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: default;
    pointer-events: none;
  }
  body.presentation-mode .feature .level-text {
    font-size: 13.5px;
    line-height: 1.5;
  }
  body.presentation-mode .feature .level-tag {
    font-size: 9.5px;
    padding: 3px 8px;
  }
  /* Hide the note toggle, edit field and AI button in presentation mode
     to keep the slide clean. If the feature already has note CONTENT,
     it is still shown below as a read-only card. */
  body.presentation-mode .feature-note-toggle,
  body.presentation-mode .feature-note,
  body.presentation-mode .feature-ai-wrap {
    display: none !important;
  }

  /* Read-only note card: hidden by default, visible in presentation mode
     for features that carry a saved note (.has-note). */
  .feature-note-display {
    display: none;
  }
  body.presentation-mode .feature.has-note .feature-note-display {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(249, 115, 22, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    margin-top: 4px;
  }
  [data-theme="light"] body.presentation-mode .feature.has-note .feature-note-display {
    background: rgba(234, 88, 12, 0.06);
  }
  body.presentation-mode .feature-note-display .note-display-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  body.presentation-mode .feature-note-display .note-display-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    font-style: italic;
    white-space: pre-wrap;
    word-break: break-word;
  }
  /* Give the category header a slightly more prominent look on stage */
  body.presentation-mode .cat-header {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  }
  /* Reserve top padding so the fixed context bar does not cover content */
  body.presentation-mode section.category {
    padding-top: 80px;
  }
  /* Narrow screens: collapse to a single column and tighten padding */
  @media (max-width: 700px) {
    body.presentation-mode .feature-list {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    body.presentation-mode .pres-context-bar {
      padding: 10px 16px;
      gap: 10px;
    }
    .pres-context-app { font-size: 12.5px; }
    .pres-context-chip { font-size: 12px; padding: 5px 11px; }
    .pres-context-chip-count { font-size: 10.5px; padding: 1px 6px; }
    body.presentation-mode section.category {
      padding-top: 70px;
    }
  }

  .presentation-controls {
    display: none;
  }
  body.presentation-mode .presentation-controls {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 8px;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }
  .presentation-controls button {
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    transition: background 0.15s;
  }
  .presentation-controls button:hover {
    background: var(--surface-3);
  }
  .presentation-controls .pres-index {
    font-size: 12px;
    color: var(--text-dim);
    padding: 0 12px;
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    text-align: center;
  }
  .presentation-controls .pres-exit {
    color: var(--accent-2);
  }

  /* AI prompt copy block: wrapper, primary button, and format options
     (plain Turkish text vs. JSON). Used both in normal and presentation
     mode, although hidden on stage by the rule above. */
  .feature-ai-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    margin-left: 8px;
    flex-wrap: wrap;
  }
  .feature-ai-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.08);
    border: 1px dashed var(--accent);
    border-radius: 6px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.15s;
    font-family: inherit;
    font-weight: 500;
  }
  [data-theme="light"] .feature-ai-copy {
    background: rgba(234, 88, 12, 0.06);
  }
  .feature-ai-copy:hover {
    background: var(--accent);
    color: #fff;
    border-style: solid;
  }
  .feature-ai-wrap.ai-open .feature-ai-copy {
    background: var(--accent);
    color: #fff;
    border-style: solid;
  }
  .feature-ai-wrap.ai-open .feature-ai-copy .ai-icon::before {
    content: "▾ ";
    margin-right: 2px;
    opacity: 0.7;
  }

  .feature-ai-options {
    display: none;
    gap: 6px;
    align-items: center;
  }
  .feature-ai-wrap.ai-open .feature-ai-options {
    display: inline-flex;
    animation: aiOptIn 0.2s ease;
  }
  @keyframes aiOptIn {
    from { transform: translateX(-6px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  .feature-ai-option {
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid;
    background: transparent;
  }
  .feature-ai-option.ai-tr {
    color: var(--mvp);
    border-color: var(--mvp-border);
    background: var(--mvp-bg);
  }
  .feature-ai-option.ai-tr:hover {
    background: var(--mvp);
    color: #fff;
  }
  .feature-ai-option.ai-json {
    color: var(--release);
    border-color: var(--release-border);
    background: var(--release-bg);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11.5px;
    letter-spacing: 0.02em;
  }
  .feature-ai-option.ai-json:hover {
    background: var(--release);
    color: #fff;
  }
  .feature-ai-option.copied {
    background: var(--mvp);
    color: #fff;
    border-color: var(--mvp);
  }

