/* EmlogStudio feedback centre -------------------------------------------------------------- */
:root {
  --feedback-ink: #eaf5ee;
  --feedback-muted: #91a398;
  --feedback-soft: #c8d8ce;
  --feedback-panel: #09110d;
  --feedback-line: rgba(218, 245, 228, .14);
  --feedback-glow: rgba(var(--accent-rgb), .22);
}

.feedback-mail-button {
  position: relative;
}

.feedback-mail-badge {
  position: absolute;
  z-index: 1;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  color: #071009;
  background: #f3c16b;
  border: 2px solid #071009;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(243, 193, 107, .12);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.feedback-mail-badge[hidden] { display: none; }

.feedback-float-nav {
  position: fixed;
  z-index: 520;
  /* Keep the dock in the viewport's outer-right gutter, beside the detail rail. */
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  padding: 7px;
  isolation: isolate;
  background: linear-gradient(150deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .012));
  border: 1px solid rgba(222, 246, 232, .13);
  border-radius: 17px;
  box-shadow: 0 15px 36px rgba(0, 0, 0, .31), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.feedback-float-nav::before {
  position: absolute;
  z-index: -1;
  inset: 15px 7px auto;
  height: 48px;
  content: '';
  background: radial-gradient(circle, var(--feedback-glow), transparent 69%);
  opacity: .7;
  pointer-events: none;
}

.feedback-float-button,
.feedback-popover-close,
.feedback-dialog-close,
.feedback-refresh-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.feedback-float-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #aebfb5;
  background: rgba(4, 12, 8, .78);
  border: 1px solid rgba(223, 244, 232, .11);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 4px 12px rgba(0, 0, 0, .16);
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feedback-float-button .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
}

.feedback-icon-up { transform: rotate(180deg); }

.feedback-float-button::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: max-content;
  max-width: 160px;
  padding: 6px 9px;
  color: #dbe9e0;
  content: attr(data-feedback-tooltip);
  background: rgba(7, 16, 11, .94);
  border: 1px solid rgba(223, 244, 232, .13);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  font-size: 11px;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
}

.feedback-float-button:hover,
.feedback-float-button:focus-visible,
.feedback-float-button[aria-expanded="true"] {
  color: #f1fff7;
  background: rgba(var(--accent-rgb), .16);
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25), 0 0 0 3px rgba(var(--accent-rgb), .09), inset 0 1px 0 rgba(255, 255, 255, .08);
  outline: none;
  transform: translateY(-1px);
}

.feedback-float-button:hover::after,
.feedback-float-button:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.feedback-float-button-primary {
  color: #062314;
  background: linear-gradient(145deg, #6af4ae, var(--green-bright));
  border-color: rgba(216, 255, 232, .65);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .44);
}

.feedback-float-button-primary:hover,
.feedback-float-button-primary:focus-visible {
  color: #03150a;
  background: linear-gradient(145deg, #a1ffcd, #39dc82);
  border-color: #d7ffe7;
}

.feedback-qr-anchor { position: relative; }

.feedback-qr-popover {
  position: absolute;
  z-index: 10;
  right: calc(100% + 14px);
  bottom: 0;
  display: grid;
  width: 192px;
  justify-items: center;
  padding: 14px;
  color: var(--feedback-soft);
  background:
    radial-gradient(circle at 50% 0, rgba(var(--accent-rgb), .2), transparent 55%),
    #08110c;
  border: 1px solid rgba(223, 246, 232, .17);
  border-radius: 15px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: feedback-popover-in .17s ease both;
}

.feedback-qr-popover[hidden] { display: none; }

.feedback-qr-popover img {
  display: block;
  width: 142px;
  height: 142px;
  margin-bottom: 11px;
  object-fit: cover;
  background: #effcf3;
  border: 6px solid #effcf3;
  border-radius: 10px;
}

.feedback-qr-popover strong {
  color: #eefbf3;
  font-size: 13px;
  font-weight: 650;
}

.feedback-qr-popover span {
  margin-top: 4px;
  color: #84968b;
  font-size: 11px;
}

.feedback-popover-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #617268;
  background: rgba(4, 13, 8, .72);
  border: 1px solid rgba(231, 247, 237, .09);
  border-radius: 7px;
}

