:root {
  color-scheme: dark;
  --sidebar: #171717;
  --sidebar-hover: #2a2a2a;
  --canvas: #212121;
  --canvas-raised: #2f2f2f;
  --canvas-soft: #292929;
  --border: rgba(255, 255, 255, 0.1);
  --text: #ececec;
  --muted: #a7a7a7;
  --subtle: #777;
  --accent: #10a37f;
  --accent-hover: #1abb93;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

/* Application workbench */
.application-workspace-nav {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.application-workspace-item .workspace-badge {
  color: #a9c8ff;
  border-color: rgba(169, 200, 255, 0.25);
}

.application-workbench-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.application-module {
  display: flex;
  gap: 18px;
  flex-direction: column;
}

.application-module-heading,
.application-form-heading,
.application-list-heading,
.application-record-title,
.application-form-actions,
.application-toolbar {
  display: flex;
  align-items: center;
}

.application-module-heading {
  justify-content: space-between;
  gap: 20px;
}

.application-module-heading > div {
  min-width: 0;
}

.application-module-kicker {
  display: block;
  margin-bottom: 7px;
  color: #72d9b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.application-module-heading h2,
.application-form-heading h3 {
  margin: 0;
  color: #ededed;
  font-size: 22.8px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.application-form-heading h3 {
  font-size: 18px;
}

.application-module-heading p {
  max-width: 700px;
  margin: 7px 0 0;
  color: #929292;
  font-size: 14.4px;
  line-height: 1.55;
}

.application-count,
.application-type-badge,
.application-status-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(16, 163, 127, 0.25);
  border-radius: 999px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.1);
  font-size: 12px;
  white-space: nowrap;
}

.application-toolbar {
  gap: 8px;
}

.application-search {
  display: flex;
  min-width: 190px;
  flex: 1;
  gap: 7px;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #858585;
  background: rgba(0, 0, 0, 0.14);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.application-search:focus-within {
  border-color: rgba(16, 163, 127, 0.72);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.11);
}

.application-search input,
.application-filter,
.application-field input,
.application-field select,
.application-field textarea {
  width: 100%;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.14);
  font-size: 14.4px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.application-search input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.application-search input:focus,
.application-filter:focus,
.application-field input:focus,
.application-field select:focus,
.application-field textarea:focus {
  border-color: rgba(16, 163, 127, 0.72);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.11);
}

.application-filter {
  width: auto;
  min-width: 135px;
  height: 36px;
  padding: 0 10px;
}

.application-primary-button,
.application-secondary-button,
.application-row-action,
.application-close-form {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13.2px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.application-primary-button {
  color: #fff;
  background: var(--accent);
}

.application-primary-button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.application-primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.application-secondary-button,
.application-row-action,
.application-close-form {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #bdbdbd;
  background: transparent;
}

.application-secondary-button:hover,
.application-row-action:hover,
.application-close-form:hover {
  border-color: rgba(114, 217, 178, 0.35);
  color: #d8f5e9;
  background: rgba(16, 163, 127, 0.11);
}

.application-editor-form {
  display: flex;
  gap: 15px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgba(114, 217, 178, 0.2);
  border-radius: 11px;
  background: rgba(16, 163, 127, 0.045);
}

.application-form-heading {
  justify-content: space-between;
  gap: 15px;
}

.application-close-form {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 12px;
}

.application-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.application-field {
  display: flex;
  min-width: 0;
  gap: 6px;
  flex-direction: column;
  color: #9c9c9c;
  font-size: 12px;
  font-weight: 600;
}

.application-field-wide {
  grid-column: 1 / -1;
}

.application-field input,
.application-field select {
  min-height: 36px;
  padding: 8px 10px;
}

.application-field textarea {
  min-height: 72px;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.55;
}

.application-field select[multiple] {
  height: auto;
  min-height: 110px;
  padding: 5px;
}

.application-field option {
  color: #333;
  background: #fff;
}

.application-form-actions {
  gap: 8px;
  justify-content: flex-end;
}

.application-feedback {
  min-height: 16px;
  flex: 1;
  margin: 0;
  color: #72d9b2;
  font-size: 13.2px;
  line-height: 1.45;
}

.application-feedback.error,
.application-empty-state.error strong {
  color: #e6a19c;
}

.application-list-heading {
  justify-content: space-between;
  gap: 15px;
  color: #d4d4d4;
  font-size: 14.4px;
  font-weight: 600;
}

.application-list-heading small {
  color: #777;
  font-size: 12px;
  font-weight: 400;
}

.application-list-heading strong {
  color: #9edfc7;
  font-weight: 600;
}

.application-project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.application-project-card {
  display: flex;
  min-width: 0;
  min-height: 178px;
  gap: 0;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  background: rgba(47, 47, 47, 0.45);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.application-project-card:hover {
  border-color: rgba(114, 217, 178, 0.45);
  background: var(--canvas-raised);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.application-project-card:focus-visible {
  outline: 2px solid #72d9b2;
  outline-offset: 3px;
}

.application-project-card-top,
.application-project-card-meta,
.application-project-card-footer,
.application-project-detail-badges,
.application-project-drawer-actions {
  display: flex;
  align-items: center;
}

.application-project-card-top {
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.application-project-card-top .application-type-badge,
.application-project-card-top .application-status-badge {
  overflow: hidden;
  max-width: 48%;
  text-overflow: ellipsis;
}

.application-logo-tile {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #fff;
}

.application-university-logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.application-logo-tile-fallback {
  color: #187d63;
  background: rgba(16, 163, 127, 0.09);
  font-size: 13.2px;
  font-weight: 700;
}

.application-project-card-badges {
  display: flex;
  max-width: calc(100% - 52px);
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
}

.application-project-card-badges .application-type-badge,
.application-project-card-badges .application-status-badge {
  max-width: 100%;
}

.application-project-card-title {
  display: block;
  margin-top: 17px;
  overflow: hidden;
  color: #e5e5e5;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-project-card-university {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #929292;
  font-size: 14.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-project-card-meta {
  gap: 22px;
  margin-top: 17px;
}

.application-project-card-meta > span {
  display: flex;
  min-width: 0;
  gap: 4px;
  flex: 1;
  flex-direction: column;
}

.application-project-card-meta small {
  color: #777;
  font-size: 12px;
}

.application-project-card-meta b {
  display: block;
  overflow: hidden;
  color: #b8b8b8;
  font-size: 13.2px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-project-card-footer {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #72d9b2;
  font-size: 12px;
}

.application-project-card-footer span:last-child {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.application-project-card:hover .application-project-card-footer span:last-child {
  transform: translateX(3px);
}

.application-project-drawer-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.application-project-drawer-backdrop.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.application-project-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(560px, 100vw);
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: #2b2b2b;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.application-project-drawer-backdrop.open .application-project-drawer {
  transform: translateX(0);
}

.application-project-drawer-header {
  display: flex;
  min-height: 86px;
  flex: 0 0 auto;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 25px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.application-project-drawer-header > div {
  min-width: 0;
}

.application-project-drawer-title-group {
  display: flex;
  min-width: 0;
  gap: 12px;
  flex: 1;
  align-items: center;
}

.application-project-drawer-title-group > div {
  min-width: 0;
}

.application-project-drawer-logo {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.application-project-drawer-header h2 {
  margin: 0;
  overflow: hidden;
  color: #f0f0f0;
  font-size: 22.8px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-project-drawer-header p {
  margin: 7px 0 0;
  overflow: hidden;
  color: #929292;
  font-size: 14.4px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-project-drawer-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #bdbdbd;
  background: transparent;
  font-size: 25.2px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.application-project-drawer-close:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.07);
}

.application-project-drawer-close:focus-visible {
  outline: 2px solid #72d9b2;
  outline-offset: 2px;
}

.application-project-drawer-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 25px 25px 32px;
  overscroll-behavior: contain;
  scrollbar-color: #565656 transparent;
  scrollbar-width: thin;
}

.application-project-detail-badges {
  flex-wrap: wrap;
  gap: 8px;
}

.application-project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
}

.application-project-detail-grid > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.application-project-detail-grid dt {
  color: #777;
  font-size: 12px;
}

.application-project-detail-grid dd {
  margin: 6px 0 0;
  overflow: hidden;
  color: #d5d5d5;
  font-size: 14.4px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-project-detail-sections {
  margin-top: 24px;
}

.application-project-detail-sections > section {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.application-project-detail-sections h3 {
  margin: 0 0 7px;
  color: #ededed;
  font-size: 15.6px;
  font-weight: 600;
}

.application-project-detail-sections p,
.application-project-detail-sections a {
  margin: 0;
  color: #a6a6a6;
  font-size: 14.4px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.application-project-detail-sections a {
  display: block;
  color: #72d9b2;
  text-decoration: none;
}

.application-project-detail-sections a:hover {
  text-decoration: underline;
}

.application-project-drawer-actions {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.application-danger-button {
  color: #e6a19c;
}

.application-danger-button:hover {
  border-color: rgba(216, 135, 131, 0.36);
  color: #f0bbb7;
  background: rgba(196, 112, 107, 0.12);
}

.application-drawer-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.application-drawer-open .chat-content {
  overflow: hidden;
}

.application-record-list {
  display: flex;
  gap: 0;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.application-record-item {
  display: flex;
  min-width: 0;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 140ms ease;
}

.application-record-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.application-record-main {
  min-width: 0;
  flex: 1;
}

.application-record-title {
  min-width: 0;
  gap: 8px;
}

.application-record-title strong {
  overflow: hidden;
  color: #e5e5e5;
  font-size: 14.4px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-record-subtitle {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #858585;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-record-meta {
  display: flex;
  min-width: 180px;
  gap: 17px;
}

.application-record-meta span {
  display: flex;
  min-width: 65px;
  gap: 4px;
  flex-direction: column;
}

.application-record-meta em {
  color: #777;
  font-size: 10.8px;
  font-style: normal;
}

.application-record-meta b {
  max-width: 125px;
  overflow: hidden;
  color: #b8b8b8;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-status-badge {
  color: #a9c9ff;
  border-color: rgba(118, 157, 231, 0.25);
  background: rgba(103, 151, 231, 0.1);
}

.application-type-badge {
  color: #d6b7ff;
  border-color: rgba(214, 183, 255, 0.25);
  background: rgba(214, 183, 255, 0.09);
}

.application-row-action {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 12px;
}

.application-row-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.application-row-action.danger:hover {
  border-color: rgba(216, 135, 131, 0.36);
  color: #f0bbb7;
  background: rgba(196, 112, 107, 0.12);
}

.application-record-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 9px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.14);
  font-size: 14.4px;
  font-weight: 700;
}

.application-match-line,
.application-next-action {
  overflow: hidden;
  margin: 6px 0 0;
  color: #72d9b2;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-next-action {
  color: #a6a6a6;
}

.application-inline-status {
  min-width: 88px;
  padding: 6px 8px;
  outline: none;
  border: 1px solid rgba(16, 163, 127, 0.22);
  border-radius: 999px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.09);
  font-size: 12px;
}

.application-inline-status option {
  color: #333;
  background: #fff;
}

.application-empty-state,
.application-loading {
  display: flex;
  min-height: 125px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  padding: 20px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #858585;
  font-size: 13.2px;
  text-align: center;
}

.application-empty-state strong {
  color: #d7d7d7;
  font-size: 14.4px;
}

.application-empty-state p {
  margin: 3px 0 0;
  color: #858585;
  line-height: 1.5;
}

.application-loading {
  min-height: 240px;
  flex-direction: row;
  border-style: solid;
  border-color: rgba(16, 163, 127, 0.15);
}

html.light-theme .application-workspace-nav {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-theme .application-module-heading h2,
html.light-theme .application-form-heading h3,
html.light-theme .application-record-title strong,
html.light-theme .application-empty-state strong {
  color: #2d2d2d;
}

html.light-theme .application-module-heading p,
html.light-theme .application-record-subtitle,
html.light-theme .application-record-meta em,
html.light-theme .application-empty-state,
html.light-theme .application-empty-state p,
html.light-theme .application-field {
  color: #77777d;
}

html.light-theme .application-search,
html.light-theme .application-filter,
html.light-theme .application-field input,
html.light-theme .application-field select,
html.light-theme .application-field textarea {
  border-color: rgba(0, 0, 0, 0.13);
  color: #3d3d42;
  background: rgba(255, 255, 255, 0.7);
}

html.light-theme .application-record-list,
html.light-theme .application-record-item {
  border-color: rgba(0, 0, 0, 0.1);
}

html.light-theme .application-record-item:hover {
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .application-record-meta b,
html.light-theme .application-list-heading {
  color: #55555b;
}

html.light-theme .application-secondary-button,
html.light-theme .application-row-action,
html.light-theme .application-close-form {
  border-color: rgba(0, 0, 0, 0.13);
  color: #66666b;
}

html.light-theme .application-secondary-button:hover,
html.light-theme .application-row-action:hover,
html.light-theme .application-close-form:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

html.light-theme .application-editor-form {
  border-color: rgba(16, 163, 127, 0.2);
  background: rgba(16, 163, 127, 0.035);
}

html.light-theme .application-record-list {
  border-top-color: rgba(0, 0, 0, 0.1);
}

html.light-theme .application-empty-state {
  border-color: rgba(0, 0, 0, 0.14);
}

html.light-theme .application-project-card {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .application-project-card:hover {
  border-color: rgba(16, 163, 127, 0.42);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

html.light-theme .application-project-card-title,
html.light-theme .application-project-detail-sections h3 {
  color: #2d2d2d;
}

html.light-theme .application-project-card-university,
html.light-theme .application-project-detail-sections p {
  color: #77777d;
}

html.light-theme .application-project-detail-sections a {
  color: #187d63;
}

html.light-theme .application-project-card-meta b,
html.light-theme .application-project-detail-grid dd {
  color: #55555b;
}

html.light-theme .application-project-card-footer {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-theme .application-project-drawer {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.15);
}

html.light-theme .application-project-drawer-header {
  border-color: rgba(0, 0, 0, 0.09);
}

html.light-theme .application-project-drawer-header h2 {
  color: #2d2d2d;
}

html.light-theme .application-drawer-form {
  background: transparent;
}

html.light-theme .application-project-drawer-header p,
html.light-theme .application-project-detail-grid dt {
  color: #77777d;
}

html.light-theme .application-project-drawer-close {
  border-color: rgba(0, 0, 0, 0.12);
  color: #66666b;
}

html.light-theme .application-project-drawer-close:hover {
  border-color: rgba(0, 0, 0, 0.22);
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

html.light-theme .application-project-detail-grid > div,
html.light-theme .application-project-detail-sections > section,
html.light-theme .application-project-drawer-actions {
  border-color: rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .application-project-detail-sections > section,
html.light-theme .application-project-drawer-actions {
  background: transparent;
}

html.light-theme .application-danger-button {
  color: #bd625d;
}

html.light-theme .application-danger-button:hover {
  color: #a84d48;
  background: rgba(196, 112, 107, 0.1);
}

.application-applicant-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.application-applicant-card {
  display: flex;
  min-width: 0;
  min-height: 202px;
  gap: 0;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  background: rgba(47, 47, 47, 0.45);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.application-applicant-card:hover {
  border-color: rgba(114, 217, 178, 0.45);
  background: var(--canvas-raised);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.application-applicant-card:focus-visible {
  outline: 2px solid #72d9b2;
  outline-offset: 3px;
}

.application-applicant-card-top {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: flex-start;
}

.application-applicant-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 11px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.14);
  font-size: 18px;
  font-weight: 700;
}

.application-applicant-card-heading {
  display: flex;
  min-width: 0;
  gap: 3px;
  flex: 1;
  flex-direction: column;
}

.application-applicant-card-heading strong {
  overflow: hidden;
  color: #e5e5e5;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-applicant-card-heading small,
.application-applicant-card-school,
.application-applicant-card-field {
  overflow: hidden;
  color: #929292;
  font-size: 13.2px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-applicant-card-top .application-status-badge {
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.application-applicant-card-school {
  margin-top: 18px;
}

.application-applicant-card-field {
  margin-top: 5px;
  color: #a6a6a6;
}

.application-applicant-card-meta {
  display: flex;
  gap: 22px;
  margin-top: 17px;
}

.application-applicant-card-meta > span {
  display: flex;
  min-width: 0;
  gap: 4px;
  flex: 1;
  flex-direction: column;
}

.application-applicant-card-meta small {
  color: #777;
  font-size: 12px;
}

.application-applicant-card-meta b {
  display: block;
  overflow: hidden;
  color: #b8b8b8;
  font-size: 13.2px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-applicant-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #72d9b2;
  font-size: 12px;
}

.application-applicant-card-footer span:last-child {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.application-applicant-card:hover .application-applicant-card-footer span:last-child {
  transform: translateX(3px);
}

.application-applicant-drawer-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.application-applicant-drawer-backdrop.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.application-applicant-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(560px, 100vw);
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: #2b2b2b;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.application-applicant-drawer-backdrop.open .application-applicant-drawer {
  transform: translateX(0);
}

.application-applicant-drawer-header {
  display: flex;
  min-height: 86px;
  flex: 0 0 auto;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 25px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.application-applicant-drawer-title-group {
  display: flex;
  min-width: 0;
  gap: 12px;
  flex: 1;
  align-items: center;
}

.application-applicant-drawer-title-group > div {
  min-width: 0;
}

.application-applicant-detail-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 21.6px;
}

.application-applicant-drawer-header h2 {
  margin: 0;
  overflow: hidden;
  color: #f0f0f0;
  font-size: 22.8px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-applicant-drawer-header p {
  margin: 7px 0 0;
  overflow: hidden;
  color: #929292;
  font-size: 14.4px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-applicant-drawer-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #bdbdbd;
  background: transparent;
  font-size: 25.2px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.application-applicant-drawer-close:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.07);
}

.application-applicant-drawer-close:focus-visible {
  outline: 2px solid #72d9b2;
  outline-offset: 2px;
}

.application-applicant-drawer-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 25px 25px 32px;
  overscroll-behavior: contain;
  scrollbar-color: #565656 transparent;
  scrollbar-width: thin;
}

.application-applicant-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.application-applicant-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
}

.application-applicant-detail-grid > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.application-applicant-detail-grid dt {
  color: #777;
  font-size: 12px;
}

.application-applicant-detail-grid dd {
  margin: 6px 0 0;
  overflow: hidden;
  color: #d5d5d5;
  font-size: 14.4px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-applicant-detail-sections {
  margin-top: 24px;
}

.application-applicant-detail-sections > section {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.application-applicant-detail-sections h3 {
  margin: 0 0 7px;
  color: #ededed;
  font-size: 15.6px;
  font-weight: 600;
}

.application-applicant-detail-sections p {
  margin: 0;
  color: #a6a6a6;
  font-size: 14.4px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.application-applicant-match-item {
  display: flex;
  min-width: 0;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.application-applicant-match-item:first-child {
  border-top: 0;
}

.application-applicant-match-item .application-logo-tile {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 8px;
}

.application-applicant-match-label {
  min-width: 0;
  color: #bdbdbd;
  font-size: 14.4px;
  line-height: 1.45;
}

.application-applicant-no-matches {
  color: #a6a6a6;
}

.application-applicant-drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.application-applicant-drawer-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.light-theme .application-project-card-title,
html.light-theme .application-project-detail-sections h3,
html.light-theme .application-applicant-card-heading strong,
html.light-theme .application-applicant-detail-sections h3 {
  color: #2d2d2d;
}

html.light-theme .application-applicant-card {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .application-applicant-card:hover {
  border-color: rgba(16, 163, 127, 0.42);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

html.light-theme .application-applicant-card-heading small,
html.light-theme .application-applicant-card-school,
html.light-theme .application-applicant-card-field,
html.light-theme .application-applicant-drawer-header p,
html.light-theme .application-applicant-detail-grid dt,
html.light-theme .application-applicant-detail-sections p,
html.light-theme .application-applicant-no-matches {
  color: #77777d;
}

html.light-theme .application-applicant-card-field,
html.light-theme .application-applicant-match-label {
  color: #55555b;
}

html.light-theme .application-applicant-card-meta b,
html.light-theme .application-applicant-detail-grid dd {
  color: #55555b;
}

html.light-theme .application-applicant-card-footer,
html.light-theme .application-applicant-match-label {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-theme .application-applicant-card-footer {
  color: #187d63;
}

html.light-theme .application-applicant-drawer {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.15);
}

html.light-theme .application-applicant-drawer-header {
  border-color: rgba(0, 0, 0, 0.09);
}

html.light-theme .application-applicant-drawer-header h2 {
  color: #2d2d2d;
}

html.light-theme .application-applicant-drawer-close {
  border-color: rgba(0, 0, 0, 0.12);
  color: #66666b;
}

html.light-theme .application-applicant-drawer-close:hover {
  border-color: rgba(0, 0, 0, 0.22);
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

html.light-theme .application-applicant-detail-grid > div {
  border-color: rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .application-applicant-detail-sections > section,
html.light-theme .application-applicant-drawer-actions,
html.light-theme .application-applicant-match-item {
  border-color: rgba(0, 0, 0, 0.09);
}

@media (max-width: 760px) {
  .application-form-grid {
    grid-template-columns: 1fr;
  }

  .application-field-wide {
    grid-column: auto;
  }

  .application-record-meta {
    min-width: 140px;
    gap: 9px;
  }

  .application-project-card-grid {
    grid-template-columns: 1fr;
  }

  .application-applicant-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .application-module-heading,
  .application-toolbar,
  .application-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .application-toolbar .application-primary-button,
  .application-toolbar .application-filter,
  .application-form-actions .application-primary-button,
  .application-form-actions .application-secondary-button {
    width: 100%;
  }

  .application-record-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .application-record-main {
    min-width: calc(100% - 45px);
  }

  .application-record-meta {
    width: calc(100% - 45px);
    margin-left: 44px;
  }

  .application-record-item > .application-row-action,
  .application-record-item > .application-inline-status {
    margin-left: 44px;
  }

  .application-record-item .application-row-actions {
    margin-left: 44px;
  }

  .application-record-item .application-inline-status {
    margin-left: 0;
  }

  .application-feedback {
    width: 100%;
    flex: auto;
  }

  .application-project-drawer-header {
    padding: 20px 18px 17px;
  }

  .application-project-drawer-scroll {
    padding: 20px 18px 26px;
  }

  .application-project-detail-grid {
    grid-template-columns: 1fr;
  }

  .application-project-drawer-actions .application-primary-button,
  .application-project-drawer-actions .application-secondary-button {
    flex: 1;
  }

  .application-applicant-drawer-header {
    padding: 20px 18px 17px;
  }

  .application-applicant-drawer-scroll {
    padding: 20px 18px 26px;
  }

  .application-applicant-detail-grid {
    grid-template-columns: 1fr;
  }

  .application-applicant-drawer-actions .application-primary-button,
  .application-applicant-drawer-actions .application-secondary-button {
    flex: 1;
  }
}

html.light-theme {
  color-scheme: light;
  --sidebar: #f7f7f8;
  --sidebar-hover: #e9e9eb;
  --canvas: #ffffff;
  --canvas-raised: #f4f4f5;
  --canvas-soft: #fafafa;
  --border: rgba(0, 0, 0, 0.1);
  --text: #2d2d2d;
  --muted: #6e6e73;
  --subtle: #8b8b91;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

html.no-motion *,
html.no-motion *::before,
html.no-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--text);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19.2px;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
}

.sidebar {
  position: relative;
  z-index: 5;
  width: 258px;
  flex: 0 0 258px;
  background: var(--sidebar);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 13px 12px 12px;
}

.sidebar-header,
.brand,
.profile-card,
.topbar,
.composer-toolbar,
.sidebar-link,
.conversation-item,
.new-chat-button {
  display: flex;
  align-items: center;
}

.sidebar-header {
  justify-content: space-between;
  min-height: 42px;
  padding: 0 3px 10px 7px;
}

.brand {
  min-width: 0;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 145px;
  height: auto;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  color: #fff;
  font-size: 16.8px;
  line-height: 1;
  transform: rotate(10deg);
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.icon-button,
.more-button,
.attach-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
  color: #b9b9b9;
  background: transparent;
  transition: color 140ms ease, background 140ms ease;
}

.icon-button:hover,
.more-button:hover,
.attach-button:hover {
  color: var(--text);
  background: var(--sidebar-hover);
}

.icon-button svg,
.more-button svg,
.attach-button svg,
.new-chat-button svg,
.conversation-item svg,
.sidebar-link svg,
.send-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-close,
.menu-button {
  display: none;
}

.new-chat-button {
  width: 100%;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f4f4f4;
  background: transparent;
  font-size: 16.8px;
  font-weight: 500;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.new-chat-button:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--sidebar-hover);
}

.new-chat-button svg {
  width: 17px;
  height: 17px;
}

.shortcut {
  margin-left: auto;
  color: #777;
  font-size: 13.2px;
}

.section-label {
  margin: 0 10px 9px;
  color: #7c7c7c;
  font-size: 13.2px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-item {
  width: 100%;
  gap: 11px;
  padding: 10px 11px;
  overflow: hidden;
  border-radius: 7px;
  color: #bdbdbd;
  background: transparent;
  font-size: 15.6px;
  text-align: left;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.conversation-item:hover,
.conversation-item.active {
  color: #f1f1f1;
  background: var(--sidebar-hover);
}

.conversation-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #909090;
  stroke-width: 1.6;
}

.conversation-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link {
  width: 100%;
  gap: 11px;
  padding: 10px 10px;
  border-radius: 7px;
  color: #c7c7c7;
  background: transparent;
  font-size: 15.6px;
  text-align: left;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
}

.sidebar-link svg,
.sidebar-link-icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 17px;
  color: #bdbdbd;
}

.profile-card {
  gap: 10px;
  margin-top: 8px;
  padding: 10px 7px 3px;
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: #1f1f1f;
  background: linear-gradient(135deg, #f3c9a4, #b98d73);
  font-size: 15.6px;
  font-weight: 700;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.profile-copy strong {
  color: #e4e4e4;
  font-size: 14.4px;
  font-weight: 500;
}

.profile-copy small {
  color: #777;
  font-size: 12px;
}

.more-button {
  width: 28px;
  height: 28px;
  margin-left: auto;
  font-size: 16.8px;
  letter-spacing: 1px;
}

.sidebar-overlay {
  display: none;
}

.settings-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.settings-backdrop.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.settings-dialog {
  display: flex;
  width: min(780px, 100%);
  max-height: min(700px, calc(100vh - 40px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: #2b2b2b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  transform: translateY(8px) scale(0.985);
  transition: transform 180ms ease;
}

.settings-backdrop.open .settings-dialog {
  transform: translateY(0) scale(1);
}

.settings-header,
.settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-header {
  min-height: 78px;
  padding: 18px 21px 16px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.settings-kicker {
  display: block;
  margin-bottom: 4px;
  color: #8b8b8b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.settings-header h2 {
  margin: 0;
  color: #f0f0f0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.settings-close {
  width: 32px;
  height: 32px;
}

.settings-layout {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.settings-tabs {
  display: flex;
  width: 178px;
  flex: 0 0 178px;
  flex-direction: column;
  gap: 3px;
  padding: 17px 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.settings-tab {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 7px;
  color: #a6a6a6;
  background: transparent;
  font-size: 15.6px;
  text-align: left;
  transition: color 140ms ease, background 140ms ease;
}

.settings-tab:hover {
  color: #e3e3e3;
  background: rgba(255, 255, 255, 0.06);
}

.settings-tab.active {
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.11);
}

.settings-tab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.settings-panels {
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #565656 transparent;
  scrollbar-width: thin;
}

.settings-panel {
  display: none;
  padding: 28px 30px 32px;
}

.settings-panel.active {
  display: block;
  animation: settings-fade 160ms ease;
}

@keyframes settings-fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.settings-heading {
  margin-bottom: 17px;
}

.settings-heading.compact {
  margin-top: 29px;
}

.settings-heading h3 {
  margin: 0 0 6px;
  color: #ededed;
  font-size: 19.2px;
  font-weight: 600;
}

.settings-heading p {
  margin: 0;
  color: #929292;
  font-size: 14.4px;
  line-height: 1.5;
}

.settings-row {
  display: flex;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.settings-copy strong,
.setting-action strong {
  color: #e5e5e5;
  font-size: 15.6px;
  font-weight: 500;
}

.settings-copy small,
.setting-action small {
  color: #898989;
  font-size: 13.2px;
  line-height: 1.4;
}

.switch-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  display: block;
  width: 37px;
  height: 21px;
  border-radius: 999px;
  background: #666;
  cursor: pointer;
  transition: background 140ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f1f1f1;
  content: "";
  transition: transform 140ms ease;
}

.switch-control input:checked + .switch {
  background: var(--accent);
}

.switch-control input:checked + .switch::after {
  transform: translateX(16px);
}

.switch-control input:focus-visible + .switch {
  outline: 2px solid #8bb6ff;
  outline-offset: 2px;
}

.setting-action {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease;
}

.setting-action:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.setting-action > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setting-action.danger strong {
  color: #efaaa7;
}

.setting-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #d88783;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.settings-feedback {
  min-height: 16px;
  margin: 10px 2px 0;
  color: #72d9b2;
  font-size: 13.2px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #d9d9d9;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.theme-option:hover,
.theme-option.active {
  border-color: rgba(16, 163, 127, 0.75);
  background: rgba(16, 163, 127, 0.08);
}

.theme-option > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.theme-option strong {
  color: #e7e7e7;
  font-size: 15.6px;
  font-weight: 500;
}

.theme-option small {
  color: #8e8e8e;
  font-size: 13.2px;
}

.theme-preview {
  display: flex;
  width: 47px;
  height: 35px;
  flex: 0 0 47px;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

.theme-preview i {
  display: block;
  width: 70%;
  height: 3px;
  border-radius: 3px;
}

.theme-preview i:nth-child(2) { width: 90%; }
.theme-preview i:nth-child(3) { width: 55%; }
.dark-preview { background: #242424; }
.dark-preview i { background: #777; }
.light-preview { background: #f3f3f3; }
.light-preview i { background: #aaa; }

.settings-note,
.help-contact {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #909090;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13.2px;
  line-height: 1.45;
}

.note-icon {
  color: #bca0e9;
  font-size: 18px;
}

.shortcut-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcut-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfcfcf;
  font-size: 15.6px;
}

.shortcut-row > span {
  margin-right: auto;
}

.shortcut-row b {
  color: #777;
  font-size: 13.2px;
  font-weight: 400;
}

kbd {
  min-width: 25px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #cfcfcf;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 12px;
  text-align: center;
}

.help-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.help-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.help-list summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  color: #d8d8d8;
  cursor: pointer;
  font-size: 15.6px;
  list-style: none;
}

.help-list summary::-webkit-details-marker {
  display: none;
}

.help-list summary span {
  color: #888;
  font-size: 21.6px;
  font-weight: 300;
  transition: transform 140ms ease;
}

.help-list details[open] summary span {
  transform: rotate(45deg);
}

.help-list details p {
  margin: -3px 0 15px;
  color: #969696;
  font-size: 14.4px;
  line-height: 1.65;
}

.help-list code {
  padding: 2px 4px;
  border-radius: 4px;
  color: #d4c0f4;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.help-contact {
  margin-top: 21px;
}

.settings-footer {
  min-height: 61px;
  padding: 12px 21px 12px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #858585;
  font-size: 13.2px;
}

.settings-footer > span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.settings-done {
  padding: 8px 17px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 14.4px;
  font-weight: 500;
  transition: background 140ms ease;
}

.settings-done:hover {
  background: var(--accent-hover);
}

.chat-panel {
  display: flex;
  min-width: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  background: var(--canvas);
}

.topbar {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  height: 58px;
  flex: 0 0 58px;
  padding: 0 22px 0 27px;
}

.topbar-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.chat-content {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #505050 transparent;
  scrollbar-width: thin;
}

.chat-content.prospecting-layout {
  display: grid;
  grid-template-rows: minmax(250px, 0.95fr) minmax(220px, 1.05fr);
  overflow: hidden;
}

.chat-content.prospecting-layout .feature-view {
  grid-row: 1;
  min-height: 0;
  padding: 28px 0 20px;
  overflow-y: auto;
  scrollbar-color: #505050 transparent;
  scrollbar-width: thin;
}

.chat-content.prospecting-layout .conversation-panel {
  display: flex;
  width: min(900px, calc(100% - 48px));
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.chat-content.prospecting-layout .conversation-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #505050 transparent;
  scrollbar-width: thin;
}

.welcome-view {
  display: flex;
  width: min(720px, calc(100% - 48px));
  min-height: 100%;
  margin: 0 auto;
  padding: 8vh 0 8vh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.welcome-mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 19px;
  color: #fff;
  font-size: 34.8px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.025), 0 12px 35px rgba(0, 0, 0, 0.2);
  transform: rotate(9deg);
}

.welcome-mark span {
  transform: rotate(-9deg);
}

.welcome-view h1 {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(32.4px, 4.8vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.welcome-subtitle {
  margin: 11px 0 0;
  color: #929292;
  font-size: 16.8px;
}

.messages {
  display: none;
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 155px;
}

.messages.visible {
  display: block;
}

.chat-content.prospecting-layout .messages {
  display: block;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 10px 0 24px;
}

.message-row {
  display: flex;
  gap: 17px;
  padding: 23px 16px;
  border-radius: 10px;
}

.message-row + .message-row {
  margin-top: 4px;
}

.message-row.user {
  background: rgba(255, 255, 255, 0.035);
}

.message-row.assistant {
  background: transparent;
}

.message-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 8px;
  color: #222;
  background: #ececec;
  font-size: 15.6px;
  font-weight: 700;
}

.message-row.assistant .message-avatar {
  color: #fff;
  background: var(--accent);
}

.message-body {
  min-width: 0;
  padding-top: 3px;
}

.message-name {
  display: block;
  margin-bottom: 8px;
  color: #ddd;
  font-size: 14.4px;
  font-weight: 600;
}

.message-text {
  margin: 0;
  color: #e5e5e5;
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-actions {
  display: flex;
  gap: 2px;
  margin-top: 12px;
}

.message-action {
  padding: 5px 7px;
  border-radius: 6px;
  color: #858585;
  background: transparent;
  font-size: 14.4px;
}

.message-action:hover {
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.08);
}

.message-action.selected {
  color: #72d9b2;
  background: rgba(16, 163, 127, 0.13);
}

.thinking-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 26px;
}

.thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a5a5a5;
  animation: bounce 1.1s infinite ease-in-out;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.13s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.26s; }

@keyframes bounce {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.composer-area {
  position: relative;
  z-index: 3;
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 16px;
  background: linear-gradient(to bottom, rgba(33, 33, 33, 0), var(--canvas) 22%);
}

body.feature-page-active .composer-area {
  display: none;
}

.composer {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: #2f2f2f;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.composer:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 13px 40px rgba(0, 0, 0, 0.28);
}

#messageInput {
  display: block;
  width: 100%;
  min-height: 51px;
  max-height: 180px;
  padding: 15px 16px 8px;
  resize: none;
  outline: none;
  border: 0;
  color: #f2f2f2;
  background: transparent;
  font-size: 18px;
  line-height: 1.45;
}

#messageInput::placeholder {
  color: #8d8d8d;
}

.composer-toolbar {
  height: 41px;
  padding: 0 9px 8px 10px;
}

.attach-button {
  width: 29px;
  height: 29px;
  border-radius: 7px;
}

.attach-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.composer-status {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 7px;
  color: #808080;
  font-size: 13.2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.12);
}

.send-button {
  display: inline-grid;
  width: 29px;
  height: 29px;
  margin-left: auto;
  place-items: center;
  border-radius: 7px;
  color: #2e2e2e;
  background: #8e8e8e;
  transition: background 140ms ease, transform 140ms ease;
}

.send-button:not(:disabled) {
  color: #fff;
  background: var(--accent);
}

.send-button:not(:disabled):hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.send-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.disclaimer {
  margin: 11px 0 0;
  color: #787878;
  font-size: 13.2px;
  text-align: center;
}

@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(290px, 86vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close,
  .menu-button {
    display: inline-grid;
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 4;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .sidebar-overlay.visible {
    visibility: visible;
    opacity: 1;
  }

  .topbar {
    justify-content: flex-start;
    gap: 5px;
    padding: 0 13px;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .welcome-view {
    padding-top: 5vh;
  }
}

@media (max-width: 560px) {
  .welcome-view,
  .messages,
  .composer-area {
    width: calc(100% - 28px);
  }

  .welcome-view {
    justify-content: center;
  }

  .welcome-subtitle {
    margin-bottom: 0;
    font-size: 15.6px;
  }

  .messages {
    padding-top: 8px;
    padding-bottom: 145px;
  }

  .message-row {
    gap: 12px;
    padding: 18px 8px;
  }

  .message-text {
    font-size: 16.8px;
  }

  .composer-area {
    padding-bottom: 11px;
  }

  .disclaimer {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .settings-backdrop {
    padding: 10px;
  }

  .settings-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 13px;
  }

  .settings-layout {
    flex-direction: column;
  }

  .settings-tabs {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    padding: 9px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .settings-tab {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .settings-panel {
    padding: 22px 19px 25px;
  }

  .settings-footer {
    min-height: 56px;
    padding: 10px 16px 10px 19px;
  }
}

@media (max-width: 420px) {
  .settings-header {
    min-height: 69px;
    padding: 15px 15px 13px 19px;
  }

  .settings-header h2 {
    font-size: 21.6px;
  }

  .theme-options {
    grid-template-columns: 1fr;
  }

  .settings-footer > span {
    font-size: 12px;
  }
}

html.light-theme .brand-mark {
  border-color: #383838;
  color: #272727;
}

html.light-theme .new-chat-button,
html.light-theme .conversation-item,
html.light-theme .sidebar-link,
html.light-theme .icon-button,
html.light-theme .more-button,
html.light-theme .attach-button {
  color: #454545;
}

html.light-theme .new-chat-button {
  border-color: rgba(0, 0, 0, 0.16);
}

html.light-theme .new-chat-button:hover,
html.light-theme .conversation-item:hover,
html.light-theme .conversation-item.active,
html.light-theme .sidebar-link:hover,
html.light-theme .icon-button:hover,
html.light-theme .more-button:hover,
html.light-theme .attach-button:hover {
  background: #e9e9eb;
}

html.light-theme .brand-name,
html.light-theme .welcome-view h1,
html.light-theme .message-name,
html.light-theme .message-text {
  color: #2d2d2d;
}

html.light-theme .section-label,
html.light-theme .welcome-subtitle,
html.light-theme .disclaimer,
html.light-theme .composer-status {
  color: #77777d;
}

html.light-theme .message-row.user {
  background: rgba(0, 0, 0, 0.035);
}

html.light-theme .composer {
  border-color: rgba(0, 0, 0, 0.15);
  background: #f4f4f5;
}

html.light-theme #messageInput {
  color: #2d2d2d;
}

html.light-theme .settings-dialog {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

html.light-theme .settings-header,
html.light-theme .settings-footer {
  border-color: rgba(0, 0, 0, 0.09);
}

html.light-theme .settings-header h2,
html.light-theme .settings-heading h3,
html.light-theme .settings-copy strong,
html.light-theme .setting-action strong,
html.light-theme .theme-option strong {
  color: #2d2d2d;
}

html.light-theme .settings-kicker,
html.light-theme .settings-heading p,
html.light-theme .settings-copy small,
html.light-theme .setting-action small,
html.light-theme .settings-footer,
html.light-theme .theme-option small,
html.light-theme .settings-note,
html.light-theme .help-contact,
html.light-theme .help-list details p {
  color: #77777d;
}

html.light-theme .settings-tabs {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f7f7f8;
}

html.light-theme .settings-tab {
  color: #707077;
}

html.light-theme .settings-tab:hover {
  color: #343438;
  background: rgba(0, 0, 0, 0.045);
}

html.light-theme .settings-tab.active {
  color: #252529;
  background: rgba(0, 0, 0, 0.08);
}

html.light-theme .settings-row,
html.light-theme .shortcut-list,
html.light-theme .shortcut-row,
html.light-theme .help-list,
html.light-theme .help-list details {
  border-color: rgba(0, 0, 0, 0.09);
}

html.light-theme .setting-action,
html.light-theme .theme-option,
html.light-theme .settings-note,
html.light-theme .help-contact {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .setting-action:hover,
html.light-theme .theme-option:hover,
html.light-theme .theme-option.active {
  background: rgba(16, 163, 127, 0.08);
}

html.light-theme .shortcut-row,
html.light-theme .help-list summary {
  color: #444449;
}

html.light-theme kbd {
  border-color: rgba(0, 0, 0, 0.14);
  color: #55555b;
  background: rgba(0, 0, 0, 0.04);
}

[hidden] {
  display: none !important;
}

#conversationItems {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conversation-item-wrap {
  position: relative;
}

.conversation-item-wrap .conversation-item {
  padding-right: 38px;
}

.conversation-item-more {
  position: absolute;
  top: 3px;
  right: 4px;
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 6px;
  color: #898989;
  background: transparent;
  font-size: 16.8px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease, background 140ms ease;
}

.conversation-item-wrap:hover .conversation-item-more,
.conversation-item-wrap.active .conversation-item-more,
.conversation-item-more:focus-visible {
  opacity: 1;
}

.conversation-item-more:hover {
  color: #ededed;
  background: rgba(255, 255, 255, 0.1);
}

.popover-menu {
  position: fixed;
  z-index: 40;
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #2f2f2f;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.action-menu {
  min-width: 180px;
}

.action-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 9px 10px;
  border-radius: 7px;
  color: #d3d3d3;
  background: transparent;
  font-size: 14.4px;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.action-menu button:hover {
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.08);
}

.action-menu button.danger {
  color: #e6a19c;
}

.attachment-preview {
  display: flex;
  max-width: 280px;
  gap: 9px;
  align-items: center;
  margin: 10px 12px 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.attachment-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 6px;
  color: #9fc4ff;
  background: rgba(103, 151, 231, 0.2);
  font-size: 16.8px;
  transform: rotate(-45deg);
}

.attachment-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.attachment-copy strong,
.attachment-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-copy strong {
  color: #dedede;
  font-size: 13.2px;
  font-weight: 500;
}

.attachment-copy small {
  color: #858585;
  font-size: 12px;
}

.attachment-remove {
  display: grid;
  width: 23px;
  height: 23px;
  margin-left: auto;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 5px;
  color: #8a8a8a;
  background: transparent;
  font-size: 20.4px;
  font-weight: 300;
}

.attachment-remove:hover {
  color: #e9e9e9;
  background: rgba(255, 255, 255, 0.1);
}

.message-attachment {
  display: inline-flex;
  max-width: min(320px, 100%);
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #b7d0ff;
  background: rgba(94, 135, 211, 0.12);
  font-size: 13.2px;
}

.message-attachment span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 60;
  bottom: 87px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #e8e8e8;
  background: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 13.2px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.light-theme .popover-menu {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

html.light-theme .action-menu button {
  color: #454549;
}

html.light-theme .action-menu button:hover {
  background: rgba(0, 0, 0, 0.06);
}

html.light-theme .attachment-copy strong {
  color: #2d2d2d;
}

html.light-theme .attachment-preview,
html.light-theme .message-attachment {
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(0, 0, 0, 0.035);
}

html.light-theme .attachment-copy small {
  color: #77777d;
}

html.light-theme .toast {
  border-color: rgba(0, 0, 0, 0.12);
  color: #333;
  background: #fff;
}

html.light-theme .conversation-item-more:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.08);
}

html.light-theme .attachment-remove:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.08);
}

html.light-theme .message-action.selected {
  color: #087a5d;
  background: rgba(16, 163, 127, 0.12);
}

.sidebar-inner {
  overflow-y: auto;
  scrollbar-color: #444 transparent;
  scrollbar-width: thin;
}

.workspace-nav {
  display: flex;
  margin-top: 23px;
  flex-direction: column;
  gap: 2px;
}

.workspace-item {
  display: flex;
  width: 100%;
  min-height: 37px;
  gap: 11px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 7px;
  color: #adadad;
  background: transparent;
  font-size: 15.6px;
  text-align: left;
  transition: color 140ms ease, background 140ms ease;
}

.workspace-item:hover,
.workspace-item.active {
  color: #f0f0f0;
  background: var(--sidebar-hover);
}

.workspace-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.workspace-badge,
.workspace-count {
  margin-left: auto;
  color: #72d9b2;
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.workspace-badge {
  padding: 2px 5px;
  border: 1px solid rgba(114, 217, 178, 0.25);
  border-radius: 4px;
}

.workspace-count {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.08);
  letter-spacing: 0;
}

.feature-view {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 7vh 0 155px;
}

.feature-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.feature-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #72d9b2;
  font-size: 13.2px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.feature-view h1 {
  margin: 0;
  color: #f1f1f1;
  font-size: clamp(32.4px, 4.8vw, 43.2px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.feature-view-header p {
  max-width: 570px;
  margin: 10px 0 0;
  color: #969696;
  font-size: 15.6px;
  line-height: 1.55;
}

.feature-process-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 4px;
}

.feature-process-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.feature-section-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #72d9b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-process-heading h2 {
  margin: 0;
  color: #ededed;
  font-size: 21.6px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.feature-process-heading p {
  margin: 6px 0 0;
  color: #929292;
  font-size: 14.4px;
}

.feature-process-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(16, 163, 127, 0.25);
  border-radius: 999px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.1);
  font-size: 13.2px;
  white-space: nowrap;
}

.feature-process-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-process-list-header,
.feature-process {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1.6fr) minmax(90px, 1fr) minmax(110px, 1.1fr) minmax(72px, 0.7fr) minmax(72px, 0.7fr) 55px 70px;
  gap: 10px;
  align-items: center;
}

.feature-process-list-header {
  padding: 0 0 8px;
  color: #777;
  font-size: 12px;
}

.feature-process-list-header span:nth-child(2),
.feature-process-list-header span:nth-child(3),
.feature-process-list-header span:nth-child(4),
.feature-process-list-header span:nth-child(5),
.feature-process-list-header span:nth-child(6) {
  text-align: left;
}

.feature-process {
  min-height: 64px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 140ms ease;
}

.feature-process:hover {
  background: rgba(255, 255, 255, 0.035);
}

.feature-process-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #72d9b2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.2px;
  font-weight: 700;
}

.feature-process-info {
  min-width: 0;
}

.feature-process h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #e5e5e5;
  font-size: 16.8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-process-summary {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #929292;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-process-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.feature-process-cell small {
  display: none;
  color: #777;
  font-size: 10.8px;
}

.feature-process-cell strong {
  overflow: hidden;
  color: #c2c2c2;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-process-progress-cell {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.feature-process-progress-cell small {
  display: none;
}

.feature-process-progress-cell strong {
  color: #9edfc7;
  font-weight: 600;
  text-align: right;
}

.feature-process-progress-bar {
  grid-column: 1;
  grid-row: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.feature-process-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10a37f, #72d9b2);
  transition: width 260ms ease;
}

.feature-process-progress-cell strong {
  grid-column: 2;
  grid-row: 1;
}

.feature-process-status {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  color: #72d9b2;
  font-size: 12px;
  white-space: nowrap;
}

.feature-process-status .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.feature-process-status-cell {
  display: flex;
  min-width: 0;
  align-items: center;
}

.feature-process-action,
.feature-refresh-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #bdbdbd;
  background: transparent;
  font-size: 13.2px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.feature-process-action {
  align-self: center;
  justify-self: end;
  padding: 6px 8px;
  white-space: nowrap;
}

.feature-process-action:hover,
.feature-refresh-button:hover {
  border-color: rgba(114, 217, 178, 0.35);
  color: #d8f5e9;
  background: rgba(16, 163, 127, 0.12);
}

.feature-process-empty {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 19px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.025);
}

.feature-process-empty-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  color: #72d9b2;
  background: rgba(16, 163, 127, 0.12);
  font-size: 18px;
}

.feature-process-empty strong {
  color: #d4d4d4;
  font-size: 14.4px;
  font-weight: 600;
}

.feature-process-empty p {
  margin: 4px 0 0;
  color: #858585;
  font-size: 13.2px;
  line-height: 1.5;
}

.feature-process-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777;
  font-size: 12px;
}

.feature-process-footer > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.feature-refresh-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
}

.feature-refresh-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-back-button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: #bdbdbd;
  background: transparent;
  font-size: 13.2px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.feature-back-button:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.07);
}

.feature-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.feature-stat {
  display: flex;
  min-height: 95px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-stat strong {
  color: #ededed;
  font-size: 26.4px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.feature-stat span {
  margin-top: 6px;
  color: #929292;
  font-size: 13.2px;
}

.feature-stat small {
  margin-top: 5px;
  color: #72d9b2;
  font-size: 12px;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-card {
  display: flex;
  min-height: 193px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(47, 47, 47, 0.45);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--canvas-raised);
  transform: translateY(-1px);
}

.feature-card h3 {
  margin: 0;
  color: #e5e5e5;
  font-size: 16.8px;
  font-weight: 500;
}

.feature-card p {
  margin: 10px 0 18px;
  color: #929292;
  font-size: 14.4px;
  line-height: 1.6;
}

.feature-card-action {
  margin-top: auto;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 6px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.13);
  font-size: 13.2px;
  transition: color 140ms ease, background 140ms ease;
}

.feature-card-action:hover {
  color: #fff;
  background: var(--accent);
}

.feature-stat-grid:empty,
.feature-card-grid:empty {
  display: none;
}

html.light-theme .workspace-item {
  color: #69696f;
}

html.light-theme .workspace-item:hover,
html.light-theme .workspace-item.active {
  color: #2e2e32;
  background: #e9e9eb;
}

html.light-theme .workspace-count {
  color: #68686d;
  background: rgba(0, 0, 0, 0.06);
}

html.light-theme .feature-view h1,
html.light-theme .feature-stat strong,
html.light-theme .feature-card h3 {
  color: #2d2d2d;
}

html.light-theme .feature-view-header p,
html.light-theme .feature-stat span,
html.light-theme .feature-card p,
html.light-theme .feature-process-heading p,
html.light-theme .feature-process-summary {
  color: #77777d;
}

html.light-theme .feature-stat,
html.light-theme .feature-card {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .feature-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #f4f4f5;
}

html.light-theme .feature-process-list {
  border-top-color: rgba(0, 0, 0, 0.1);
}

html.light-theme .feature-process-list-header {
  color: #85858a;
}

html.light-theme .feature-process {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

html.light-theme .feature-process:hover {
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .feature-back-button {
  border-color: rgba(0, 0, 0, 0.13);
  color: #66666b;
}

html.light-theme .feature-back-button:hover {
  border-color: rgba(0, 0, 0, 0.2);
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

html.light-theme .feature-process-heading h2,
html.light-theme .feature-process h3,
html.light-theme .feature-process-empty strong {
  color: #2d2d2d;
}

html.light-theme .feature-process-cell small,
html.light-theme .feature-process-footer {
  color: #85858a;
}

html.light-theme .feature-process-cell strong {
  color: #5e5e64;
}

html.light-theme .feature-process-action,
html.light-theme .feature-refresh-button {
  border-color: rgba(0, 0, 0, 0.13);
  color: #66666b;
}

html.light-theme .feature-process-action:hover,
html.light-theme .feature-refresh-button:hover {
  border-color: rgba(16, 163, 127, 0.3);
  color: #187d63;
  background: rgba(16, 163, 127, 0.08);
}

html.light-theme .feature-process-empty {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.02);
}

html.light-theme .feature-process-empty p {
  color: #77777d;
}

html.light-theme .chat-content.prospecting-layout .conversation-panel {
  border-top-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 800px) {
  .workspace-nav {
    margin-top: 18px;
  }
}

@media (max-width: 700px) {
  .chat-content.prospecting-layout {
    grid-template-rows: minmax(220px, 0.9fr) minmax(180px, 1.1fr);
  }

  .feature-view {
    width: calc(100% - 28px);
    padding-top: 5vh;
  }

  .chat-content.prospecting-layout .feature-view {
    padding-bottom: 18px;
  }

  .chat-content.prospecting-layout .conversation-panel {
    width: calc(100% - 28px);
  }

  .feature-view-header {
    flex-direction: column;
    gap: 15px;
  }

  .feature-stat-grid,
  .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .feature-stat {
    min-height: 76px;
  }

  .feature-card {
    min-height: 155px;
  }

  .feature-process-list-header {
    display: none;
  }

  .feature-process {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    padding: 12px 0;
  }

  .feature-process-icon {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .feature-process-info {
    grid-column: 2 / 4;
  }

  .feature-process h3 {
    font-size: 15.6px;
  }

  .feature-process-cell small {
    display: block;
  }

  .feature-process-stage {
    grid-column: 2;
    grid-row: 2;
  }

  .feature-process-progress-cell {
    grid-column: 3;
    grid-row: 2;
    grid-template-rows: auto 5px;
    gap: 3px 7px;
  }

  .feature-process-progress-cell small {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .feature-process-progress-bar {
    grid-row: 2;
  }

  .feature-process-progress-cell strong {
    grid-row: 2;
  }

  .feature-process-discovered {
    grid-column: 2;
    grid-row: 3;
  }

  .feature-process-eta {
    grid-column: 3;
    grid-row: 3;
  }

  .feature-process-status-cell {
    grid-column: 2;
    grid-row: 4;
  }

  .feature-process-action {
    grid-column: 3;
    grid-row: 4;
    margin-top: 0;
  }

}

@media (max-width: 560px) {
  .chat-content.prospecting-layout {
    grid-template-rows: minmax(180px, 0.9fr) minmax(150px, 1.1fr);
  }

  .chat-content.prospecting-layout .feature-view {
    padding: 18px 0 12px;
  }

}

@media (max-width: 640px) {
  .conversation-item-more {
    opacity: 1;
  }
}

/* Authentication */
.auth-page {
  display: block;
  min-height: 100vh;
  overflow: auto;
  color: #25324a;
  background:
    radial-gradient(circle at 15% 12%, rgba(72, 145, 255, 0.16), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(16, 163, 127, 0.12), transparent 34%),
    #f5f7fb;
}

.auth-shell {
  display: flex;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 20px 22px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.auth-card {
  width: 100%;
  padding: 38px 40px 32px;
  border: 1px solid rgba(38, 64, 102, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(39, 61, 95, 0.13);
}

.auth-brand {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 23px;
  place-items: center;
  border: 1px solid #263b5d;
  border-radius: 16px;
  color: #263b5d;
  font-size: 30px;
  transform: rotate(9deg);
}

.auth-brand span {
  transform: rotate(-9deg);
}

.auth-kicker {
  color: #5c7193;
  font-size: 13.2px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 9px 0 10px;
  color: #1f2e47;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 0 0 28px;
  color: #71809a;
  font-size: 15.6px;
  line-height: 1.65;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-field,
.account-field {
  display: flex;
  gap: 7px;
  flex-direction: column;
  color: var(--muted);
  font-size: 14.4px;
  font-weight: 600;
}

.auth-field input,
.account-field input,
.management-search input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  outline: none;
  border: 1px solid rgba(111, 131, 164, 0.25);
  border-radius: 9px;
  color: var(--text);
  background: var(--canvas-soft);
  font-size: 15.6px;
  font-weight: 400;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-field input {
  color: #26344d;
  background: #f8faff;
  border-color: rgba(74, 103, 147, 0.2);
}

.auth-field input:focus,
.account-field input:focus,
.management-search:focus-within {
  border-color: rgba(16, 163, 127, 0.72);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.11);
}

.auth-field input::placeholder,
.account-field input::placeholder,
.management-search input::placeholder {
  color: var(--subtle);
}

.auth-submit,
.management-button.primary {
  min-height: 43px;
  padding: 10px 15px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 15.6px;
  font-weight: 600;
  transition: background 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.auth-submit {
  margin-top: 7px;
  color: #fff;
  background: #243d64;
}

.auth-submit:hover:not(:disabled),
.management-button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.auth-submit:disabled,
.management-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-error {
  display: none;
  min-height: 17px;
  margin: -2px 0 0;
  color: #bf5e5e;
  font-size: 14.4px;
  line-height: 1.45;
}

.auth-error.visible {
  display: block;
}

.auth-hint {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  padding: 10px 11px;
  border-radius: 8px;
  color: #7788a3;
  background: #f2f6fb;
  font-size: 13.2px;
  line-height: 1.5;
}

.auth-hint .status-dot {
  flex: 0 0 6px;
}

.auth-hint code {
  padding: 2px 4px;
  border-radius: 4px;
  color: #2d507f;
  background: #e4edf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.auth-footer {
  margin: 19px 0 0;
  color: #8996aa;
  font-size: 12px;
}

/* User-management workspace */
.admin-badge {
  color: #b99af5;
  border-color: rgba(185, 154, 245, 0.3);
}

.user-management-panel {
  display: flex;
  gap: 20px;
  flex-direction: column;
  margin-top: 5px;
}

.user-management-summary {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.user-management-summary h2 {
  margin: 0;
  color: #ededed;
  font-size: 22.8px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.user-management-summary p {
  max-width: 570px;
  margin: 7px 0 0;
  color: #929292;
  font-size: 14.4px;
  line-height: 1.55;
}

.users-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.management-search {
  display: flex;
  min-width: 180px;
  flex: 1;
  gap: 8px;
  align-items: center;
  padding-left: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.management-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #868686;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.management-search input {
  min-height: 38px;
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.management-search input:focus {
  box-shadow: none;
}

.management-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13.2px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.management-button.primary {
  min-height: 38px;
  color: #fff;
  background: var(--accent);
}

.management-button.secondary {
  border-color: rgba(255, 255, 255, 0.13);
  color: #bdbdbd;
  background: transparent;
}

.management-button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.06);
}

.user-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.user-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.user-table th,
.user-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.user-table th {
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.user-table td {
  color: #c5c5c5;
  font-size: 13.2px;
}

.user-table tbody tr:last-child td {
  border-bottom: 0;
}

.user-table th:nth-child(1) { width: 23%; }
.user-table th:nth-child(2) { width: 15%; }
.user-table th:nth-child(3) { width: 29%; }
.user-table th:nth-child(4) { width: 14%; }
.user-table th:nth-child(5) { width: 19%; }

.user-row-identity {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.user-row-avatar,
.account-avatar {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: #1f1f1f;
  background: linear-gradient(135deg, #b9d7ff, #7598c8);
  font-size: 14.4px;
  font-weight: 700;
}

.user-row-avatar {
  width: 30px;
  height: 30px;
}

.user-row-copy {
  display: flex;
  min-width: 0;
  gap: 3px;
  flex-direction: column;
}

.user-row-copy strong {
  overflow: hidden;
  color: #e3e3e3;
  font-size: 14.4px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row-copy small {
  overflow: hidden;
  color: #858585;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-badge,
.user-status {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  color: #b4b4b4;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  white-space: nowrap;
}

.user-role-badge.admin {
  color: #c9b2f1;
  background: rgba(163, 123, 226, 0.13);
}

.user-permission-list {
  overflow: hidden;
  color: #a8a8a8;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-permission-list.muted {
  color: #777;
}

.user-status {
  color: #72d9b2;
  background: rgba(16, 163, 127, 0.11);
}

.user-status.inactive {
  color: #d8a7a4;
  background: rgba(196, 112, 107, 0.12);
}

.user-status.inactive .status-dot {
  background: #cc817c;
  box-shadow: 0 0 0 3px rgba(204, 129, 124, 0.12);
}

.user-row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.user-action-button {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  color: #b9b9b9;
  background: transparent;
  font-size: 12px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.user-action-button:hover {
  border-color: rgba(114, 217, 178, 0.35);
  color: #d8f5e9;
  background: rgba(16, 163, 127, 0.11);
}

.user-action-button.danger:hover {
  border-color: rgba(216, 135, 131, 0.36);
  color: #f0bbb7;
  background: rgba(196, 112, 107, 0.12);
}

.user-action-button.success {
  color: #85d5ba;
}

.user-table-empty {
  display: flex;
  min-height: 145px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #999;
  text-align: center;
}

.user-table-empty-icon {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 9px;
  color: #72d9b2;
  background: rgba(16, 163, 127, 0.12);
  font-size: 20.4px;
}

.user-table-empty strong {
  color: #d3d3d3;
  font-size: 14.4px;
}

.user-table-empty p {
  margin: 5px 0 0;
  color: #858585;
  font-size: 13.2px;
}

.management-feedback,
.account-feedback {
  min-height: 16px;
  margin: 0;
  color: #72d9b2;
  font-size: 13.2px;
  line-height: 1.45;
}

.management-feedback.error,
.account-feedback.error {
  color: #e6a19c;
}

/* Account and user editor dialogs */
.account-dialog {
  width: min(530px, 100%);
}

.user-editor-dialog {
  width: min(620px, 100%);
}

.account-content,
.user-editor-form {
  overflow-y: auto;
  scrollbar-color: #565656 transparent;
  scrollbar-width: thin;
}

.account-content {
  padding: 24px 28px 29px;
}

.account-identity {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 25px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.account-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 19.2px;
}

.account-identity > div {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.account-identity strong {
  color: #e8e8e8;
  font-size: 16.8px;
}

.account-identity small {
  color: #898989;
  font-size: 13.2px;
}

.account-form {
  display: flex;
  gap: 13px;
  flex-direction: column;
}

.account-form + .account-form {
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.account-section-heading {
  margin-bottom: 3px;
}

.account-section-heading h3 {
  margin: 0 0 5px;
  color: #ededed;
  font-size: 18px;
  font-weight: 600;
}

.account-section-heading p,
.account-field small {
  margin: 0;
  color: #898989;
  font-size: 13.2px;
  font-weight: 400;
  line-height: 1.45;
}

.account-form .management-button {
  align-self: flex-start;
}

.user-editor-form {
  padding: 24px 28px 25px;
}

.user-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.editor-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 2px;
}

.editor-switch-row {
  position: relative;
  display: flex;
  min-height: 59px;
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.editor-switch-row > span:first-child {
  display: flex;
  min-width: 0;
  gap: 3px;
  flex-direction: column;
}

.editor-switch-row strong {
  color: #dfdfdf;
  font-size: 14.4px;
  font-weight: 600;
}

.editor-switch-row small {
  color: #858585;
  font-size: 12px;
  line-height: 1.35;
}

.editor-switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.editor-switch-row .switch {
  position: relative;
  display: block;
  width: 37px;
  height: 21px;
  margin-left: auto;
  flex: 0 0 37px;
  border-radius: 999px;
  background: #666;
  transition: background 140ms ease;
}

.editor-switch-row .switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f1f1f1;
  content: "";
  transition: transform 140ms ease;
}

.editor-switch-row input:checked + .switch {
  background: var(--accent);
}

.editor-switch-row input:checked + .switch::after {
  transform: translateX(16px);
}

.editor-switch-row input:focus-visible + .switch {
  outline: 2px solid #8bb6ff;
  outline-offset: 2px;
}

.permission-editor {
  margin-top: 4px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.permission-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.permission-option {
  display: flex;
  min-height: 52px;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d5d5d5;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.permission-option:has(input:checked) {
  border-color: rgba(16, 163, 127, 0.48);
  background: rgba(16, 163, 127, 0.09);
}

.permission-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  accent-color: var(--accent);
}

.permission-option span {
  display: flex;
  gap: 3px;
  flex-direction: column;
}

.permission-option strong {
  font-size: 13.2px;
  font-weight: 600;
}

.permission-option small {
  color: #858585;
  font-size: 10.8px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 5px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

html.light-theme .auth-page {
  color: #25324a;
}

html.light-theme .user-management-summary h2,
html.light-theme .user-row-copy strong,
html.light-theme .account-identity strong,
html.light-theme .account-section-heading h3,
html.light-theme .editor-switch-row strong {
  color: #2d2d2d;
}

html.light-theme .user-management-summary p,
html.light-theme .account-section-heading p,
html.light-theme .account-field small,
html.light-theme .user-row-copy small,
html.light-theme .user-permission-list,
html.light-theme .user-table-empty p,
html.light-theme .account-identity small,
html.light-theme .editor-switch-row small,
html.light-theme .permission-option small {
  color: #77777d;
}

html.light-theme .management-search,
html.light-theme .user-table-wrap,
html.light-theme .editor-switch-row,
html.light-theme .permission-option,
html.light-theme .account-identity {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .management-search input,
html.light-theme .account-field input {
  background: transparent;
}

html.light-theme .management-button.secondary,
html.light-theme .user-action-button {
  border-color: rgba(0, 0, 0, 0.13);
  color: #66666b;
}

html.light-theme .management-button.secondary:hover,
html.light-theme .user-action-button:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

html.light-theme .user-table th,
html.light-theme .user-table td,
html.light-theme .account-form + .account-form,
html.light-theme .permission-editor,
html.light-theme .modal-actions {
  border-color: rgba(0, 0, 0, 0.09);
}

html.light-theme .user-table th {
  color: #85858a;
}

html.light-theme .user-table td,
html.light-theme .user-permission-list,
html.light-theme .user-action-button {
  color: #5e5e64;
}

html.light-theme .user-role-badge,
html.light-theme .user-status {
  background: rgba(0, 0, 0, 0.055);
}

html.light-theme .user-role-badge.admin {
  color: #7150aa;
  background: rgba(137, 96, 194, 0.12);
}

html.light-theme .user-table-empty strong,
html.light-theme .editor-switch-row strong,
html.light-theme .permission-option {
  color: #424247;
}

html.light-theme .permission-option:has(input:checked) {
  border-color: rgba(16, 163, 127, 0.42);
  background: rgba(16, 163, 127, 0.08);
}

@media (max-width: 700px) {
  .user-management-summary {
    flex-direction: column;
  }

  .users-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .management-search {
    min-width: 100%;
    flex-basis: 100%;
  }

  .user-editor-grid,
  .editor-switches {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 20px 14px;
  }

  .auth-card {
    padding: 29px 22px 24px;
    border-radius: 17px;
  }

  .auth-card h1 {
    font-size: 31.2px;
  }

  .account-content,
  .user-editor-form {
    padding: 20px 18px 23px;
  }

  .permission-options {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions .management-button {
    flex: 1;
  }
}

.account-settings-panel .account-content {
  padding: 0;
}

/* Content workbench */
.content-workspace-nav {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-workbench-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.content-module {
  display: flex;
  gap: 18px;
  flex-direction: column;
}

.content-list-heading,
.content-provider-card,
.content-output-heading,
.content-topic-row,
.content-skill-row {
  display: flex;
  align-items: center;
}

.content-module-kicker {
  display: block;
  margin-bottom: 7px;
  color: #72d9b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.content-scope-badge,
.content-config-source {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(16, 163, 127, 0.25);
  border-radius: 999px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.1);
  font-size: 12px;
  white-space: nowrap;
}

.content-topic-form,
.content-skill-form,
.content-budget-form {
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.content-topic-form {
  margin-top: 0;
  grid-template-columns: minmax(0, 1.7fr) minmax(120px, 0.7fr) minmax(100px, 0.55fr) auto;
}

.content-skill-form {
  grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1.5fr) minmax(90px, 0.55fr) auto;
}

.content-budget-form {
  grid-template-columns: minmax(180px, 260px) auto auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.content-field {
  display: flex;
  min-width: 0;
  gap: 6px;
  flex-direction: column;
  color: #9c9c9c;
  font-size: 12px;
  font-weight: 600;
}

.content-field input,
.content-field select,
.content-field textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.14);
  font-size: 14.4px;
  font-weight: 400;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.content-field textarea {
  min-height: 94px;
  resize: vertical;
  line-height: 1.55;
}

.content-field input:focus,
.content-field select:focus,
.content-field textarea:focus {
  border-color: rgba(16, 163, 127, 0.72);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.11);
}

.content-primary-button,
.content-secondary-button,
.content-icon-button {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13.2px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.content-primary-button {
  color: #fff;
  background: var(--accent);
}

.content-primary-button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.content-primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.content-secondary-button,
.content-icon-button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #bdbdbd;
  background: transparent;
}

.content-secondary-button:hover,
.content-icon-button:hover {
  border-color: rgba(114, 217, 178, 0.35);
  color: #d8f5e9;
  background: rgba(16, 163, 127, 0.11);
}

.content-icon-button {
  min-height: 29px;
  padding: 5px 7px;
  font-size: 12px;
}

.content-icon-button.danger:hover {
  border-color: rgba(216, 135, 131, 0.36);
  color: #f0bbb7;
  background: rgba(196, 112, 107, 0.12);
}

.content-list-heading {
  justify-content: space-between;
  gap: 15px;
  color: #d4d4d4;
  font-size: 14.4px;
  font-weight: 600;
}

.content-list-heading small {
  color: #777;
  font-size: 12px;
  font-weight: 400;
}

.content-topic-list,
.content-skill-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-topic-row,
.content-skill-row {
  min-height: 66px;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-topic-row:hover,
.content-skill-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.content-row-icon,
.content-skill-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.13);
  font-size: 13.2px;
  font-weight: 700;
}

.content-skill-icon {
  color: #d6b7ff;
  background: rgba(214, 183, 255, 0.12);
}

.content-row-copy {
  display: flex;
  min-width: 0;
  gap: 4px;
  flex: 1;
  flex-direction: column;
}

.content-row-copy strong {
  overflow: hidden;
  color: #e5e5e5;
  font-size: 14.4px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-row-copy small {
  overflow: hidden;
  color: #858585;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-status-select {
  min-width: 76px;
  padding: 5px 7px;
  outline: none;
  border: 1px solid rgba(16, 163, 127, 0.22);
  border-radius: 999px;
  color: #9edfc7;
  background: rgba(16, 163, 127, 0.09);
  font-size: 12px;
}

.content-status-select.content-status-已发布 {
  color: #9fc4ff;
  border-color: rgba(103, 151, 231, 0.25);
  background: rgba(103, 151, 231, 0.1);
}

.content-status-select.content-status-待审核 {
  color: #f0c38b;
  border-color: rgba(240, 195, 139, 0.25);
  background: rgba(240, 195, 139, 0.1);
}

.content-empty-state {
  padding: 26px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #858585;
  font-size: 13.2px;
  text-align: center;
}

.content-budget-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.content-budget-stats article {
  display: flex;
  min-height: 93px;
  gap: 4px;
  justify-content: center;
  flex-direction: column;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.content-budget-stats strong {
  color: #ededed;
  font-size: 25.2px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.content-budget-stats span {
  color: #929292;
  font-size: 13.2px;
}

.content-budget-stats small {
  color: #72d9b2;
  font-size: 12px;
}

.content-budget-card {
  display: flex;
  gap: 14px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.content-budget-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.content-budget-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10a37f, #72d9b2);
  transition: width 260ms ease;
}

.content-budget-track span.over-budget {
  background: linear-gradient(90deg, #c97770, #e9aa76);
}

.content-provider-card {
  justify-content: space-between;
  gap: 15px;
  padding: 14px 15px;
  border: 1px solid rgba(214, 183, 255, 0.16);
  border-radius: 10px;
  background: rgba(214, 183, 255, 0.055);
}

.content-provider-card > div {
  min-width: 0;
}

.content-provider-card strong {
  display: block;
  color: #e3d7f7;
  font-size: 14.4px;
}

.content-provider-card p,
.content-config-status {
  margin: 6px 0 0;
  overflow: hidden;
  color: #9b91aa;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-provider-card p.content-config-ready,
.content-config-status.content-config-ready {
  color: #9edfc7;
}

.content-provider-card p.error,
.content-config-status.error {
  color: #e6a19c;
}

.content-generator-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.83fr) minmax(0, 1.17fr);
  gap: 12px;
  align-items: stretch;
}

.content-generator-form {
  display: flex;
  gap: 12px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.content-check-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #d0d0d0;
  font-size: 13.2px;
  cursor: pointer;
}

.content-check-row input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.content-check-row span {
  display: flex;
  gap: 3px;
  flex-direction: column;
}

.content-check-row small {
  color: #858585;
  font-size: 12px;
  line-height: 1.4;
}

.content-config-status {
  margin-top: 0;
  white-space: normal;
}

.content-output-card {
  display: flex;
  min-height: 390px;
  gap: 13px;
  flex-direction: column;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.content-output-heading {
  justify-content: space-between;
  gap: 15px;
}

.content-output-heading h3 {
  margin: 0;
  overflow: hidden;
  color: #ededed;
  font-size: 16.8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-output-heading small {
  flex: 0 0 auto;
  color: #72d9b2;
  font-size: 12px;
}

.content-generated-text {
  min-height: 190px;
  margin: 0;
  overflow: auto;
  color: #c7c7c7;
  font-family: inherit;
  font-size: 14.4px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.content-output-actions {
  display: flex;
  gap: 7px;
}

.content-image-prompt {
  padding: 11px;
  border: 1px solid rgba(214, 183, 255, 0.16);
  border-radius: 8px;
  background: rgba(214, 183, 255, 0.055);
}

.content-image-prompt > span {
  color: #c8acef;
  font-size: 12px;
  font-weight: 600;
}

.content-image-prompt p {
  margin: 6px 0 9px;
  color: #b7adbf;
  font-size: 13.2px;
  line-height: 1.5;
}

.content-image-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.content-generated-image {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 8px;
  color: #e6a19c;
  font-size: 12px;
  line-height: 1.5;
}

.content-generated-image img {
  display: block;
  width: min(100%, 360px);
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.content-output-empty {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #858585;
  text-align: center;
}

.content-output-empty > span {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 10px;
  color: #d6b7ff;
  background: rgba(214, 183, 255, 0.12);
}

.content-output-empty strong {
  color: #d7d7d7;
  font-size: 14.4px;
}

.content-output-empty p {
  max-width: 250px;
  margin: 6px 0 0;
  font-size: 13.2px;
  line-height: 1.5;
}

.content-output-empty.error > span {
  color: #f0b2ad;
  background: rgba(196, 112, 107, 0.14);
}

.content-output-empty.error strong {
  color: #e6a19c;
}

.content-mini-switch {
  position: relative;
  display: block;
  width: 37px;
  height: 21px;
  flex: 0 0 37px;
  cursor: pointer;
}

.content-mini-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.content-mini-switch .switch {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #666;
  transition: background 140ms ease;
}

.content-mini-switch .switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f1f1f1;
  content: "";
  transition: transform 140ms ease;
}

.content-mini-switch input:checked + .switch {
  background: var(--accent);
}

.content-mini-switch input:checked + .switch::after {
  transform: translateX(16px);
}

.content-mini-switch input:focus-visible + .switch {
  outline: 2px solid #8bb6ff;
  outline-offset: 2px;
}

.initial-password-dialog {
  width: min(520px, 100%);
}

.initial-password-content {
  padding: 24px 28px 25px;
}

.initial-password-content > p:first-child {
  margin: 0 0 17px;
  color: #a4a4a4;
  font-size: 14.4px;
  line-height: 1.6;
}

.initial-password-account {
  margin-bottom: 8px;
  color: #72d9b2;
  font-size: 13.2px;
}

.initial-password-value-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(16, 163, 127, 0.28);
  border-radius: 9px;
  background: rgba(16, 163, 127, 0.08);
}

.initial-password-value-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #d8f5e9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.initial-password-warning {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 13px 0 0;
  color: #b99b75;
  font-size: 12px;
}

.initial-password-warning span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #2b2b2b;
  background: #e2b173;
  font-weight: 700;
}

html.light-theme .content-workspace-nav {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-theme .content-row-copy strong,
html.light-theme .content-budget-stats strong,
html.light-theme .content-output-heading h3,
html.light-theme .content-output-empty strong {
  color: #2d2d2d;
}

html.light-theme .content-row-copy small,
html.light-theme .content-list-heading small,
html.light-theme .content-field,
html.light-theme .content-budget-stats span,
html.light-theme .content-output-empty,
html.light-theme .content-generated-text {
  color: #77777d;
}

html.light-theme .content-topic-form,
html.light-theme .content-skill-form,
html.light-theme .content-budget-stats article,
html.light-theme .content-budget-card,
html.light-theme .content-generator-form,
html.light-theme .content-output-card {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .content-field input,
html.light-theme .content-field select,
html.light-theme .content-field textarea {
  border-color: rgba(0, 0, 0, 0.13);
  color: #3d3d42;
  background: rgba(255, 255, 255, 0.7);
}

html.light-theme .content-topic-list,
html.light-theme .content-skill-list,
html.light-theme .content-topic-row,
html.light-theme .content-skill-row {
  border-color: rgba(0, 0, 0, 0.1);
}

html.light-theme .content-topic-row:hover,
html.light-theme .content-skill-row:hover {
  background: rgba(0, 0, 0, 0.025);
}

html.light-theme .content-list-heading {
  color: #424247;
}

html.light-theme .content-secondary-button,
html.light-theme .content-icon-button {
  border-color: rgba(0, 0, 0, 0.13);
  color: #66666b;
}

html.light-theme .content-secondary-button:hover,
html.light-theme .content-icon-button:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

html.light-theme .content-empty-state {
  border-color: rgba(0, 0, 0, 0.14);
}

html.light-theme .content-provider-card {
  border-color: rgba(137, 96, 194, 0.2);
  background: rgba(137, 96, 194, 0.06);
}

html.light-theme .content-provider-card strong {
  color: #4c3e63;
}

html.light-theme .content-provider-card p,
html.light-theme .content-image-prompt p {
  color: #77717f;
}

html.light-theme .content-generated-text {
  color: #55555b;
}

html.light-theme .content-image-prompt {
  border-color: rgba(137, 96, 194, 0.2);
  background: rgba(137, 96, 194, 0.06);
}

html.light-theme .content-image-prompt > span {
  color: #7150aa;
}

html.light-theme .initial-password-content > p:first-child {
  color: #77777d;
}

html.light-theme .initial-password-value-row {
  border-color: rgba(16, 163, 127, 0.25);
  background: rgba(16, 163, 127, 0.07);
}

html.light-theme .initial-password-value-row code {
  color: #187d63;
}

@media (max-width: 760px) {
  .content-topic-form,
  .content-skill-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-field-wide {
    grid-column: 1 / -1;
  }

  .content-generator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content-topic-form,
  .content-skill-form,
  .content-budget-form {
    grid-template-columns: 1fr;
  }

  .content-budget-form .content-primary-button,
  .content-budget-form .content-secondary-button {
    width: 100%;
  }

  .content-budget-stats {
    grid-template-columns: 1fr;
  }

  .content-topic-row,
  .content-skill-row {
    flex-wrap: wrap;
  }

  .content-topic-row .content-row-copy,
  .content-skill-row .content-row-copy {
    min-width: calc(100% - 43px);
  }

  .content-topic-row .content-status-select {
    margin-left: 39px;
  }

  .content-provider-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-output-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .initial-password-content {
    padding: 20px 18px 22px;
  }

  .initial-password-value-row {
    align-items: stretch;
    flex-direction: column;
  }
}
