body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}
body a {
  color: #022adb;
  text-decoration: none;
}
body a:hover {
  text-decoration: underline;
  color: #0330fc;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
  flex: none;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 2.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #dde4ec;
  font-family: "Public Sans", Arial, sans-serif;
}
.app-topbar .app-topbar__context {
  font-size: 14px;
  color: #5b6b7c;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-topbar .app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
}
.app-topbar .app-topbar__divider {
  width: 1px;
  height: 18px;
  background-color: #dde4ec;
}
.app-topbar .app-topbar__link {
  font-size: 13px;
  color: #5b6b7c;
  white-space: nowrap;
}
.app-topbar .app-topbar__link:hover {
  color: #12263a;
  text-decoration: underline;
}
.app-topbar .app-topbar__link.app-topbar__link--primary {
  color: #1667a8;
}

.page-container {
  display: flex;
  flex: 1;
}

.nav-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px;
  flex: none;
  background-color: #12263a;
  padding: 0 0 1rem;
  border-right: none;
  font-family: "Public Sans", Arial, sans-serif;
  transition: width 0.3s ease;
}
.nav-sidebar .nav-brand {
  display: flex;
  align-items: center;
  height: 64px;
  flex: none;
  padding: 0 1.375rem;
  margin-bottom: 0.875rem;
}
.nav-sidebar .nav-brand .nav-brand__link {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.nav-sidebar .nav-brand .nav-brand__link:hover {
  color: #ffffff;
  text-decoration: none;
}
.nav-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-sidebar ul li {
  margin-bottom: 1px;
}
.nav-sidebar .nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.nav-sidebar .nav-group {
  margin-bottom: 1.5rem;
}
.nav-sidebar .nav-section-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d8299;
  margin: 0 0 0.5rem;
  padding: 0 1rem 0 calc(1rem + 3px);
}
.nav-sidebar .nav-link {
  display: block;
  text-decoration: none;
  color: #c3d2e0;
  font-size: 14px;
  line-height: 1.3;
  padding: 0.5rem 1rem;
  border-left: 3px solid transparent;
}
.nav-sidebar .nav-link:hover {
  background-color: #1b3550;
  color: #fff;
  text-decoration: none;
}
.nav-sidebar .nav-link.is-active {
  background-color: #1b3550;
  border-left-color: #4d9ede;
  color: #fff;
  font-weight: 600;
}
.nav-sidebar .nav-link--disabled {
  color: #93a8bd;
  opacity: 0.55;
  cursor: default;
}
.nav-sidebar .nav-link--disabled:hover {
  background-color: transparent;
  color: #93a8bd;
}
.nav-sidebar .nav-link--small {
  font-size: 13px;
  color: #93a8bd;
}
.nav-sidebar .bottom.nav-links {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #1f3a55;
}
.nav-sidebar .nav-user-email {
  font-size: 12px;
  color: #8ba0b6;
  padding: 0.25rem 1rem 0.35rem;
  overflow-wrap: anywhere;
}
.nav-sidebar hr {
  width: 100%;
  border-style: solid;
}

.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0;
  background-color: #f4f6f9;
  overflow: auto;
}
.main-content > #messages {
  padding: 1.5rem 1.5rem 0;
}
.main-content .main-content-container {
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.main-content .main-content-container .main-content-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-content .main-content-container .main-content-title .title {
  flex-grow: 1;
}
.main-content .main-content-container .main-content-title .actions {
  flex-shrink: 0;
}
.main-content .main-content-container .index {
  overflow-x: scroll;
}
.main-content .main-content-container .show .actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
}
.main-content .main-content-container .show .actions a {
  margin-right: 1rem;
  font-size: 1.2rem;
}

footer {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

@media (max-width: 1400px) {
  .nav-sidebar {
    width: 220px;
  }
}
@media (max-width: 1200px) {
  .nav-sidebar {
    width: 200px;
  }
  .nav-sidebar .nav-link {
    font-size: 13px;
    padding: 0.45rem 0.75rem;
  }
  .nav-sidebar .nav-section-label {
    padding-left: calc(0.75rem + 3px);
  }
}
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }
  .nav-sidebar {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #1f3a55;
    padding: 0.75rem 0;
  }
  .nav-sidebar .nav-group {
    margin-bottom: 0.75rem;
  }
  .nav-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .nav-sidebar ul li {
    margin-bottom: 0;
  }
  .nav-sidebar .nav-link {
    white-space: nowrap;
    border-left-width: 0;
    border-bottom: 3px solid transparent;
  }
  .nav-sidebar .nav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: #4d9ede;
  }
}
button, .button, input[type=submit] {
  font-size: 1rem;
  background-color: #cccccc;
  border: 1px solid #999999;
  border-radius: 4px;
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  margin: 1rem 1rem 1rem 0;
  line-height: 1.2;
}
button:hover, .button:hover, input[type=submit]:hover {
  text-decoration: none;
  border-width: 2px;
  padding: 7px 15px;
  color: black;
}

table thead tr {
  background-color: #dddddd;
}
table td, table th {
  padding: 0.5rem 1rem;
}
table td.centered, table th.centered {
  text-align: center;
}
table td.right, table th.right {
  text-align: right;
}
table td.left, table th.left {
  text-align: left;
}
table td.actions, table th.actions {
  white-space: nowrap;
}
table td a, table th a {
  margin: 0.3rem;
}
table td {
  text-align: left;
  vertical-align: top;
}
table th {
  text-align: center;
  vertical-align: bottom;
}

.notice {
  color: green;
}

