.feedback-dialog {
  width: min(640px, calc(100vw - 32px));
  color: #243d35;
}
.feedback-dialog .portal-content {
  padding: 24px;
  overflow: auto;
}
.feedback-dialog.feedback-inbox {
  width: min(1000px, calc(100vw - 32px));
}
.feedback-dialog .feedback-intro {
  margin: 0 0 22px;
  color: #60756b;
  font-size: 14px;
}
.feedback-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
  font-weight: 600;
}
.feedback-label textarea,
.feedback-label select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #cbd9d2;
  border-radius: 8px;
  font: 400 14px/1.6 inherit;
  color: inherit;
  background: white;
  resize: vertical;
}
.feedback-label textarea:focus {
  outline: 2px solid #236246;
  outline-offset: 2px;
}
.feedback-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
.feedback-muted {
  font-size: 12px;
  color: #687b72;
  line-height: 1.6;
}
.feedback-dialog > footer {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.feedback-dialog > footer > .feedback-muted {
  margin-left: auto;
}
.feedback-dialog button {
  min-height: 36px;
}
.feedback-attachment {
  border: 1px solid #dce5df;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  background: #fafcfb;
}
.feedback-attachment img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 5px;
}
.feedback-file-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.feedback-file-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.feedback-file-row button {
  flex-shrink: 0;
}
.feedback-picker {
  position: fixed;
  inset: 0;
  z-index: 0;
  cursor: crosshair;
  touch-action: none;
  background: transparent;
  overflow: hidden;
}
.feedback-pick-guide {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  background: #183e30;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 24px #0003;
  font: 14px/1.5 sans-serif;
  white-space: nowrap;
  cursor: default;
}
.feedback-pick-guide button {
  background: #fff;
  color: #183e30;
  border: 0;
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
}
.feedback-region {
  position: absolute;
  border: 2px solid #1683ff;
  background: #1683ff08;
  box-sizing: border-box;
  pointer-events: none;
}
.feedback-region[hidden],
.portal-overlay[hidden] {
  display: none !important;
}
.feedback-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.feedback-event {
  border-left: 2px solid #cfe0d6;
  padding: 4px 12px;
  margin: 16px 0;
  font-size: 13px;
}
.feedback-list-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e1e9e4;
}
.feedback-list-entry .feedback-list-row { border-bottom: 0 !important; }
.feedback-list-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #718178;
}
.feedback-list-delete:hover { background: #fbefed !important; color: #a43b32; }
.feedback-list-delete:focus-visible { outline: 2px solid #a43b32; outline-offset: 2px; }
.feedback-list-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px 16px;
  text-align: left;
  width: 100%;
  background: white !important;
  border: 0 !important;
  border-bottom: 1px solid #e1e9e4 !important;
  border-radius: 0 !important;
  padding: 20px 8px !important;
  color: inherit !important;
}
.feedback-list-row:hover {
  background: #f3f8f5 !important;
}
.feedback-list-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.feedback-list-row > .feedback-muted {
  grid-column: 2;
}
.feedback-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf5f0;
  color: #286046;
  border-radius: 5px;
  text-align: center;
  padding: 3px 6px;
  font-size: 12px;
}
.feedback-list-row.is-unread .feedback-badge::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #bd4934;
}
.feedback-empty {
  text-align: center;
  color: #718178;
  padding: 60px 0;
}
.feedback-space-entry {
  border: 1px solid #d9e5dd;
  border-radius: 10px;
  padding: 0 18px 18px;
  margin-bottom: 20px;
  background: #f7fbf8;
}
.feedback-dialog .portal-status:not(:empty) {
  padding: 12px 24px;
  color: #985136;
  background: #fff9f3;
}
@media (max-width: 600px) {
  .feedback-dialog .portal-content {
    padding: 16px;
  }
  .feedback-dialog > footer > .feedback-muted {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .feedback-pick-guide {
    gap: 10px;
    font-size: 12px;
  }
  .feedback-tools select {
    max-width: 100%;
  }
}
.feedback-dialog.portal-form,
.feedback-dialog.portal-compact {
  height: auto;
  max-height: calc(100dvh - 48px);
}
.feedback-dialog .feedback-label textarea,
.feedback-dialog .feedback-label select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.feedback-tools select {
  min-height: 40px;
  padding: 8px 30px 8px 12px;
  border: 1px solid #cfddd5;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.feedback-dialog .portal-status:empty {
  display: none;
}
.portal-overlay:has(> .feedback-dialog) {
  z-index: 2147482000;
}
.feedback-window-entry {
  margin-left: auto;
  margin-right: 8px;
  flex: none;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 9px;
  min-height: 28px;
  border: 1px solid #cfddd5;
  border-radius: 6px;
  color: #325e49;
  background: white;
  cursor: pointer;
}
/* Shared title bar for business dialogs, regardless of their original renderer. */
.portal-unified-header.portal-unified-header {
  box-sizing:border-box; width:100%; min-height:72px; flex:none;
  display:flex!important; align-items:center!important; justify-content:flex-start!important;
  gap:12px!important; padding:16px 24px!important; margin:0!important;
  border:0!important; border-bottom:1px solid #e0e8e4!important;
  background:#fff!important; color:#24372e;
}
.portal-unified-header > :is(h2,h3,.workspace-dialog-title),
.portal-unified-header > div:not(.feedback-window-entry) { min-width:0; flex:1; }
.portal-unified-header.portal-unified-header :is(h2,h3,.workspace-dialog-title) { margin:0; font-family:inherit; font-size:18px; font-weight:600; line-height:1.4; }
.portal-unified-header.portal-unified-header p { margin:4px 0 0; font-size:12px; line-height:1.5; color:#708278; }
.portal-unified-header > button.feedback-window-entry { flex:none; height:40px; min-height:40px; margin:0 0 0 auto; padding:0 12px; border:0; border-radius:6px; font-size:13px; background:transparent; }
.portal-unified-header > button.portal-unified-close {
  position:relative!important; inset:auto!important; flex:none; order:2;
  display:grid; place-items:center; width:40px!important; height:40px!important; min-height:40px!important;
  margin:0!important; padding:0!important; border:0!important; border-radius:6px;
  background:transparent; color:#687b72; font-size:0!important; cursor:pointer;
}
.portal-unified-header > button.portal-unified-close::before,
.portal-unified-header > button.portal-unified-close::after { content:''; position:absolute; left:50%; top:50%; width:18px; height:2px; border-radius:1px; background:currentColor; transform:translate(-50%,-50%) rotate(45deg); }
.portal-unified-header > button.portal-unified-close::after { transform:translate(-50%,-50%) rotate(-45deg); }
.portal-unified-header > :is(.portal-unified-close,.feedback-window-entry):hover { background:#edf3ef; color:#245a42; }
.portal-unified-header > :is(.portal-unified-close,.feedback-window-entry):focus-visible { outline:2px solid #357d61; outline-offset:2px; }
@media(max-width:600px){.portal-unified-header.portal-unified-header{padding:12px 16px!important;gap:8px!important;min-height:64px;}}
.feedback-unread-count {
  display: inline-flex;
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  color: white;
  background: #bd4934;
  font-size:12px;
  line-height: 1;
}
.portal-dialog.feedback-floating {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(380px, calc(100vw - 16px));
  height: auto;
  max-height: calc(100dvh - 16px);
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cfddd5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px #183e3029;
  z-index: 2147482001;
  font: 14px/1.5 system-ui, sans-serif;
}
.feedback-floating::backdrop { display: none; }
.feedback-floating[hidden], .feedback-floating [hidden], .feedback-selected-region[hidden] { display: none !important; }
.portal-dialog.feedback-floating > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e1e9e4;
  background: #f7faf8;
}
.feedback-floating > header > button {
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 28px;
  width: 28px;
  font-size: 20px;
  cursor: pointer;
}
.feedback-tool-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feedback-floating > header > .feedback-close-button { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 6px; line-height: 1; color: #687b72; }
.feedback-floating > header > .feedback-close-button:hover { background: #edf2ef; color: #223d30; }
.feedback-drag-handle { flex: 1; cursor: grab; touch-action: none; user-select: none; font-weight: 600; }
.feedback-drag-handle::after { content: "⠿"; float: right; color: #82978c; }
.feedback-drag-handle:active { cursor: grabbing; }
.feedback-drag-handle:focus-visible { outline: 2px solid #236246; outline-offset: 3px; }
.portal-dialog.feedback-floating .portal-content { padding: 0 14px 10px; min-height: 0; overflow: auto; }
.feedback-floating .feedback-tools { margin: 12px 0 2px; gap: 6px; }
.feedback-floating .feedback-tools button { font-size: 13px; padding: 6px 10px; }
.feedback-floating .feedback-attachment { padding: 8px; }
.feedback-floating .feedback-attachment img { max-height: 120px; }
.feedback-floating .feedback-label { margin: 10px 0; gap: 5px; }
.feedback-floating .feedback-label textarea { padding: 8px; }
.portal-dialog.feedback-floating > footer { display: flex; justify-content: space-between; padding: 8px 14px 12px; border: 0; }
.feedback-floating .portal-status:not(:empty) { padding: 8px 14px; }
.feedback-selected-region {
  position: fixed;
  border: 2px solid #1683ff;
  border-radius: 3px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2147482000;
}
.portal-dialog.feedback-toolbox {
  width: max-content;
  max-width: calc(100vw - 16px);
  overflow: visible;
  border-radius: 10px;
}
.portal-dialog.feedback-toolbox > header {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 6px;
  gap: 4px;
  border: 0;
  border-radius: inherit;
  flex-wrap: nowrap;
  background: #fff;
}
.feedback-toolbox .feedback-drag-handle {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  box-sizing: border-box;
  margin-right: 2px;
  border-right: 1px solid #e2e9e5;
  color: #92a198;
}
.feedback-toolbox .feedback-drag-handle::after { content: none; }
.feedback-toolbox .feedback-drag-handle .feedback-tool-icon { stroke-width: 3; }
.feedback-toolbox > header .feedback-tools { margin: 0; flex-wrap: nowrap; gap: 3px; overflow-x: auto; }
.feedback-toolbox > header .feedback-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-height: 32px; padding: 0 9px; border-radius: 6px; font: 500 12px/1.2 system-ui, sans-serif; white-space: nowrap; border: 0; background: transparent; color: #40564a; }
.feedback-toolbox > header .feedback-tools button:hover { background: #f0f5f2; color: #236246; }
.feedback-toolbox > header .feedback-tools [data-tool="annotate"][aria-pressed="true"] { background: #e6f1eb; color: #236246; }
.feedback-toolbox > header .feedback-tools button:focus-visible, .feedback-floating > header > .feedback-close-button:focus-visible { outline: 2px solid #236246; outline-offset: -2px; }
.feedback-toolbox > header > .feedback-close-button { flex: none; margin-left: 4px; position: relative; }
.feedback-toolbox > header > .feedback-close-button::before { content: ""; position: absolute; left: -5px; top: 6px; bottom: 6px; border-left: 1px solid #e2e9e5; }
.feedback-composer {
  position: fixed;
  width: min(360px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
  background: white;
  border: 1px solid #cfddd5;
  border-radius: 24px;
  box-shadow: 0 8px 32px #183e3029;
  box-sizing: border-box;
}
.portal-dialog.feedback-toolbox .portal-content { padding: 6px; }
.feedback-compose-row { display: flex; align-items: center; gap: 6px; }
.feedback-floating .feedback-compose-row > .feedback-compose-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  margin: 0;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: 12px/1.4 system-ui, sans-serif;
}
.feedback-compose-input:focus { outline: none; }
.feedback-composer:focus-within { border-color: #1683ff; box-shadow: 0 4px 20px #1683ff1f; }
.feedback-compose-row > footer { flex: none; display: flex; padding: 0; margin: 0; border: 0; }
.feedback-compose-row > footer button { white-space: nowrap; }
.feedback-compose-row > footer .feedback-submit-button { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: #1683ff; color: white; cursor: pointer; }
.feedback-compose-row > footer .feedback-submit-button:hover { background: #086fdf; }
.feedback-compose-row > footer .feedback-submit-button:focus-visible { outline: 2px solid #086fdf; outline-offset: 2px; }
.feedback-compose-row > footer .feedback-submit-button:disabled { opacity: .5; cursor: wait; }
.feedback-toolbox .feedback-attachment { border: 0; padding: 0; margin: 0 0 10px; background: transparent; }
.feedback-toolbox .feedback-attachment:last-child { margin-bottom: 0; }
.portal-dialog.feedback-report { width: min(560px, calc(100vw - 32px)); border-radius: 14px; }
.portal-dialog.feedback-report > header { padding: 14px 20px; background: white; }
.portal-dialog.feedback-report > .portal-content { padding: 18px 22px; }
.feedback-report .feedback-label { margin: 0 0 18px; gap: 10px; }
.feedback-report .feedback-label textarea { min-height: 160px; max-height: 40dvh; margin: 0; padding: 12px; border-radius: 8px; font: 14px/1.7 system-ui, sans-serif; }
.feedback-report-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback-report-upload > button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #cfddd5; border-radius: 7px; background: #f7faf8; color: #325e49; font: 13px/1.5 system-ui, sans-serif; cursor: pointer; }
.feedback-report-files .feedback-file-row { gap: 8px; margin-top: 10px; padding: 8px 10px; border: 1px solid #e1e9e4; border-radius: 7px; background: #fafcfb; }
.feedback-report-files .feedback-file-row > span { flex: 1; }
.feedback-report-files button { min-height: 28px; border: 0; background: transparent; color: #60756b; font: inherit; cursor: pointer; }
.portal-dialog.feedback-report > footer { margin: 0; padding: 14px 22px; border-top: 1px solid #e1e9e4; justify-content: space-between; flex-wrap: nowrap; }
.feedback-report > footer > .feedback-muted { margin-left: 0; }
.feedback-report > footer > button { padding: 8px 24px; border: 0; border-radius: 7px; background: #236246; color: white; font: 500 14px/1.5 system-ui, sans-serif; cursor: pointer; }
.feedback-report button:disabled { opacity: .5; cursor: wait; }
.feedback-capturing .feedback-composer { display: none; }
.feedback-evidence-preview { margin-top: 8px; }
.feedback-evidence-preview summary { cursor: pointer; font-size: 12px; }
.feedback-evidence-preview img { display: block; width: 100%; height: auto; margin-top: 8px; }
.feedback-dialog > footer .feedback-delete { color:#a43b32; border-color:#e4c8c4; background:#fff; }
.feedback-dialog > footer .feedback-delete:focus-visible { outline:2px solid #a43b32; outline-offset:2px; }