.feedback-popover-close .icon { width: 13px; height: 13px; }

.feedback-popover-close:hover,
.feedback-popover-close:focus-visible {
  color: #eafff2;
  border-color: rgba(var(--accent-rgb), .42);
  outline: none;
}

@keyframes feedback-popover-in {
  from { opacity: 0; transform: translateX(5px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.feedback-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 34px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--feedback-ink);
  background: #09100c;
  border: 1px solid rgba(222, 247, 232, .19);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .64), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.feedback-dialog::backdrop {
  background: rgba(1, 6, 3, .72);
}

.feedback-dialog[open] { animation: feedback-dialog-in .2s cubic-bezier(.2, .85, .3, 1) both; }

@keyframes feedback-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-dialog-surface {
  display: grid;
  max-height: inherit;
  overflow: hidden;
  background:
    radial-gradient(560px 260px at 100% 0%, rgba(var(--accent-rgb), .16), transparent 62%),
    linear-gradient(150deg, rgba(255, 255, 255, .055), transparent 30%);
}

.feedback-dialog-header {
  position: relative;
  display: flex;
  min-height: 128px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid rgba(223, 245, 231, .1);
}

.feedback-dialog-header::after {
  position: absolute;
  right: 28px;
  bottom: -1px;
  width: 86px;
  height: 1px;
  content: '';
  background: var(--green-bright);
  box-shadow: 0 0 16px var(--feedback-glow);
}

.feedback-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--green-bright);
  font-family: var(--font-display, ui-serif, Georgia, serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.feedback-dialog-header h2 {
  margin: 0;
  color: #f3fbf6;
  font-family: var(--font-display, ui-serif, Georgia, serif);
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.feedback-dialog-header p {
  margin: 8px 0 0;
  color: var(--feedback-muted);
  font-size: 13px;
  line-height: 1.55;
}

.feedback-dialog-close,
.feedback-refresh-button {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #a6baae;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(225, 246, 233, .12);
  border-radius: 10px;
}

.feedback-dialog-close .icon,
.feedback-refresh-button .icon { width: 17px; height: 17px; }

.feedback-dialog-close:hover,
.feedback-dialog-close:focus-visible,
.feedback-refresh-button:hover,
.feedback-refresh-button:focus-visible {
  color: #f3fff7;
  background: rgba(var(--accent-rgb), .12);
  border-color: rgba(var(--accent-rgb), .42);
  outline: none;
}

.feedback-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 28px 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(223, 245, 231, .08);
  scrollbar-width: none;
}

.feedback-tabs::-webkit-scrollbar { display: none; }

.feedback-tabs button {
  position: relative;
  min-height: 38px;
  padding: 0 10px 10px;
  color: #82948a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}

.feedback-tabs button::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  content: '';
  background: transparent;
  border-radius: 99px 99px 0 0;
  transition: background .18s ease, box-shadow .18s ease;
}

.feedback-tabs button[aria-selected="true"] {
  color: #effbf3;
}

.feedback-tabs button[aria-selected="true"]::after {
  background: var(--green-bright);
  box-shadow: 0 0 13px var(--feedback-glow);
}

.feedback-tabs button:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .65); outline-offset: -3px; border-radius: 7px; }

.feedback-dialog-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 28px;
}

.feedback-view[hidden] { display: none; }

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-form > label,
.feedback-filter-label {
  position: relative;
  display: grid;
  gap: 8px;
  color: #d5e4da;
  font-size: 13px;
  font-weight: 580;
}