.alert {
  color: red;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.show .children .child {
  position: relative;
  list-style: none;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  padding: 0.3rem 0.6rem;
  margin: 0.3rem 0 0.3rem 2rem;
}
.show .children .child .test-badge {
  position: absolute;
  background-color: #cce7ff; /* Light blue */
  border: 1px solid #3399ff; /* Darker blue border */
  border-radius: 4px;
  padding: 0.2rem 1rem;
  margin-right: 0.5rem;
  top: 0.3rem;
  right: 0.3rem;
}
.show .children .child .child-content {
  margin: 0.5rem;
}
.show .children .child .child-content strong {
  display: block;
}

.approval-stage-badge {
  display: inline-block;
  background-color: #e8f4e8;
  border: 1px solid #5cb85c;
  border-radius: 4px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d7a3d;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.listing {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

pre {
  width: 90%;
  white-space: pre-wrap;
}

trix-editor {
  background-color: #ffffff;
}

trix-editor.editor-capped {
  max-height: max(320px, 55vh);
  overflow-y: auto;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.editor-actions .button {
  margin: 0;
  padding: 11px 22px;
  border-radius: 0;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.editor-actions .button:hover, .editor-actions .button:focus {
  padding: 11px 22px;
  border-width: 1px;
  transform: none;
  box-shadow: none;
}
.editor-actions .button:focus-visible {
  outline: 2px solid #12263a;
  outline-offset: 2px;
}
.editor-actions .editor-actions__save {
  background: #1667a8;
  border: 1px solid #1667a8;
  color: #fff;
}
.editor-actions .editor-actions__save:hover, .editor-actions .editor-actions__save:focus {
  background: #12263a;
  border-color: #12263a;
  color: #fff;
}
.editor-actions .editor-actions__save:disabled, .editor-actions .editor-actions__save:disabled:hover {
  background: #8395a7;
  border-color: #8395a7;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}
.editor-actions .editor-actions__cancel {
  background: #fff;
  border: 1px solid #dde4ec;
  color: #41586e;
  text-decoration: none;
}
.editor-actions .editor-actions__cancel:hover, .editor-actions .editor-actions__cancel:focus {
  background: #fff;
  border-color: #1667a8;
  color: #1667a8;
  text-decoration: none;
}

form .input {
  margin: 0.5rem 1rem 1rem 0;
}
form .input label {
  margin-right: 1rem;
  vertical-align: top;
}
form .input abbr[title=required] {
  text-decoration: none;
  color: red;
}
form .input input, form .input select, form .input textarea {
  padding: 0.2rem;
}
form .input select {
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%235b6b7c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-origin: padding-box;
  background-position: right 12px center;
  background-size: 11px 7px;
}
form .input select:disabled {
  cursor: not-allowed;
}
form .input textarea {
  width: 60%;
  height: 300px;
}
form .input .wide {
  width: 80%;
}
form .error {
  color: red;
  font-size: 0.8rem;
  margin-left: 1rem;
}
form .field-group {
  margin-left: 2rem;
  margin-bottom: 2rem;
}
form .nested-fields {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 4px;
  background-color: #f9f9f9;
}
form .nested-field {
  flex: 1;
  margin-right: 1rem;
}
form .nested-field:last-child {
  margin-right: 0;
}
form .new_user .field {
  margin-bottom: 1rem;
}
form .new_user .field input, form .new_user .field select {
  padding: 0.2rem;
}
form .new_user .actions {
  margin-bottom: 2rem;
}

.children.agenda-analyses .child.agenda-analysis h3 {
  margin-left: 1rem;
}
.children.agenda-analyses .child.agenda-analysis h4 {
  margin-left: 2rem;
}
.children.agenda-analyses .child.agenda-analysis p {
  margin-left: 3rem;
}
.children.agenda-analyses .child.agenda-analysis p:first-of-type {
  margin-left: 0;
}

.meetings .meeting {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 4px;
  background-color: #f9f9f9;
}
.meetings .meeting .meeting-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
}
.meetings .meeting .meeting-header .meeting-detail {
  flex: 0;
  margin-right: 1rem;
  text-align: left;
}
.meetings .meeting .meeting-header .meeting-detail.meeting-name, .meetings .meeting .meeting-header .meeting-detail.meeting-location {
  white-space: nowrap;
}
.meetings .meeting .meeting-header .meeting-detail.meeting-link {
  flex: 1;
}
.meetings .meeting .meeting-header .meeting-detail:last-child {
  margin-right: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.pagination em, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
}
.pagination em.disabled, .pagination span.disabled {
  color: #999;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  pointer-events: none;
  cursor: not-allowed;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}
.pagination em.active a {
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}
.pagination em.current {
  font-weight: bold;
  color: #fff;
  background-color: #28a745;
  border: 1px solid #28a745;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: default;
}
.pagination a {
  text-decoration: none;
  color: #007bff;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.pagination a:hover {
  background-color: #f8f9fa;
  color: #0056b3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-section {
  margin-bottom: 2rem;
}

fieldset {
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  padding: 1.5rem;
  background-color: #fefefe;
}
fieldset legend {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2c3e50;
  padding: 0 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cacaca;
  border-radius: 8px;
  font-size: 1rem;
}
.form-input:focus {
  outline: none;
  border-color: #1779ba;
  box-shadow: 0 0 5px rgba(23, 121, 186, 0.5);
}

.item-upload-form .input textarea.form-input {
  width: 100% !important;
  box-sizing: border-box;
}

.item-upload-form .input {
  margin-right: 0;
}

.item-upload-form .input label {
  display: block;
  margin-right: 0;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-button {
  background-color: #3adb76;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
}
.submit-button:hover {
  background-color: #22bb5b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.file-drop-zone {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}
.file-drop-zone .file-drop-wrapper {
  position: relative !important;
  width: 100% !important;
  display: block !important;
}
.file-drop-zone input[type=text].file-drop-input,
.file-drop-zone .file-drop-input {
  width: 100% !important;
  padding: 12px 50px 12px 16px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  color: #666 !important;
  background-color: #fafafa !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}
.file-drop-zone input[type=text].file-drop-input::placeholder,
.file-drop-zone .file-drop-input::placeholder {
  color: #999 !important;
}
.file-drop-zone input[type=text].file-drop-input:focus,
.file-drop-zone .file-drop-input:focus {
  outline: none !important;
  border-color: #4a90e2 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}
.file-drop-zone input[type=text].file-drop-input:hover,
.file-drop-zone .file-drop-input:hover {
  border-color: #ccc !important;
  background-color: #fff !important;
}
.file-drop-zone label.file-drop-icon,
.file-drop-zone .file-drop-icon {
  position: absolute !important;
  right: 16px !important;
  top: 12px !important;
  cursor: pointer !important;
  color: #4a90e2 !important;
  transition: color 0.2s ease !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}
.file-drop-zone label.file-drop-icon:hover,
.file-drop-zone .file-drop-icon:hover {
  color: #357abd !important;
}
.file-drop-zone label.file-drop-icon svg,
.file-drop-zone .file-drop-icon svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
}
.file-drop-zone .file-name-display {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}
.file-drop-zone.has-file .file-drop-input {
  border-color: #4a90e2;
  background-color: #f0f7ff;
}
.file-drop-zone.drag-over .file-drop-input {
  border-color: #4a90e2;
  background-color: #f0f7ff;
  border-style: dashed;
}

.help-text {
  font-size: 0.875rem;
  color: #8a8a8a;
  margin-top: 0.25rem;
}

label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

input[type=text],
input[type=date],
input[type=time] {
  border-radius: 4px;
  border: 1px solid #cacaca;
}
input[type=text]:focus,
input[type=date]:focus,
input[type=time]:focus {
  border-color: #1779ba;
  box-shadow: 0 0 5px rgba(23, 121, 186, 0.5);
}

.button {
  margin-top: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.callout {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.callout.secondary {
  background-color: #f8f9fa;
}
.callout.primary {
  margin-top: 2rem;
}
.callout.primary h5 {
  font-weight: bold;
  margin-bottom: 1rem;
}
.callout.primary ol {
  margin-left: 1.5rem;
}
.callout.primary ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

h1.text-center {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.agenda-results-container {
  margin-top: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tabs-container .tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}
.tabs-container .tabs .tab-item {
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  position: relative;
}
.tabs-container .tabs .tab-item:hover {
  background-color: #e9ecef;
}
.tabs-container .tabs .tab-item.active {
  background-color: #fff;
  border-bottom-color: #4a90e2;
}
.tabs-container .tabs .tab-item.active .tab-link {
  color: #4a90e2;
}
.tabs-container .tabs .tab-item .tab-form {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.tabs-container .tabs .tab-item .tab-link {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
}
.tabs-container .tabs .tab-item .tab-link:hover {
  color: #333;
  text-decoration: none;
}
.tabs-container .tab-content {
  padding: 2rem;
}
.tabs-container .tab-content .tab-pane {
  display: none;
}
.tabs-container .tab-content .tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}
.tabs-container .tab-content .tab-pane h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.formatted-text {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid #4a90e2;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.agenda-items-accordion .agenda-item-accordion {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.agenda-items-accordion .agenda-item-accordion:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header:hover {
  background-color: #e9ecef;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header .item-number {
  font-weight: 600;
  color: #4a90e2;
  margin-right: 1rem;
  min-width: 80px;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header .item-title {
  flex: 1;
  color: #2c3e50;
  font-weight: 500;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-header .accordion-icon {
  color: #666;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}
.agenda-items-accordion .agenda-item-accordion.expanded .agenda-item-header {
  background-color: #e3f2fd;
}
.agenda-items-accordion .agenda-item-accordion.expanded .agenda-item-header .accordion-icon {
  transform: rotate(180deg);
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content > div {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content > div:last-child {
  border-bottom: none;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content > div strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 0.5rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-type {
  background-color: #f8f9fa;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-description {
  line-height: 1.6;
  color: #555;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-analysis {
  background-color: #f0f7ff;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-analysis .analysis-content {
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 4px;
  border-left: 4px solid #4a90e2;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list {
  margin-top: 0.5rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list .attachment-link {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list .attachment-link a {
  color: #4a90e2;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  background-color: #f8f9fa;
  border-radius: 3px;
  font-size: 0.9rem;
}
.agenda-items-accordion .agenda-item-accordion .agenda-item-content .item-attachments .attachments-list .attachment-link a:hover {
  background-color: #e9ecef;
  text-decoration: underline;
}

.analysis-content {
  background-color: #f0f7ff;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid #3adb76;
  line-height: 1.8;
}
.analysis-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.analysis-content table th, .analysis-content table td {
  border: 1px solid #d0d0d0;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.analysis-content table thead tr {
  background-color: #e2ecf5;
}
.analysis-content code {
  background-color: #fff3cd;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.data-buttons {
  margin-top: 1rem;
}
.data-buttons .button {
  margin-right: 0.75rem;
  margin-bottom: 0;
}

.revision-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.revision-controls .button {
  margin: 0;
}

.memo-highlight {
  background-color: rgba(255, 214, 102, 0.38);
  border-bottom: 2px solid rgba(214, 158, 0, 0.55);
  border-radius: 2px;
  padding: 0.05em 0.1em;
  transition: background-color 0.12s ease-in-out;
}

.memo-highlights--editable .memo-highlight {
  cursor: pointer;
}
.memo-highlights--editable .memo-highlight:hover, .memo-highlights--editable .memo-highlight:focus-visible {
  background-color: rgba(255, 214, 102, 0.62);
}
.memo-highlights--editable .memo-highlight:focus-visible {
  outline: 2px solid #8a6100;
  outline-offset: 1px;
}

.memo-highlight--user {
  background-color: rgba(126, 200, 227, 0.34);
  border-bottom: 2px dotted rgba(20, 122, 158, 0.7);
}

.memo-highlights--editable .memo-highlight--user:hover, .memo-highlights--editable .memo-highlight--user:focus-visible {
  background-color: rgba(126, 200, 227, 0.58);
}
.memo-highlights--editable .memo-highlight--user:focus-visible {
  outline-color: #0d5f7d;
}

.memo-highlight-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #5a5a5a;
}
.memo-highlight-legend__key {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.memo-highlight-legend__swatch {
  display: inline-block;
  width: 1.5rem;
  height: 0.85rem;
  border-radius: 2px;
  background-color: rgba(255, 214, 102, 0.38);
  border-bottom: 2px solid rgba(214, 158, 0, 0.55);
}
.memo-highlight-legend__swatch--user {
  background-color: rgba(126, 200, 227, 0.34);
  border-bottom: 2px dotted rgba(20, 122, 158, 0.7);
}

.memo-passage-form {
  display: block;
  margin: 0.5rem 0;
}
.memo-passage-form__input {
  width: 100%;
  margin-bottom: 0.5rem;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  resize: vertical;
  overflow: hidden;
}
.memo-passage-form__error {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: #a02020;
}
.memo-passage-form__hint {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #5a5a5a;
}
.memo-passage-form__actions {
  display: flex;
  gap: 0.5rem;
}
.memo-passage-form__actions .button {
  margin: 0;
}

.attachments-list .attachment-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}
.attachments-list .attachment-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.attachments-list .attachment-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.2rem;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 0.5rem;
}
.attachments-list .attachment-card .attachment-content {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.attachments-list .attachment-card .attachment-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}
.attachments-list .attachment-card .attachment-link a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}
.attachments-list .attachment-card .attachment-link a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.suggestions-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}
.suggestions-controls .suggestions-select-controls {
  display: flex;
  gap: 0.5rem;
}
.suggestions-controls .button {
  margin-bottom: 0;
  box-sizing: border-box;
}
.suggestions-controls .button:hover, .suggestions-controls .button:focus {
  transform: none;
  box-shadow: none;
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.suggestion-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s ease;
}
.suggestion-card.selected {
  border-left: 4px solid #4a90e2;
  background: #fff;
}
.suggestion-card.deselected {
  border-left: 4px solid #ccc;
  background: #f8f8f8;
  opacity: 0.7;
}
.suggestion-card.severity-critical.selected {
  border-left-color: #e74c3c;
}
.suggestion-card.severity-major.selected {
  border-left-color: #f39c12;
}
.suggestion-card.severity-minor.selected {
  border-left-color: #3498db;
}
.suggestion-card .suggestion-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.suggestion-card .suggestion-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
}
.suggestion-card .suggestion-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #bbb;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.15s ease;
}
.suggestion-card .suggestion-checkbox svg {
  color: #fff;
}
.suggestion-card.selected .suggestion-checkbox {
  border-color: #4a90e2;
  background: #4a90e2;
}
.suggestion-card.deselected .suggestion-checkbox {
  border-color: #ccc;
  background: #fff;
}
.suggestion-card .suggestion-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.suggestion-card .severity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.suggestion-card .severity-badge.severity-critical {
  background: #fde8e8;
  color: #e74c3c;
}
.suggestion-card .severity-badge.severity-major {
  background: #fef3e2;
  color: #f39c12;
}
.suggestion-card .severity-badge.severity-minor {
  background: #e8f4fd;
  color: #3498db;
}
.suggestion-card .suggestion-location {
  font-size: 0.85rem;
  color: #666;
}
.suggestion-card .suggestion-body {
  padding-left: 2rem;
}
.suggestion-card .suggestion-body .original-text {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: #fff3f3;
  border-radius: 4px;
}
.suggestion-card .suggestion-body .original-text p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}
.suggestion-card .suggestion-body .suggested-change {
  padding: 0.5rem;
  background: #f0fff0;
  border-radius: 4px;
}
.suggestion-card .suggestion-body .suggested-change p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.inline-form {
  display: inline;
}

@media (max-width: 768px) {
  .tabs-container .tabs {
    flex-direction: column;
  }
  .tabs-container .tabs .tab-item {
    border-bottom: 1px solid #e0e0e0;
    border-left: 3px solid transparent;
  }
  .tabs-container .tabs .tab-item.active {
    border-left-color: #4a90e2;
    border-bottom-color: transparent;
  }
}
.agenda-tabs-container {
  margin-top: 1rem;
}
.agenda-tabs-container .tabs {
  margin-bottom: 0;
}
.agenda-tabs-container .tabs-content {
  border: 1px solid #cacaca;
  border-top: none;
}
.agenda-tabs-container .tabs-content .tabs-panel {
  padding: 1rem;
}
.agenda-tabs-container .tabs-content .tabs-panel .analysis-section {
  margin-bottom: 1.5rem;
}
.agenda-tabs-container .tabs-content .tabs-panel .analysis-section:last-child {
  margin-bottom: 0;
}
.agenda-tabs-container .tabs-content .tabs-panel .analysis-section h6 {
  margin-bottom: 0.5rem;
  color: #333;
}
.agenda-tabs-container .tabs-content .tabs-panel .original-text-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tabs-title {
  animation: slideInTab 0.3s ease-out;
}

@keyframes slideInTab {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.analysis-section .callout {
  margin-bottom: 0;
}
.analysis-section .callout p {
  margin-bottom: 0.5rem;
}
.analysis-section .callout p:last-child {
  margin-bottom: 0;
}

.experts-page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  transition: all 0.3s ease;
}
.experts-page .page-header {
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}
.experts-page .page-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.2em;
}
.experts-page .page-header h2 {
  color: #666;
  font-size: 1.3em;
}
.experts-page .chat-header-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}
.experts-page .chat-header-actions .start-new-chat-btn {
  background: white;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.experts-page .chat-header-actions .start-new-chat-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.experts-page .chat-header-actions .start-new-chat-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.experts-page.expanded {
  max-width: 100%;
  padding: 10px;
}
.experts-page.expanded .page-header {
  margin-bottom: 15px;
}
.experts-page.expanded .page-header h1 {
  font-size: 1.5em;
  margin-bottom: 5px;
}
.experts-page.expanded .page-header p {
  font-size: 0.9em;
  margin: 0;
}
.experts-page.expanded .chat-header-actions {
  top: 10px;
  right: 10px;
}
.experts-page.expanded .chat-header-actions .start-new-chat-btn {
  padding: 6px 12px;
  font-size: 13px;
}

.main-layout {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.experts-page.expanded .main-layout {
  max-width: 100%;
}

.chat-container {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 400px;
  transition: all 0.3s ease;
}
.experts-page.expanded .chat-container {
  height: calc(100vh - 200px);
  max-height: none;
  border-radius: 8px;
}

.persona-selector {
  width: 250px;
  padding: 20px;
}
.experts-page.expanded .persona-selector {
  height: calc(100vh - 200px);
  border-radius: 8px;
}
.persona-selector h3 {
  margin: 0 0 20px 0;
  color: #495057;
  font-size: 1.1em;
  font-weight: 600;
}
.persona-selector .persona-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.persona-selector .persona-buttons .persona-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: white;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 8px 16px;
  margin: 2px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.persona-selector .persona-buttons .persona-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.persona-selector .persona-buttons .persona-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}
.chat-messages .welcome-message {
  margin-bottom: 20px;
}
.chat-messages .message {
  margin-bottom: 20px;
  display: flex;
  transition: all 0.2s ease;
}
.chat-messages .message.message-hovered {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.chat-messages .message.message-highlighted {
  animation: highlight-pulse 2s ease-in-out;
}
.chat-messages .message.user-message {
  justify-content: flex-end;
}
.chat-messages .message.user-message .message-content {
  background: #007bff;
  color: white;
  border-radius: 18px 18px 4px 18px;
  max-width: 70%;
  min-width: 35%;
}
.chat-messages .message.assistant-message {
  justify-content: flex-start;
}
.chat-messages .message.assistant-message .message-content {
  background: #e3e6e9;
  color: #333;
  border-radius: 18px 18px 18px 4px;
  max-width: 70%;
}
.chat-messages .message.system-message, .chat-messages .message.developer-message {
  justify-content: left;
}
.chat-messages .message.system-message .message-content, .chat-messages .message.developer-message .message-content {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  max-width: 80%;
  text-align: left;
  font-style: italic;
}
.chat-messages .message .message-content {
  padding: 12px 16px;
}
.chat-messages .message .message-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9em;
  opacity: 0.8;
}
.chat-messages .message .message-content .message-response {
  margin: 0.7rem 0;
  white-space: pre-wrap;
}
.chat-messages .message .message-content .message-role {
  margin-bottom: 1rem;
}
.chat-messages .message .message-content .message-footer {
  font-size: 0.75em;
  opacity: 0.6;
  margin-top: 5px;
  font-style: italic;
  display: flex;
  align-items: left;
  gap: 30px;
}
.chat-messages .message .message-content .message-footer .timestamp {
  flex-shrink: 0;
}
.chat-messages .message .message-content .message-footer .message-status {
  flex: 1;
}
.chat-messages .message .message-content .citations {
  margin-top: 1rem;
  font-size: 0.9em;
}
.chat-messages .message .message-content .citations .citation-link {
  color: inherit;
  text-decoration: underline;
  margin-left: 8px;
  display: block;
  font-style: italic;
}
.chat-messages .message .message-content .citations .citation-link:hover {
  opacity: 0.8;
}
.chat-messages .message .option-instruction {
  font-size: 0.8em;
}
.chat-messages .message .option-group {
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chat-messages .message .option-group .options-label {
  margin: 0.5rem 0.3rem 0 0;
  font-weight: bold;
}
.chat-messages .message .option-group .options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.chat-messages .message .option-group button.tiny {
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 0.7rem;
  padding: 4px 8px;
  margin: 0.5rem 0.5rem 0 0;
}
.chat-messages .typing-message .typing-animation {
  font-style: italic;
  opacity: 0.7;
}
.chat-messages .typing-message .typing-animation::after {
  content: "";
  animation: typing-dots 1.5s infinite;
}

.chat-input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #e9ecef;
}
.chat-input-container .chat-form .input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.chat-input-container .chat-form .input-group .chat-input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  transition: border-color 0.2s ease;
}
.chat-input-container .chat-form .input-group .chat-input:focus {
  outline: none;
  border-color: #007bff;
}
.chat-input-container .chat-form .input-group .chat-input::placeholder {
  color: #adb5bd;
}
.chat-input-container .chat-form .input-group .send-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.chat-input-container .chat-form .input-group .send-btn:hover:not(:disabled) {
  background: #0056b3;
}
.chat-input-container .chat-form .input-group .send-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}
.chat-input-container .chat-form .chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-input-container .chat-form .chat-actions .btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.chat-input-container .chat-form .chat-actions .btn-secondary:hover {
  background: #545b62;
}
.chat-input-container .chat-form .chat-actions .typing-indicator {
  color: #6c757d;
  font-style: italic;
  font-size: 13px;
}
.chat-input-container .chat-form .chat-actions .typing-indicator::after {
  content: "";
  animation: dots 1.5s infinite;
}

@keyframes typing-dots {
  0%, 20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%, 100% {
    content: "...";
  }
}
@keyframes highlight-pulse {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(255, 235, 59, 0.3);
  }
  100% {
    background-color: transparent;
  }
}
@media (max-width: 1365px) {
  .experts-page {
    max-width: 100%;
    padding: 10px;
  }
  .experts-page .page-header {
    margin-bottom: 15px;
  }
  .experts-page .page-header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
  }
  .experts-page .page-header h2 {
    font-size: 0.9em;
    margin: 0;
  }
  .experts-page .chat-header-actions {
    top: 10px;
    right: 10px;
  }
  .experts-page .chat-header-actions .start-new-chat-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .main-layout {
    max-width: 100%;
  }
  .chat-container {
    height: calc(100vh - 200px);
    max-height: none;
    border-radius: 8px;
  }
  .persona-selector {
    height: calc(100vh - 200px);
    border-radius: 8px;
  }
}
@media (max-width: 768px) {
  .experts-page {
    padding: 10px;
  }
  .main-layout {
    flex-direction: column;
    gap: 15px;
  }
  .persona-selector {
    width: 100%;
    height: auto;
    max-height: 150px;
    padding: 15px;
  }
  .persona-selector h3 {
    margin-bottom: 10px;
    font-size: 1em;
  }
  .persona-selector .persona-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .persona-selector .persona-buttons .persona-btn {
    flex: 1;
    min-width: calc(50% - 3px);
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }
  .persona-selector .persona-buttons .persona-btn:hover {
    transform: none;
  }
  .chat-container {
    height: calc(100vh - 350px);
    max-height: 500px;
    min-height: 300px;
    border-radius: 8px;
  }
  .chat-messages .message.user-message .message-content, .chat-messages .message.assistant-message .message-content, .chat-messages .message.system-message .message-content {
    max-width: 85%;
  }
  .chat-input-container .chat-form .input-group {
    flex-direction: column;
  }
  .chat-input-container .chat-form .input-group .send-btn {
    align-self: stretch;
  }
}
body.demo-page .button {
  border-radius: 8px;
}
body.demo-page .nav-sidebar {
  justify-content: flex-start;
}
body.demo-page .nav-sidebar .bottom.nav-links {
  margin-top: 0;
}
@media (min-width: 769px) {
  body.demo-page .nav-sidebar {
    width: 200px;
    min-width: 200px;
  }
}

.demo-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.demo-hero {
  margin-bottom: 2rem;
}
.demo-hero h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  font-weight: 700;
}
.demo-hero .subheader {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.demo-form-card fieldset {
  padding: 1.25rem;
}
.demo-form-card .input {
  margin: 0.5rem 0 1rem;
}
.demo-form-card .input input,
.demo-form-card .input textarea {
  padding: 0.75rem;
  border-radius: 8px;
}
.demo-form-card .button {
  margin-bottom: 0;
}
.demo-form-card .demo-form-actions {
  text-align: center;
}
.demo-form-card .item-upload-form .demo-form-actions {
  padding: 0 calc(1.25rem + 1px);
}

.demo-content .demo-how-it-works {
  margin: 2rem 0 0;
}

body.demo-page #content_analysis {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}
body.demo-page #content_analysis::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 70%, rgb(255, 255, 255) 100%);
  pointer-events: none;
}

.demo-cta-card {
  background: white;
  border: 2px solid #1890ff;
  border-radius: 12px;
  padding: 2rem 3rem;
  margin: 1.5rem 0 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.demo-cta-card h4 {
  color: #2c3e50;
  margin-bottom: 0.75rem;
}
.demo-cta-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.demo-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.demo-cta-buttons .button {
  margin: 0;
  min-width: 150px;
}

.loading-indicator {
  text-align: center;
  padding: 3rem 1rem;
  margin: 1rem 0;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-indicator.thinking {
  padding: 2rem 1rem;
}

.thinking__phrase {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.thinking__text {
  background-image: linear-gradient(100deg, #333 32%, #1779ba 50%, #333 68%);
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: thinking-shimmer 2.6s linear infinite;
}

.thinking__dots {
  display: inline-flex;
  gap: 3px;
  padding-left: 1px;
}
.thinking__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #1779ba;
  animation: thinking-dot 1.4s ease-in-out infinite;
}
.thinking__dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.thinking--swapping .thinking__phrase {
  opacity: 0;
  transform: translateY(-3px);
}

@keyframes thinking-shimmer {
  from {
    background-position: 125% 0;
  }
  to {
    background-position: -125% 0;
  }
}
@keyframes thinking-dot {
  0%, 60%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .thinking__text {
    background-image: none;
    color: #333;
  }
}
.thinking__stall {
  font-size: 0.9rem;
  color: #666;
  margin: 0.75rem 0 0;
}

.thinking__stall-button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 0 0.25rem;
  color: #1779ba;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.thinking__stall-button:hover, .thinking__stall-button:focus {
  background: none;
  border: 0;
  border-width: 0;
  padding: 0;
  color: #1779ba;
  text-decoration: underline;
}

@media (forced-colors: active) {
  .thinking__text {
    animation: none;
    background-image: none;
    color: CanvasText;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thinking__phrase {
    transition: none;
  }
  .thinking__text {
    animation: none;
    background-image: none;
    color: #333;
  }
  .thinking__dots span {
    animation: none;
    opacity: 0.5;
  }
}
.loading-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.loading-subtext {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

.loading-indicator--error {
  border-color: #cc4b37;
  background-color: #fff5f4;
}
.loading-indicator--error .loading-title {
  color: #cc4b37;
}

.tabs-container:has(ul.tabs li) .agenda-loading-indicator {
  display: none;
}

.home-dashboard {
  font-family: "Public Sans", Arial, sans-serif;
  color: #41586e;
  max-width: 1140px;
}
.home-dashboard__heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2733;
  margin: 0;
}
.home-dashboard__subhead {
  margin: 10px 0 0;
  font-size: 15px;
  color: #5b6b7c;
  max-width: 620px;
  line-height: 1.5;
}
.home-dashboard__lower {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  align-items: flex-start;
}

.task-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.task-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dde4ec;
  border-top: 3px solid #7a8ea3;
  padding: 24px 24px 20px;
  min-height: 186px;
  text-decoration: none;
  color: #41586e;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.task-tile__kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #7a8ea3;
}
.task-tile__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a2733;
  margin: 0 0 8px;
}
.task-tile__desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6b7c;
  margin: 0;
}
.task-tile__needs {
  font-size: 12px;
  color: #8395a7;
  border-top: 1px solid #eef2f6;
  padding-top: 10px;
  margin: 14px 0 0;
}
.task-tile--explore {
  border-top-color: #7a8ea3;
}
.task-tile--explore .task-tile__kicker {
  color: #7a8ea3;
}
.task-tile--write {
  border-top-color: #1667a8;
}
.task-tile--write .task-tile__kicker {
  color: #1667a8;
}
.task-tile--review {
  border-top-color: #2e7d5b;
}
.task-tile--review .task-tile__kicker {
  color: #2e7d5b;
}
.task-tile--configure {
  border-top-color: #8a6a1f;
}
.task-tile--configure .task-tile__kicker {
  color: #8a6a1f;
}
.task-tile:not(.task-tile--disabled):hover, .task-tile:not(.task-tile--disabled):focus {
  border-color: #1667a8;
  box-shadow: 0 6px 20px rgba(18, 38, 58, 0.1);
  color: #41586e;
  text-decoration: none;
}
.task-tile--disabled {
  background: #fbfcfd;
  border-top-color: #c6d0da;
  cursor: default;
}
.task-tile--disabled .task-tile__kicker,
.task-tile--disabled .task-tile__needs {
  color: #9aa9b6;
}
.task-tile--disabled .task-tile__title {
  color: #6f8091;
}
.task-tile--disabled .task-tile__desc {
  color: #8395a7;
}
.task-tile__coming-soon {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa9b6;
  margin: 8px 0 0;
}

.recent-panel {
  flex: 1;
  background: #fff;
  border: 1px solid #dde4ec;
  padding: 18px 20px 20px;
}
.recent-panel__header {
  font-size: 13px;
  font-weight: 600;
  color: #1a2733;
  margin: 0;
}
.recent-panel__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.recent-panel__empty {
  margin: 12px 0 0;
  font-size: 13px;
  color: #8395a7;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #eef2f6;
}
.recent-item__main {
  min-width: 0;
}
.recent-item__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a2733;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.recent-item__name:hover {
  color: #1667a8;
  text-decoration: none;
}
.recent-item__meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: #8395a7;
}

.status-pill {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.status-pill--draft {
  background: #fef3e2;
  color: #f39c12;
}
.status-pill--published {
  background: #e8f4fd;
  color: #3498db;
}

.setup-panel {
  width: 320px;
  flex: none;
  background: #eaf1f8;
  border: 1px solid #cfe0ef;
  padding: 18px 20px 20px;
}
.setup-panel__header {
  font-size: 13px;
  font-weight: 600;
  color: #1a2733;
  margin: 0;
}
.setup-panel__body {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #41586e;
}
.setup-panel__button {
  display: inline-block;
  background: #1667a8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  text-decoration: none;
}
.setup-panel__button:hover, .setup-panel__button:focus {
  background: #12263a;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .task-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .task-tiles {
    grid-template-columns: 1fr;
  }
  .home-dashboard__lower {
    flex-direction: column;
  }
  .setup-panel {
    width: 100%;
  }
}
.review-page {
  font-family: "Public Sans", Arial, sans-serif;
  color: #41586e;
  max-width: 1140px;
}
.review-page__heading {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2733;
  margin: 0;
}
.review-page__subhead {
  margin: 10px 0 0;
  font-size: 15px;
  color: #5b6b7c;
  max-width: 620px;
  line-height: 1.5;
}
.review-page__columns {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  align-items: flex-start;
}
.review-page__main {
  flex: 1;
  min-width: 0;
}

.review-card {
  background: #fff;
  border: 1px solid #dde4ec;
  padding: 24px 26px;
  border-radius: 0;
  box-shadow: none;
}
.review-card form .input {
  margin: 0;
}
.review-card fieldset {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 22px;
}
.review-card fieldset:last-of-type {
  margin-bottom: 20px;
}
.review-card fieldset legend {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  padding: 0 0 10px;
  margin: 0 0 14px;
  border-bottom: 1px solid #eef2f6;
  font-size: 10px;
  font-weight: 500;
  color: #8395a7;
}
.review-card label {
  display: block;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a2733;
  margin: 0 0 6px;
}
.review-card .form-input {
  border-radius: 0;
  border-color: #dde4ec;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 14px;
  color: #1a2733;
  margin: 0;
}
.review-card .form-input:focus {
  border-color: #1667a8;
  box-shadow: none;
}
.review-card .help-text {
  font-size: 12px;
  color: #8395a7;
}
.review-card .hint {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8395a7;
}
.review-card .file-drop-zone {
  margin-bottom: 0 !important;
}
.review-card .file-drop-zone .file-drop-input {
  border-radius: 0 !important;
  border: 1px dashed #b9cadb !important;
  background-color: #f7fafd !important;
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  color: #1a2733 !important;
}
.review-card .file-drop-zone .file-drop-input::placeholder {
  color: #8395a7 !important;
}
.review-card .file-drop-zone .file-drop-input:hover {
  border-color: #1667a8 !important;
  background-color: #f7fafd !important;
}
.review-card .file-drop-zone .file-drop-input:focus {
  border-style: solid !important;
  border-color: #1667a8 !important;
  background-color: #fff !important;
  box-shadow: none !important;
}
.review-card .file-drop-zone .file-drop-icon {
  color: #1667a8 !important;
}
.review-card .file-drop-zone .file-drop-icon:hover {
  color: #12263a !important;
}
.review-card .file-drop-zone .file-name-display {
  font-style: normal;
  font-size: 12px;
  color: #5b6b7c;
}
.review-card .file-drop-zone.has-file .file-drop-input, .review-card .file-drop-zone.drag-over .file-drop-input {
  border-color: #1667a8 !important;
  background-color: #eaf1f8 !important;
}

.review-form__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-form__field {
  min-width: 0;
}
.review-form__actions {
  border-top: 1px solid #eef2f6;
  padding-top: 20px;
}

.review-page .review-form__submit,
.review-page .button.review-form__submit {
  display: inline-block;
  width: auto;
  background: #1667a8;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 11px 22px;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.review-page .review-form__submit:hover, .review-page .review-form__submit:focus,
.review-page .button.review-form__submit:hover,
.review-page .button.review-form__submit:focus {
  background: #12263a;
  color: #fff;
  transform: none;
  box-shadow: none;
}
.review-page .review-form__submit:disabled,
.review-page .button.review-form__submit:disabled {
  background: #8395a7;
  cursor: not-allowed;
}

.review-info {
  width: 330px;
  flex: none;
  background: #eaf1f8;
  border: 1px solid #cfe0ef;
  padding: 18px 20px 20px;
}
.review-info__header {
  font-size: 13px;
  font-weight: 600;
  color: #1a2733;
  margin: 0;
}
.review-info__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.review-info__item {
  position: relative;
  padding: 0 0 0 16px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #41586e;
}
.review-info__item:last-child {
  margin-bottom: 0;
}
.review-info__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: #1667a8;
}

@media (max-width: 900px) {
  .review-page__columns {
    flex-direction: column;
  }
  .review-info {
    width: 100%;
    order: -1;
  }
}
.memo-review-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 10px;
  border-bottom: 1px solid #eef2f6;
  margin: 28px 0 20px;
}
.memo-review-steps__step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px 12px 0;
  margin-right: 18px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.memo-review-steps__step:last-child {
  padding-right: 0;
  margin-right: 0;
}
.memo-review-steps__step--current {
  border-bottom-color: #1667a8;
}
.memo-review-steps__dot {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #dde4ec;
  color: #8395a7;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.memo-review-steps__step--current .memo-review-steps__dot, .memo-review-steps__step--done .memo-review-steps__dot {
  background: #1667a8;
  color: #fff;
}
.memo-review-steps__step--done .memo-review-steps__dot {
  background: #2e7d5b;
}
.memo-review-steps__name {
  font-size: 14.5px;
  font-weight: 500;
  color: #8395a7;
}
.memo-review-steps__step--current .memo-review-steps__name, .memo-review-steps__step--done .memo-review-steps__name {
  color: #1a2733;
}
.memo-review-steps__step--current .memo-review-steps__name {
  font-weight: 600;
}
.memo-review-steps__link {
  text-decoration: none;
  cursor: pointer;
}
.memo-review-steps__link:hover {
  color: #1667a8;
  text-decoration: underline;
}

.memo-review-panel {
  background: #fff;
  border: 1px solid #dde4ec;
  padding: 24px 26px;
}

.memo-review-suggestions-columns {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.memo-review-suggestions-main {
  flex: 1;
  min-width: 0;
}

.memo-review-suggestions-sidebar {
  width: 260px;
  flex: none;
}

.suggestion-tally {
  background: #12263a;
  color: #fff;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggestion-tally__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.suggestion-tally__selected {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.suggestion-tally__of {
  font-size: 13px;
  color: #a9bccf;
}
.suggestion-tally__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #c3d2e0;
  border-top: 1px solid #1f3a55;
  padding-top: 9px;
}

.memo-review-upload-summary {
  margin-bottom: 18px;
}
.memo-review-upload-summary p {
  margin: 0 0 8px;
  font-size: 14px;
}

.memo-review-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.memo-review-header__main {
  min-width: 0;
}
.memo-review-header__breadcrumb {
  font-size: 12.5px;
  color: #8395a7;
  margin-bottom: 5px;
}
.memo-review-header__title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2733;
  margin: 0;
}
.memo-review-header__actions {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.memo-review-header__button {
  border: 1px solid #dde4ec;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #41586e;
  padding: 9px 16px;
  text-decoration: none;
}
.memo-review-header__button:hover, .memo-review-header__button:focus {
  border-color: #1667a8;
  color: #1667a8;
  text-decoration: none;
}
.memo-review-header__button--active {
  border-color: #1667a8;
  color: #1667a8;
}

.severity-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid #dde4ec;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.severity-filter__chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.severity-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 0;
  cursor: pointer;
  background: #f4f6f9;
  border: 1px solid #d8e0ea;
  color: #41586e;
}
.severity-filter__chip--critical {
  color: #a1332b;
  background: #fdf1f0;
  border-color: #f0cfcb;
}
.severity-filter__chip--major {
  color: #8a5a0a;
  background: #fdf6e8;
  border-color: #efdcb8;
}
.severity-filter__chip--active {
  color: #fff;
  background: #12263a;
  border-color: #12263a;
}
.severity-filter__count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  opacity: 0.75;
}
.severity-filter__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.severity-filter__action {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #1667a8;
  cursor: pointer;
}
.severity-filter__action:hover {
  text-decoration: underline;
}

.memo-review-suggestions[data-active-severity=critical] .suggestion-card:not(.severity-critical), .memo-review-suggestions[data-active-severity=major] .suggestion-card:not(.severity-major), .memo-review-suggestions[data-active-severity=minor] .suggestion-card:not(.severity-minor) {
  display: none;
}

.memo-review-suggestions-sidebar .button.memo-review-apply {
  width: 100%;
  margin: 16px 0 0;
}

.memo-review-suggestions-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef2f6;
  display: block;
  text-align: right;
}

.memo-review-suggestions-footer .callout,
.memo-review-suggestions-footer .memo-review-pending {
  text-align: left;
}

.memo-review-suggestions-footer .button.memo-review-apply {
  margin: 0;
}

.revision-controls-footer:has(.button) {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

.revision-controls-footer .revision-controls .button {
  margin: 0 8px 0 0;
}

.inline-spinner {
  display: inline-block;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  min-width: 12px;
  vertical-align: -1px;
  border: 2px solid rgba(102, 130, 155, 0.35);
  border-top-color: #1667a8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.memo-review-steps__dot .inline-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.memo-review-steps__step--todo .memo-review-steps__dot .inline-spinner {
  border-color: rgba(102, 130, 155, 0.3);
  border-top-color: #1667a8;
}

.memo-review-pending {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eaf1f8;
  border: 1px solid #cfe0ef;
  padding: 14px 16px;
  margin-top: 16px;
}
.memo-review-pending .inline-spinner {
  margin-top: 3px;
}
.memo-review-pending__text {
  font-size: 13px;
  line-height: 1.5;
  color: #41586e;
}

.memo-review-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f8f4;
  border: 1px solid #8cbfa3;
  border-left: 4px solid #2e7d5b;
  padding: 13px 16px;
  margin-bottom: 18px;
}
.memo-review-notice__icon {
  display: flex;
  flex: 0 0 auto;
  color: #2e7d5b;
}
.memo-review-notice__text {
  font-size: 13.5px;
  font-weight: 600;
  color: #26402f;
}
.memo-review-notice__link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #1667a8;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .inline-spinner {
    animation: none;
    opacity: 0.4;
  }
}
.suggestion-card__data-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.suggestion-card__data-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid #dde4ec;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: #1667a8;
  padding: 7px 13px;
  text-decoration: none;
}
.suggestion-card__data-link:hover, .suggestion-card__data-link:focus {
  border-color: #1667a8;
  background: #eaf1f8;
  text-decoration: none;
}

