:root {
  --meta-primary: #0d6efd;
  --meta-primary-deep: #0b5ed7;
  --meta-canvas: #ffffff;
  --meta-surface-soft: #f7f7f8;
  --meta-sidebar: #f9f9f9;
  --meta-sidebar-active: #ececec;
  --meta-ink-deep: #0d0d0d;
  --meta-ink: #171717;
  --meta-charcoal: #343541;
  --meta-steel: #676767;
  --meta-stone: #8f8f8f;
  --meta-hairline: #d9d9d9;
  --meta-hairline-soft: #ececec;
  --meta-critical: #e41e3f;
  --meta-success: #31a24c;
  --meta-radius-pill: 100px;
  --meta-radius-input: 14px;
  --meta-radius-card: 8px;
  --meta-radius-feature: 28px;
  --meta-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

html,
body,
#app {
  height: 100%;
}

body {
  background: var(--meta-canvas);
  color: var(--meta-ink);
  font-family: var(--meta-font);
  letter-spacing: 0;
}

[v-cloak] {
  display: none;
}

button {
  border-radius: var(--meta-radius-card) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: 0;
}

input,
select,
textarea {
  border-radius: var(--meta-radius-input) !important;
  border-color: var(--meta-hairline) !important;
  color: var(--meta-ink) !important;
  font-size: 16px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--meta-hairline) !important;
  box-shadow: none;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--meta-surface-soft) !important;
  color: var(--meta-stone) !important;
}

#app > .flex,
#app > [class*="bg-gray-50"] {
  background: var(--meta-canvas) !important;
}

.login-shell {
  min-height: 100%;
  background: #ffffff !important;
}

.login-form {
  max-width: 320px;
  padding-bottom: 8vh;
}

.login-brand {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 72px;
  border-radius: 50%;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.login-heading {
  margin-bottom: 28px;
  text-align: center;
}

.login-title {
  color: #0d0d0d;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-subtitle {
  margin-top: 10px;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.5;
}

.login-field {
  color: #5f6368 !important;
}

.login-input {
  height: 52px;
  border-color: #d9d9d9 !important;
  border-radius: 6px !important;
  padding: 0 16px;
  font-size: 16px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: #10a37f !important;
  box-shadow: 0 0 0 1px #10a37f;
}

.login-submit {
  min-height: 52px !important;
  border-radius: 6px !important;
  background: #10a37f !important;
  transition: background-color 0.15s ease;
}

.login-submit:hover:not(:disabled) {
  background: #0d8f70 !important;
}

.login-submit:disabled {
  cursor: not-allowed;
  background: #b7b7b7 !important;
}

.login-error {
  border-radius: 6px;
  background: #fff1f0;
}

@media (max-width: 480px) {
  .login-form {
    max-width: 100%;
    padding-bottom: 4vh;
  }

  .login-brand {
    margin-bottom: 56px;
  }

  .login-title {
    font-size: 30px;
  }
}

.admin-loading {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #f3f5f8;
  color: #6b7280;
  font-size: 14px;
}

.admin-shell {
  display: flex;
  min-height: 100%;
  background: #f3f5f8;
  color: #1f2937;
}

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  flex-shrink: 0;
  background: #191b24 !important;
  color: #d4d7df;
  box-shadow: 2px 0 8px rgba(15, 23, 42, 0.16);
}

