/* ── admin/configuration/index.html.erb ── */
.x-admin-configuration-index-1.x-admin-configuration-index-1 {
  width: 5.5rem;
}

/* ── admin/resources/_form.html.erb ── */
.x-admin-resources-form-1.x-admin-resources-form-1 {
  display:flex;
  gap:0.75rem;
}

.x-admin-resources-form-2.x-admin-resources-form-2 {
  flex:1;
}

.x-admin-resources-form-3.x-admin-resources-form-3 {
  display:flex;
  align-items:center;
  gap:0.75rem;
  margin-bottom:0.5rem;
  padding:0.5rem 0.75rem;
  background:var(--color-bg-subtle,#f8fafc);
  border:1px solid var(--color-border-subtle);
  border-radius:var(--radius-sm);
}

.x-admin-resources-form-4.x-admin-resources-form-4 {
  font-size:0.8125rem;
  flex:1;
}

.x-admin-resources-form-5.x-admin-resources-form-5 {
  font-size:0.8125rem;
  color:var(--color-text-muted);
  display:block;
  margin-bottom:0.35rem;
}

.x-admin-resources-form-6.x-admin-resources-form-6 {
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin:0.75rem 0;
}

.x-admin-resources-form-7.x-admin-resources-form-7 {
  flex:1;
  border:none;
  border-top:1px solid var(--color-border-subtle);
}

.x-admin-resources-form-8.x-admin-resources-form-8 {
  display:grid;
  grid-template-columns:1fr auto;
  gap:0.75rem 1.25rem;
  align-items:start;
}

.x-admin-resources-form-9.x-admin-resources-form-9 {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  height:2.25rem;
  margin:0;
  padding:0 0.25rem;
  cursor:pointer;
  font-size:0.875rem;
  font-weight:500;
}

/* ── admin/resources/edit.html.erb ── */
.x-admin-resources-edit-1.x-admin-resources-edit-1 {
  max-width: 640px;
}

/* ── admin/resources/index.html.erb ── */
.x-admin-resources-index-1.x-admin-resources-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.x-admin-resources-index-2.x-admin-resources-index-2 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.x-admin-resources-index-3.x-admin-resources-index-3 {
  width: 100%;
  min-width: 700px;
  table-layout: fixed;
  border-collapse: collapse;
}

.x-admin-resources-index-4.x-admin-resources-index-4 {
  width: 40px;
}

.x-admin-resources-index-5.x-admin-resources-index-5 {
  width: 20%;
}

.x-admin-resources-index-6.x-admin-resources-index-6 {
  width: 12%;
}

.x-admin-resources-index-7.x-admin-resources-index-7 {
  width: 10%;
}

.x-admin-resources-index-8.x-admin-resources-index-8 {
  width: 18%;
}

.x-admin-resources-index-9.x-admin-resources-index-9 {
  width: 8%;
}

.x-admin-resources-index-10.x-admin-resources-index-10 {
  width: 14%;
}

.x-admin-resources-index-11.x-admin-resources-index-11 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.x-admin-resources-index-12.x-admin-resources-index-12 {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
}

.x-admin-resources-index-13.x-admin-resources-index-13 {
  font-weight: 600;
  word-break: break-word;
  display: block;
}

.x-admin-resources-index-14.x-admin-resources-index-14 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.x-admin-resources-index-15.x-admin-resources-index-15 {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-admin-resources-index-16.x-admin-resources-index-16 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.x-admin-resources-index-17.x-admin-resources-index-17 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-admin-resources-index-18.x-admin-resources-index-18 {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ── admin/resources/new.html.erb ── */
.x-admin-resources-new-1.x-admin-resources-new-1 {
  max-width: 640px;
}

/* ── admin/schools/_form.html.erb ── */
.x-admin-schools-form-1.x-admin-schools-form-1 {
  display: flex;
  gap: 0.75rem;
}

.x-admin-schools-form-2.x-admin-schools-form-2 {
  flex: 1;
}

/* ── admin/schools/edit.html.erb ── */
.x-admin-schools-edit-1.x-admin-schools-edit-1 {
  max-width: 640px;
}

/* ── admin/schools/index.html.erb ── */
.x-admin-schools-index-1.x-admin-schools-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.x-admin-schools-index-2.x-admin-schools-index-2 {
  position: relative;
  display: flex;
  flex: 1;
}

/* ── admin/schools/new.html.erb ── */
.x-admin-schools-new-1.x-admin-schools-new-1 {
  max-width: 640px;
}

/* ── admin/schools/show.html.erb ── */
.x-admin-schools-show-1.x-admin-schools-show-1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.x-admin-schools-show-2.x-admin-schools-show-2 {
  min-width: 0;
  flex: 1;
}

.x-admin-schools-show-3.x-admin-schools-show-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.x-admin-schools-show-4.x-admin-schools-show-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 0.5rem;
}

.x-admin-schools-show-5.x-admin-schools-show-5 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.x-admin-schools-show-6.x-admin-schools-show-6 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.x-admin-schools-show-7.x-admin-schools-show-7 {
  flex: 1;
  min-width: 0;
}

.x-admin-schools-show-8.x-admin-schools-show-8 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  align-items: center;
}

.x-admin-schools-show-9.x-admin-schools-show-9 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  flex-shrink: 0;
  align-items: center;
}