.suggestion-card__data-hint {
  font-size: 12.5px;
  color: #8395a7;
}

.feedback-side-tab {
  position: fixed;
  top: 15%;
  right: 2px;
  transform: rotate(-90deg);
  transform-origin: 100% 100%;
  margin: 0;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px 4px 0 0;
  background: #cd2828;
  color: #fff;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.feedback-side-tab:hover {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #b82323;
  color: #fff;
}
.feedback-side-tab:focus-visible {
  outline: 2px solid #cd2828;
  outline-offset: 2px;
}

.feedback-modal {
  padding: 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: calc(100% - 2rem);
}
.feedback-modal:not([open]) {
  display: none;
}
.feedback-modal::backdrop {
  background-color: rgba(18, 38, 58, 0.5);
}
.feedback-modal .feedback-modal__panel {
  position: relative;
  padding: 1.75rem;
  font-family: "Public Sans", Arial, sans-serif;
}
.feedback-modal .feedback-modal__close {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #5b6b7c;
  cursor: pointer;
}
.feedback-modal .feedback-modal__close:hover {
  padding: 0;
  border: none;
  color: #12263a;
}
.feedback-modal .feedback-modal__close:focus-visible {
  outline: 2px solid #12263a;
  outline-offset: 2px;
}
.feedback-modal .feedback-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #1a2733;
}