.admin-brand {
  display: flex;
  height: 72px;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-mark {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #409eff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.admin-brand-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.admin-brand-subtitle {
  margin-top: 4px;
  color: #8f96a3;
  font-size: 12px;
}

.admin-nav {
  padding: 14px 12px;
}

.admin-nav-group {
  margin-bottom: 6px;
}

.admin-nav-item {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  color: #c7cad1;
  padding: 0 14px;
  text-align: left;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.admin-nav-item span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-arrow {
  flex: 0 0 auto !important;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.admin-nav-arrow.is-open {
  transform: rotate(90deg);
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-nav-item.is-active {
  background: #409eff;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(64, 158, 255, 0.22);
}

.admin-nav-sublist {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px;
  padding-left: 32px;
}

.admin-nav-subitem {
  display: flex;
  min-height: 38px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #a9afbb;
  padding: 0 12px;
  text-align: left;
}

.admin-nav-subitem:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.admin-nav-subitem.is-active {
  background: rgba(64, 158, 255, 0.18);
  color: #ffffff;
}

.admin-nav-subitem span,
.admin-nav-subitem small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-subitem small {
  color: #737b8a;
  font-size: 11px;
  font-weight: 500;
}

.admin-nav-subitem.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-nav-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-nav-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.admin-nav-icon[data-icon="home"]::before {
  transform: rotate(45deg);
  border-radius: 2px;
}

.admin-nav-icon[data-icon="bot"]::after,
.admin-nav-icon[data-icon="cpu"]::after,
.admin-nav-icon[data-icon="server"]::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: currentColor;
}

.admin-nav-icon[data-icon="cache"]::before {
  border-radius: 50%;
}

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

.admin-topbar {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe4ec !important;
  background: #ffffff;
  padding: 0 20px;
}

.admin-topbar-left,
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-icon-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #566071;
}

.admin-icon-button:hover {
  background: #f3f5f8;
}

.admin-icon-button svg,
.admin-user-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b8494;
  font-size: 15px;
  font-weight: 600;
}

.admin-breadcrumb .is-current {
  color: #374151;
}

.admin-breadcrumb-divider {
  color: #c0c6d0;
}

.admin-user-button {
  position: relative;
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #4b5563;
  padding: 0 8px;
}

.admin-user-avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2ff;
  color: #3b5bdb;
  font-size: 11px;
  font-weight: 700;
}

.admin-user-avatar.is-large {
  width: 38px;
  height: 38px;
}

