@media screen {
  .feedback-shell {
    --feedback-wheat: #e6c47c;
    --feedback-wheat-hover: #f1d594;
    --feedback-dusk: #7faccb;
    --feedback-soft-white: #edeff1;
    --feedback-grey: #a5a9ae;
    --feedback-faint: #8a8f95;
    --feedback-panel: #16181c;
    --feedback-card: #14161a;
    --feedback-raised: #262a30;
    --feedback-line: rgba(222, 228, 238, .13);
    --feedback-line-soft: rgba(222, 228, 238, .08);
    position: fixed;
    left: 22px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 88;
    font: 400 1rem/1.65 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    color: var(--feedback-soft-white);
  }

  .feedback-shell[hidden] { display: none; }
  .feedback-launcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    min-width: 112px;
    padding: 9px 16px 9px 12px;
    border: 1px solid rgba(127, 172, 203, .46);
    border-radius: 999px;
    background: rgba(20, 22, 26, .94);
    color: var(--feedback-soft-white);
    box-shadow: inset 0 1px 0 rgba(232, 238, 248, .06), 0 16px 35px -22px rgba(0, 0, 0, .96);
    cursor: pointer;
    font: 700 .9rem/1.2 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .01em;
    text-transform: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .feedback-launcher:hover { background: rgba(127, 172, 203, .14); border-color: rgba(127, 172, 203, .8); transform: translateY(-1px); }
  .feedback-launcher:active { transform: scale(.98); }
  .feedback-launcher:focus-visible, .feedback-panel :is(button, input, textarea):focus-visible { outline: 2px solid var(--feedback-wheat); outline-offset: 4px; }
  .feedback-launcher-mark { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; color: var(--feedback-dusk); }
  .feedback-launcher-mark svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .feedback-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: min(420px, calc(100vw - 36px));
    max-height: min(720px, calc(100dvh - 96px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--feedback-line);
    border-radius: 24px;
    background: rgba(22, 24, 28, .98);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(232, 238, 248, .06);
    backdrop-filter: blur(18px);
  }
  .feedback-panel[hidden] { display: none; }
  .feedback-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--feedback-line-soft); }
  .feedback-panel-header h2 { margin: 0; font: 400 1.5rem/1.18 'DM Serif Display', Georgia, serif; letter-spacing: -.01em; }
  .feedback-close { min-height: 44px; padding: 8px 12px; border: 1px solid var(--feedback-line); border-radius: 999px; color: var(--feedback-grey); background: transparent; cursor: pointer; font: inherit; }
  .feedback-close:hover { color: var(--feedback-soft-white); background: rgba(232, 238, 248, .06); }
  .feedback-tabs { display: grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto; gap: 5px; margin: 14px 18px 0; padding: 4px; border: 1px solid var(--feedback-line); border-radius: 999px; background: rgba(9, 10, 12, .38); }
  .feedback-tab { min-height: 44px; border: 0; border-radius: 999px; color: var(--feedback-grey); background: transparent; cursor: pointer; font: 800 .78rem/1.1 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; }
  .feedback-tab:hover { color: var(--feedback-soft-white); background: rgba(127, 172, 203, .11); }
  .feedback-tab.is-active { color: #15171a; background: var(--feedback-dusk); }
  .feedback-body { display: grid; min-height: 0; overflow: auto; gap: 12px; padding: 16px 18px 20px; }
  .feedback-intro, .feedback-help, .feedback-reward-note, .feedback-muted, .feedback-empty p { margin: 0; color: var(--feedback-grey); font-size: .9rem; line-height: 1.5; }
  .feedback-field-label { color: var(--feedback-soft-white); font-size: .86rem; font-weight: 700; }
  .feedback-category-list { display: flex; flex-wrap: wrap; gap: 7px; }
  .feedback-choice { min-height: 44px; padding: 8px 14px; border: 1px solid rgba(127, 172, 203, .42); border-radius: 999px; color: var(--feedback-soft-white); background: transparent; cursor: pointer; font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; font-size: .9rem; font-weight: 400; line-height: 1.1; }
  .feedback-choice:hover { background: rgba(127, 172, 203, .13); border-color: var(--feedback-dusk); }
  .feedback-choice.is-selected { color: #15171a; border-color: var(--feedback-dusk); background: var(--feedback-dusk); }
  .feedback-message, .feedback-name { width: 100%; box-sizing: border-box; border: 1px solid #70757b; border-radius: 12px; color: var(--feedback-soft-white); background: rgba(9, 10, 12, .55); font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; }
  /* Path's account field rule is intentionally broad and loaded later. Keep
     feedback's readable 16px fields and message height in the feedback shell. */
  #pathweaver-feedback-panel :is(.feedback-message, .feedback-name) {
    min-height: 46px;
    border-radius: 12px;
    font: 400 16px/1.5 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  }
  #pathweaver-feedback-panel .feedback-message { min-height: 124px; }
  .feedback-panel :is(input, textarea) { caret-color: var(--feedback-wheat); }
  .feedback-panel ::selection { background: rgba(230, 196, 124, .35); color: var(--feedback-soft-white); }
  .feedback-message { min-height: 124px; padding: 12px; resize: vertical; }
  .feedback-name { min-height: 46px; padding: 10px 12px; }
  .feedback-message::placeholder, .feedback-name::placeholder { color: var(--feedback-faint); }
  .feedback-message:focus, .feedback-name:focus { border-color: var(--feedback-wheat); box-shadow: 0 0 0 4px rgba(230, 196, 124, .2); outline: none; }
  .feedback-help-row { display: flex; justify-content: space-between; gap: 10px; margin-top: -4px; }
  .feedback-count { color: var(--feedback-faint); font-size: .78rem; white-space: nowrap; }
  .feedback-credit-toggle { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; gap: 10px; color: var(--feedback-soft-white); font-size: .9rem; cursor: pointer; }
  .feedback-credit-toggle input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: #a0bc84; }
  .feedback-reward-note { padding: 12px 0 0; border: 0; border-top: 1px solid var(--feedback-line); border-radius: 0; background: transparent; color: var(--feedback-grey); }
  .feedback-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 3px; }
  .feedback-actions .button { min-height: 44px; }
  .feedback-submit { min-height: 44px; }
  .feedback-notice { margin: 12px 18px 0; padding: 10px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; }
  .feedback-notice.is-error { color: #f18384; border: 1px solid rgba(241, 131, 132, .35); background: rgba(241, 131, 132, .08); }
  .feedback-notice.is-success { color: #c6dda9; border: 1px solid rgba(160, 188, 132, .35); background: rgba(160, 188, 132, .08); }
  .feedback-empty { padding: 15px; border: 1px dashed var(--feedback-line); border-radius: 14px; }
  .feedback-empty strong { display: block; margin-bottom: 3px; font: 400 1.06rem/1.3 'DM Serif Display', Georgia, serif; }
  .feedback-roadmap-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .feedback-roadmap-group { display: grid; gap: 8px; }
  .feedback-roadmap-group + .feedback-roadmap-group { margin-top: 10px; }
  .feedback-roadmap-group-title { margin: 0; color: var(--feedback-grey); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .feedback-roadmap-item { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 5px 0; }
  .feedback-roadmap-marker { position: relative; width: 11px; height: 11px; margin-top: 5px; border: 1px solid var(--feedback-dusk); border-radius: 50%; }
  .feedback-roadmap-item.status-in_progress .feedback-roadmap-marker { border-color: #d58d69; border-right-color: transparent; }
  .feedback-roadmap-item.status-shipped .feedback-roadmap-marker { border-color: #a0bc84; background: #a0bc84; }
  .feedback-roadmap-item.status-shipped .feedback-roadmap-marker::after { content: ''; position: absolute; left: 3px; top: 2px; width: 4px; height: 2px; border-left: 1.5px solid #15171a; border-bottom: 1.5px solid #15171a; transform: rotate(-45deg); }
  .feedback-roadmap-copy { min-width: 0; }
  .feedback-roadmap-copy h4 { margin: 0; font: 400 1.08rem/1.25 'DM Serif Display', Georgia, serif; }
  .feedback-roadmap-copy > p { margin: 7px 0 0; color: var(--feedback-grey); font-size: .88rem; line-height: 1.48; }
  .feedback-roadmap-copy .feedback-roadmap-meta { color: var(--feedback-faint); font-size: .76rem; }
  .feedback-roadmap-copy .feedback-roadmap-credit { color: var(--feedback-dusk); font-size: .8rem; }
  @media (max-width: 760px) {
    .feedback-shell { left: 18px; right: auto; bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
    .feedback-launcher { width: max-content; }
    .feedback-shell[data-open="true"] .feedback-launcher { visibility: hidden; pointer-events: none; }
    /* Keep the backdrop in the same stacking context as the sheet. A body
       pseudo-element would sit above the app-shell on phones and dim/block
       the sheet itself. */
    .feedback-shell[data-open="true"] { isolation: isolate; }
    .feedback-shell[data-open="true"]::before { content: ''; position: fixed; z-index: -1; inset: 0; background: rgba(14, 15, 18, .72); pointer-events: auto; }
    body[data-feedback-open="true"] .feedback-shell { z-index: 120; }
    body[data-feedback-open="true"] .parent-assistant { visibility: hidden; pointer-events: none; }
    /* Signed-in Path controls share one vertical rail above the launcher on
       short phones: footer → camera controls → topic browser. Reserve the
       normal-height footer's two-row legend, then add 12px between each row;
       the same reservation remains safe when the short-screen Legend row is
       used. The data attribute is only set while the authenticated feedback
       launcher is actually visible. */
    body[data-workspace-view="journey"][data-feedback-visible="true"] { --feedback-path-footer-bottom: max(68px, calc(env(safe-area-inset-bottom, 0px) + 56px)); }
    body[data-workspace-view="journey"][data-feedback-visible="true"] .path-map-footer { bottom: var(--feedback-path-footer-bottom); }
    body[data-workspace-view="journey"][data-feedback-visible="true"] .path-camera-controls { bottom: calc(var(--feedback-path-footer-bottom) + 88px); }
    body[data-workspace-view="journey"][data-feedback-visible="true"] .path-topic-browser { bottom: calc(var(--feedback-path-footer-bottom) + 144px); }
    body[data-workspace-view="journey"][data-feedback-visible="true"] .path-topic-browser > summary { min-height: 40px; }
    body[data-workspace-view="journey"][data-feedback-visible="true"] .path-gesture-hint { display: none; }
    .feedback-panel { position: fixed; inset: max(8px, env(safe-area-inset-top, 0px)) 0 0; width: auto; max-height: none; border-radius: 24px 24px 0 0; }
    .feedback-body { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
    .feedback-submit { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { .feedback-launcher, .feedback-panel { transition: none !important; } }
}

@media print { .feedback-shell { display: none !important; } }