.feedback-page {
  max-width: 640px;
  padding: 1.75rem 1rem;
  font-family: "Public Sans", Arial, sans-serif;
}

.feedback-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #1a2733;
}

.feedback-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #5b6b7c;
}

.feedback-modal__error {
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.75rem;
  border-left: 3px solid #cd2828;
  background: rgba(203, 32, 39, 0.06);
  font-size: 0.875rem;
  color: #cd2828;
}

.feedback-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 0.625rem;
  border: 1px solid #dde4ec;
  border-radius: 4px;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.9rem;
  color: #41586e;
}

.feedback-modal__counter {
  margin-top: 0.375rem;
  text-align: right;
  font-size: 0.75rem;
  color: #5b6b7c;
}
.feedback-modal__counter.feedback-modal__counter--over {
  color: #cd2828;
  font-weight: 600;
}

.feedback-modal__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.feedback-modal__submit {
  margin: 0;
  padding: 0.625rem 1.25rem;
  border: 1px solid #1667a8;
  border-radius: 4px;
  background: #1667a8;
  color: #fff;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.feedback-modal__submit:hover {
  padding: 0.625rem 1.25rem;
  border: 1px solid #12263a;
  background: #12263a;
  color: #fff;
}
.feedback-modal__submit:focus-visible {
  outline: 2px solid #12263a;
  outline-offset: 2px;
}
.feedback-modal__submit[aria-disabled=true], .feedback-modal__submit[aria-disabled=true]:hover {
  border-color: #b9cadb;
  background: #b9cadb;
  color: #12263a;
  cursor: not-allowed;
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 0.625rem 2.5rem;
  background-color: #cd2828;
  color: #ffffff;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 13px;
}
.impersonation-banner strong {
  font-weight: 700;
}
.impersonation-banner .impersonation-banner__text {
  min-width: 0;
}
.impersonation-banner .impersonation-banner__identity {
  margin-left: 0.5rem;
  opacity: 0.85;
}
.impersonation-banner form {
  margin: 0;
  flex: none;
}
.impersonation-banner .impersonation-banner__stop {
  margin: 0;
  padding: 0.375rem 0.875rem;
  border: 1px solid #ffffff;
  border-radius: 2px;
  background-color: transparent;
  color: #ffffff;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.impersonation-banner .impersonation-banner__stop:hover, .impersonation-banner .impersonation-banner__stop:focus {
  padding: 0.375rem 0.875rem;
  border-width: 1px;
  background-color: #ffffff;
  color: #b82323;
}

.impersonation-intro {
  color: #5b6b7c;
  font-size: 14px;
}

.callout .impersonation-stop {
  margin: 0.5rem 0 0;
}