.admin-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-menu {
  position: absolute;
  top: 52px;
  right: 20px;
  z-index: 20;
  width: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.admin-user-menu-head {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #eef0f4;
}

.admin-user-menu-name {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.admin-user-menu-meta {
  margin-top: 3px;
  color: #8b95a5;
  font-size: 12px;
}

.admin-user-menu-item {
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #ef4444;
  padding: 12px 14px;
  text-align: left;
}

.admin-user-menu-item:hover {
  background: #fff1f2;
}

.admin-tabs {
  display: flex;
  height: 44px;
  align-items: stretch;
  border-bottom: 1px solid #dfe4ec;
  background: #eef1f5;
}

.admin-tab {
  min-width: 116px;
  border: 0;
  border-right: 1px solid #dfe4ec;
  border-radius: 0 !important;
  background: transparent;
  color: #747d8d;
  padding: 0 18px;
}

.admin-tab.is-active {
  border-bottom: 2px solid #4b5563;
  background: #ffffff;
  color: #374151;
}

.admin-content {
  padding: 18px 20px 28px;
}

.admin-alert {
  margin-bottom: 14px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
  padding: 10px 14px;
  font-size: 13px;
}

.admin-filter-panel,
.admin-table-panel {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 20px 24px;
}

.admin-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.admin-field input,
.admin-field select {
  width: 220px;
  height: 38px;
  border: 1px solid #d9dee8 !important;
  border-radius: 5px !important;
  padding: 0 12px;
  font-size: 14px;
}

.admin-check-field {
  min-height: 38px;
}

.admin-check-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

.admin-check-field input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-button {
  display: inline-flex;
  min-width: 76px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  padding: 0 16px;
}

.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.admin-button.is-search,
.admin-button.is-edit {
  background: #67c23a;
}

.admin-button.is-reset {
  background: #e6a23c;
}

.admin-button.is-primary {
  background: #409eff;
}

.admin-button.is-danger {
  background: #ff6b6b;
}

.admin-overview {
  display: grid;
  gap: 16px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-metric-card {
  min-height: 112px;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-metric-card.is-blue {
  border-left: 4px solid #409eff;
}

.admin-metric-card.is-green {
  border-left: 4px solid #67c23a;
}

.admin-metric-card.is-orange {
  border-left: 4px solid #e6a23c;
}

.admin-metric-card.is-slate {
  border-left: 4px solid #64748b;
}

.admin-metric-label {
  color: #7b8494;
  font-size: 14px;
}

.admin-metric-value {
  margin-top: 18px;
  color: #1f2937;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.admin-table-panel {
  padding: 16px 20px 20px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-panel-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.admin-panel-subtitle {
  margin-top: 4px;
  color: #8b95a5;
  font-size: 12px;
}

.admin-panel-actions {
  display: flex;
  gap: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #e5e9f2;
}

.admin-table th,
.admin-table td {
  border: 1px solid #e5e9f2;
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
  word-break: normal;
}

.admin-table th {
  background: #f7f8fa;
  color: #202124;
  font-size: 14px;
  font-weight: 700;
}

.admin-table td {
  color: #555b66;
  font-size: 14px;
}

.admin-table .is-check {
  width: 48px;
}

.admin-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px !important;
}

.admin-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
}

.admin-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.admin-switch.is-on {
  background: #409eff;
}

.admin-switch.is-on::after {
  transform: translateX(20px);
}

.admin-status {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.admin-status.is-on {
  background: #ecfdf3;
  color: #16a34a;
}

.admin-status.is-off {
  background: #fff1f2;
  color: #e11d48;
}

.admin-status.is-idle {
  background: #f1f5f9;
  color: #64748b;
}

.admin-row-actions {
  white-space: nowrap;
}

.admin-row-actions button {
  border: 0;
  background: transparent;
  padding: 0 8px;
  font-weight: 700;
}

.admin-row-actions .is-edit {
  color: #52c41a;
}

.admin-row-actions .is-view {
  color: #409eff;
}

.admin-row-actions .is-danger {
  color: #ff4d4f;
}

.admin-empty {
  height: 96px;
  color: #9ca3af !important;
}

.admin-inline-error {
  margin-bottom: 12px;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  padding: 9px 12px;
  font-size: 13px;
}

.admin-database-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-database-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.admin-database-table th,
.admin-database-table td {
  height: 54px;
  max-height: 54px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
}

.admin-database-table th {
  height: 48px;
  line-height: 1.2;
}

.admin-database-table th.is-id,
.admin-database-table td.is-id {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  background: #ffffff;
}

.admin-database-table th.is-id {
  z-index: 3;
  background: #f7f8fa;
}

.admin-database-table th.is-normal,
.admin-database-table td.is-normal {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.admin-database-table th.is-long,
.admin-database-table td.is-long {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

.admin-database-table th.is-datetime,
.admin-database-table td.is-datetime {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.admin-database-table th.is-number,
.admin-database-table td.is-number,
.admin-database-table th.is-boolean,
.admin-database-table td.is-boolean {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}

.admin-database-table th.is-action,
.admin-database-table .admin-row-actions {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.admin-database-table .admin-row-actions {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #ffffff;
}

.admin-database-table th.is-action {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #f7f8fa;
}

.admin-cell-button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-cell-button:hover {
  color: #409eff;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

.admin-pagination button {
  min-width: 72px;
  height: 32px;
  border: 1px solid #d9dee8;
  background: #ffffff;
  color: #4b5563;
}

.admin-pagination button:disabled {
  cursor: not-allowed;
  color: #b8bec8;
  background: #f7f8fa;
}

.admin-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 24px;
}

.admin-modal {
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.25);
}

.admin-detail-modal {
  width: min(920px, 100%);
}

.admin-modal-header,
.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f4;
}

.admin-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid #eef0f4;
  border-bottom: 0;
}

.admin-modal-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.admin-modal-subtitle {
  margin-top: 4px;
  color: #8b95a5;
  font-size: 12px;
}

.admin-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: #f3f4f6;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.admin-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.admin-detail-field {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f4;
}

.admin-detail-field:last-child {
  border-bottom: 0;
}

.admin-detail-name {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.admin-detail-value {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-editor-field {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.admin-editor-field label {
  padding-top: 9px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.admin-editor-field label small {
  display: block;
  margin-top: 6px;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.admin-editor-field input,
.admin-editor-field select,
.admin-editor-field textarea {
  width: 100%;
  border: 1px solid #d9dee8 !important;
  border-radius: 5px !important;
  padding: 8px 10px;
  font-size: 14px;
}

.admin-editor-field textarea {
  min-height: 92px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.admin-metrics-output {
  margin-top: 16px;
  border-radius: 8px;
  background: #111827;
  color: #d1fae5;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
  }

  .admin-nav-group {
    flex: 0 0 auto;
  }

  .admin-nav-item {
    width: auto;
    min-width: 132px;
  }

  .admin-nav-sublist {
    display: none;
  }

  .admin-filter-panel,
  .admin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-field,
  .admin-field input,
  .admin-field select {
    width: 100%;
  }

  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-topbar {
    height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .admin-topbar-left,
  .admin-topbar-actions {
    justify-content: space-between;
  }

  .admin-content {
    padding: 12px;
  }

  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-table-panel {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 760px;
  }

  .admin-editor-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

aside {
  background: var(--meta-sidebar) !important;
  border-color: var(--meta-hairline-soft) !important;
}

header {
  min-height: 64px;
  background: var(--meta-canvas);
  border-color: var(--meta-hairline-soft) !important;
}

.chatgpt-main-header {
  height: auto !important;
  padding-bottom: 8px;
  padding-top: 8px;
}

.chatgpt-header-thread {
  overflow-wrap: anywhere;
  white-space: normal;
}

header .font-semibold,
h1,
.text-lg.font-semibold {
  color: var(--meta-ink-deep);
  font-family: var(--meta-font);
  font-feature-settings: "ss01", "ss02";
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: 30px !important;
  line-height: 1.25;
}

@media (min-width: 768px) {
  h1 {
    font-size: 34px !important;
    line-height: 1.2;
  }
}

.chatgpt-shell {
  height: 100%;
  background: var(--meta-canvas);
}

.chatgpt-sidebar {
  width: 260px;
  background: var(--meta-sidebar);
}

.chatgpt-sidebar-action {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  gap: 12px;
  border-radius: 12px !important;
  padding: 10px 12px;
  color: var(--meta-ink);
  text-align: left;
  transition: background-color 0.15s ease;
}

.chatgpt-sidebar-action:hover,
.chatgpt-sidebar-action.is-active {
  background: var(--meta-sidebar-active);
}

.chatgpt-sidebar-icon {
  display: inline-flex;
  height: 22px;
  width: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  color: var(--meta-ink);
}

.chatgpt-sidebar-section {
  margin-top: 24px;
  padding: 0 8px;
}

.chatgpt-sidebar-title {
  margin-bottom: 0;
  color: var(--meta-ink-deep);
  font-size: 13px;
  font-weight: 650;
}

.chatgpt-sidebar-title-row {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chatgpt-sidebar-mini-button {
  border-radius: 8px !important;
  padding: 4px 7px;
  color: var(--meta-ink-muted);
  font-size: 12px;
  line-height: 1;
}

.chatgpt-sidebar-mini-button:hover:not(:disabled) {
  background: var(--meta-sidebar-active);
  color: var(--meta-ink);
}

.chatgpt-sidebar-mini-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.chatgpt-thread-row {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  border-radius: 10px !important;
}

.chatgpt-thread-row:hover,
.chatgpt-thread-row.is-active {
  background: var(--meta-sidebar-active);
}

.chatgpt-thread-checkbox {
  display: flex;
  height: 28px;
  width: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.chatgpt-thread-checkbox input {
  height: 14px;
  width: 14px;
  accent-color: #111827;
}

.chatgpt-list-button {
  display: flex;
  min-height: 36px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  border-radius: 10px !important;
  padding: 7px 8px;
  color: var(--meta-ink);
  text-align: left;
}

.chatgpt-list-button:disabled {
  cursor: default;
  opacity: 0.6;
}

.chatgpt-thread-delete {
  display: flex;
  height: 28px;
  width: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  color: var(--meta-ink-muted);
  opacity: 0;
}

.chatgpt-thread-row:hover .chatgpt-thread-delete,
.chatgpt-thread-row.is-active .chatgpt-thread-delete {
  opacity: 1;
}

.chatgpt-thread-delete:hover:not(:disabled) {
  background: #fee2e2;
  color: #dc2626;
}

.chatgpt-thread-delete:disabled {
  cursor: default;
  opacity: 0.35;
}

.chatgpt-main {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 46%),
    var(--meta-canvas);
}

.chatgpt-welcome {
  min-height: 100%;
  padding-top: 24vh;
  padding-bottom: 260px;
  justify-content: flex-start !important;
}

.chatgpt-composer-footer {
  border-top: 0;
  background: transparent;
}

.chatgpt-composer-footer.is-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 47%;
  z-index: 20;
  transform: none;
  pointer-events: none;
}

.chatgpt-composer-footer.is-empty form {
  pointer-events: auto;
}

.chatgpt-composer-footer.is-empty .composer-toolbar,
.chatgpt-composer-footer.is-empty .composer-hint {
  display: none;
}

.chatgpt-composer {
  border-radius: 28px !important;
  border-color: #d8d8d8 !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.08) !important;
}

.composer-input-row {
  min-width: 0;
}

.model-picker {
  width: 116px;
  max-width: 116px;
}

.model-picker-select {
  width: 100%;
  max-width: 116px;
  min-height: 36px;
  border-radius: 999px !important;
  background: #f3f3f3;
  padding: 0 12px;
  color: var(--meta-ink);
  font-size: 14px;
  line-height: 1;
  outline: none;
}

.model-picker-select:hover {
  background: #ededed;
}

.model-picker-select:disabled {
  color: var(--meta-muted);
  cursor: not-allowed;
}

.composer-mode-toggle {
  max-width: 136px;
}

.chatgpt-prompt-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--meta-hairline-soft);
  border-radius: 999px !important;
  background: #ffffff;
  padding: 0 16px;
  color: var(--meta-steel);
}

.chatgpt-prompt-chip:hover {
  background: #f7f7f7;
  color: var(--meta-ink);
}

.chatgpt-user-panel {
  position: relative;
}

.chatgpt-user-card {
  border: 0;
  border-radius: 14px !important;
  background: #ffffff;
}

.chatgpt-user-card:hover {
  background: var(--meta-sidebar-active);
}

.chatgpt-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: #9aa9a9;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0;
}

.chatgpt-user-menu {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 8px);
  left: 8px;
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--meta-hairline);
  border-radius: 20px !important;
  background: #ffffff;
  padding: 10px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.chatgpt-user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--meta-hairline-soft);
  padding: 8px 6px 12px;
}

.chatgpt-user-menu-item {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  border-radius: 12px !important;
  padding: 10px 12px;
  color: var(--meta-ink);
  text-align: left;
}

.chatgpt-user-menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.chatgpt-user-menu-item span {
  white-space: nowrap;
}

.chatgpt-user-menu-item:hover {
  background: var(--meta-sidebar-active);
}

@media (max-width: 640px) {
  .chatgpt-welcome {
    padding-top: 30vh;
  }

  .chatgpt-composer-footer.is-empty {
    top: 48%;
  }

  .chatgpt-prompt-chip {
    display: none;
  }

  .model-picker {
    width: 104px;
    max-width: 104px;
  }

  .model-picker-select {
    max-width: 104px;
    padding: 0 10px;
  }
}

.text-chatgpt-muted {
  color: var(--meta-steel) !important;
}

.text-chatgpt-text {
  color: var(--meta-ink) !important;
}

.border-chatgpt-border {
  border-color: var(--meta-hairline-soft) !important;
}

.bg-chatgpt-sidebar,
.bg-chatgpt-bubble,
.bg-gray-50,
.bg-gray-100,
.bg-gray-200 {
  background-color: var(--meta-surface-soft) !important;
}

.bg-chatgpt-green {
  background-color: var(--meta-primary) !important;
}

.text-chatgpt-green {
  color: var(--meta-primary) !important;
}

.hover\:bg-emerald-700:hover,
.hover\:bg-black:hover {
  background-color: var(--meta-primary-deep) !important;
}

.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl {
  border-radius: var(--meta-radius-card) !important;
}

.rounded-full {
  border-radius: var(--meta-radius-pill) !important;
}

.shadow-sm,
.shadow-xl,
.shadow-lg {
  box-shadow: none !important;
}

aside > button,
header button,
footer button,
form button[type="submit"] {
  min-height: 40px;
}

.meta-icon-button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border-width: 1px !important;
  font-size: 0 !important;
}

.meta-icon-button svg {
  width: 15px !important;
  height: 15px !important;
}

.meta-upload-button {
  background: var(--meta-canvas) !important;
  color: var(--meta-steel) !important;
  border-color: var(--meta-hairline-soft) !important;
}

.meta-upload-button:hover {
  background: var(--meta-surface-soft) !important;
  color: var(--meta-ink-deep) !important;
}

.meta-send-button {
  background: var(--meta-ink-deep) !important;
  color: #ffffff !important;
}

.meta-send-button:hover {
  background: var(--meta-charcoal) !important;
}

.meta-send-button:disabled {
  background: #bcc0c4 !important;
}

.meta-status-indicator {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--meta-hairline-soft);
  border-radius: 50% !important;
  background: #ffffff;
  color: var(--meta-stone);
}

.meta-status-indicator svg {
  height: 16px;
  width: 16px;
}

.meta-status-indicator.is-idle {
  color: var(--meta-stone);
}

.meta-status-indicator.is-running {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--meta-primary);
}

.meta-status-indicator.is-waiting {
  border-color: #fde68a;
  background: #fffbeb;
  color: #d97706;
}

.meta-status-indicator.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--meta-success);
}