.x-admin-schools-show-10.x-admin-schools-show-10 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.x-admin-schools-show-11.x-admin-schools-show-11 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ── counselor/essays/show.html.erb ── */
.x-counselor-essays-show-1.x-counselor-essays-show-1 {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.x-counselor-essays-show-2.x-counselor-essays-show-2 {
  font-size:1.125rem;
  font-weight:700;
  margin-bottom:0.25rem;
  word-break:break-word;
  white-space:normal;
  overflow-wrap:break-word;
  max-width:100%;
}

.x-counselor-essays-show-3.x-counselor-essays-show-3 {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0.5rem;
}

.x-counselor-essays-show-4.x-counselor-essays-show-4 {
  display:flex;
  gap:0.75rem;
  align-items:center;
}

.x-counselor-essays-show-5.x-counselor-essays-show-5 {
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

.x-counselor-essays-show-6.x-counselor-essays-show-6 {
  width:100%;
  justify-content:center;
}

/* ── counselor/meetings/show.html.erb ── */
.x-counselor-meetings-show-1.x-counselor-meetings-show-1 {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.x-counselor-meetings-show-2.x-counselor-meetings-show-2 {
  width:100%;
}

.x-counselor-meetings-show-3.x-counselor-meetings-show-3 {
  display:flex;
  align-items:center;
  gap:0.5rem;
  padding:0.375rem 0;
  border-bottom:1px solid var(--color-border-subtle);
  font-size:0.8125rem;
}

/* ── counselor/message_templates/index.html.erb ── */
.x-counselor-message-templates-index-1.x-counselor-message-templates-index-1 {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.x-counselor-message-templates-index-2.x-counselor-message-templates-index-2 {
  display:flex;
  gap:0.25rem;
}

/* ── counselor/messages/show.html.erb ── */
.x-counselor-messages-show-1.x-counselor-messages-show-1 {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.x-counselor-messages-show-2.x-counselor-messages-show-2 {
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
}

.x-counselor-messages-show-3.x-counselor-messages-show-3 {
  display:flex;
  flex-wrap:wrap;
  gap:0.25rem;
}

/* ── counselor/strategy_reports/show.html.erb ── */
.x-counselor-strategy-reports-show-1.x-counselor-strategy-reports-show-1 {
  flex:1;
}

.x-counselor-strategy-reports-show-2.x-counselor-strategy-reports-show-2 {
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

.x-counselor-strategy-reports-show-3.x-counselor-strategy-reports-show-3 {
  width:100%;
  justify-content:center;
}

/* ── counselor/students/index.html.erb ── */
.x-counselor-students-index-1.x-counselor-students-index-1 {
  width: 8rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* ── counselor/students/show.html.erb ── */
.x-counselor-students-show-1.x-counselor-students-show-1 {
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin-bottom:0.5rem;
}

.x-counselor-students-show-2.x-counselor-students-show-2 {
  display:none;
}

.x-counselor-students-show-3.x-counselor-students-show-3 {
  margin-bottom:0;
  display:flex;
  flex-direction:column;
}

.x-counselor-students-show-4.x-counselor-students-show-4 {
  font-size:0.8125rem;
  padding:0.3rem 0.5rem;
  height:2rem;
  line-height:1.2;
}

.x-counselor-students-show-5.x-counselor-students-show-5 {
  display:flex;
  gap:0.375rem;
  align-items:center;
  height:2rem;
}

.x-counselor-students-show-6.x-counselor-students-show-6 {
  height:2rem;
}

.x-counselor-students-show-7.x-counselor-students-show-7 {
  flex-shrink:0;
  margin-top:0.1rem;
}

.x-counselor-students-show-8.x-counselor-students-show-8 {
  flex:1;
  min-width:0;
}

.x-counselor-students-show-9.x-counselor-students-show-9 {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0.25rem 0.5rem;
}

.x-counselor-students-show-10.x-counselor-students-show-10 {
  display:flex;
  align-items:center;
  gap:0.5rem;
  padding:0.15rem 0;
  font-size:0.75rem;
  border-bottom:1px solid var(--color-border-subtle, #eee);
}

.x-counselor-students-show-11.x-counselor-students-show-11 {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
}

.x-counselor-students-show-12.x-counselor-students-show-12 {
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.x-counselor-students-show-13.x-counselor-students-show-13 {
  flex: 1;
  min-width: 0;
}

.x-counselor-students-show-14.x-counselor-students-show-14 {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.x-counselor-students-show-15.x-counselor-students-show-15 {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-top: 0.125rem;
}

.x-counselor-students-show-16.x-counselor-students-show-16 {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  margin-top: 0.15rem;
}

.x-counselor-students-show-17.x-counselor-students-show-17 {
  margin-top:0.375rem;
  height:4px;
  background:var(--color-border-subtle);
  border-radius:2px;
  overflow:hidden;
}

/* ── dashboard/show.html.erb ── */
.x-dashboard-show-1.x-dashboard-show-1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.x-dashboard-show-2.x-dashboard-show-2 {
  flex: 1;
  min-width: 0;
}

.x-dashboard-show-3.x-dashboard-show-3 {
  flex-shrink: 0;
  margin-right: 0.75rem;
}

/* ── essay_manager/essays/index.html.erb ── */
.x-essay-manager-essays-index-1.x-essay-manager-essays-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.x-essay-manager-essays-index-2.x-essay-manager-essays-index-2 {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
}

.x-essay-manager-essays-index-3.x-essay-manager-essays-index-3 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.x-essay-manager-essays-index-4.x-essay-manager-essays-index-4 {
  font-size: 0.8125rem;
  padding: 0.2rem 0.35rem;
  min-width: 120px;
}

/* ── essay_manager/essays/show.html.erb ── */
.x-essay-manager-essays-show-1.x-essay-manager-essays-show-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.x-essay-manager-essays-show-2.x-essay-manager-essays-show-2 {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0.5rem;
}

.x-essay-manager-essays-show-3.x-essay-manager-essays-show-3 {
  align-items: start;
}

.x-essay-manager-essays-show-4.x-essay-manager-essays-show-4 {
  max-width: 100%;
}

.x-essay-manager-essays-show-5.x-essay-manager-essays-show-5 {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── essay_manager/students/index.html.erb ── */
.x-essay-manager-students-index-1.x-essay-manager-students-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.x-essay-manager-students-index-2.x-essay-manager-students-index-2 {
  width: 20rem;
}

.x-essay-manager-students-index-3.x-essay-manager-students-index-3 {
  width: 5rem;
}

.x-essay-manager-students-index-4.x-essay-manager-students-index-4 {
  flex: 1;
  min-width: 0;
}

/* ── essay_specialist/dashboard/show.html.erb ── */
.x-essay-specialist-dashboard-show-1.x-essay-specialist-dashboard-show-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* ── essay_specialist/essays/index.html.erb ── */
.x-essay-specialist-essays-index-1.x-essay-specialist-essays-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.x-essay-specialist-essays-index-2.x-essay-specialist-essays-index-2 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── essay_specialist/essays/show.html.erb ── */
.x-essay-specialist-essays-show-1.x-essay-specialist-essays-show-1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.x-essay-specialist-essays-show-2.x-essay-specialist-essays-show-2 {
  align-items: start;
}

.x-essay-specialist-essays-show-3.x-essay-specialist-essays-show-3 {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.8125rem;
}

.x-essay-specialist-essays-show-4.x-essay-specialist-essays-show-4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.x-essay-specialist-essays-show-5.x-essay-specialist-essays-show-5 {
  margin-top: 0.25rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── layouts/app.html.erb ── */
.x-layouts-app-1.x-layouts-app-1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── notifications/index.html.erb ── */
.x-notifications-index-1.x-notifications-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.x-notifications-index-2.x-notifications-index-2 {
  display: flex;
  flex-direction: column;
}

.x-notifications-index-3.x-notifications-index-3 {
  width: 8px;
  flex-shrink: 0;
}

.x-notifications-index-4.x-notifications-index-4 {
  flex: 1;
  min-width: 0;
}

.x-notifications-index-5.x-notifications-index-5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

/* ── shared/_essay_notes.html.erb ── */
.x-shared-essay-notes-1.x-shared-essay-notes-1 {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:1rem;
  font-weight:400;
  flex-wrap:nowrap;
}

.x-shared-essay-notes-2.x-shared-essay-notes-2 {
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  white-space:nowrap;
}

/* ── shared/_notification_bell.html.erb ── */
.x-shared-notification-bell-1.x-shared-notification-bell-1 {
  position: absolute;
  top: -2px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-danger);
  border-radius: 9999px;
}

/* ── shared/_workflow_tracker.html.erb ── */
.x-shared-workflow-tracker-1.x-shared-workflow-tracker-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem 1rem;
  gap: 0.75rem;
}

/* ── student/documents/index.html.erb ── */
.x-student-documents-index-1.x-student-documents-index-1 {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── student/essays/index.html.erb ── */
.x-student-essays-index-1.x-student-essays-index-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.x-student-essays-index-2.x-student-essays-index-2 {
  align-items: center;
}

.x-student-essays-index-3.x-student-essays-index-3 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.x-student-essays-index-4.x-student-essays-index-4 {
  width: 100%;
  min-width: 1050px;
  table-layout: fixed;
  border-collapse: collapse;
}

.x-student-essays-index-4.x-student-essays-index-4 th,
.x-student-essays-index-4.x-student-essays-index-4 td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-student-essays-index-5.x-student-essays-index-5 {
  width: 15%;
}

.x-student-essays-index-6.x-student-essays-index-6 {
  width: 13%;
}

.x-student-essays-index-7.x-student-essays-index-7 {
  width: 8%;
}

.x-student-essays-index-8.x-student-essays-index-8 {
  width: 10%;
}

.x-student-essays-index-9.x-student-essays-index-9 {
  width: 8%;
}

.x-student-essays-index-10.x-student-essays-index-10 {
  width: 14%;
}

.x-student-essays-index-11.x-student-essays-index-11 {
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.x-student-essays-index-12.x-student-essays-index-12 {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

/* ── student/essays/new.html.erb ── */
.x-student-essays-new-1.x-student-essays-new-1 {
  max-width: 720px;
}

.x-student-essays-new-2.x-student-essays-new-2 {
  max-width: 500px;
  width: 100%;
}

.x-student-essays-new-3.x-student-essays-new-3 {
  display: block;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-bg-subtle, #fafafa);
}

.x-student-essays-new-4.x-student-essays-new-4 {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.x-student-essays-new-5.x-student-essays-new-5 {
  margin-top: 0.2rem;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.x-student-essays-new-6.x-student-essays-new-6 {
  flex: 1;
  min-width: 0;
}

.x-student-essays-new-7.x-student-essays-new-7 {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-warning, #b45309);
  background: #fef3c7;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.x-student-essays-new-8.x-student-essays-new-8 {
  display: inline-block;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #f5f5f4;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.x-student-essays-new-9.x-student-essays-new-9 {
  display: block;
  cursor: pointer;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, background 0.15s;
}

.x-student-essays-new-10.x-student-essays-new-10 {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.x-student-essays-new-11.x-student-essays-new-11 {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #f5f5f4;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.x-student-essays-new-12.x-student-essays-new-12 {
  font-size: 0.8125rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.375rem;
}

.x-student-essays-new-13.x-student-essays-new-13 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.x-student-essays-new-14.x-student-essays-new-14 {
  display: none;
  align-items: center;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}

.x-student-essays-new-15.x-student-essays-new-15 {
  margin: 0 0.375rem 0 0;
  flex-shrink: 0;
}

.x-student-essays-new-16.x-student-essays-new-16 {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.x-student-essays-new-17.x-student-essays-new-17 {
  max-width: 640px;
}

/* ── student/essays/show.html.erb ── */
.x-student-essays-show-1.x-student-essays-show-1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.x-student-essays-show-2.x-student-essays-show-2 {
  min-width: 0;
  flex: 1;
}

.x-student-essays-show-3.x-student-essays-show-3 {
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.4;
}

.x-student-essays-show-4.x-student-essays-show-4 {
  align-items: start;
}

.x-student-essays-show-5.x-student-essays-show-5 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.x-student-essays-show-6.x-student-essays-show-6 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ── student/messages/index.html.erb ── */
.x-student-messages-index-1.x-student-messages-index-1 {
  width:0.5rem;
  flex-shrink:0;
}

/* ── student/messages/show.html.erb ── */
.x-student-messages-show-1.x-student-messages-show-1 {
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
}

.x-student-messages-show-2.x-student-messages-show-2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.x-student-messages-show-3.x-student-messages-show-3 {
  flex: 1;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.8125rem;
  resize: vertical;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.x-student-messages-show-4.x-student-messages-show-4 {
  flex-shrink: 0;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── student/profiles/show.html.erb ── */
.x-student-profiles-show-1.x-student-profiles-show-1 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

/* ── student/school_selections/index.html.erb ── */
.x-student-school-selections-index-1.x-student-school-selections-index-1 {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.x-student-school-selections-index-2.x-student-school-selections-index-2 {
  margin-bottom:0;
  flex: 0 0 170px;
  width:170px;
}

/* Wide enough for the full "e.g. College of Arts & Sciences" placeholder. */
.x-student-school-selections-index-9.x-student-school-selections-index-9 {
  flex: 0 0 215px;
  width:215px;
}

.x-student-school-selections-index-10.x-student-school-selections-index-10 {
  flex: 0 0 260px;
  width:260px;
}

.x-student-school-selections-index-3.x-student-school-selections-index-3 {
  font-size:0.6875rem;
  display: block;
  margin-bottom: 0.25rem;
}

.x-student-school-selections-index-4.x-student-school-selections-index-4 {
  font-size:0.8125rem;
  height:2.25rem;
  padding:0 0.5rem;
  width:100%;
  box-sizing:border-box;
  vertical-align:middle;
}

.x-student-school-selections-index-5.x-student-school-selections-index-5 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.1rem;
}

.x-student-school-selections-index-6.x-student-school-selections-index-6 {
  height:2.25rem;
  line-height:2.25rem;
  padding:0 0.75rem;
  font-size:0.8125rem;
  box-sizing:border-box;
  vertical-align:middle;
}

.x-student-school-selections-index-7.x-student-school-selections-index-7 {
  flex: 1;
  min-width: 0;
}

.x-student-school-selections-index-8.x-student-school-selections-index-8 {
  flex: 0 1 480px;
  min-width: 0;
}

/* ── Tag multi-select component ── */
.tag-select-wrapper {
  position: relative;
}

.tag-select-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.375rem;
  padding: 0.1875rem 0.75rem;
  cursor: text;
}

/* Match the CTA Text input's height to the Tags field so the two sit flush
   in the same row (ADM resources form). Scoped to this field only — the
   sitewide input.form-input height rule stays untouched for every other
   form input/select. */
.form-input.cta-text-input {
  height: 2.5rem;
}

.tag-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: var(--color-bg-subtle, #f0f0f0);
  border: 1px solid var(--color-border-subtle, #e0e0e0);
  border-radius: 9999px;
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-select-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--color-text-muted, #888);
  cursor: pointer;
  border-radius: 50%;
}

.tag-select-chip-remove:hover {
  color: var(--color-danger, #dc2626);
  background: rgba(0, 0, 0, 0.06);
}

.tag-select-search {
  flex: 0 1 160px;
  width: 160px;
  max-width: 100%;
  min-width: 80px;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: inherit;
  color: inherit;
  padding: 0.125rem 0;
}

.tag-select-search::placeholder {
  color: var(--color-text-muted, #999);
}

/* Center the native "Choose file" button + filename text inside the box,
   both horizontally and vertically (ADM resources form PDF upload). */
.form-input.pdf-file-input {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  line-height: 1.5;
  gap: 0.5rem;
}

/* Normalise the native button so the top/bottom space is even.
   The browser's default margin (usually 0 4px) is what causes the
   asymmetry QA flagged. */
.form-input.pdf-file-input::file-selector-button {
  margin: 0 0.75rem 0 0;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle, #f9fafb);
  color: var(--color-text, inherit);
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
}

.form-input.pdf-file-input::-webkit-file-upload-button {
  margin: 0 0.75rem 0 0;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle, #f9fafb);
  color: var(--color-text, inherit);
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
}

.tag-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
  background: var(--color-bg-surface, var(--color-bg, #fff));
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: var(--radius-sm, 0.375rem);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.tag-select-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.tag-select-option:hover {
  background: var(--color-bg-subtle, #f5f5f5);
}

.tag-select-no-options {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #999);
}
