.feedback-page { --feedback-accent: #b65d42; min-width: 0; }
.feedback-section-label { margin: 0 0 5px; color: var(--muted); font-size: var(--text-meta); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.feedback-toolbar { min-width: 0; display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(105px, auto)) auto auto; align-items: end; gap: 14px; margin-bottom: 14px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.feedback-filter { min-width: 0; display: grid; gap: 3px; }
.feedback-filter > span,
.feedback-filter label > span { color: var(--muted); font-size: var(--text-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feedback-filter input,
.feedback-filter select { width: 100%; min-height: 27px; padding: 4px 18px 4px 0; border: 0; border-bottom: 1px solid var(--muted-line); outline: 0; background: transparent; color: var(--ink); font-size: var(--text-control); }
.feedback-filter input:focus,
.feedback-filter select:focus { border-color: var(--blue); }
.feedback-search label { display: grid; gap: 3px; }
.feedback-toolbar .button { min-height: 31px; padding-inline: 13px; font-size: var(--text-control); }
/* Two boxed panels on the page rather than two panes in a scrolling frame —
   the layout the files, organization and resources tabs use. */
.feedback-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 31%) minmax(0, 1fr);
  gap: var(--panel-gap);
  align-items: start;
}
.feedback-ticket-list,
.feedback-detail {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-raised);
  box-shadow: 0 9px 28px rgba(34, 31, 25, .045);
}
/* Sticky, but not a scroller: a pane that scrolls inside the page is the
   thing this layout exists to get rid of. */
.feedback-ticket-list { position: sticky; top: 18px; }
.feedback-ticket { width: 100%; min-width: 0; display: grid; gap: 7px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.feedback-ticket:hover { background: color-mix(in srgb, var(--paper-raised) 75%, transparent); }
.feedback-ticket.is-active { border-left-color: var(--feedback-accent); background: rgba(182, 93, 66, .07); }
.feedback-ticket-top,
.feedback-ticket-bottom { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.feedback-ticket strong { overflow: hidden; font: 400 17px/1.2 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.feedback-ticket small,
.feedback-ticket-bottom { color: var(--muted); font-size: var(--text-meta); }
.feedback-ticket-bottom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-list-empty { margin: 0; padding: 38px 18px; color: var(--muted); font: italic var(--text-body)/1.4 var(--serif); text-align: center; }
.feedback-kind,
.feedback-status { display: inline-flex; padding: 3px 6px 2px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: var(--text-meta); font-weight: 700; letter-spacing: .07em; line-height: 1; text-transform: uppercase; }
.feedback-kind.is-bug { border-color: #d4a49c; color: var(--red); }
.feedback-kind.is-feature { border-color: #aebde0; color: var(--blue); }
.feedback-kind.is-question { border-color: #cfbb8f; color: #85621e; }
.feedback-status.is-resolved { border-color: #9fc1b2; color: var(--green); }
.feedback-status.is-in_progress { border-color: #aebde0; color: var(--blue); }

.feedback-welcome { min-height: 320px; display: grid; place-items: center; align-content: center; padding: 35px; color: var(--muted); text-align: center; }
.feedback-welcome > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 50%; color: var(--feedback-accent); font: italic 20px/1 var(--serif); }
.feedback-welcome h2 { margin: 0; color: var(--ink); font: 400 24px/1.15 var(--serif); }
.feedback-welcome p { margin: 7px 0 0; font-size: var(--text-control); }
.feedback-detail-card { min-width: 0; }
.feedback-back { display: none; }
.feedback-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 19px 15px; border-bottom: 1px solid var(--line); }
.feedback-detail-head > div { min-width: 0; }
.feedback-detail-head h2 { margin: 0; overflow-wrap: anywhere; font: 400 28px/1.08 var(--serif); letter-spacing: -.02em; }
.feedback-detail-head p:last-child { margin: 6px 0 0; color: var(--muted); font-size: var(--text-meta); }
.feedback-vote { min-width: 52px; display: grid; justify-items: center; gap: 1px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; }
.feedback-vote:hover,
.feedback-vote.is-active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.feedback-vote span { font-size: 10px; }
.feedback-vote strong { font-size: var(--text-body); }
.feedback-vote small { font-size: 8px; text-transform: uppercase; }
.feedback-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px 19px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-meta); }
.feedback-admin { display: flex; align-items: flex-end; gap: 12px; padding: 10px 19px; border-bottom: 1px solid #becbeb; background: rgba(24, 79, 209, .045); }
.feedback-admin label { display: grid; gap: 2px; }
.feedback-admin label > span { color: var(--muted); font-size: var(--text-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feedback-admin select { padding: 3px 16px 3px 0; border: 0; border-bottom: 1px solid var(--muted-line); outline: 0; background: transparent; font-size: var(--text-control); }
.btn-text.feedback-delete { margin-left: auto; }
.feedback-description { min-height: 115px; padding: 20px 19px; border-bottom: 1px solid var(--line); color: var(--ink); font: var(--text-reading)/1.65 var(--sans); overflow-wrap: anywhere; white-space: pre-wrap; }
.feedback-muted { color: var(--muted); font-family: var(--serif); font-style: italic; }
.feedback-attachments { padding: 13px 19px 16px; border-bottom: 1px solid var(--line); }
.feedback-attachments > div { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-attachments button { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
.feedback-attachments button:hover { border-color: var(--blue); color: var(--blue); }
.feedback-attachments button span { max-width: 220px; overflow: hidden; font-size: var(--text-control); text-overflow: ellipsis; white-space: nowrap; }
.feedback-attachments button small { color: var(--muted); font-size: var(--text-meta); }
.feedback-comments > header { display: flex; align-items: center; gap: 8px; padding: 14px 19px 8px; }
.feedback-comments > header p { margin: 0; }
.feedback-comments > header span { color: var(--muted); font-size: var(--text-meta); }
.feedback-comments ol { margin: 0; padding: 0 19px; list-style: none; }
.feedback-comments li { padding: 12px 0; border-top: 1px solid var(--line); }
.feedback-comments li header { display: flex; align-items: baseline; gap: 8px; }
.feedback-comments li strong { font-size: var(--text-control); }
.feedback-comments li time { color: var(--muted); font-size: var(--text-meta); }
.feedback-comments li button { margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.feedback-comments li button:hover { color: var(--red); }
.feedback-comments li p { margin: 6px 0 0; font-size: var(--text-body); line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.feedback-empty-comments { margin: 0; padding: 10px 19px 16px; color: var(--muted); font: italic var(--text-control)/1.4 var(--serif); }
.feedback-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 6px; padding: 14px 19px 18px; border-top: 1px solid var(--line); }
.feedback-comment-form label { display: grid; gap: 4px; }
.feedback-comment-form label > span { color: var(--muted); font-size: var(--text-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feedback-comment-form textarea { width: 100%; resize: vertical; padding: 8px 9px; border: 1px solid var(--line); border-radius: 2px; outline: 0; background: var(--paper-raised); font-size: var(--text-body); }
.feedback-comment-form textarea:focus { border-color: var(--blue); }
.feedback-comment-form .button { min-height: 33px; padding-inline: 12px; font-size: var(--text-control); }
.feedback-dialog { width: min(var(--dialog-md), calc(100% - 24px)); }
.feedback-dialog-card { position: relative; }
.feedback-dialog-close { position: absolute; top: 12px; right: 13px; }
.feedback-dialog-card .dialog-head { margin-right: 28px; }
.feedback-dialog-card .dialog-head p { margin: 7px 0 0; color: var(--muted); font-size: var(--text-control); }
.feedback-file-drop { position: relative; display: grid; gap: 3px; padding: 15px; border: 1px dashed var(--line-dashed); border-radius: 3px; color: var(--muted); cursor: pointer; text-align: center; }
.feedback-file-drop.is-over { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.feedback-file-drop > span { font-size: var(--text-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feedback-file-drop strong { color: var(--ink); font-size: var(--text-control); }
.feedback-file-drop small { font-size: var(--text-meta); }
.feedback-file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.feedback-draft-files { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.feedback-draft-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 8px; background: rgba(23, 23, 19, .04); font-size: var(--text-control); }
.feedback-draft-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-draft-files li small { color: var(--muted); font-size: var(--text-meta); }
.feedback-draft-files li button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.feedback-dialog-error { min-height: 18px; margin: 5px 0; color: var(--red); font-size: var(--text-meta); }

@media (max-width: 900px) {
  .feedback-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .feedback-search { grid-column: span 2; }
  .feedback-workspace { grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .feedback-toolbar { grid-template-columns: 1fr 1fr; }
  .feedback-search { grid-column: 1 / -1; }
  /* One at a time, like the teams tab. A sideways strip of tickets hides most
     of them and makes the count unreadable; the list takes the width and
     opening a ticket swaps it out. */
  .feedback-workspace { grid-template-columns: minmax(0, 1fr); }
  .feedback-ticket-list { position: static; }
  .feedback-page.is-detail .feedback-ticket-list { display: none; }
  .feedback-page:not(.is-detail) .feedback-detail { display: none; }
  .feedback-ticket { min-height: var(--tap); }

  .feedback-back {
    min-height: var(--tap-dense);
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font-size: var(--text-control);
  }
  .feedback-back:hover { text-decoration: underline; }
  .feedback-comment-form { grid-template-columns: 1fr; }
  .feedback-comment-form .button { justify-self: end; }
}

@media (max-width: 560px) {
  .feedback-toolbar { grid-template-columns: 1fr; }
  .feedback-search { grid-column: auto; }
  .feedback-toolbar .button { justify-self: start; }
  .feedback-detail-head { flex-direction: column; }
  .feedback-admin { align-items: stretch; flex-direction: column; }
  .btn-text.feedback-delete { align-self: flex-start; margin-left: 0; }
}