.meta-status-indicator.is-stopped {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

.meta-status-indicator.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--meta-critical);
}

.meta-status-spin {
  animation: meta-status-spin 0.85s linear infinite;
}

@keyframes meta-status-spin {
  to {
    transform: rotate(360deg);
  }
}

.meta-stop-button {
  background: var(--meta-critical) !important;
  color: #ffffff !important;
}

form button[type="submit"],
.bg-chatgpt-text {
  background: #000000 !important;
  color: #ffffff !important;
}

.bg-chatgpt-text:disabled,
form button[type="submit"]:disabled {
  background: #bcc0c4 !important;
  color: #ffffff !important;
}

footer form > .relative > .rounded-3xl,
.max-w-sm.rounded-lg,
.mb-4.ml-10.rounded-xl,
.mb-5.ml-10.rounded-2xl,
.mb-4.rounded-xl {
  border-radius: var(--meta-radius-feature) !important;
  border-color: var(--meta-hairline-soft) !important;
  background: var(--meta-canvas) !important;
}

.max-w-sm.rounded-lg {
  padding: 32px !important;
}

.max-w-sm .text-lg {
  font-size: 28px !important;
  line-height: 1.21;
  font-weight: 300;
}

.markdown {
  color: var(--meta-ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.markdown {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown > :last-child {
  margin-bottom: 0;
}

.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote,
.markdown pre,
.markdown table {
  margin: 0 0 0.75rem;
}

.markdown ul,
.markdown ol {
  padding-left: 1.5rem;
}

.markdown ul {
  list-style: disc;
}

.markdown ol {
  list-style: decimal;
}

.markdown code {
  border-radius: 0.25rem;
  background: #f4f4f4;
  padding: 0.1rem 0.3rem;
  color: #111827;
  font-size: 0.9em;
}

.markdown pre {
  overflow: auto;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.875rem;
}

.markdown pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.markdown blockquote {
  border-left: 3px solid #d1d5db;
  color: #4b5563;
  padding-left: 0.75rem;
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
}

.markdown th,
.markdown td {
  border: 1px solid #e5e5e5;
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.meta-dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 20px;
}

.meta-dialog {
  width: min(420px, 100%);
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2) !important;
}

.meta-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 8px;
}

.meta-dialog-title {
  color: var(--meta-ink-deep);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.meta-dialog-close {
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  color: var(--meta-stone);
}

.meta-dialog-close:hover {
  color: var(--meta-ink);
}

.meta-dialog-body {
  padding: 8px 20px 18px;
  color: var(--meta-steel);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.meta-dialog-input {
  margin-top: 12px;
  min-height: 88px;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--meta-hairline);
  padding: 10px 12px;
  color: var(--meta-ink);
  outline: none;
}

.meta-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--meta-hairline-soft);
  padding: 12px 20px 16px;
}

.meta-dialog-button {
  min-height: 32px;
  border: 1px solid var(--meta-hairline);
  background: #ffffff;
  padding: 6px 15px;
  color: var(--meta-ink);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.meta-dialog-button:hover {
  border-color: var(--meta-primary);
  color: var(--meta-primary);
}

.meta-dialog-button.is-primary {
  border-color: var(--meta-primary);
  background: var(--meta-primary);
  color: #ffffff;
}

.meta-dialog-button.is-primary:hover {
  border-color: var(--meta-primary-deep);
  background: var(--meta-primary-deep);
  color: #ffffff;
}
