.feedback-ui {
  --feedback-ink: var(--ink-strong, #17283f);
  --feedback-muted: var(--ink-soft, #566881);
  --feedback-line: var(--line, #e1e8f1);
  --feedback-paper: var(--surface, #fff);
  --feedback-wash: #f6f8fc;
  --feedback-blue: #285cc4;
  --feedback-blue-dark: #204b9d;
  --feedback-blue-soft: #edf3ff;
  --feedback-alert: #a02925;
  --feedback-alert-soft: #fcebe9;
  color: var(--feedback-ink);
  line-height: 1.55;
  box-sizing: border-box;
}
.feedback-ui *, .feedback-ui *::before, .feedback-ui *::after { box-sizing: inherit; }
.feedback-ui [hidden], #openFeedbackBtn .feedback-dot[hidden] { display: none !important; }
.feedback-ui :focus-visible { outline: 2px solid var(--feedback-blue); outline-offset: 3px; }
.feedback-ui button:disabled { cursor: default; opacity: .58; }

#openFeedbackBtn { gap: .42em; }
#openFeedbackBtn .feedback-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-inline-start: .15em;
  border-radius: 50%;
  background: #ce362d;
}
html.layout-mobile #mobileRightDrawer [data-slot-id="openFeedbackBtn"] > .mobile-menu-slot-label {
  display: none;
}
html.layout-mobile #mobileRightDrawer [data-slot-id="openFeedbackBtn"] > #openFeedbackBtn {
  position: static;
  display: inline-flex !important;
  align-self: stretch;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
  gap: inherit !important;
  font: inherit;
}
html.layout-mobile #mobileRightDrawer #openFeedbackBtn > .mobile-menu-slot-label { flex: none; }

.feedback-dialog {
  --feedback-gutter: 16px;
  --feedback-top: max(var(--feedback-viewport-top, 0px), env(safe-area-inset-top, 0px));
  --feedback-bottom: max(var(--feedback-viewport-bottom, 0px), env(keyboard-inset-height, 0px), env(safe-area-inset-bottom, 0px));
  --feedback-text-size: var(--tablet-body-font-size);
  --feedback-action-size: var(--tablet-action-font-size);
  --feedback-secondary-size: var(--tablet-secondary-font-size);
  --feedback-badge-size: calc(var(--feedback-secondary-size) - 2px);
  --feedback-title-size: calc(var(--feedback-text-size) + 4px);
  position: fixed;
  inset-block: calc(var(--feedback-top) + var(--feedback-gutter)) calc(var(--feedback-bottom) + var(--feedback-gutter));
  inset-inline: 0;
  margin: auto;
  width: min(660px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: min(640px, 82%, calc(100% - var(--feedback-top) - var(--feedback-bottom) - 2 * var(--feedback-gutter)));
  padding: 0;
  border: 1px solid var(--feedback-line);
  border-radius: 20px;
  background: var(--feedback-paper);
  box-shadow: 0 18px 70px #17283f38;
  overflow: hidden;
  font-size: var(--feedback-text-size, inherit);
}
.feedback-dialog[open] { display: flex; flex-direction: column; }
.feedback-dialog::backdrop, .feedback-image-dialog::backdrop { background: #18243d72; }
.feedback-dialog__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--feedback-line);
}
.feedback-dialog__header h2, .feedback-history h3, .feedback-admin h1 { margin: 0; font-weight: 700; }
.feedback-dialog__header h2 { font-size: var(--feedback-title-size, 20px); line-height: 1.25; }
.feedback-dialog__header .ui-close-button, .feedback-image-dialog .ui-close-button {
  inset: auto;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}
.feedback-dialog__body {
  min-height: 0;
  padding: 13px 18px 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.feedback-dialog__tabs { flex-shrink: 0; padding: 7px 18px 0; }
.feedback-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--feedback-line);
  border-radius: 12px;
  background: var(--feedback-wash);
}
.feedback-view-tabs [role="tab"] {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--feedback-muted);
  font: inherit;
  font-size: var(--feedback-action-size, 14px);
  font-weight: 650;
  cursor: pointer;
}
.feedback-view-tabs [aria-selected="true"] {
  border-color: var(--feedback-line);
  background: var(--feedback-paper);
  color: var(--feedback-ink);
  box-shadow: 0 1px 2px #17283f0d;
}
.feedback-view-tab-badge {
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--feedback-blue-soft);
  color: var(--feedback-blue-dark);
  font-size: var(--feedback-badge-size, 11px);
  font-weight: 650;
  white-space: nowrap;
}
.feedback-view-tab-badge--attention { color: var(--feedback-alert); background: var(--feedback-alert-soft); }
.feedback-admin > .feedback-view-tabs {
  --feedback-action-size: 16px;
  width: min(100%, 400px);
  margin: 14px 0 17px;
}
.feedback-announcement-card {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #d6e2f5;
  border-radius: 10px;
  background: var(--feedback-blue-soft);
}
.feedback-announcement__copy { font-size: var(--feedback-text-size, 15px); line-height: 1.6; }
.feedback-announcement-empty { padding: 8px 0; }
.feedback-announcement-history, .feedback-announcement__manage { margin-top: 10px; }
.feedback-announcement-history > summary { align-content: center; font-weight: 650; }
.feedback-announcement-history > .feedback-card__content > .feedback-more { margin: 0; }
.feedback-announcement-workspace {
  --feedback-text-size: clamp(16px, 1vw, 18px);
  --feedback-action-size: clamp(16px, .9vw, 17px);
  --feedback-secondary-size: clamp(14px, .85vw, 16px);
  --feedback-badge-size: calc(var(--feedback-secondary-size) - 1px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  align-items: start;
  gap: clamp(14px, 1.4vw, 24px);
}
.feedback-announcement-surface {
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--feedback-line);
  border-radius: 12px;
  background: var(--feedback-paper);
}
.feedback-announcement__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.feedback-announcement-surface h2 { margin: 0; font-size: clamp(20px, 1.3vw, 24px); }
.feedback-announcement__editor .feedback-status { margin-top: 0; }
.feedback-announcement__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-form, .feedback-admin-reply, .feedback-history { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.feedback-form-label, .feedback-reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feedback-form-label label, .feedback-admin-reply > label, .feedback-history h3 {
  font-size: var(--feedback-action-size, 15px);
  font-weight: 650;
}
.feedback-character-count { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.feedback-textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 108px;
  padding: 11px 12px;
  border: 1px solid #cbd6e5;
  border-radius: 10px;
  background: var(--feedback-paper);
  color: var(--feedback-ink);
  resize: vertical;
  font: inherit;
  font-size: var(--feedback-text-size, 16px);
  line-height: 1.55;
}
.feedback-textarea::placeholder { color: var(--feedback-muted); opacity: 1; }
.feedback-textarea:focus { border-color: var(--feedback-blue); }
.feedback-dialog .feedback-form { gap: 7px; }
.feedback-dialog .feedback-textarea { min-height: 80px; padding-block: 7px; }
.feedback-compose-actions, .feedback-admin__toolbar, .feedback-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.feedback-compose-actions, .feedback-admin__toolbar { justify-content: space-between; }
.feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--feedback-line);
  border-radius: 9px;
  background: var(--feedback-paper);
  color: var(--feedback-ink);
  font: inherit;
  font-size: var(--feedback-action-size, 14px);
  font-weight: 600;
  cursor: pointer;
}
.feedback-button:hover:not(:disabled) { background: var(--feedback-wash); }
.feedback-button--primary {
  padding-inline: 16px;
  color: #fff;
  border-color: var(--feedback-blue);
  background: var(--feedback-blue);
}
.feedback-button--primary:hover:not(:disabled) { color: #fff; background: var(--feedback-blue-dark); }
.feedback-hint, .feedback-status {
  margin: 0;
  color: var(--feedback-muted);
  font-size: var(--feedback-secondary-size, 13px);
  line-height: 1.5;
}
.feedback-status[data-type="error"] { color: #a02925; }
.feedback-status[data-type="success"] { color: #166747; }
.feedback-history { border-top: 1px solid var(--feedback-line); margin-top: 13px; padding-top: 10px; }
.feedback-list { display: grid; gap: 7px; }
.feedback-list:empty { display: none; }
.feedback-card {
  min-width: 0;
  border: 1px solid var(--feedback-line);
  border-radius: 12px;
  background: var(--feedback-paper);
}
.feedback-card__summary {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 7px 36px 7px 12px;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}
.feedback-card__summary::-webkit-details-marker { display: none; }
.feedback-card__summary::after {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--feedback-muted);
  border-bottom: 1.5px solid var(--feedback-muted);
  content: "";
  transform: rotate(45deg);
}
.feedback-card[open] > .feedback-card__summary::after { transform: rotate(225deg); }
.feedback-card[open] > .feedback-card__summary > .feedback-card__excerpt { display: none; }
.feedback-card__meta, .feedback-reply__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.feedback-card__meta .feedback-chip { margin-inline-start: auto; }
.feedback-chip, .feedback-new {
  padding: 2px 7px;
  border-radius: 6px;
  color: #77440a;
  background: #fff1d9;
  font-size: var(--feedback-badge-size, 12px);
  font-weight: 650;
  white-space: nowrap;
}
.feedback-chip--replied { color: #1a6148; background: #e8f6ee; }
.feedback-new { color: var(--feedback-alert); background: var(--feedback-alert-soft); }
.feedback-card__excerpt {
  display: block;
  font-size: var(--feedback-text-size, inherit);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feedback-card__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 0 13px 13px; }
.feedback-copy { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
html.layout-mobile.device-tablet .feedback-dialog .feedback-card__content .feedback-copy {
  font-size: var(--feedback-text-size, 16px);
}
.feedback-reply {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--feedback-blue-soft);
}
.feedback-reply__meta { justify-content: space-between; font-size: var(--feedback-action-size, 14px); }
.feedback-more { justify-self: start; width: fit-content; }

.feedback-images { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-draft-image { position: relative; }
.feedback-thumb {
  display: grid;
  place-items: center;
  width: 92px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--feedback-line);
  border-radius: 9px;
  background: var(--feedback-wash);
  color: var(--feedback-muted);
  font: inherit;
  font-size: var(--feedback-badge-size, 12px);
  cursor: pointer;
}
.feedback-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feedback-draft-image .feedback-thumb { width: 105px; height: 82px; }
.feedback-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 19px;
}
.feedback-remove::before {
  position: absolute;
  z-index: -1;
  inset: 6px;
  border-radius: 50%;
  background: #233751;
  content: "";
}
.feedback-remove { isolation: isolate; }
.feedback-image-dialog {
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
  max-width: min(900px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 8px 10px 10px;
  border: 1px solid var(--feedback-line);
  border-radius: 14px;
  background: var(--feedback-paper);
  overflow: auto;
}
.feedback-image-dialog[open] { display: grid; justify-items: end; }
.feedback-image-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 88px);
  object-fit: contain;
}

body.feedback-console { margin: 0; background: var(--canvas); }
.feedback-admin { padding: 28px clamp(16px, 2vw, 24px) 42px; }
.feedback-admin h1 { font-size: clamp(24px, 1.6vw, 30px); }
.feedback-admin__toolbar { margin: 14px 0; }
.feedback-admin .feedback-status, .feedback-admin .feedback-more { margin-top: 12px; }
.feedback-filters [aria-pressed="true"] {
  color: var(--feedback-blue-dark);
  border-color: #b9cbed;
  background: var(--feedback-blue-soft);
}
.feedback-filter-count {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--feedback-wash);
  color: var(--feedback-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.feedback-filters [aria-pressed="true"] .feedback-filter-count {
  background: #dce8fc;
  color: var(--feedback-blue-dark);
}
.feedback-location-filters {
  display: grid;
  grid-template-columns: minmax(0, 220px) repeat(2, minmax(0, 164px)) max-content;
  align-items: end;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.feedback-location-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--feedback-muted);
  font-size: 13px;
  font-weight: 600;
}
.feedback-location-filters select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--feedback-line);
  border-radius: 9px;
  background: var(--feedback-paper);
  color: var(--feedback-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
}
.feedback-location-filters select:disabled { opacity: .58; }
.feedback-location-filters .feedback-button { justify-self: start; }
.feedback-location-hint { grid-column: 1 / -1; margin: 0; }
#adminFeedbackLocationStatus { margin-bottom: 12px; }
.feedback-admin-table-wrap {
  overflow: hidden;
  border: 1px solid var(--feedback-line);
  border-radius: 12px;
  background: var(--feedback-paper);
}
.feedback-admin-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.feedback-col-school { width: 13%; }
.feedback-col-grade { width: 11%; }
.feedback-col-class { width: 7%; }
.feedback-col-name { width: 10%; }
.feedback-col-time { width: 146px; }
.feedback-col-action { width: 128px; }
.feedback-admin-table th, .feedback-admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--feedback-line);
  text-align: start;
  vertical-align: middle;
}
.feedback-admin-table th {
  background: var(--feedback-wash);
  color: var(--feedback-muted);
  font-size: 13px;
  font-weight: 650;
}
.feedback-admin-row { font-size: 14px; }
.feedback-admin-row:hover, .feedback-admin-row.is-expanded { background: var(--feedback-wash); }
.feedback-admin-table tbody tr:nth-last-child(2):not(.is-expanded) > td,
.feedback-admin-table tbody tr:last-child > td { border-bottom: 0; }
.feedback-admin-row td { overflow-wrap: anywhere; }
.feedback-admin-table .feedback-cell-action { text-align: end; }
.feedback-admin-toggle { white-space: nowrap; }
.feedback-cell-label { display: none; }
.feedback-cell-text { display: grid; gap: 3px; min-width: 0; }
.feedback-cell-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.feedback-cell-time time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.feedback-admin-table .feedback-admin-detail__cell { padding: 14px 15px; background: var(--feedback-wash); }
.feedback-admin-detail .feedback-card__content { padding: 0; gap: 14px; }
.feedback-account-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  gap: 8px 15px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--feedback-line);
  border-radius: 10px;
  background: var(--feedback-wash);
}
.feedback-account-field { min-width: 0; }
.feedback-account-field dt { color: var(--feedback-muted); font-size: 12px; }
.feedback-account-field dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.feedback-workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
.feedback-original, .feedback-admin-reply {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--feedback-line);
  border-radius: 10px;
  background: var(--feedback-paper);
}
.feedback-original { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.feedback-field-heading { margin: 0; font-size: 15px; font-weight: 650; }
.feedback-admin-reply .feedback-textarea { min-height: 126px; }
.feedback-admin-reply .feedback-status { margin: 0; }
.feedback-reply-actions { flex-wrap: wrap; }
.feedback-reply-actions button { margin-inline-start: auto; }
.feedback-workspace > .feedback-reply { align-self: stretch; align-content: start; min-width: 0; padding: 14px; }

@media (min-width: 940px) {
  .feedback-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
}


@media (max-width: 760px) {
  .feedback-announcement-workspace { grid-template-columns: minmax(0, 1fr); }
  .feedback-admin-table,
  .feedback-admin-table tbody { display: block; }
  .feedback-admin-table colgroup { display: none; }
  .feedback-admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .feedback-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 6px 12px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--feedback-line);
  }
  .feedback-admin-row td, .feedback-admin-table .feedback-admin-detail__cell {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .feedback-cell-name { grid-area: 1 / 2; }
  .feedback-cell-summary { grid-column: 1 / -1; }
  .feedback-cell-label {
    display: inline;
    margin-inline-end: 6px;
    color: var(--feedback-muted);
    font-size: 12px;
  }
  .feedback-cell-time { grid-row: 4; align-self: center; }
  .feedback-cell-action { grid-row: 4; }
  .feedback-admin-detail { display: block; border-bottom: 1px solid var(--feedback-line); }
  .feedback-admin-table .feedback-admin-detail__cell { padding: 10px 12px; }
  .feedback-admin-table tbody tr:last-child,
  .feedback-admin-table tbody tr:nth-last-child(2):not(.is-expanded) { border-bottom: 0; }
}

@media (max-width: 560px) {
  .feedback-dialog {
    --feedback-gutter: 10px;
    width: calc(100% - 20px);
    border-radius: 16px;
  }
  .feedback-dialog__header { padding: 8px 13px 8px 15px; }
  .feedback-dialog__body { padding: 13px 14px 17px; }
  .feedback-dialog__tabs { padding: 7px 14px 0; }
  .feedback-dialog__header h2 { font-size: var(--feedback-title-size, 18px); }
  .feedback-console .console-header { padding: 9px 12px; gap: 8px; }
  .feedback-console .console-brand { gap: 7px; }
  .feedback-console .console-brand strong { font-size: 14px; }
  .feedback-console .console-header .back { padding: 9px; white-space: nowrap; }
  .feedback-admin { padding: 17px 12px 24px; }
  .feedback-admin h1 { font-size: 21px; }
  .feedback-location-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-location-filters select { font-size: 16px; }
  .feedback-account-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .feedback-location-filters label:nth-child(-n+2) { grid-column: 1 / -1; }
}