.feedback-form label em {
  color: #7d9085;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea,
.feedback-filter-label select,
.feedback-admin-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  color: #e5f2e9;
  background: rgba(1, 8, 4, .45);
  border: 1px solid rgba(221, 246, 231, .13);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.feedback-form input,
.feedback-form select,
.feedback-filter-label select { min-height: 42px; padding: 0 12px; }

.feedback-form textarea,
.feedback-admin-reply-form textarea { min-height: 148px; padding: 12px; resize: vertical; }

.feedback-admin-reply-form textarea { min-height: 88px; }

.feedback-form input::placeholder,
.feedback-form textarea::placeholder,
.feedback-admin-reply-form textarea::placeholder { color: #607168; }

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus,
.feedback-filter-label select:focus,
.feedback-admin-reply-form textarea:focus {
  background: rgba(var(--accent-rgb), .045);
  border-color: rgba(var(--accent-rgb), .58);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}

.feedback-field-hint {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: #6e8176;
  font-size: 10px;
  font-weight: 500;
}

.feedback-form footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.feedback-form-status {
  min-height: 1.4em;
  margin: 0;
  color: #91a49a;
  font-size: 12px;
  line-height: 1.4;
}

.feedback-form-status.is-error { color: #efaaa1; }
.feedback-form-status.is-success { color: #9ceabb; }
.feedback-form-status.is-loading { color: #b3c8bb; }

.feedback-submit,
.feedback-admin-action,
.feedback-admin-reply-form button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  color: #062315;
  background: linear-gradient(135deg, #7af7b8, var(--green-bright));
  border: 1px solid rgba(220, 255, 235, .58);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), .18);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.feedback-submit .icon { width: 16px; height: 16px; }

.feedback-submit:hover,
.feedback-submit:focus-visible,
.feedback-admin-action:hover,
.feedback-admin-action:focus-visible,
.feedback-admin-reply-form button:hover,
.feedback-admin-reply-form button:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), .3);
  outline: none;
  transform: translateY(-1px);
}

.feedback-submit:disabled,
.feedback-admin-action:disabled,
.feedback-admin-reply-form button:disabled {
  cursor: not-allowed;
  filter: grayscale(.35);
  opacity: .58;
  transform: none;
}

.feedback-view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.feedback-view-heading h3 {
  margin: 0;
  color: #edf9f1;
  font-family: var(--font-display, ui-serif, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
}

.feedback-view-heading p { margin: 5px 0 0; color: #85978d; font-size: 12px; line-height: 1.45; }

.feedback-filter-label {
  display: flex;
  max-width: 190px;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
  color: #91a398;
  font-size: 11px;
  font-weight: 500;
}

.feedback-filter-label select { min-height: 34px; padding-right: 7px; font-size: 12px; }

.feedback-list { display: grid; gap: 12px; }

.feedback-empty-state,
.feedback-list-loading,
.feedback-list-error {
  margin: 0;
  padding: 30px 18px;
  color: #86988e;
  background: rgba(255, 255, 255, .018);
  border: 1px dashed rgba(221, 245, 230, .13);
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.feedback-list-error { color: #e9aaa2; border-color: rgba(238, 146, 134, .24); }

.feedback-entry {
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .015));
  border: 1px solid rgba(221, 246, 231, .11);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.feedback-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-entry-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbeae1;
  font-size: 12px;
  font-weight: 650;
}

.feedback-entry-type::before {
  width: 6px;
  height: 6px;
  content: '';
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}

.feedback-entry-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  color: #a7cab5;
  background: rgba(var(--accent-rgb), .08);
  border: 1px solid rgba(var(--accent-rgb), .17);
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.feedback-entry-status.is-closed { color: #91a097; background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); }
.feedback-entry-status.is-replied { color: #aee1ff; background: rgba(104, 183, 255, .08); border-color: rgba(104, 183, 255, .18); }

.feedback-entry-content {
  margin: 11px 0 0;
  color: #b8cabf;
  font-size: 13px;
  line-height: 1.68;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feedback-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 12px;
  color: #718278;
  font-size: 11px;
}

.feedback-entry-replies {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(224, 246, 232, .08);
}

.feedback-entry-reply {
  padding: 10px 11px;
  background: rgba(var(--accent-rgb), .047);
  border-left: 2px solid rgba(var(--accent-rgb), .65);
  border-radius: 0 8px 8px 0;
}

.feedback-entry-reply strong { display: block; color: #dcece2; font-size: 11px; }
.feedback-entry-reply p { margin: 5px 0 0; color: #a9bdb0; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-entry-reply time { display: block; margin-top: 6px; color: #72847a; font-size: 10px; }

.feedback-admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(224, 246, 232, .08);
}

.feedback-admin-action,
.feedback-admin-reply-form button {
  min-height: 31px;
  padding: 0 10px;
  color: #b9f4cf;
  background: rgba(var(--accent-rgb), .09);
  border-color: rgba(var(--accent-rgb), .2);
  box-shadow: none;
  font-size: 11px;
}

.feedback-admin-action.is-danger { color: #ffc0b8; background: rgba(245, 108, 91, .07); border-color: rgba(245, 108, 91, .2); }
.feedback-admin-action.is-muted { color: #c4d1c9; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .11); }

.feedback-admin-reply-form { display: grid; gap: 8px; margin-top: 11px; }
.feedback-admin-reply-form footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.feedback-admin-reply-form p { flex: 1; min-width: 0; margin: 0; color: #8ca096; font-size: 11px; }

/* Profile centre: the same data contract, arranged as an in-page work surface. */
body.emstudio-view-profile .feedback-panel-heading {
  position: relative;
  align-items: flex-start;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(221, 245, 230, .1);
}

body.emstudio-view-profile .feedback-panel-heading::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  content: '';
  background: var(--green-bright);
  box-shadow: 0 0 13px var(--feedback-glow);
}

body.emstudio-view-profile .feedback-unread-summary,
body.emstudio-view-profile .profile-feedback-nav-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #082214;
  background: #8bf7bd;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), .2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  white-space: nowrap;
}

body.emstudio-view-profile .profile-feedback-nav-badge {
  min-width: 18px;
  min-height: 18px;
  margin-left: auto;
  padding: 0 5px;
  font-size: 9px;
}

body.emstudio-view-profile .feedback-profile-center {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(500px 180px at 100% 0, rgba(var(--accent-rgb), .11), transparent 64%),
    rgba(8, 16, 11, .74);
  border-color: rgba(221, 245, 230, .13);
}

body.emstudio-view-profile .feedback-profile-center::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--green-bright));
  opacity: .72;
}

body.emstudio-view-profile .feedback-center-header {
  display: flex;
  min-height: 45px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.emstudio-view-profile .feedback-center-header h4 {
  margin: 4px 0 0;
  color: #edf9f1;
  font-family: var(--font-display, ui-serif, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

body.emstudio-view-profile .feedback-center-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 8, 4, .42);
  border: 1px solid rgba(225, 246, 233, .1);
  border-radius: 10px;
}

body.emstudio-view-profile .feedback-center-tabs button {
  min-height: 30px;
  padding: 0 10px;
  color: #87998e;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
}

body.emstudio-view-profile .feedback-center-tabs button.active,
body.emstudio-view-profile .feedback-center-tabs button[aria-selected="true"] {
  color: #042012;
  background: #87f4b9;
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), .22);
}

body.emstudio-view-profile .feedback-center-tabs button:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .7); outline-offset: 2px; }

body.emstudio-view-profile .feedback-profile-center > .feedback-form {
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  gap: 14px 16px;
  padding: 16px;
  background: rgba(0, 8, 4, .32);
  border: 1px solid rgba(223, 245, 231, .09);
  border-radius: 13px;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-form > label {
  gap: 7px;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-form > label:first-of-type { grid-column: 1; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form > label:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 2; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form > label > span { color: #d6e5db; font-size: 12px; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form textarea { min-height: 112px; }

body.emstudio-view-profile .feedback-profile-center > .feedback-form footer {
  grid-column: 1;
  align-items: flex-end;
  padding-top: 0;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-form footer > p {
  max-width: 205px;
  margin: 0;
  color: #7e9186;
  font-size: 11px;
  line-height: 1.45;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-form .feedback-form-status {
  grid-column: 1;
  margin-top: -3px;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-view {
  padding-top: 2px;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-view > header {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.emstudio-view-profile .feedback-profile-center > .feedback-view h5 {
  margin: 0;
  color: #eaf5ee;
  font-size: 14px;
  font-weight: 650;
}

body.emstudio-view-profile .feedback-profile-center .feedback-entry {
  padding: 14px;
  border-radius: 12px;
}

body.emstudio-view-profile .feedback-profile-center .feedback-entry.is-unread {
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: inset 2px 0 0 var(--green-bright), inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.emstudio-view-profile .feedback-profile-center .feedback-admin-tools { align-items: flex-start; }
body.emstudio-view-profile .feedback-profile-center .feedback-admin-anonymous-note { color: #87998e; font-size: 11px; line-height: 31px; }
body.emstudio-view-profile .feedback-service-unavailable .icon { color: #e7b066; }

@media (max-width: 700px) {
  .feedback-dialog { width: min(100vw - 18px, 680px); max-height: calc(100dvh - 18px); border-radius: 18px; }
  .feedback-dialog-header { min-height: 112px; padding: 22px 20px 17px; }
  .feedback-dialog-header::after { right: 20px; }
  .feedback-tabs { padding: 12px 15px 0; }
  .feedback-dialog-body { padding: 20px 15px 18px; }
  body.emstudio-view-profile .feedback-profile-center > .feedback-form { grid-template-columns: 1fr; }
  body.emstudio-view-profile .feedback-profile-center > .feedback-form > label:first-of-type,
  body.emstudio-view-profile .feedback-profile-center > .feedback-form > label:nth-of-type(2),
  body.emstudio-view-profile .feedback-profile-center > .feedback-form footer,
  body.emstudio-view-profile .feedback-profile-center > .feedback-form .feedback-form-status { grid-column: 1; grid-row: auto; }
}

@media (max-width: 520px) {
  .feedback-float-nav { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); gap: 6px; padding: 6px; border-radius: 14px; }
  .feedback-float-button { width: 39px; height: 39px; border-radius: 10px; }
  .feedback-float-button::after { display: none; }
  .feedback-qr-popover { right: 0; bottom: calc(100% + 9px); width: 178px; }
  .feedback-qr-popover img { width: 130px; height: 130px; }
  .feedback-dialog-header p { max-width: 290px; font-size: 12px; }
  .feedback-form footer { align-items: flex-start; flex-direction: column; }
  .feedback-form-status { min-height: 0; }
  .feedback-submit { width: 100%; }
  .feedback-entry { padding: 13px; }
  .feedback-entry-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .feedback-filter-label { max-width: none; }
  .feedback-filter-label select { flex: 1; }
  body.emstudio-view-profile .feedback-profile-center { gap: 16px; padding: 16px; }
  body.emstudio-view-profile .feedback-center-header { align-items: stretch; flex-direction: column; }
  body.emstudio-view-profile .feedback-center-tabs { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  .feedback-float-button,
  .feedback-float-button::after,
  .feedback-dialog,
  .feedback-submit,
  .feedback-admin-action,
  .feedback-admin-reply-form button { transition: none; animation: none; }
}

/* 1.0.0 feedback refinement: theme-owned listboxes avoid the white native menu. */
.feedback-dialog {
  width: min(940px, calc(100vw - 36px));
  max-height: min(800px, calc(100dvh - 34px));
  background: #07100b;
  border-color: rgba(213, 245, 225, .18);
  border-radius: 20px;
}
.feedback-dialog-surface {
  grid-template-rows: auto auto minmax(0, 1fr);
  background: radial-gradient(800px 300px at 100% 0%, rgba(var(--accent-rgb), .14), transparent 64%), linear-gradient(155deg, rgba(255,255,255,.045), transparent 28%), #07100b;
}
.feedback-dialog-header { min-height: 112px; padding: 22px 26px 18px; }
.feedback-dialog-header::after { right: 26px; width: 70px; }
.feedback-dialog-header h2 { font-size: clamp(24px, 2.6vw, 31px); font-weight: 650; }
.feedback-dialog-header p { max-width: 560px; margin-top: 7px; color: #8fa197; font-size: 13px; }
.feedback-kicker { margin-bottom: 6px; color: #65f6a6; font-size: 10px; letter-spacing: .12em; }
.feedback-tabs { gap: 4px; padding: 11px 26px 0; }
.feedback-tabs button { min-height: 36px; padding: 0 12px 10px; font-size: 13px; font-weight: 600; }
.feedback-dialog-body { padding: 20px 26px 24px; }

.feedback-form { gap: 16px; }
.feedback-form-row { display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1.42fr); gap: 14px; align-items: end; }
.feedback-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feedback-field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #d6e6dc;
  font-size: 12px;
  font-weight: 600;
}
.feedback-field > span:first-child,
.feedback-filter-label > span:first-child { display: inline-flex; align-items: baseline; gap: 5px; min-height: 16px; }
.feedback-field em { color: #708279; font-size: 10px; font-style: normal; font-weight: 400; }
.feedback-form .feedback-field input,
.feedback-form .feedback-field textarea,
.feedback-admin-reply-form textarea {
  color: #e6f2ea;
  background: rgba(2, 10, 6, .72);
  border-color: rgba(218, 244, 228, .14);
  border-radius: 9px;
  font-size: 13px;
}
.feedback-form .feedback-field input { min-height: 42px; padding: 0 12px; }
.feedback-content-field textarea { min-height: 132px; }

.feedback-custom-select { position: relative; z-index: 2; display: block; min-width: 0; }
.feedback-custom-select.is-open { z-index: 32; }
.feedback-select-trigger {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px 0 12px;
  color: #e7f4eb;
  background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(3,13,8,.82));
  border: 1px solid rgba(218, 244, 228, .14);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.feedback-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-select-trigger .icon { width: 15px; height: 15px; color: #a2b8aa; transition: transform .16s ease, color .16s ease; }
.feedback-custom-select.is-open .feedback-select-trigger,
.feedback-select-trigger:hover,
.feedback-select-trigger:focus-visible {
  background: rgba(var(--accent-rgb), .065);
  border-color: rgba(var(--accent-rgb), .52);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .09), inset 0 1px 0 rgba(255,255,255,.055);
  outline: none;
}
.feedback-custom-select.is-open .feedback-select-trigger .icon { color: #82ffbc; transform: rotate(180deg); }
.feedback-select-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  min-width: max-content;
  max-height: min(280px, calc(100dvh - 180px));
  overflow-y: auto;
  padding: 5px;
  background: #0a1510;
  border: 1px solid rgba(204, 241, 219, .19);
  border-radius: 11px;
  box-shadow: 0 16px 32px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.055);
  transform-origin: top center;
  animation: feedback-select-open .14s ease both;
  scrollbar-color: rgba(var(--accent-rgb), .42) transparent;
  scrollbar-width: thin;
}
.feedback-select-menu[hidden] { display: none; }
@keyframes feedback-select-open { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.feedback-select-menu button {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  color: #afc3b7;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  transition: color .14s ease, background .14s ease;
  white-space: nowrap;
}
.feedback-select-menu button:hover,
.feedback-select-menu button:focus-visible,
.feedback-select-menu button[aria-selected="true"] { color: #effcf4; background: rgba(var(--accent-rgb), .13); outline: none; }
.feedback-select-menu button[aria-selected="true"]::after { width: 5px; height: 5px; margin-left: auto; content: ''; background: #72f7ae; border-radius: 50%; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .11); }
.feedback-form .feedback-field input:focus,
.feedback-form .feedback-field textarea:focus,
.feedback-admin-reply-form textarea:focus { background: rgba(var(--accent-rgb), .045); border-color: rgba(var(--accent-rgb), .58); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1); }
.feedback-field-hint { right: 12px; bottom: 10px; }
.feedback-form footer { min-height: 44px; padding-top: 0; }
.feedback-form-status { color: #91a69a; font-size: 12px; }
.feedback-submit { min-height: 44px; padding-inline: 17px; border-radius: 10px; font-size: 13px; }

.feedback-view-heading { margin-bottom: 14px; }
.feedback-view-heading h3 { font-size: 19px; font-weight: 650; }
.feedback-view-heading p { color: #82958a; }
.feedback-filter-label { display: grid; max-width: 310px; grid-template-columns: max-content minmax(168px, 1fr); align-items: center; gap: 10px; margin: 0 0 15px; color: #91a69a; }
.feedback-filter-select .feedback-select-trigger { min-height: 36px; font-size: 12px; }
.feedback-filter-select .feedback-select-menu { min-width: 100%; }
.feedback-list { gap: 11px; }
.feedback-entry {
  position: relative;
  overflow: hidden;
  padding: 16px 17px;
  background: linear-gradient(125deg, rgba(255,255,255,.052), rgba(255,255,255,.013) 48%), rgba(4,13,8,.48);
  border-color: rgba(218, 244, 228, .12);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.feedback-entry::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; content: ''; background: rgba(var(--accent-rgb), .62); opacity: .7; }
.feedback-entry.is-closed::before { background: rgba(189,199,193,.5); }
.feedback-entry.is-replied::before { background: rgba(118,200,255,.72); }
.feedback-entry-header { align-items: center; }
.feedback-entry-type { color: #e1efe6; font-size: 12px; }
.feedback-entry-content { margin-top: 10px; color: #c0d0c6; font-size: 13px; line-height: 1.65; }
.feedback-entry-meta { gap: 6px 13px; margin-top: 10px; color: #7c9084; font-size: 11px; }
.feedback-entry-author { color: #a9c0b1; font-weight: 600; }
.feedback-entry-email { color: #73877b; }
.feedback-entry-replies { margin-top: 12px; padding-top: 12px; }
.feedback-entry-reply { padding: 11px 12px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .075), rgba(var(--accent-rgb), .025)); border-left-width: 3px; }

.feedback-admin-tools { display: grid; width: 100%; grid-template-columns: minmax(150px, .62fr) minmax(0, 1.7fr); gap: 12px; margin-top: 14px; padding-top: 14px; }
.feedback-admin-actions { display: flex; align-items: flex-start; align-content: flex-start; flex-wrap: wrap; gap: 7px; }
.feedback-admin-action { min-height: 36px; padding-inline: 11px; border-radius: 8px; font-size: 11px; }
.feedback-admin-reply-form { min-width: 0; margin: 0; padding: 10px; background: rgba(1,9,5,.44); border: 1px solid rgba(214,244,226,.1); border-radius: 10px; }
.feedback-admin-reply-form textarea { display: block; min-height: 88px; resize: vertical; }
.feedback-admin-reply-form footer { min-height: 31px; margin-top: 8px; }
.feedback-admin-reply-form p { color: #83978b; font-size: 11px; line-height: 1.4; }
.feedback-admin-reply-form button { min-height: 32px; padding-inline: 11px; border-radius: 8px; }
.feedback-admin-anonymous-note { display: flex; min-height: 36px; align-items: center; color: #83958b; font-size: 11px; line-height: 1.45; }

/* In-page feedback keeps the same controls while using a quieter profile rhythm. */
body.emstudio-view-profile .feedback-profile-center { gap: 17px; padding: 20px; background: radial-gradient(600px 220px at 100% 0%, rgba(var(--accent-rgb), .08), transparent 66%), rgba(8,17,12,.76); border-color: rgba(213,244,225,.13); }
body.emstudio-view-profile .feedback-center-header { padding-bottom: 14px; border-bottom-color: rgba(217,244,227,.09); }
body.emstudio-view-profile .feedback-center-header h4 { font-size: 20px; font-weight: 650; }
body.emstudio-view-profile .feedback-center-tabs { padding: 3px; background: rgba(1,9,5,.36); border-color: rgba(217,244,227,.1); }
body.emstudio-view-profile .feedback-profile-center > .feedback-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form > .feedback-form-row,
body.emstudio-view-profile .feedback-profile-center > .feedback-form > .feedback-content-field,
body.emstudio-view-profile .feedback-profile-center > .feedback-form > footer,
body.emstudio-view-profile .feedback-profile-center > .feedback-form > .feedback-form-status { grid-column: auto; grid-row: auto; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form .feedback-content-field textarea { min-height: 118px; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form footer { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 14px; margin: 0; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form footer > p { margin: 0; color: #899c91; font-size: 11px; line-height: 1.45; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form footer > .feedback-profile-submit {
  flex: 0 0 auto;
  min-width: 128px;
  min-height: 42px;
  padding-inline: 16px;
  color: #052012;
  background: linear-gradient(135deg, #8bffc4 0%, #5bf3a1 46%, var(--green-bright) 100%);
  border-color: rgba(225, 255, 237, .76);
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(var(--accent-rgb), .24), inset 0 1px 0 rgba(255, 255, 255, .5);
}
body.emstudio-view-profile .feedback-profile-center > .feedback-form footer > .feedback-profile-submit .icon { width: 16px; height: 16px; }
body.emstudio-view-profile .feedback-profile-center > .feedback-form footer > .feedback-profile-submit:hover,
body.emstudio-view-profile .feedback-profile-center > .feedback-form footer > .feedback-profile-submit:focus-visible {
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), .34), inset 0 1px 0 rgba(255, 255, 255, .54);
}
body.emstudio-view-profile .feedback-profile-center > .feedback-form .feedback-form-status { min-height: 0; margin: -7px 0 0; }
body.emstudio-view-profile .feedback-profile-center > .feedback-view { margin-top: 2px; padding-top: 16px; border-top: 1px solid rgba(217,244,227,.09); }

@media (max-width: 720px) {
  .feedback-dialog { width: min(100vw - 18px, 620px); border-radius: 17px; }
  .feedback-dialog-header { min-height: 104px; padding: 20px 18px 16px; }
  .feedback-dialog-header::after { right: 18px; }
  .feedback-tabs { padding-inline: 15px; }
  .feedback-dialog-body { padding: 18px 15px 20px; }
  .feedback-form-row { grid-template-columns: 1fr; gap: 13px; }
  .feedback-admin-tools { grid-template-columns: 1fr; }
  .feedback-admin-actions { order: 2; }
  .feedback-admin-reply-form { order: 1; }
}
@media (max-width: 500px) {
  .feedback-contact-grid { grid-template-columns: 1fr; gap: 11px; }
  .feedback-dialog-header h2 { font-size: 25px; }
  .feedback-dialog-header p { max-width: 250px; font-size: 12px; }
  .feedback-form footer, body.emstudio-view-profile .feedback-profile-center > .feedback-form footer { align-items: stretch; flex-direction: column; }
  .feedback-submit { width: 100%; }
  .feedback-filter-label { max-width: none; grid-template-columns: 1fr; gap: 6px; }
  .feedback-entry { padding: 14px; }
  .feedback-entry-header { align-items: flex-start; }
  body.emstudio-view-profile .feedback-profile-center { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-select-menu { animation: none; }
  .feedback-select-trigger .icon { transition: none; }
}
