:root {
  --navy-950: #08111f;
  --navy-900: #0d1829;
  --navy-850: #111e31;
  --navy-800: #17263c;
  --slate-950: #111827;
  --slate-800: #273449;
  --slate-700: #3d4b60;
  --slate-600: #5b687a;
  --slate-500: #748094;
  --slate-400: #98a2b3;
  --slate-300: #c8d0db;
  --slate-200: #dde3eb;
  --slate-150: #e8edf3;
  --slate-100: #f1f4f8;
  --slate-50: #f7f9fc;
  --white: #ffffff;
  --blue-700: #3159c9;
  --blue-600: #4169e1;
  --blue-500: #557cf1;
  --blue-100: #e8eeff;
  --blue-50: #f3f6ff;
  --violet-600: #7557d9;
  --violet-100: #efeafd;
  --teal-600: #168b7d;
  --teal-100: #ddf5f0;
  --green-700: #087a55;
  --green-600: #0e9f6e;
  --green-100: #dff7ed;
  --amber-700: #a15c07;
  --amber-600: #c77b16;
  --amber-100: #fff0d5;
  --red-700: #b42335;
  --red-600: #d23c51;
  --red-100: #fde7eb;
  --sidebar-width: 272px;
  --sidebar-collapsed: 84px;
  --topbar-height: 82px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 8px 24px rgba(22, 34, 53, 0.06);
  --shadow-md: 0 18px 45px rgba(14, 25, 43, 0.1);
  --focus-ring: 0 0 0 4px rgba(65, 105, 225, 0.18);
  --ease: 180ms ease;
}

/* Lumora */
[data-lumora-app] [hidden] {
  display: none !important;
}

.lumora-page-heading {
  align-items: flex-end;
}

.lumora-page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.lumora-page-facts span {
  padding: 8px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 0.82rem;
}

.lumora-app {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 20px;
  min-height: 720px;
}

.lumora-history,
.lumora-workspace {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.lumora-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.lumora-new-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lumora-new-actions .button:first-child {
  grid-column: 1 / -1;
}

.lumora-history-heading,
.lumora-job-header,
.lumora-panel-heading,
.lumora-analysis-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lumora-history-count {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-100);
  color: var(--violet-600);
  font-weight: 700;
}

.lumora-history-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-500);
  font-size: 0.88rem;
}

.lumora-history-status.is-error {
  color: var(--red-700);
}

.lumora-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.lumora-history-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  text-align: left;
  cursor: pointer;
}

.lumora-history-item:hover,
.lumora-history-item.is-active {
  border-color: #cfc3f4;
  background: #f7f4ff;
}

.lumora-history-item span,
.lumora-history-item small {
  color: var(--slate-500);
  font-size: 0.76rem;
}

.lumora-history-item small {
  text-transform: capitalize;
}

.lumora-history-empty,
.lumora-welcome {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--slate-600);
  text-align: center;
}

.lumora-history-empty .icon {
  width: 36px;
  height: 36px;
  color: var(--violet-600);
}

.lumora-workspace {
  overflow: hidden;
}

.lumora-welcome {
  min-height: 660px;
  align-content: center;
}

.lumora-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 940px);
  margin: 12px 0;
}

.lumora-mode-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: left;
  box-shadow: var(--shadow-xs);
}

.lumora-mode-grid article > span {
  color: var(--violet-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lumora-mode-grid article p {
  min-height: 72px;
  color: var(--slate-500);
  font-size: 0.84rem;
}

.lumora-mode-grid article .button {
  align-self: end;
  justify-self: stretch;
}

.lumora-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--violet-600), var(--blue-600));
  color: var(--white);
  box-shadow: 0 16px 35px rgba(117, 87, 217, 0.24);
}

.lumora-mark .icon {
  width: 32px;
  height: 32px;
}

.lumora-disclaimer {
  max-width: 680px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.84rem;
}

.lumora-job {
  padding: 24px;
}

.lumora-job-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-150);
}

.lumora-job-header p {
  color: var(--slate-500);
  font-size: 0.84rem;
}

.lumora-job-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lumora-feedback {
  min-height: 24px;
  padding: 10px 0 0;
  color: var(--slate-600);
  font-size: 0.86rem;
}

.lumora-feedback.is-error {
  color: var(--red-700);
}

.lumora-feedback.is-success {
  color: var(--green-700);
}

.lumora-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
}

.lumora-panel-heading {
  margin-bottom: 18px;
}

.lumora-panel-heading > span {
  color: var(--slate-500);
  font-size: 0.82rem;
}

.lumora-questionnaires,
.lumora-questionnaire {
  display: grid;
  gap: 18px;
}

.lumora-questionnaire + .lumora-questionnaire {
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.lumora-question-group {
  display: grid;
  gap: 12px;
}

.lumora-question-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 2px;
}

.lumora-question-group > header h4 {
  font-size: 1rem;
}

.lumora-dimension-code {
  display: grid;
  min-width: 38px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-600);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lumora-questionnaire header p,
.lumora-questionnaire-note {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 0.84rem;
}

.lumora-question {
  position: relative;
  margin: 0;
  padding: 20px 16px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.lumora-facet-label {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 8px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 0.68rem;
  font-weight: 650;
}

.lumora-question legend {
  padding: 0 6px;
  color: var(--slate-800);
  font-weight: 650;
}

.lumora-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.lumora-scale label {
  cursor: pointer;
}

.lumora-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lumora-scale span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  font-weight: 700;
  transition: var(--ease);
}

.lumora-scale input:checked + span {
  border-color: var(--violet-600);
  background: var(--violet-600);
  color: var(--white);
}

.lumora-scale input:focus-visible + span {
  box-shadow: var(--focus-ring);
}

.lumora-scale input:disabled + span {
  cursor: not-allowed;
  opacity: 0.68;
}

.lumora-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 0.72rem;
}

.lumora-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.lumora-form-actions span {
  color: var(--slate-500);
  font-size: 0.82rem;
}

.lumora-style-code {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-600);
  font-size: 1rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.lumora-score-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.lumora-score-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.lumora-score-card > div:first-child span {
  color: var(--violet-600);
  font-weight: 750;
}

.lumora-score-card p {
  color: var(--slate-500);
  font-size: 0.76rem;
  text-transform: capitalize;
}

.lumora-score-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-150);
}

.lumora-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--violet-600));
}

.lumora-divination-results {
  display: grid;
  gap: 18px;
}

.lumora-result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lumora-result-summary span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-600);
  font-size: 0.8rem;
  font-weight: 700;
}

.lumora-subsection {
  display: grid;
  gap: 12px;
}

.lumora-subsection > header p {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.lumora-pillar-grid,
.lumora-hexagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lumora-pillar-card,
.lumora-hexagram-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.lumora-pillar-card > span,
.lumora-hexagram-card > span {
  color: var(--slate-500);
  font-size: 0.74rem;
}

.lumora-pillar-card h4 {
  color: var(--navy-900);
  font-family: ui-serif, "Noto Serif SC", serif;
  font-size: 1.8rem;
  letter-spacing: 0.14em;
}

.lumora-pillar-card dl,
.lumora-detail-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  color: var(--slate-600);
  font-size: 0.78rem;
}

.lumora-pillar-card dt,
.lumora-detail-list dt {
  color: var(--slate-500);
}

.lumora-pillar-card dd,
.lumora-detail-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lumora-element-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lumora-element-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.lumora-element-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.lumora-luck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.lumora-luck-table th,
.lumora-luck-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.lumora-luck-table th {
  color: var(--slate-500);
  font-size: 0.74rem;
  font-weight: 700;
}

.lumora-hexagram-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lumora-hexagram-symbol {
  font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.lumora-hexagram-card h4 {
  font-size: 1.05rem;
}

.lumora-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 84px;
}

.lumora-line {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 9px;
}

.lumora-line span {
  display: block;
  height: 7px;
  flex: 1;
  border-radius: 999px;
  background: var(--navy-800);
}

.lumora-line.is-moving span {
  background: var(--violet-600);
}

.lumora-body-use {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #cfc3f4;
  border-radius: var(--radius-md);
  background: #f7f4ff;
}

.lumora-body-use > div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.lumora-body-use > strong {
  color: var(--violet-600);
}

.lumora-convention-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--slate-600);
  font-size: 0.82rem;
}

.lumora-create-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 0;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--white);
  color: var(--slate-950);
  box-shadow: var(--shadow-md);
}

.lumora-create-dialog [hidden] {
  display: none !important;
}

.lumora-create-dialog::backdrop {
  background: rgba(8, 17, 31, 0.6);
  backdrop-filter: blur(4px);
}

.lumora-dialog-header,
.lumora-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lumora-dialog-intro,
.lumora-dialog-note {
  margin: 16px 0;
  color: var(--slate-600);
  font-size: 0.84rem;
}

.lumora-dialog-note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  color: var(--amber-700);
}

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

.lumora-form-grid label {
  display: grid;
  gap: 6px;
}

.lumora-form-grid label > span {
  color: var(--slate-600);
  font-size: 0.8rem;
  font-weight: 650;
}

.lumora-form-grid .is-wide {
  grid-column: 1 / -1;
}

.lumora-form-grid input,
.lumora-form-grid select,
.lumora-form-grid textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  background: var(--white);
  color: var(--slate-950);
  font: inherit;
}

.lumora-form-grid textarea {
  resize: vertical;
}

.lumora-form-grid .lumora-checkbox {
  display: flex;
  align-items: center;
  grid-template-columns: none;
}

.lumora-checkbox input {
  width: auto;
}

.lumora-dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.lumora-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.lumora-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.lumora-pattern-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid #cfc3f4;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fbfaff, #f4f0ff);
}

.lumora-pattern-card h4 {
  color: var(--navy-900);
  font-family:
    ui-serif, "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 1rem;
}

.lumora-pattern-card p {
  color: var(--slate-700);
  font-size: 0.84rem;
  line-height: 1.65;
}

.lumora-pattern-card small {
  color: var(--slate-500);
  font-size: 0.7rem;
}

.lumora-facet-panel {
  margin-top: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.lumora-facet-panel summary {
  padding: 12px 14px;
  color: var(--slate-700);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.lumora-facet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.lumora-facet-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
}

.lumora-facet-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.lumora-facet-card > div:first-child span {
  color: var(--violet-600);
  font-weight: 750;
}

.lumora-facet-card p {
  color: var(--slate-500);
  font-size: 0.72rem;
}

.lumora-tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 650;
}

.lumora-quality-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.8rem;
}

.lumora-analysis-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
}

.lumora-analysis-actions p {
  color: var(--slate-500);
  font-size: 0.82rem;
}

.lumora-report-content {
  min-height: 120px;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(117, 87, 217, 0.035), transparent 180px),
    var(--white);
  color: #263348;
  box-shadow: var(--shadow-xs);
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    "Segoe UI", sans-serif;
  font-size: 0.96rem;
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.lumora-report-content > :first-child,
.lumora-prose > :first-child {
  margin-top: 0;
}

.lumora-report-content > :last-child,
.lumora-prose > :last-child {
  margin-bottom: 0;
}

.lumora-report-content h1,
.lumora-report-content h2,
.lumora-report-content h3,
.lumora-prose h1,
.lumora-prose h2,
.lumora-prose h3 {
  color: var(--navy-900);
  font-family:
    ui-serif, "Noto Serif SC", "Songti SC", "STSong",
    Georgia, serif;
  line-height: 1.42;
  text-wrap: balance;
}

.lumora-report-content h1,
.lumora-prose h1 {
  margin: 0 0 24px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.lumora-report-content h2,
.lumora-prose h2 {
  margin: 34px 0 14px;
  padding: 12px 0 0 15px;
  border-top: 1px solid var(--slate-200);
  border-left: 4px solid var(--violet-600);
  font-size: 1.28rem;
}

.lumora-report-content h3,
.lumora-prose h3 {
  margin: 24px 0 10px;
  color: #3a4962;
  font-size: 1.08rem;
}

.lumora-report-content p,
.lumora-prose p {
  margin: 0 0 15px;
}

.lumora-report-content ul,
.lumora-report-content ol,
.lumora-prose ul,
.lumora-prose ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  padding-left: 1.5rem;
}

.lumora-report-content li::marker,
.lumora-prose li::marker {
  color: var(--violet-600);
  font-weight: 750;
}

.lumora-report-content strong,
.lumora-prose strong {
  color: #15243a;
  font-weight: 760;
}

.lumora-report-content em,
.lumora-prose em {
  color: #4d5c75;
}

.lumora-report-content blockquote,
.lumora-prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--teal-100);
  color: #225d56;
  font-family:
    ui-serif, "Noto Serif SC", "Songti SC", Georgia, serif;
}

.lumora-report-content code,
.lumora-prose code {
  border-radius: 5px;
  padding: 2px 5px;
  background: var(--slate-100);
  color: var(--violet-600);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.lumora-report-content pre,
.lumora-prose pre {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--navy-950);
  color: #e6edf7;
}

.lumora-report-content pre code,
.lumora-prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.lumora-report-content a,
.lumora-prose a {
  color: var(--blue-700);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lumora-report-content hr,
.lumora-prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--slate-200);
}

.lumora-report-content table,
.lumora-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.lumora-report-content th,
.lumora-report-content td,
.lumora-prose th,
.lumora-prose td {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  text-align: left;
}

.lumora-report-content th,
.lumora-prose th {
  background: var(--slate-100);
  color: var(--navy-900);
  font-weight: 750;
}

.lumora-messages {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.lumora-message {
  display: grid;
  gap: 4px;
  max-width: 85%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.lumora-message p {
  white-space: pre-wrap;
}

.lumora-message .lumora-prose {
  display: block;
  white-space: normal;
  line-height: 1.75;
}

.lumora-message .lumora-prose h1 {
  font-size: 1.22rem;
}

.lumora-message .lumora-prose h2 {
  margin-top: 20px;
  padding-top: 8px;
  font-size: 1.08rem;
}

.lumora-message .lumora-prose h3 {
  font-size: 1rem;
}

.lumora-message.is-user {
  justify-self: end;
  background: var(--blue-600);
  color: var(--white);
}

.lumora-message.is-assistant {
  justify-self: start;
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.lumora-messages-empty {
  color: var(--slate-500);
  text-align: center;
}

.lumora-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.lumora-composer textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 12px;
}

@media (max-width: 1080px) {
  .lumora-app {
    grid-template-columns: 1fr;
  }

  .lumora-history-list {
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .lumora-page-heading,
  .lumora-job-header,
  .lumora-panel-heading,
  .lumora-analysis-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lumora-page-facts {
    justify-content: flex-start;
  }

  .lumora-job {
    padding: 14px;
  }

  .lumora-panel {
    padding: 14px;
  }

  .lumora-score-grid {
    grid-template-columns: 1fr;
  }

  .lumora-mode-grid,
  .lumora-pillar-grid,
  .lumora-element-grid,
  .lumora-hexagram-grid,
  .lumora-pattern-grid,
  .lumora-facet-grid,
  .lumora-form-grid {
    grid-template-columns: 1fr;
  }

  .lumora-form-grid .is-wide {
    grid-column: auto;
  }

  .lumora-body-use {
    grid-template-columns: 1fr;
  }

  .lumora-composer {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--slate-50);
  color: var(--slate-950);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
strong,
b {
  letter-spacing: -0.02em;
}

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.portal-layout {
  background: var(--slate-50);
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow: hidden;
  background: var(--navy-950);
  color: #d9e1ec;
  transition: width 240ms ease, transform 240ms ease;
}

.sidebar::before {
  position: absolute;
  top: -160px;
  left: -100px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 105, 225, 0.2), transparent 68%);
  content: "";
  pointer-events: none;
}

.sidebar-header {
  position: relative;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 8px 24px rgba(132, 30, 60, 0.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  color: var(--white);
  font-size: 18px;
  gap: 5px;
  white-space: nowrap;
}

.brand-copy strong {
  font-weight: 750;
}

.brand-copy span {
  color: #97a8bd;
  font-weight: 500;
}

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

.icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-button:active {
  transform: scale(0.96);
}

.sidebar-nav {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 24px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-label {
  margin: 0 12px 7px;
  color: #687b93;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border-radius: 12px;
  color: #9fb0c4;
  font-size: 14px;
  font-weight: 570;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}

.nav-item::before {
  position: absolute;
  inset: 10px auto 10px -14px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--blue-500);
  content: "";
  opacity: 0;
}

.nav-item .icon {
  width: 19px;
  height: 19px;
}

a.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #eef3f9;
}

.nav-item.is-active {
  background: rgba(78, 118, 229, 0.14);
  color: var(--white);
}

.nav-item.is-active::before {
  opacity: 1;
}

.nav-item.is-active .icon {
  color: #7f9eff;
}

.nav-item.is-disabled {
  color: #66778d;
  cursor: not-allowed;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #71849b;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-badge--live {
  border-color: rgba(111, 142, 237, 0.25);
  background: rgba(65, 105, 225, 0.12);
  color: #8fa8f8;
}

.nav-badge--azure {
  border-color: rgba(68, 179, 255, 0.25);
  background: rgba(0, 120, 212, 0.14);
  color: #75c7ff;
}

.nav-badge--chat {
  border-color: rgba(108, 176, 255, 0.24);
  background: rgba(54, 135, 220, 0.16);
  color: #8fc8ff;
}

.sidebar-footer {
  position: relative;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-block {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.avatar,
.topbar-avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #243751;
  color: #dce7f5;
  font-size: 13px;
  font-weight: 750;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.profile-copy strong {
  overflow: hidden;
  color: #f3f6fa;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy span {
  color: #71849b;
  font-size: 11px;
}

.logout-button {
  width: 34px;
  height: 34px;
  color: #7f91a8;
}

.add-account-button {
  width: 34px;
  height: 34px;
  color: #7f91a8;
}

.add-account-button:hover {
  color: #e7edf5;
}

.logout-button:hover {
  color: #e7edf5;
}

.collapse-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64778f;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.collapse-button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #a7b5c6;
}

.collapse-button .icon {
  width: 17px;
  height: 17px;
}

.app-frame {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  transition: margin-left 240ms ease;
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3.2vw, 48px);
  border-bottom: 1px solid rgba(213, 220, 230, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 14px;
}

.topbar-eyebrow {
  display: block;
  margin-bottom: 1px;
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar-title {
  color: var(--slate-950);
  font-size: 20px;
  font-weight: 720;
}

.topbar-actions {
  gap: 12px;
}

.language-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 9px;
  font-weight: 760;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.language-toggle:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.language-toggle .icon {
  width: 15px;
  height: 15px;
}

.language-toggle--login {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 18px;
}

.mode-badge,
.read-only-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 620;
}

.mode-badge {
  padding: 8px 11px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
}

.topbar-avatar {
  background: var(--blue-100);
  color: var(--blue-700);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.status-dot--safe {
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.11);
}

.status-dot--warning {
  background: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(199, 123, 22, 0.11);
}

.status-dot--danger {
  background: var(--red-600);
  box-shadow: 0 0 0 4px rgba(210, 60, 81, 0.11);
}

.main-content {
  width: 100%;
  max-width: 1560px;
  flex: 1;
  align-self: center;
  padding: 36px clamp(22px, 3.2vw, 48px) 50px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(22px, 3.2vw, 48px);
  border-top: 1px solid var(--slate-150);
  color: var(--slate-400);
  font-size: 11px;
}

.nav-backdrop {
  display: none;
}

.nav-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

.nav-collapsed .app-frame {
  margin-left: var(--sidebar-collapsed);
}

.nav-collapsed .brand-copy,
.nav-collapsed .nav-label,
.nav-collapsed .nav-item > span,
.nav-collapsed .profile-copy,
.nav-collapsed .add-account-button,
.nav-collapsed .logout-button,
.nav-collapsed .collapse-button > span {
  display: none;
}

.nav-collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.nav-collapsed .sidebar-nav {
  padding-inline: 13px;
}

.nav-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.nav-collapsed .nav-item::before {
  left: -13px;
}

.nav-collapsed .profile-block {
  justify-content: center;
  padding: 9px 0;
}

.nav-collapsed .collapse-button {
  justify-content: center;
  padding: 0;
}

.nav-collapsed .collapse-button .icon {
  transform: rotate(180deg);
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-panel {
  position: relative;
  display: flex;
  min-height: 148px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px 34px;
  border: 1px solid #dce4ef;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 20%, rgba(82, 125, 238, 0.13), transparent 27%),
    linear-gradient(120deg, #ffffff 40%, #f6f8ff 100%);
  box-shadow: var(--shadow-xs);
}

.welcome-panel::after {
  position: absolute;
  right: -35px;
  bottom: -95px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(65, 105, 225, 0.11);
  border-radius: 50%;
  content: "";
}

.welcome-panel h2,
.page-heading h2 {
  color: var(--slate-950);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 750;
  line-height: 1.18;
}

.welcome-panel p,
.page-heading p {
  margin-top: 7px;
  color: var(--slate-600);
  font-size: 14px;
}

.welcome-status {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 275px;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(199, 213, 231, 0.88);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.health-orb {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--green-100);
  color: var(--green-700);
}

.health-orb--warning {
  background: var(--amber-100);
  color: var(--amber-700);
}

.welcome-status span:last-child {
  display: flex;
  flex-direction: column;
}

.welcome-status small {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-status strong {
  margin-top: 2px;
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 680;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 126px;
  align-items: center;
  gap: 15px;
  padding: 21px;
  border: 1px solid var(--slate-150);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.summary-card:hover {
  border-color: #ccd6e4;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.summary-card--featured {
  border-color: #d5dffc;
}

.card-icon,
.metric-icon,
.settings-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
}

.card-icon--blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.card-icon--violet {
  background: var(--violet-100);
  color: var(--violet-600);
}

.card-icon--teal {
  background: var(--teal-100);
  color: var(--teal-600);
}

.card-icon--amber {
  background: var(--amber-100);
  color: var(--amber-700);
}

.summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.summary-copy > span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 590;
}

.summary-copy > strong {
  overflow: hidden;
  margin: 3px 0 5px;
  color: var(--slate-950);
  font-size: 22px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-copy > small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--slate-500);
  font-size: 10px;
}

.summary-copy .status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.panel {
  border: 1px solid var(--slate-150);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.panel-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--slate-150);
}

.panel-header .section-kicker {
  margin-bottom: 3px;
}

.panel-header h3 {
  color: var(--slate-950);
  font-size: 17px;
  font-weight: 700;
}

.panel-header p {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 12px;
}

.panel-meta {
  color: var(--slate-400);
  font-size: 11px;
}

.panel-meta.is-delayed {
  color: var(--amber-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 650;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.content-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.content-grid--dashboard {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.85fr);
}

.resource-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.resource-item {
  padding: 21px 22px 22px;
}

.resource-item:nth-child(2) {
  border-right: 1px solid var(--slate-150);
}

.resource-item--primary {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--slate-150);
}

.resource-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.metric-icon {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--slate-100);
  color: var(--slate-700);
}

.metric-icon .icon {
  width: 18px;
  height: 18px;
}

.resource-heading > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.resource-heading strong {
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 680;
}

.resource-heading small {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-heading b {
  color: var(--slate-800);
  font-size: 17px;
  font-weight: 720;
}

progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--slate-100);
  appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--slate-100);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--blue-600);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--blue-600);
}

.resource-item:nth-child(2) progress::-webkit-progress-value,
.metric-card:nth-child(2) progress::-webkit-progress-value {
  background: var(--violet-600);
}

.resource-item:nth-child(2) progress::-moz-progress-bar,
.metric-card:nth-child(2) progress::-moz-progress-bar {
  background: var(--violet-600);
}

.resource-item:nth-child(3) progress::-webkit-progress-value,
.metric-card:nth-child(3) progress::-webkit-progress-value {
  background: var(--teal-600);
}

.resource-item:nth-child(3) progress::-moz-progress-bar,
.metric-card:nth-child(3) progress::-moz-progress-bar {
  background: var(--teal-600);
}

.service-list {
  padding: 7px 17px;
}

.service-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--slate-100);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-symbol {
  display: inline-flex;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--slate-50);
  color: var(--slate-600);
}

.service-symbol .icon {
  width: 17px;
  height: 17px;
}

.service-name {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.service-name strong {
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 650;
}

.service-name small {
  color: var(--slate-400);
  font-size: 10px;
}

.status-pill,
.large-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  padding: 5px 9px;
}

.status-pill .status-dot,
.large-status .status-dot {
  width: 6px;
  height: 6px;
}

.status-pill--running {
  background: var(--green-100);
  color: var(--green-700);
}

.status-pill--stopped {
  background: var(--red-100);
  color: var(--red-700);
}

.status-pill--unavailable {
  background: var(--slate-100);
  color: var(--slate-600);
}

.endpoints-panel {
  overflow: hidden;
}

.read-only-label .icon {
  width: 15px;
  height: 15px;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.endpoint-item {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-right: 1px solid var(--slate-150);
}

.endpoint-item:last-child {
  border-right: 0;
}

.endpoint-port {
  display: inline-flex;
  width: 45px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.endpoint-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.endpoint-item strong {
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 670;
}

.endpoint-item small {
  color: var(--slate-400);
  font-size: 10px;
}

.endpoint-item > .status-dot {
  width: 6px;
  height: 6px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.alert .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.alert--danger {
  border-color: #f6cbd2;
  background: #fff5f6;
  color: var(--red-700);
}

.alert--warning {
  border-color: #f4dbad;
  background: #fffaf0;
  color: #86500a;
}

.page-alert {
  margin-bottom: 20px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 27px;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

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

.button:active:not(:disabled) {
  transform: translateY(0);
}

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

.button--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(49, 89, 201, 0.18);
}

.button--primary:hover:not(:disabled) {
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(49, 89, 201, 0.24);
}

.button--secondary {
  border-color: var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
}

.button--secondary:hover:not(:disabled) {
  border-color: #becbe2;
  background: var(--blue-50);
  color: var(--blue-700);
}

.button--danger {
  border-color: var(--red-600);
  background: var(--red-600);
  color: var(--white);
}

.button--danger:hover:not(:disabled) {
  background: var(--red-700);
}

.icon-back {
  transform: rotate(180deg);
}

.button--full {
  width: 100%;
}

.button-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 21px;
  padding: 15px 18px;
  border: 1px solid #d9e2f8;
  border-radius: 15px;
  background: var(--blue-50);
}

.notice-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.notice-icon .icon {
  width: 18px;
  height: 18px;
}

.notice-banner strong {
  color: #26395d;
  font-size: 13px;
  font-weight: 680;
}

.notice-banner p {
  margin-top: 2px;
  color: #66728b;
  font-size: 11px;
}

.vpn-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.55fr);
  gap: 18px;
  margin-bottom: 21px;
}

.vpn-identity-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid #1c3150;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(91, 128, 235, 0.2), transparent 35%),
    var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.vpn-identity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.vpn-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #8ea8f7;
}

.vpn-identity-card .status-pill--running {
  background: rgba(34, 197, 139, 0.13);
  color: #68dfb5;
}

.vpn-identity-card .section-kicker {
  color: #7e96b4;
}

.vpn-identity-card h3 {
  font-size: 23px;
  font-weight: 720;
}

.vpn-identity-card p {
  margin-top: 5px;
  color: #91a2b6;
  font-size: 12px;
}

.vpn-identity-footer {
  display: flex;
  gap: 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #8799af;
  font-size: 10px;
}

.vpn-identity-footer strong {
  margin-right: 4px;
  color: #eaf0f7;
  font-size: 12px;
}

.vpn-details-card {
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid > div {
  min-width: 0;
  padding: 21px 22px;
  border-right: 1px solid var(--slate-150);
  border-bottom: 1px solid var(--slate-150);
}

.detail-grid > div:nth-child(3n) {
  border-right: 0;
}

.detail-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.detail-grid dt {
  margin-bottom: 5px;
  color: var(--slate-400);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-grid dd {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 670;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-panel {
  overflow: hidden;
}

.table-panel-header {
  min-height: 88px;
}

.traffic-heading-status {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.traffic-live-badge,
.traffic-activity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.traffic-live-badge {
  padding: 6px 10px;
}

.traffic-live-badge .status-dot,
.traffic-activity .status-dot {
  width: 6px;
  height: 6px;
}

.traffic-live-badge--live,
.traffic-activity--transferring {
  background: var(--green-100);
  color: var(--green-700);
}

.traffic-activity--recently_active {
  background: var(--blue-100);
  color: var(--blue-700);
}

.traffic-activity--idle {
  background: var(--slate-100);
  color: var(--slate-600);
}

.traffic-live-badge--stale,
.traffic-live-badge--unavailable,
.traffic-activity--unavailable {
  background: var(--amber-100);
  color: var(--amber-700);
}

.traffic-sampled-at {
  color: var(--slate-400);
  font-size: 9px;
}

.count-badge,
.phase-badge {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--slate-150);
  background: #fafbfd;
  color: var(--slate-500);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  height: 76px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-600);
  font-size: 11px;
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background var(--ease);
}

.data-table tbody tr:hover {
  background: #fbfcfe;
}

.user-cell {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 11px;
}

.mini-avatar {
  display: inline-flex;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.mini-avatar .icon {
  width: 16px;
  height: 16px;
}

.user-cell-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.user-name-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.user-cell strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-cell small {
  color: var(--slate-400);
  font-size: 9px;
}

.name-edit-button {
  display: inline-flex;
  min-width: 45px;
  height: 25px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid #d4dffb;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.name-edit-button:hover {
  border-color: #b7c8f6;
  background: var(--blue-100);
  color: var(--blue-700);
}

.name-edit-button .icon {
  width: 12px;
  height: 12px;
}

.name-edit-button span {
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.name-editor {
  display: grid;
  min-width: 230px;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 7px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid #d6e0f6;
  border-radius: 11px;
  background: var(--blue-50);
}

.name-editor[hidden] {
  display: none;
}

.name-editor label {
  min-width: 0;
}

.name-editor input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-800);
  font-size: 10px;
}

.name-editor input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.12);
  outline: none;
}

.name-editor-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.name-editor-save,
.name-editor-cancel {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 670;
}

.name-editor-save {
  border: 1px solid var(--blue-600);
  background: var(--blue-600);
  color: var(--white);
}

.name-editor-cancel {
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-600);
}

.name-editor button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.name-editor > small,
.name-editor-feedback {
  grid-column: 1 / -1;
  color: var(--slate-500);
  font-size: 8px;
}

.name-editor-feedback {
  min-height: 12px;
  color: var(--red-600);
}

.credential-value {
  display: inline-block;
  min-width: 220px;
  color: var(--slate-700);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.credential-feedback {
  display: block;
  min-height: 14px;
  margin-top: 3px;
  color: var(--red-600);
  font-size: 9px;
}

.traffic-metric {
  display: flex;
  min-width: 120px;
  flex-direction: column;
  gap: 4px;
}

.traffic-usage {
  display: flex;
  min-width: 86px;
  flex-direction: column;
  gap: 4px;
}

.traffic-metric strong {
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.traffic-metric small,
.traffic-usage small {
  color: var(--slate-400);
  font-size: 9px;
  white-space: nowrap;
}

.traffic-activity {
  align-self: flex-start;
  padding: 5px 8px;
}

.traffic-footnote {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 4px;
  color: var(--slate-500);
  font-size: 10px;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 18px;
  margin-bottom: 20px;
}

.create-vpn-card {
  overflow: hidden;
}

.capacity-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 11px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 10px;
}

.capacity-badge strong {
  color: var(--blue-700);
  font-size: 14px;
}

.create-vpn-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.create-vpn-icon,
.lifecycle-summary-icon,
.result-icon,
.import-selector-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.create-vpn-copy .field {
  gap: 5px;
}

.create-vpn-copy .field > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.create-vpn-copy .field small {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 600;
}

.create-vpn-copy p {
  margin-top: 6px;
  color: var(--slate-400);
  font-size: 9px;
}

.form-feedback {
  min-height: 14px;
  grid-column: 2 / -1;
  color: var(--red-600);
  font-size: 9px;
}

.create-vpn-result {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 22px 20px;
  padding: 15px;
  border: 1px solid #c7eadc;
  border-radius: 14px;
  background: #f4fcf8;
}

.create-vpn-result[hidden] {
  display: none;
}

.create-vpn-result .result-icon {
  width: 40px;
  height: 40px;
  background: var(--green-100);
  color: var(--green-700);
}

.create-vpn-result > div {
  min-width: 0;
  flex: 1;
}

.create-vpn-result strong {
  color: var(--slate-800);
  font-size: 12px;
}

.create-vpn-result code {
  color: var(--slate-500);
  font-size: 9px;
}

.lifecycle-safety-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-top: 1px solid var(--slate-150);
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 9px;
}

.lifecycle-safety-note .icon {
  width: 15px;
  height: 15px;
  color: var(--green-700);
}

.lifecycle-summary-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 23px;
}

.lifecycle-summary-card > div {
  min-width: 0;
}

.lifecycle-summary-card strong {
  color: var(--slate-900);
  font-size: 18px;
}

.lifecycle-summary-card p {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 9px;
}

.lifecycle-users-panel,
.archived-users-panel {
  overflow: hidden;
  margin-bottom: 20px;
}

.lifecycle-user-list,
.archived-user-list {
  padding: 6px 18px;
}

.lifecycle-user-row {
  display: grid;
  min-height: 70px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(145px, auto) auto auto;
  align-items: center;
  gap: 13px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--slate-100);
}

.lifecycle-user-row:last-child,
.archived-user-row:last-child {
  border-bottom: 0;
}

.lifecycle-user-copy,
.lifecycle-user-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.lifecycle-user-copy strong,
.archived-user-row strong {
  color: var(--slate-800);
  font-size: 11px;
  font-weight: 680;
}

.lifecycle-user-copy code,
.archived-user-row small {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifecycle-user-meta {
  text-align: right;
}

.lifecycle-user-meta small {
  color: var(--slate-400);
  font-size: 7px;
  text-transform: uppercase;
}

.lifecycle-user-meta strong {
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 620;
}

.remove-vpn-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #f0cbd1;
  border-radius: 9px;
  background: #fff8f9;
  color: var(--red-700);
  cursor: pointer;
  font-size: 9px;
  font-weight: 680;
}

.remove-vpn-button:hover {
  border-color: #eaaeba;
  background: var(--red-100);
}

.remove-vpn-button .icon {
  width: 13px;
  height: 13px;
}

.archived-user-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--slate-100);
}

.archived-user-row > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.lifecycle-empty[hidden],
[data-archived-vpn-empty][hidden] {
  display: none;
}

.confirmation-dialog {
  width: min(430px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid var(--slate-150);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.confirmation-dialog::backdrop {
  background: rgba(8, 17, 31, 0.6);
  backdrop-filter: blur(3px);
}

.confirmation-dialog form {
  padding: 28px;
}

.confirmation-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--red-100);
  color: var(--red-700);
}

.confirmation-dialog h3 {
  color: var(--slate-900);
  font-size: 20px;
}

.confirmation-dialog p {
  margin-top: 9px;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.65;
}

.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
}

.confirmation-dialog .form-feedback {
  display: block;
  margin-top: 10px;
}

.import-selector-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 18px;
  padding: 22px;
}

.import-selector-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.import-selector-copy h3 {
  color: var(--slate-900);
  font-size: 16px;
}

.import-selector-copy p {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 9px;
}

.import-client-select {
  display: flex;
  min-width: 310px;
  flex-direction: column;
  gap: 5px;
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 680;
  text-transform: uppercase;
}

.import-client-select select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-700);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.import-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 17px;
  border: 1px solid var(--slate-150);
  border-radius: 13px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 10px;
}

.import-loading[hidden],
[data-import-error][hidden],
.import-workspace[hidden],
.import-empty-state[hidden],
.import-guide-panel[hidden] {
  display: none;
}

.import-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
}

.import-profile-card,
.import-guides-card {
  overflow: hidden;
}

.import-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.import-profile-grid > div {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.import-profile-grid > div:nth-child(2n) {
  border-right: 0;
}

.import-profile-grid dt,
.vless-link-block > span {
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.import-profile-grid dd {
  overflow: hidden;
  margin-top: 3px;
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-profile-wide {
  grid-column: 1 / -1;
  border-right: 0 !important;
}

.vless-link-block {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.vless-link-block code {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 8px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vless-link-block .button {
  align-self: flex-start;
}

.import-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
  border-bottom: 1px solid var(--slate-150);
  background: var(--slate-50);
}

.import-tab {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
}

.import-tab.is-active {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-xs);
}

.import-tab .icon {
  width: 15px;
  height: 15px;
}

.import-guide-panel {
  padding: 25px;
}

.import-guide-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.platform-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.platform-mark--android {
  background: var(--green-100);
  color: var(--green-700);
}

.platform-mark--ios {
  background: var(--slate-100);
  color: var(--slate-800);
}

.import-guide-heading h3 {
  color: var(--slate-900);
  font-size: 17px;
}

.import-guide-heading p {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 9px;
}

.import-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 21px;
  padding: 0;
  list-style: none;
}

.import-steps li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  background: #fbfcfe;
}

.import-steps li > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 750;
}

.import-steps p {
  padding-top: 4px;
  color: var(--slate-600);
  font-size: 9px;
  line-height: 1.5;
}

.import-empty-state {
  display: flex;
  min-height: 290px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.import-empty-state > span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.import-empty-state h3 {
  color: var(--slate-800);
  font-size: 15px;
}

.import-empty-state p {
  max-width: 430px;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 10px;
}

.history-panel {
  overflow: hidden;
  margin-top: 24px;
}

.history-panel-header {
  min-height: 92px;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-user-filter select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 230px;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  font-size: 10px;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-user-filter {
  min-width: 230px;
}

.portal-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.portal-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.portal-select-trigger {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.portal-select-trigger:hover {
  border-color: #c2cde0;
  background: #fbfcfe;
}

.portal-select-trigger[aria-expanded="true"] {
  border-color: var(--blue-500);
  box-shadow: var(--focus-ring);
}

.portal-select-leading {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.portal-select-leading .icon {
  width: 14px;
  height: 14px;
}

.portal-select-value {
  overflow: hidden;
  font-size: 11px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-select-chevron {
  width: 14px;
  height: 14px;
  color: var(--slate-400);
  transform: rotate(-90deg);
  transition: transform var(--ease);
}

.portal-select-trigger[aria-expanded="true"] .portal-select-chevron {
  transform: rotate(90deg);
}

.portal-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(330px, 50vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #d5deeb;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(14, 25, 43, 0.18);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

.portal-select-menu[hidden] {
  display: none;
}

.portal-select-group {
  display: block;
  padding: 7px 9px 5px;
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 740;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-select-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 34px 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

.portal-select-option:hover,
.portal-select-option:focus-visible {
  background: var(--blue-50);
  color: var(--blue-700);
  box-shadow: none;
}

.portal-select-option.is-selected {
  background: var(--blue-100);
  color: var(--blue-700);
}

.portal-select-option.is-selected::after {
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.12);
  content: "";
}

.history-user-filter select:focus {
  border-color: var(--blue-500);
  box-shadow: var(--focus-ring);
  outline: none;
}

.history-month-control {
  display: flex;
  min-width: 190px;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--slate-50);
}

.history-month-control strong {
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.history-month-button {
  width: 36px;
  height: 36px;
  color: var(--slate-500);
}

.history-month-button:hover:not(:disabled) {
  background: var(--white);
  color: var(--blue-700);
}

.history-month-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.history-month-button--next .icon {
  transform: rotate(180deg);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
}

.history-calendar-card {
  min-width: 0;
  padding: 22px;
}

.history-weekdays,
.history-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.history-weekdays {
  margin-bottom: 8px;
}

.history-weekdays span {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.history-calendar-grid {
  gap: 7px;
}

.history-loading,
.history-calendar-error {
  display: flex;
  min-height: 320px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--slate-200);
  border-radius: 14px;
  color: var(--slate-400);
  font-size: 11px;
}

.history-calendar-error {
  border-color: #f4d4d9;
  background: #fff8f9;
  color: var(--red-700);
}

.history-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  padding: 9px;
  border: 1px solid var(--slate-150);
  border-radius: 11px;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.history-day:hover {
  border-color: #bfcdec;
  background: var(--blue-50);
  transform: translateY(-1px);
}

.history-day.is-selected {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.09);
}

.history-day.is-today::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-600);
  content: "";
}

.history-day.has-usage {
  border-color: #cfdbfa;
}

.history-day-number {
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
}

.history-day-usage {
  overflow: visible;
  width: 100%;
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-day.has-usage .history-day-usage {
  color: var(--blue-700);
}

.history-calendar-spacer {
  min-height: 76px;
}

.history-calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  color: var(--slate-400);
  font-size: 9px;
}

.history-day-detail {
  min-width: 0;
  padding: 22px;
  border-left: 1px solid var(--slate-150);
  background: #fbfcfe;
}

.history-detail-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.history-detail-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.history-detail-icon .icon {
  width: 18px;
  height: 18px;
}

.history-detail-header .section-kicker {
  margin-bottom: 2px;
}

.history-detail-header h4 {
  color: var(--slate-800);
  font-size: 15px;
  font-weight: 700;
}

.history-day-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--slate-150);
  border-radius: 13px;
  background: var(--white);
}

.history-day-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 13px;
  border-top: 1px solid var(--slate-100);
  border-right: 1px solid var(--slate-100);
}

.history-day-summary > div:nth-child(2n + 1) {
  border-right: 0;
}

.history-day-summary > div:nth-child(2) {
  border-top: 0;
}

.history-day-summary .history-day-total {
  grid-column: 1 / -1;
  border-top: 0;
  border-right: 0;
}

.history-day-summary span {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-day-summary strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-day-total strong {
  color: var(--blue-700);
  font-size: 21px;
}

.history-detail-section {
  margin-top: 19px;
}

.history-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.history-section-heading h5 {
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 700;
}

.history-section-heading span {
  color: var(--slate-400);
  font-size: 8px;
}

[data-history-live-status].is-live {
  color: var(--green-700);
}

[data-history-live-status].is-delayed {
  color: var(--amber-700);
}

.history-hour-list,
.history-period-list {
  display: flex;
  max-height: 210px;
  flex-direction: column;
  overflow-y: auto;
  border: 1px solid var(--slate-150);
  border-radius: 12px;
  background: var(--white);
  scrollbar-width: thin;
}

.history-hour-row {
  display: grid;
  min-height: 42px;
  grid-template-columns: 74px minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--slate-100);
}

.history-hour-row:last-child,
.history-period-row:last-child {
  border-bottom: 0;
}

.history-hour-label,
.history-hour-total {
  color: var(--slate-600);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.history-hour-total {
  color: var(--slate-700);
  text-align: right;
}

.history-hour-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.history-hour-bar {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: 999px;
  background: var(--blue-600);
}

.history-period-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--slate-100);
}

.history-period-mark {
  display: inline-flex;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--green-100);
  color: var(--green-700);
}

.history-period-mark .icon {
  width: 14px;
  height: 14px;
}

.history-period-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.history-period-copy strong {
  color: var(--slate-700);
  font-size: 9px;
  font-weight: 670;
}

.history-period-copy small {
  color: var(--slate-400);
  font-size: 8px;
}

.history-period-state {
  color: var(--slate-400);
  font-size: 8px;
  white-space: nowrap;
}

.history-period-state.is-open {
  color: var(--green-700);
}

.history-empty {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: var(--slate-400);
  font-size: 9px;
  text-align: center;
}

.history-disclaimer {
  margin-top: 15px;
  color: var(--slate-400);
  font-size: 8px;
  line-height: 1.55;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.table-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate-600);
  cursor: pointer;
  font-size: 10px;
  font-weight: 630;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.table-action .icon {
  width: 14px;
  height: 14px;
}

.table-action:hover:not(:disabled) {
  border-color: #bdcae0;
  background: var(--blue-50);
  color: var(--blue-700);
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.table-action.is-loading {
  cursor: wait;
}

.empty-state {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.empty-state > span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 16px;
  background: var(--slate-100);
  color: var(--slate-500);
}

.empty-state h4 {
  color: var(--slate-800);
  font-size: 15px;
}

.empty-state p {
  max-width: 360px;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 11px;
}

.large-status {
  padding: 9px 13px;
  font-size: 11px;
}

.system-heading-status {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.system-updated {
  color: var(--slate-400);
  font-size: 9px;
  font-weight: 580;
}

.system-updated.is-delayed {
  color: var(--amber-700);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 21px;
}

.metric-card {
  display: flex;
  min-height: 206px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--slate-150);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.metric-card--cpu {
  border-color: #d7e0f9;
  background: linear-gradient(145deg, #ffffff, #f7f9ff);
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.metric-trend {
  color: var(--slate-400);
  font-size: 9px;
  font-weight: 680;
}

.metric-label {
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 590;
}

.metric-card > strong {
  margin: 3px 0 14px;
  color: var(--slate-950);
  font-size: 31px;
  font-weight: 740;
}

.metric-card > strong small {
  margin-left: 2px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 600;
}

.metric-card .metric-caption {
  margin-top: 7px;
  color: var(--slate-400);
  font-size: 9px;
}

.metric-card--uptime {
  background: var(--navy-900);
}

.metric-card--uptime .metric-label {
  color: #8295ad;
}

.metric-card--uptime > .metric-uptime {
  color: var(--white);
  font-size: 27px;
}

.metric-card--uptime p {
  color: #71849b;
  font-size: 10px;
}

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

.storage-analysis-panel {
  overflow: hidden;
  margin-bottom: 24px;
}

.storage-analysis-header {
  min-height: 88px;
}

.storage-scan-state {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.storage-scan-state > span:last-child {
  color: var(--slate-400);
  font-size: 9px;
}

.storage-capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.storage-capacity-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px 22px 12px;
  border-right: 1px solid var(--slate-150);
}

.storage-capacity-grid > div:last-child {
  border-right: 0;
}

.storage-capacity-grid > div > span {
  color: var(--slate-400);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storage-capacity-grid strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--slate-800);
  font-size: 18px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-storage-percent] {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.storage-capacity-progress {
  width: calc(100% - 44px);
  margin: 0 22px 20px;
}

.storage-capacity-progress::-webkit-progress-value {
  background: var(--teal-600);
}

.storage-capacity-progress::-moz-progress-bar {
  background: var(--teal-600);
}

.storage-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--slate-150);
}

.storage-list-card {
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--slate-150);
}

.storage-list-card:last-child {
  border-right: 0;
}

.storage-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.storage-list-heading h4 {
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 700;
}

.storage-list-heading span {
  color: var(--slate-400);
  font-size: 8px;
}

.storage-entry-list {
  display: flex;
  flex-direction: column;
}

.storage-entry {
  display: grid;
  min-height: 47px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
}

.storage-entry:last-child {
  border-bottom: 0;
}

.storage-entry code,
.storage-file-entry code {
  overflow: hidden;
  color: var(--slate-600);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-entry strong,
.storage-file-entry strong {
  color: var(--slate-700);
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
}

.storage-entry progress {
  height: 4px;
  grid-column: 1 / -1;
}

.storage-files-card {
  padding: 20px 22px;
  border-top: 1px solid var(--slate-150);
  background: #fbfcfe;
}

.storage-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.storage-file-entry {
  display: grid;
  min-width: 0;
  min-height: 45px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
}

.storage-file-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--amber-100);
  color: var(--amber-700);
}

.storage-file-icon .icon {
  width: 14px;
  height: 14px;
}

.storage-list-empty,
.storage-unavailable {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--slate-400);
  font-size: 10px;
  text-align: center;
}

.storage-unavailable {
  padding: 30px;
}

.storage-unavailable[hidden],
[data-storage-content][hidden] {
  display: none;
}

.storage-unavailable .icon {
  width: 17px;
  height: 17px;
  color: var(--amber-700);
}

.service-list--roomy {
  padding: 7px 18px;
}

.service-list--roomy .service-row {
  min-height: 76px;
}

.service-symbol--large {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.port-list {
  padding: 7px 18px;
}

.port-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--slate-100);
}

.port-row:last-child {
  border-bottom: 0;
}

.port-number {
  display: inline-flex;
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.port-row > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.port-row strong {
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 660;
}

.port-row small {
  color: var(--slate-400);
  font-size: 9px;
}

.security-scope {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  border: 1px solid #dce5ef;
  border-radius: var(--radius-lg);
  background: #f8fafc;
}

.security-scope > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-xs);
}

.security-scope strong {
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 680;
}

.security-scope p {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 11px;
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  min-height: 245px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #1b3150;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 75% -20%, rgba(82, 125, 238, 0.22), transparent 38%),
    var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.settings-hero > div:first-child {
  padding: 31px;
}

.settings-hero-icon {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #91aafa;
}

.settings-hero .section-kicker {
  color: #7f95b1;
}

.settings-hero h3 {
  font-size: 25px;
  font-weight: 720;
}

.settings-hero p {
  max-width: 650px;
  margin-top: 9px;
  color: #8fa1b6;
  font-size: 12px;
}

.settings-roadmap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.settings-roadmap span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a3b2c4;
  font-size: 11px;
  font-weight: 600;
}

.settings-roadmap b {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #7f9df1;
  font-size: 9px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.settings-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 145px;
  padding: 22px;
  border: 1px solid var(--slate-150);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.settings-card-icon {
  background: var(--slate-100);
  color: var(--slate-700);
}

.settings-card .section-kicker {
  margin-bottom: 3px;
}

.settings-card h3 {
  color: var(--slate-800);
  font-size: 15px;
  font-weight: 690;
}

.settings-card p {
  max-width: 440px;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 10px;
}

.availability-label {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.availability-label--ready {
  background: var(--green-100);
  color: var(--green-700);
}

.configuration-panel {
  overflow: hidden;
}

.configuration-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.configuration-list > div {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-right: 1px solid var(--slate-150);
  border-bottom: 1px solid var(--slate-150);
}

.configuration-list > div:nth-child(2n) {
  border-right: 0;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.account-settings-card {
  overflow: hidden;
}

.account-settings-form,
.access-editor-form {
  display: grid;
  gap: 13px;
  padding: 20px 22px 22px;
}

.account-settings-form .button,
.access-editor-form > .button {
  justify-self: start;
}

.account-password-hint {
  color: var(--slate-400);
  font-size: 8px;
  line-height: 1.5;
}

.settings-access-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.settings-access-banner > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.settings-access-banner h3 {
  margin-top: 2px;
  color: var(--slate-900);
  font-size: 15px;
}

.settings-access-banner p {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 9px;
  line-height: 1.55;
}

.access-control-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #263e63;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0, rgba(65, 105, 225, 0.25), transparent 34%),
    linear-gradient(135deg, #0a1a31, #142d52);
  color: var(--white);
}

.access-control-hero > div:first-child {
  padding: 30px;
}

.access-control-hero-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(99, 133, 235, 0.15);
  color: #91aafa;
}

.access-control-hero .section-kicker {
  color: #8296b2;
}

.access-control-hero h3 {
  margin-top: 4px;
  font-size: 25px;
}

.access-control-hero p {
  max-width: 660px;
  margin-top: 8px;
  color: #9aacbf;
  font-size: 10px;
  line-height: 1.6;
}

.access-control-rules {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.access-control-rules span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aacbf;
  font-size: 9px;
}

.access-control-rules b {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(111, 142, 237, 0.12);
  color: #91aafa;
  font-size: 8px;
}

.access-control-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access-control-loading {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid var(--slate-150);
  border-radius: 16px;
  background: var(--white);
}

.access-control-loading[hidden],
[data-access-content][hidden] {
  display: none;
}

.access-control-loading strong {
  color: var(--slate-800);
  font-size: 10px;
}

.access-control-loading p {
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 8px;
}

[data-access-content] {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.access-control-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
  align-items: start;
  gap: 20px;
}

.access-role-editor,
.access-user-create,
.access-roles-panel,
.access-users-panel {
  overflow: hidden;
}

.access-form-row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 11px;
}

.permission-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.permission-matrix fieldset,
.access-role-picker {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--slate-150);
  border-radius: 11px;
  background: #fbfcfe;
}

.permission-matrix legend,
.access-role-picker legend {
  padding: 0 5px;
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 750;
}

.permission-option,
.access-role-option {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
}

.permission-option:hover,
.access-role-option:hover {
  background: var(--blue-50);
}

.permission-option input,
.access-role-option input,
.access-active-toggle input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--blue-600);
}

.permission-option > span,
.access-role-option > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.permission-option strong,
.access-role-option strong {
  color: var(--slate-700);
  font-size: 8px;
}

.permission-option small,
.access-role-option small {
  color: var(--slate-400);
  font-size: 7px;
  line-height: 1.45;
}

.access-role-picker > div {
  display: grid;
  gap: 3px;
}

.access-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  cursor: pointer;
  font-size: 9px;
  font-weight: 680;
}

.access-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-role-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-top: 1px solid var(--slate-100);
  border-right: 1px solid var(--slate-100);
}

.access-role-card:nth-child(-n + 2) {
  border-top: 0;
}

.access-role-card:nth-child(2n) {
  border-right: 0;
}

.access-role-card.is-system {
  background: linear-gradient(90deg, #f8faff, #fff);
}

.access-role-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.access-role-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.access-role-copy > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.access-role-copy strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-role-copy > span:first-child small {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 6px;
  font-weight: 750;
  text-transform: uppercase;
}

.access-role-copy p,
.access-role-copy > span:last-child {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 7px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-list {
  display: grid;
}

.access-user-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(220px, 1.2fr) minmax(150px, 0.65fr) minmax(170px, 0.65fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-top: 1px solid var(--slate-100);
}

.access-user-row:first-child {
  border-top: 0;
}

.access-user-row.is-inactive {
  opacity: 0.62;
  background: var(--slate-50);
}

.access-user-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #e7edff, #e8e2fa);
  color: #5668b8;
  font-size: 12px;
  font-weight: 800;
}

.access-user-identity {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.access-user-identity > span:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.access-user-identity strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-identity code {
  color: var(--slate-400);
  font-size: 7px;
}

.access-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.access-role-chips small {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 6px;
  font-weight: 700;
}

.access-role-chips small.is-super {
  background: var(--blue-100);
  color: var(--blue-700);
}

.access-user-access,
.access-user-login {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.access-user-access strong {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 7px;
}

.access-user-access strong.is-active {
  background: var(--green-100);
  color: var(--green-700);
}

.access-user-access small,
.access-user-login small {
  color: var(--slate-400);
  font-size: 7px;
}

.access-user-login strong {
  overflow: hidden;
  color: var(--slate-600);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.table-action--danger {
  color: var(--red-700);
}

.table-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.access-user-dialog .field,
.access-user-dialog .access-role-picker,
.access-user-dialog .access-active-toggle {
  margin-top: 15px;
}

.user-usage-dialog {
  width: min(1180px, calc(100vw - 30px));
  max-width: none;
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 20px;
  background: var(--slate-50);
  box-shadow: 0 28px 80px rgba(8, 17, 31, 0.3);
}

.user-usage-dialog::backdrop {
  background: rgba(8, 17, 31, 0.68);
  backdrop-filter: blur(4px);
}

.user-usage-shell {
  display: grid;
  max-height: calc(100vh - 32px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.user-usage-header,
.user-usage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: var(--white);
}

.user-usage-header {
  border-bottom: 1px solid var(--slate-150);
}

.user-usage-footer {
  border-top: 1px solid var(--slate-150);
}

.user-usage-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.user-usage-user > div {
  min-width: 0;
}

.user-usage-user h3 {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-user p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-400);
  font-size: 8px;
}

.user-usage-user code {
  color: var(--slate-500);
}

.user-usage-close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-150);
  border-radius: 11px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 24px;
  cursor: pointer;
}

.user-usage-close:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-800);
}

.user-usage-body {
  min-height: 240px;
  overflow-y: auto;
  padding: 20px 22px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-200) transparent;
}

.user-usage-loading {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.user-usage-loading[hidden],
.user-usage-content[hidden],
.user-usage-empty[hidden] {
  display: none;
}

.user-usage-loading strong {
  color: var(--slate-700);
  font-size: 10px;
}

.user-usage-loading p {
  margin-top: 2px;
  color: var(--slate-400);
  font-size: 8px;
}

.user-usage-feedback {
  display: block;
  margin: 0;
  text-align: center;
}

.user-usage-feedback:empty {
  display: none;
}

.user-usage-content {
  display: grid;
  gap: 16px;
}

.user-usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.user-usage-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 11px;
  padding: 15px;
  border: 1px solid var(--slate-150);
  border-radius: 14px;
  background: var(--white);
}

.user-usage-summary-card--all {
  border-color: #cfd9ee;
  background: linear-gradient(145deg, #f8faff, #fff);
}

.user-usage-summary-card--pixora {
  border-color: #e4d7ef;
}

.user-usage-summary-card--nailmuse {
  border-color: #ead9df;
}

.user-usage-summary-card--chat {
  border-color: #d4e3f4;
}

.user-usage-summary-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.user-usage-summary-card--pixora .user-usage-summary-mark {
  background: var(--violet-100);
  color: var(--violet-600);
}

.user-usage-summary-card--nailmuse .user-usage-summary-mark {
  background: #fae9ef;
  color: #a44767;
}

.user-usage-summary-card--chat .user-usage-summary-mark {
  background: #e6f2ff;
  color: #2d72b8;
}

.user-usage-summary-card > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 8px;
}

.user-usage-summary-label {
  overflow: hidden;
  grid-column: 1 / -1;
  color: var(--slate-600);
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-summary-card > div strong {
  color: var(--slate-900);
  font-size: 22px;
  line-height: 1;
}

.user-usage-summary-card > div small {
  color: var(--slate-400);
  font-size: 7px;
}

.user-usage-summary-card p,
.user-usage-summary-card time {
  grid-column: 1 / -1;
  color: var(--slate-400);
  font-size: 7px;
}

.user-usage-retention {
  padding: 10px 13px;
  border: 1px solid #d8e1f2;
  border-radius: 11px;
  background: #f5f8fe;
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.55;
}

.user-usage-history {
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 15px;
  background: var(--white);
}

.user-usage-history-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--slate-150);
}

.user-usage-history-heading h4 {
  color: var(--slate-800);
  font-size: 14px;
}

.user-usage-history-heading label {
  display: grid;
  gap: 4px;
  color: var(--slate-500);
  font-size: 7px;
  font-weight: 700;
}

.user-usage-history-heading select {
  min-width: 155px;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate-700);
  font-size: 9px;
}

.user-usage-list {
  display: grid;
}

.user-usage-activity {
  border-top: 1px solid var(--slate-100);
  background: var(--white);
}

.user-usage-activity:first-child {
  border-top: 0;
}

.user-usage-activity[open] {
  background: #fbfcff;
}

.user-usage-activity > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  list-style: none;
  cursor: pointer;
}

.user-usage-activity > summary::-webkit-details-marker {
  display: none;
}

.user-usage-service-badge {
  display: inline-flex;
  min-width: 68px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--violet-100);
  color: var(--violet-600);
  font-size: 7px;
  font-weight: 780;
}

.user-usage-activity--nailmuse .user-usage-service-badge {
  background: #fae9ef;
  color: #a44767;
}

.user-usage-activity--chat .user-usage-service-badge {
  background: #e6f2ff;
  color: #2d72b8;
}

.user-usage-activity-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.user-usage-activity-copy > span:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.user-usage-activity-copy strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-activity-copy small,
.user-usage-activity-meta {
  color: var(--slate-400);
  font-size: 7px;
}

.user-usage-activity-copy p {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-status {
  max-width: 130px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 7px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-status--completed,
.user-usage-status--front_ready {
  background: var(--green-100);
  color: var(--green-700);
}

.user-usage-status--failed,
.user-usage-status--input_rejected {
  background: var(--red-100);
  color: var(--red-700);
}

.user-usage-activity-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--slate-400);
}

.user-usage-activity-arrow .icon {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  transition: transform var(--ease);
}

.user-usage-activity[open] .user-usage-activity-arrow .icon {
  transform: rotate(-90deg);
}

.user-usage-activity-detail {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px 96px;
}

.user-usage-detail-loading,
.user-usage-detail-empty,
.user-usage-detail-error-message {
  padding: 13px;
  border-radius: 10px;
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 8px;
}

.user-usage-detail-error-message {
  background: var(--red-50);
  color: var(--red-700);
}

.user-usage-detail-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 11px;
}

.user-usage-detail-fields > div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.user-usage-detail-fields > div:nth-child(4n) {
  border-right: 0;
}

.user-usage-detail-fields dt {
  color: var(--slate-400);
  font-size: 7px;
}

.user-usage-detail-fields dd {
  overflow: hidden;
  margin-top: 3px;
  color: var(--slate-700);
  font-size: 8px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-detail-section {
  display: grid;
  gap: 8px;
}

.user-usage-detail-section h6 {
  color: var(--slate-700);
  font-size: 9px;
}

.user-usage-user-notes,
.user-usage-detail-error p {
  padding: 11px 12px;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 8px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.user-usage-detail-error p {
  border-color: #f1cbd3;
  background: var(--red-50);
  color: var(--red-700);
}

.user-usage-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.user-usage-media-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
  transition: border-color var(--ease), transform var(--ease);
}

.user-usage-media-card:hover {
  border-color: #b9c9ef;
  transform: translateY(-1px);
}

.user-usage-media-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--slate-100);
}

.user-usage-media-card > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 8px;
}

.user-usage-media-card strong {
  overflow: hidden;
  color: var(--slate-700);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-usage-media-card small {
  color: var(--slate-400);
  font-size: 6px;
}

.user-usage-prompt-list {
  display: grid;
  gap: 7px;
}

.user-usage-prompt {
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
}

.user-usage-prompt > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  list-style: none;
  cursor: pointer;
}

.user-usage-prompt > summary::-webkit-details-marker {
  display: none;
}

.user-usage-prompt > summary > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-usage-prompt > summary strong {
  color: var(--slate-700);
  font-size: 8px;
}

.user-usage-prompt > summary small {
  color: var(--slate-400);
  font-size: 7px;
}

.user-usage-prompt > summary .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  transform: rotate(90deg);
  color: var(--slate-400);
  transition: transform var(--ease);
}

.user-usage-prompt[open] > summary .icon {
  transform: rotate(-90deg);
}

.user-usage-prompt > div {
  display: grid;
  justify-items: end;
  gap: 7px;
  padding: 0 11px 11px;
}

.user-usage-prompt pre {
  width: 100%;
  max-height: 290px;
  overflow: auto;
  padding: 12px;
  border-radius: 9px;
  background: #101a2b;
  color: #dbe5f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.user-usage-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--slate-400);
  text-align: center;
}

.user-usage-empty .icon {
  width: 26px;
  height: 26px;
}

.user-usage-empty strong {
  color: var(--slate-600);
  font-size: 10px;
}

.user-usage-empty p {
  font-size: 8px;
}

.user-usage-footer > span {
  color: var(--slate-500);
  font-size: 8px;
}

.user-usage-footer > div {
  display: flex;
  gap: 8px;
}

.user-usage-footer .button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 8px;
}

.confirmation-icon--blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.configuration-list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.configuration-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slate-500);
  font-size: 11px;
}

.configuration-list .icon {
  width: 16px;
  height: 16px;
  color: var(--slate-400);
}

.configuration-list strong {
  color: var(--slate-800);
  font-size: 11px;
  font-weight: 660;
  text-align: right;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: flex;
  width: min(340px, calc(100vw - 40px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #cdd9e7;
  border-radius: 12px;
  background: var(--navy-900);
  color: #edf3fa;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  animation: toast-in 180ms ease both;
}

.toast::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fd9ae;
  content: "";
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.login-page {
  min-height: 100vh;
  background: var(--slate-50);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(430px, 0.92fr) minmax(520px, 1.08fr);
}

.login-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 70px);
  background:
    radial-gradient(circle at 18% 18%, rgba(78, 118, 229, 0.25), transparent 28%),
    radial-gradient(circle at 100% 75%, rgba(22, 139, 125, 0.12), transparent 28%),
    var(--navy-950);
  color: var(--white);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.login-visual::before {
  right: -250px;
  bottom: -210px;
  width: 650px;
  height: 650px;
}

.login-visual::after {
  right: -115px;
  bottom: -75px;
  width: 380px;
  height: 380px;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark--light {
  border-color: rgba(255, 255, 255, 0.17);
}

.login-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.login-brand strong {
  font-size: 16px;
  font-weight: 720;
}

.login-brand small {
  color: #71859e;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-message {
  position: relative;
  z-index: 1;
  max-width: 570px;
}

.login-kicker {
  display: block;
  margin-bottom: 18px;
  color: #829ff4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-message h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.login-message p {
  max-width: 510px;
  margin-top: 22px;
  color: #8fa2b9;
  font-size: 14px;
  line-height: 1.75;
}

.login-trust-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #7589a2;
  font-size: 10px;
}

.login-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.login-trust-row .icon {
  width: 15px;
  height: 15px;
  color: #6f8fe9;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 42px;
  background:
    radial-gradient(circle at 100% 0%, rgba(65, 105, 225, 0.055), transparent 28%),
    var(--slate-50);
}

.login-card {
  width: min(100%, 430px);
  padding: 37px;
  border: 1px solid var(--slate-150);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(27, 39, 59, 0.09);
}

.login-card-header {
  margin-bottom: 26px;
}

.login-card-header h2 {
  color: var(--slate-950);
  font-size: 27px;
  font-weight: 740;
}

.login-card-header p {
  margin-top: 7px;
  color: var(--slate-500);
  font-size: 12px;
}

.login-card .alert {
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  background: #fbfcfe;
  color: var(--slate-950);
  font-size: 13px;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.field input:hover,
.field select:hover {
  border-color: #c5cfdd;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: var(--focus-ring);
  outline: none;
}

.password-policy-guidance {
  padding: 9px 11px;
  border: 1px solid #dde4f1;
  border-radius: 9px;
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.5;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 47px;
}

.password-toggle {
  position: absolute;
  top: 3px;
  right: 4px;
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.login-form .button {
  min-height: 47px;
  margin-top: 5px;
}

.login-form .button .icon {
  width: 17px;
  height: 17px;
  margin-left: auto;
}

.login-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-100);
  color: var(--slate-400);
}

.login-security-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--slate-500);
}

.login-security-note p {
  font-size: 9px;
  line-height: 1.55;
}

.login-footer {
  margin-top: 19px;
  color: var(--slate-400);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.login-mobile-brand {
  display: none;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(65, 105, 225, 0.08), transparent 30%),
    var(--slate-50);
}

.error-card {
  width: min(100%, 500px);
  padding: 44px;
  border: 1px solid var(--slate-150);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-brand {
  justify-content: center;
  margin-bottom: 32px;
}

.error-brand .brand-copy {
  color: var(--slate-950);
}

.error-brand .brand-copy span {
  color: var(--slate-500);
}

.error-code {
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-card h1 {
  margin-top: 8px;
  color: var(--slate-950);
  font-size: 28px;
}

.error-card p {
  margin: 9px 0 25px;
  color: var(--slate-500);
  font-size: 12px;
}

.pixora-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #35214a;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 5%, rgba(184, 78, 207, 0.22), transparent 32%),
    radial-gradient(circle at 15% 100%, rgba(65, 105, 225, 0.18), transparent 30%),
    var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.pixora-hero > div:first-child {
  padding: 30px;
}

.pixora-hero-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #d38bed;
}

.pixora-hero .section-kicker {
  color: #9a84d8;
}

.pixora-hero h3 {
  max-width: 690px;
  font-size: 27px;
  font-weight: 730;
  line-height: 1.2;
}

.pixora-hero p {
  max-width: 730px;
  margin-top: 10px;
  color: #94a4b9;
  font-size: 11px;
  line-height: 1.65;
}

.pixora-hero-facts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.pixora-hero-facts span {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: #92a3b8;
  font-size: 10px;
}

.pixora-hero-facts b {
  min-width: 32px;
  color: #d6c2ff;
  font-size: 18px;
}

.pixora-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pixora-stage {
  overflow: hidden;
}

.pixora-stage--upload.is-job-locked .pixora-dropzone {
  pointer-events: none;
  opacity: 0.68;
  filter: saturate(0.8);
}

.pixora-workflow-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-150);
  background: linear-gradient(90deg, #fbfcff, #f7f9fd);
}

.pixora-workflow-mode {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--slate-150);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.pixora-workflow-mode:hover {
  transform: translateY(-1px);
  border-color: #b9c9f0;
}

.pixora-workflow-mode.is-selected,
.pixora-workflow-mode:has(input:checked) {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.pixora-workflow-mode input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--blue-600);
}

.pixora-workflow-mode > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.pixora-workflow-mode strong {
  color: var(--slate-800);
  font-size: 10px;
}

.pixora-workflow-mode small {
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.45;
}

.pixora-workflow-mode b {
  align-self: flex-start;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 7px;
  font-weight: 750;
}

[data-pixora-instruction-section][hidden],
[data-pixora-notes-field][hidden],
[data-pixora-model-settings][hidden],
[data-pixora-size-setting][hidden],
[data-pixora-quality-setting][hidden] {
  display: none;
}

[data-pixora-autopilot-overview][hidden] {
  display: none;
}

[data-generate-prompt][hidden],
[data-use-prompt][hidden] {
  display: none;
}

.pixora-source-lock {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-top: 1px solid #d8e0f2;
  background: linear-gradient(90deg, var(--blue-50), #faf8ff);
}

.pixora-source-lock[hidden] {
  display: none;
}

.pixora-source-lock > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.pixora-source-lock > div {
  min-width: 0;
  flex: 1;
}

.pixora-source-lock strong {
  color: var(--slate-800);
  font-size: 10px;
}

.pixora-source-lock p {
  margin-top: 2px;
  color: var(--slate-500);
  font-size: 8px;
}

.pixora-step {
  display: inline-flex;
  width: 28px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: 7px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.pixora-stage-actions,
.pixora-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pixora-job-identity,
.pixora-source-bound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--slate-150);
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-500);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.pixora-source-bound .icon {
  width: 12px;
  height: 12px;
}

.pixora-new-edit-button,
.pixora-delete-button,
.pixora-job-delete,
.pixora-batch-delete {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 680;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.pixora-new-edit-button {
  border: 1px solid #d4dff7;
  background: var(--blue-50);
  color: var(--blue-700);
}

.pixora-new-edit-button:hover {
  border-color: #b5c7f5;
  background: var(--blue-100);
}

.pixora-delete-button,
.pixora-job-delete,
.pixora-batch-delete {
  border: 1px solid #f0cbd1;
  background: #fff8f9;
  color: var(--red-700);
}

.pixora-delete-button:hover,
.pixora-job-delete:hover:not(:disabled),
.pixora-batch-delete:hover:not(:disabled) {
  border-color: #eaaeba;
  background: var(--red-100);
}

.pixora-job-delete:disabled,
.pixora-batch-delete:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pixora-new-edit-button .icon,
.pixora-delete-button .icon,
.pixora-job-delete .icon,
.pixora-batch-delete .icon {
  width: 13px;
  height: 13px;
}

.pixora-upload-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  min-height: 430px;
}

.pixora-dropzone {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
  border-right: 1px solid var(--slate-150);
  background:
    radial-gradient(circle at 50% 42%, rgba(65, 105, 225, 0.08), transparent 38%),
    #fafbfe;
  cursor: pointer;
  text-align: center;
}

.pixora-dropzone.is-dragging {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 2px var(--blue-500);
}

.pixora-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pixora-drop-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid #d8e1f8;
  border-radius: 20px;
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}

.pixora-drop-icon .icon {
  width: 25px;
  height: 25px;
}

.pixora-dropzone strong {
  color: var(--slate-800);
  font-size: 15px;
}

.pixora-dropzone p {
  margin-top: 5px;
  color: var(--slate-400);
  font-size: 9px;
}

.pixora-dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef1f6;
}

.pixora-dropzone img[hidden],
.pixora-change-image[hidden] {
  display: none;
}

.pixora-change-image {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  background: rgba(13, 24, 41, 0.8);
  color: var(--white);
  cursor: pointer;
  font-size: 9px;
  backdrop-filter: blur(10px);
}

.pixora-direction-panel {
  padding: 24px;
}

.pixora-autopilot-overview {
  display: flex;
  min-height: 382px;
  flex-direction: column;
  gap: 13px;
}

.pixora-autopilot-overview-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.pixora-autopilot-overview-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(145deg, #7295f1, #6646c9);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(65, 78, 180, 0.24);
}

.pixora-autopilot-overview-mark .icon {
  width: 22px;
  height: 22px;
}

.pixora-autopilot-overview-heading h4 {
  margin-top: 2px;
  color: var(--slate-900);
  font-size: 16px;
}

.pixora-autopilot-overview-heading p {
  max-width: 470px;
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.5;
}

.pixora-autopilot-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d5def8;
  border-radius: 999px;
  background: #f4f7ff;
  color: var(--blue-700);
  font-size: 7px;
  font-weight: 750;
  white-space: nowrap;
}

.pixora-autopilot-live > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4c72dc;
  box-shadow: 0 0 0 4px rgba(76, 114, 220, 0.12);
}

.pixora-autopilot-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pixora-autopilot-flow article {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 30px 10px 11px;
  border: 1px solid #dfe5f3;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 255, 0.95));
  box-shadow: 0 5px 14px rgba(25, 41, 78, 0.045);
}

.pixora-autopilot-flow article > span {
  position: absolute;
  top: 7px;
  right: 8px;
  color: #aab6ce;
  font-size: 7px;
  font-weight: 800;
}

.pixora-autopilot-flow article > .icon {
  width: 27px;
  height: 27px;
  padding: 6px;
  border-radius: 9px;
  background: #eaf0ff;
  color: var(--blue-700);
}

.pixora-autopilot-flow article div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pixora-autopilot-flow article strong {
  color: var(--slate-800);
  font-size: 9px;
}

.pixora-autopilot-flow article small {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 7px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixora-autopilot-decides {
  padding: 10px 11px;
  border: 1px solid #d8e1f7;
  border-radius: 11px;
  background: linear-gradient(90deg, #f6f8ff, #fbf9ff);
}

.pixora-autopilot-decides > strong {
  color: var(--slate-500);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pixora-autopilot-decides > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.pixora-autopilot-decides span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 7px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #dfe5f3;
}

.pixora-autopilot-guardrail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #dce8df;
  border-radius: 11px;
  background: #f7fbf8;
}

.pixora-autopilot-guardrail > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e4f3e8;
  color: #2f7a49;
}

.pixora-autopilot-guardrail strong {
  color: #285b3a;
  font-size: 8px;
}

.pixora-autopilot-guardrail p {
  margin-top: 2px;
  color: #557060;
  font-size: 7px;
  line-height: 1.45;
}

.pixora-autopilot-next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 750;
}

.pixora-autopilot-next .icon {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
}

.pixora-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.pixora-section-heading h4 {
  color: var(--slate-900);
  font-size: 16px;
}

.pixora-preset-grid {
  display: grid;
  max-height: min(380px, 60vh);
  margin: -2px;
  padding: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pixora-preset-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.pixora-preset-card {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--slate-150);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.pixora-preset-card:hover {
  border-color: #bdcae5;
  transform: translateY(-1px);
}

.pixora-preset-card:has(input:checked) {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.08);
}

.pixora-preset-card input,
.pixora-model-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pixora-preset-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--violet-100);
  color: var(--violet-600);
}

.pixora-preset-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pixora-preset-card strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixora-preset-card small {
  color: var(--slate-400);
  font-size: 8px;
}

.pixora-notes-field {
  margin-top: 15px;
}

.pixora-notes-field > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pixora-notes-field small {
  color: var(--slate-400);
  font-size: 8px;
}

.pixora-character-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.field textarea,
.instruction-form textarea {
  width: 100%;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  background: #fbfcfe;
  color: var(--slate-800);
  font: inherit;
  font-size: 11px;
  line-height: 1.55;
}

.field textarea:focus,
.instruction-form textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: var(--focus-ring);
  outline: none;
}

.pixora-primary-action {
  width: 100%;
  margin-top: 13px;
}

.pixora-stage[hidden],
.pixora-processing[hidden],
.pixora-results-stage[hidden] {
  display: none;
}

.pixora-prompt-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
}

.pixora-prompt-layout > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  max-height: 470px;
  object-fit: contain;
  border-right: 1px solid var(--slate-150);
  background: #eef1f5;
}

.pixora-prompt-layout > img[role="button"] {
  cursor: zoom-in;
}

.pixora-prompt-layout > img[role="button"]:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: -3px;
}

.pixora-prompt-layout > div {
  padding: 22px;
}

.pixora-analysis-card {
  margin-bottom: 17px;
  padding: 15px;
  border: 1px solid #d7e1f7;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(65, 105, 225, 0.09), transparent 35%),
    #f8faff;
}

.pixora-analysis-card[hidden] {
  display: none;
}

.pixora-analysis-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pixora-analysis-heading h4 {
  margin-top: 2px;
  color: var(--slate-900);
  font-size: 14px;
}

.pixora-analysis-heading > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 750;
}

.pixora-analysis-card > p {
  margin-top: 9px;
  color: var(--slate-600);
  font-size: 9px;
  line-height: 1.6;
}

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

.pixora-analysis-details > div {
  padding: 9px 10px;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.pixora-analysis-details dt,
.pixora-analysis-tag-group > strong {
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pixora-analysis-details dd {
  margin-top: 3px;
  color: var(--slate-700);
  font-size: 8px;
  line-height: 1.5;
}

.pixora-autopilot-decision {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c9d8fa;
  border-radius: 11px;
  background: rgba(236, 242, 255, 0.72);
}

.pixora-autopilot-decision[hidden] {
  display: none;
}

.pixora-autopilot-decision > p {
  margin-top: 7px;
  color: var(--slate-600);
  font-size: 8px;
  line-height: 1.55;
}

.pixora-auto-settings-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.pixora-auto-settings-summary span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 7px;
  font-weight: 750;
}

.pixora-analysis-tag-group {
  margin-top: 11px;
}

.pixora-analysis-tag-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.pixora-analysis-tag {
  padding: 4px 7px;
  border: 1px solid #d7e1f7;
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 7px;
}

.pixora-analysis-tag--risk {
  border-color: #f1d7a8;
  background: #fffaf0;
  color: #8b5a16;
}

.pixora-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 13px;
}

.pixora-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.pixora-model-card {
  position: relative;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--slate-150);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.pixora-model-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pixora-model-card:has(input:checked) {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.pixora-model-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pixora-model-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.pixora-model-heading > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.pixora-model-heading strong {
  color: var(--slate-800);
  font-size: 12px;
}

.pixora-model-heading small {
  overflow: hidden;
  color: var(--slate-400);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixora-model-speed {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.pixora-model-card--slow .pixora-model-speed {
  background: var(--violet-100);
  color: var(--violet-600);
}

.pixora-model-description {
  display: block;
  margin-top: 13px;
  color: var(--slate-500);
  font-size: 9px;
  line-height: 1.5;
}

.pixora-model-description span {
  display: block;
  margin-top: 7px;
  color: var(--slate-400);
  font-size: 8px;
}

.pixora-generation-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 0 22px 22px;
}

.pixora-stage.is-autopilot .pixora-generation-controls {
  grid-template-columns: minmax(180px, 260px) auto;
  justify-content: start;
}

.pixora-generation-controls label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 680;
}

.pixora-generation-controls select,
.instruction-form select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-700);
  font-size: 10px;
}

.pixora-generation-controls + .form-feedback {
  display: block;
  padding: 0 22px 16px;
}

.pixora-processing {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid #d9dff6;
  border-radius: 15px;
  background: linear-gradient(120deg, var(--blue-50), #faf7ff);
}

.pixora-job-error {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border: 1px solid #f1c8d0;
  border-radius: 15px;
  background: #fff7f8;
}

.pixora-job-error[hidden] {
  display: none;
}

.pixora-job-error > span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--red-100);
  color: var(--red-700);
}

.pixora-job-error > div {
  min-width: 0;
  flex: 1;
}

.pixora-job-error strong {
  color: var(--red-700);
  font-size: 11px;
}

.pixora-job-error p {
  margin-top: 3px;
  color: var(--slate-600);
  font-size: 9px;
}

.pixora-processing-orb {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--violet-100);
  color: var(--violet-600);
}

.pixora-processing > div {
  min-width: 0;
  flex: 1;
}

.pixora-processing strong {
  color: var(--slate-800);
  font-size: 12px;
}

.pixora-processing p {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 9px;
}

.pixora-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #d5dcf0;
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: pixora-spin 800ms linear infinite;
}

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

.pixora-results-stage {
  overflow: hidden;
}

.pixora-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.pixora-result-card {
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 15px;
  background: var(--white);
}

.pixora-result-preview {
  position: relative;
  overflow: hidden;
  background: #edf0f5;
}

.pixora-result-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #edf0f5;
  cursor: zoom-in;
  transition: transform var(--ease), filter var(--ease);
}

.pixora-result-preview:hover img {
  transform: scale(1.012);
  filter: brightness(0.94);
}

.pixora-result-preview img:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: -3px;
}

.pixora-result-view-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.76);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(7px);
}

.pixora-result-actions {
  display: flex;
  gap: 7px;
  padding: 10px;
}

.pixora-result-actions .button {
  min-height: 36px;
  flex: 1;
  font-size: 9px;
}

.pixora-email-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--slate-150);
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 9px;
}

.pixora-email-note span {
  flex: 1;
}

.pixora-email-note button {
  padding: 6px 9px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-400);
}

.pixora-image-viewer {
  box-sizing: border-box;
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: #0a1220;
  color: var(--white);
  box-shadow: 0 30px 80px rgba(3, 8, 18, 0.54);
}

.pixora-image-viewer.is-maximized {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.pixora-image-viewer::backdrop {
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(6px);
}

.pixora-image-viewer-shell {
  display: grid;
  max-height: calc(100vh - 34px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.pixora-image-viewer.is-maximized .pixora-image-viewer-shell {
  height: 100vh;
  height: 100dvh;
  max-height: none;
}

.pixora-image-viewer header,
.pixora-image-viewer footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(11, 21, 37, 0.96);
}

.pixora-image-viewer header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pixora-image-viewer footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pixora-image-viewer h3 {
  margin-top: 2px;
  font-size: 17px;
}

.pixora-image-viewer-header-actions,
.pixora-image-zoom-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pixora-image-zoom-controls {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.pixora-image-zoom-controls button,
.pixora-image-viewer-window-toggle,
.pixora-image-viewer-close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.pixora-image-zoom-controls button:hover,
.pixora-image-viewer-window-toggle:hover,
.pixora-image-viewer-close:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.pixora-image-viewer-window-toggle {
  position: relative;
}

.pixora-image-viewer-window-toggle > span {
  width: 15px;
  height: 13px;
  border: 1.5px solid currentcolor;
  border-radius: 2px;
}

.pixora-image-viewer-window-toggle[aria-pressed="true"] > span {
  width: 13px;
  height: 11px;
  box-shadow: -4px 4px 0 -2px #0f1c30, -4px 4px 0 -0.5px currentcolor;
  transform: translate(2px, -2px);
}

.pixora-image-zoom-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pixora-image-zoom-controls output {
  width: 48px;
  color: #d9e4f4;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: center;
}

.pixora-image-zoom-controls .pixora-image-fit-button {
  width: auto;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 750;
}

.pixora-image-viewer-close {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 25px;
}

.pixora-image-viewer-stage {
  position: relative;
  min-height: min(68vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  cursor: grab;
  background:
    linear-gradient(45deg, #111b2a 25%, transparent 25%),
    linear-gradient(-45deg, #111b2a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111b2a 75%),
    linear-gradient(-45deg, transparent 75%, #111b2a 75%),
    #0c1523;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.pixora-image-viewer-stage.is-dragging {
  cursor: grabbing;
}

.pixora-image-viewer-surface {
  display: grid;
  width: max-content;
  min-width: 100%;
  height: max-content;
  min-height: 100%;
  box-sizing: border-box;
  place-items: center;
  padding: 18px;
}

.pixora-image-viewer-canvas,
.pixora-image-viewer-surface > span {
  grid-area: 1 / 1;
}

.pixora-image-viewer-canvas {
  flex: none;
}

.pixora-image-viewer-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pixora-image-viewer-surface [hidden],
.pixora-image-viewer footer a[hidden] {
  display: none;
}

.pixora-image-viewer-surface > span {
  color: #b8c6dc;
  font-size: 11px;
}

.pixora-image-viewer footer > span {
  color: #b8c6dc;
  font-size: 9px;
}

.pixora-history-panel {
  overflow: hidden;
}

.pixora-history-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pixora-select-all {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate-500);
  cursor: pointer;
  font-size: 8px;
  font-weight: 650;
}

.pixora-select-all input,
.pixora-job-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-600);
}

.pixora-batch-delete b {
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(180, 35, 53, 0.1);
  font-size: 8px;
}

.pixora-history-toolbar {
  display: grid;
  grid-template-columns:
    minmax(230px, 1fr)
    repeat(3, minmax(125px, auto))
    auto
    auto;
  align-items: end;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-150);
  background: linear-gradient(90deg, #fbfcff, #f8f9fd);
}

.pixora-history-search {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.pixora-history-search .icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--slate-400);
  pointer-events: none;
}

.pixora-history-search input,
.pixora-history-filter select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-700);
  font-size: 9px;
}

.pixora-history-search input {
  padding: 0 12px 0 34px;
}

.pixora-history-search input::placeholder {
  color: var(--slate-400);
}

.pixora-history-search input:focus,
.pixora-history-filter select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
  outline: none;
}

.pixora-history-filter {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--slate-500);
  font-size: 7px;
  font-weight: 700;
}

.pixora-history-filter select {
  min-width: 125px;
  padding: 0 28px 0 10px;
}

.pixora-history-reset {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-600);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.pixora-history-reset:hover {
  border-color: #b9c9ef;
  background: var(--blue-50);
  color: var(--blue-700);
}

.pixora-history-count {
  align-self: center;
  color: var(--slate-400);
  font-size: 8px;
  white-space: nowrap;
}

.pixora-job-list {
  display: grid;
  gap: 10px;
  padding: 12px 18px 16px;
}

.pixora-job-group {
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 12px;
  background: var(--white);
}

.pixora-job-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  list-style: none;
  background: linear-gradient(90deg, #f9faff, #fcfcfe);
  cursor: pointer;
}

.pixora-job-group > summary::-webkit-details-marker {
  display: none;
}

.pixora-job-group > summary > span:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.pixora-job-group > summary > span:first-child .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.pixora-job-group > summary strong {
  overflow: hidden;
  color: var(--slate-700);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixora-job-group > summary > span:nth-child(2) {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 7px;
  font-weight: 700;
}

.pixora-job-group-arrow {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--slate-400);
}

.pixora-job-group-arrow .icon {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
  transition: transform var(--ease);
}

.pixora-job-group[open] .pixora-job-group-arrow .icon {
  transform: rotate(-90deg);
}

.pixora-job-group-list {
  padding: 0 12px;
  border-top: 1px solid var(--slate-100);
}

.pixora-job-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 11px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--slate-100);
}

.pixora-job-row.is-active-job {
  margin-inline: -10px;
  padding-inline: 14px;
  border-radius: 11px;
  background: var(--blue-50);
}

.pixora-job-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pixora-job-check input:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.pixora-job-row:last-child {
  border-bottom: 0;
}

.pixora-job-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pixora-job-copy strong {
  overflow: hidden;
  color: var(--slate-700);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixora-job-copy small {
  color: var(--slate-400);
  font-size: 8px;
}

.pixora-job-open {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d4dff7;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  cursor: pointer;
  font-size: 9px;
  font-weight: 680;
}

.pixora-job-open:hover {
  border-color: #b5c7f5;
  background: var(--blue-100);
}

.pixora-delete-dialog .confirmation-icon {
  background: var(--red-100);
  color: var(--red-700);
}

.instruction-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 18px;
}

.instruction-create-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  overflow: hidden;
}

.instruction-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
}

.instruction-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.instruction-card {
  overflow: hidden;
}

.instruction-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.instruction-card-heading .section-kicker {
  margin-bottom: 1px;
}

.instruction-card-heading h3 {
  color: var(--slate-800);
  font-size: 14px;
}

.instruction-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.azure-cost-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.azure-cost-hero {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  border: 1px solid rgba(77, 139, 224, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 18%, rgba(54, 180, 255, 0.22), transparent 30%),
    radial-gradient(circle at 82% 7%, rgba(92, 99, 223, 0.28), transparent 35%),
    linear-gradient(135deg, #071b33, #102d56 52%, #173667);
  color: var(--white);
  box-shadow: 0 18px 45px rgba(16, 45, 86, 0.2);
}

.azure-cost-hero > div:first-child {
  padding: 34px;
}

.azure-cost-hero-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(80, 175, 255, 0.18);
  color: #8ed5ff;
  backdrop-filter: blur(8px);
}

.azure-cost-hero-mark .icon {
  width: 25px;
  height: 25px;
}

.azure-cost-hero h3 {
  max-width: 640px;
  margin-top: 5px;
  font-size: 29px;
  line-height: 1.12;
}

.azure-cost-hero p {
  max-width: 670px;
  margin-top: 11px;
  color: #bdcce2;
  font-size: 11px;
  line-height: 1.65;
}

.azure-cost-hero .section-kicker {
  color: #81cfff;
}

.azure-cost-hero-meta {
  display: grid;
  align-content: center;
  gap: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 19, 39, 0.24);
}

.azure-cost-hero-meta span {
  display: grid;
  gap: 4px;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.azure-cost-hero-meta span:last-child {
  border-bottom: 0;
}

.azure-cost-hero-meta small {
  color: #8197b7;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.azure-cost-hero-meta strong {
  color: #e7f3ff;
  font-size: 12px;
}

.azure-cost-state {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
}

.azure-cost-state[hidden],
[data-azure-cost-content][hidden],
.azure-cost-notice[hidden] {
  display: none;
}

.azure-cost-state-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.azure-cost-state > div {
  min-width: 0;
  flex: 1;
}

.azure-cost-state h3 {
  margin-top: 2px;
  color: var(--slate-900);
  font-size: 16px;
}

.azure-cost-state p {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 9px;
  line-height: 1.55;
}

.azure-cost-state--warning {
  align-items: flex-start;
  border-color: #edd8ad;
  background: #fffaf0;
}

.azure-cost-state--warning .azure-cost-state-icon {
  background: #fff0cc;
  color: #9a6517;
}

.azure-cost-state code {
  display: block;
  max-width: 100%;
  margin-top: 13px;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid #ead7b4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  color: #6f5121;
  font-size: 8px;
  white-space: nowrap;
}

.azure-cost-state small {
  display: block;
  margin-top: 8px;
  color: #806a43;
  font-size: 8px;
  line-height: 1.5;
}

.azure-cost-config-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.azure-cost-config-status span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5e9d2;
  color: #8b6b35;
  font-size: 7px;
  font-weight: 750;
}

.azure-cost-config-status span.is-ready {
  background: #e4f3e8;
  color: #2f7a49;
}

.azure-cost-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid #d7e2f6;
  border-radius: 11px;
  background: #f5f8ff;
  color: var(--slate-600);
  font-size: 8px;
}

.azure-cost-notice .icon {
  color: var(--blue-700);
}

.azure-cost-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.azure-cost-summary-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--slate-150);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.azure-cost-summary-card > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf4ff;
  color: #0078d4;
}

.azure-cost-summary-card--primary {
  border-color: #bfdaf2;
  background: linear-gradient(145deg, #f6fbff, #fff);
}

.azure-cost-summary-card > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.azure-cost-summary-card small,
.azure-cost-insight-grid small {
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.azure-cost-summary-card strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azure-cost-summary-card p {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azure-cost-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 15px;
  background: var(--white);
}

.azure-cost-insight-grid article {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 14px 17px;
  border-right: 1px solid var(--slate-150);
}

.azure-cost-insight-grid article:last-child {
  border-right: 0;
}

.azure-cost-insight-grid strong {
  overflow: hidden;
  color: var(--slate-800);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azure-cost-insight-grid span {
  overflow: hidden;
  color: var(--slate-500);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azure-cost-dashboard-grid,
.azure-cost-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.azure-cost-pie-panel,
.azure-cost-budget-panel,
.azure-cost-table-panel,
.azure-cost-calendar-panel {
  overflow: hidden;
}

.azure-cost-period-toggle {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #d6e0f2;
  border-radius: 9px;
  background: #f7f9fe;
  color: var(--slate-600);
  cursor: pointer;
  font-size: 8px;
  font-weight: 750;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.azure-cost-period-toggle:hover {
  border-color: #aac4eb;
  background: #eef4ff;
  color: var(--blue-700);
}

.azure-cost-period-toggle[aria-pressed="true"] {
  border-color: #9fc0ef;
  background: var(--blue-100);
  color: var(--blue-700);
}

.azure-cost-period-toggle .icon {
  width: 13px;
  height: 13px;
}

.azure-cost-period-toggle-arrow {
  transition: transform var(--ease);
}

.azure-cost-period-toggle[aria-pressed="true"]
  .azure-cost-period-toggle-arrow {
  transform: rotate(180deg);
}

.azure-cost-pie-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 12px;
  padding: 18px 22px 22px;
  transition: opacity 130ms ease, transform 130ms ease;
}

.azure-cost-pie-layout.is-switching {
  opacity: 0.35;
  transform: rotateY(5deg) scale(0.99);
}

.azure-cost-pie-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.azure-cost-pie-wrap canvas {
  width: min(100%, 270px);
  height: auto;
}

.azure-cost-pie-wrap > div {
  position: absolute;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(26, 44, 77, 0.12);
  pointer-events: none;
}

.azure-cost-pie-wrap strong {
  max-width: 92px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azure-cost-pie-wrap span {
  color: var(--slate-400);
  font-size: 7px;
  text-transform: uppercase;
}

.azure-cost-legend {
  display: grid;
  gap: 8px;
}

.azure-cost-legend-item {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.azure-cost-legend-item > i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.azure-cost-color-0 { background: #0078d4; }
.azure-cost-color-1 { background: #6655d8; }
.azure-cost-color-2 { background: #26a6a1; }
.azure-cost-color-3 { background: #e28439; }
.azure-cost-color-4 { background: #cf4e83; }
.azure-cost-color-5 { background: #5d8f37; }
.azure-cost-color-6 { background: #8796ab; }
.azure-cost-color-7 { background: #d3a72f; }

.azure-cost-legend-item span {
  overflow: hidden;
  color: var(--slate-600);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.azure-cost-legend-item strong {
  color: var(--slate-800);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.azure-cost-budget-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 25px;
}

.azure-cost-budget-ring {
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;
  align-content: center;
  border: 13px solid #e8edf5;
  border-radius: 50%;
  background: var(--white);
}

.azure-cost-budget-ring.level-1 { border-color: #b9dff8; }
.azure-cost-budget-ring.level-2 { border-color: #7fc4ef; }
.azure-cost-budget-ring.level-3 { border-color: #4b9fd8; }
.azure-cost-budget-ring.level-4 { border-color: #e1a342; }
.azure-cost-budget-ring.level-5 { border-color: #d95f6b; }

.azure-cost-budget-ring strong {
  color: var(--slate-900);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.azure-cost-budget-ring span {
  color: var(--slate-400);
  font-size: 8px;
  text-transform: uppercase;
}

.azure-cost-budget-body h4 {
  color: var(--slate-900);
  font-size: 16px;
}

.azure-cost-budget-body p {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.5;
}

.azure-cost-budget-body dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.azure-cost-budget-body dl > div {
  padding: 9px;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: var(--slate-50);
}

.azure-cost-budget-body dt {
  color: var(--slate-400);
  font-size: 7px;
}

.azure-cost-budget-body dd {
  margin-top: 3px;
  color: var(--slate-800);
  font-size: 9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.azure-cost-calendar-scale {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-400);
  font-size: 7px;
}

.azure-cost-calendar-scale i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.azure-cost-calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px 23px;
}

.azure-cost-month {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--slate-150);
  border-radius: 12px;
  background: #fbfcfe;
}

.azure-cost-month > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.azure-cost-month h4 {
  color: var(--slate-700);
  font-size: 9px;
}

.azure-cost-month header span {
  color: var(--slate-400);
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.azure-cost-month-weekdays,
.azure-cost-month-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.azure-cost-month-weekdays {
  margin-bottom: 3px;
}

.azure-cost-month-weekdays span {
  color: var(--slate-400);
  font-size: 6px;
  text-align: center;
}

.azure-cost-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 3px;
  background: #edf1f6;
  cursor: default;
}

.azure-cost-day.is-empty {
  visibility: hidden;
}

.azure-cost-day.is-future {
  background: #f5f7fa;
  opacity: 0.55;
}

.azure-cost-day.level-0,
.azure-cost-calendar-scale .level-0 { background: #e9eef5; }
.azure-cost-day.level-1,
.azure-cost-calendar-scale .level-1 { background: #d7ebfa; }
.azure-cost-day.level-2,
.azure-cost-calendar-scale .level-2 { background: #a8d7f5; }
.azure-cost-day.level-3,
.azure-cost-calendar-scale .level-3 { background: #6eb9e9; }
.azure-cost-day.level-4,
.azure-cost-calendar-scale .level-4 { background: #318fc9; }
.azure-cost-day.level-5,
.azure-cost-calendar-scale .level-5 { background: #075a9a; }

.azure-cost-breakdown-list {
  display: grid;
}

.azure-cost-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.55fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-top: 1px solid var(--slate-100);
}

.azure-cost-breakdown-row:first-child {
  border-top: 0;
}

.azure-cost-breakdown-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

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

.azure-cost-breakdown-copy strong {
  color: var(--slate-700);
  font-size: 9px;
}

.azure-cost-breakdown-copy small {
  color: var(--slate-400);
  font-size: 7px;
}

.azure-cost-breakdown-row progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8edf4;
}

.azure-cost-breakdown-row progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e8edf4;
}

.azure-cost-breakdown-row progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #55b6ed, #0078d4);
}

.azure-cost-breakdown-row progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #55b6ed, #0078d4);
}

.azure-cost-breakdown-value {
  display: grid;
  justify-items: end;
  gap: 1px;
  color: var(--slate-800);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.azure-cost-breakdown-value small {
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 600;
}

.azure-cost-empty {
  padding: 24px;
  color: var(--slate-400);
  font-size: 9px;
  text-align: center;
}

.azure-cost-estimate-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 22px;
  overflow: hidden;
  border-color: #cfdaf3;
  background:
    radial-gradient(circle at 90% 10%, rgba(65, 105, 225, 0.12), transparent 35%),
    linear-gradient(120deg, #f7f9ff, #fff);
}

.azure-cost-estimate-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #5279de, #7047ca);
  color: var(--white);
}

.azure-cost-estimate-panel h3 {
  margin-top: 2px;
  color: var(--slate-900);
  font-size: 15px;
}

.azure-cost-estimate-panel p {
  max-width: 720px;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 8px;
  line-height: 1.55;
}

.azure-cost-estimate-value {
  display: grid;
  justify-items: end;
  min-width: 155px;
}

.azure-cost-estimate-value strong {
  color: var(--blue-700);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.azure-cost-estimate-value span {
  color: var(--slate-500);
  font-size: 8px;
  font-weight: 700;
}

.azure-cost-estimate-value small {
  margin-top: 4px;
  color: var(--slate-400);
  font-size: 7px;
}

.azure-cost-data-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 0 3px;
  color: var(--slate-400);
  font-size: 7px;
}

@media (max-width: 1100px) {
  .azure-cost-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .azure-cost-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .azure-cost-pie-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .azure-cost-page-heading {
    align-items: stretch;
  }
}

/* NailMuse */

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

  .nav-badge--nail {
    border-color: rgba(235, 170, 190, 0.22);
    background: rgba(174, 71, 104, 0.2);
    color: #f0b7c8;
  }

  .nailmuse-heading h2 {
    color: #381c2a;
  }

  .nailmuse-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
    gap: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #3b2632;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(circle at 89% -20%, rgba(229, 161, 182, 0.3), transparent 37%),
      radial-gradient(circle at 0% 120%, rgba(154, 92, 119, 0.18), transparent 37%),
      linear-gradient(125deg, #17121a 0%, #281a24 54%, #1c1720 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .nailmuse-hero::after {
    position: absolute;
    top: -70px;
    right: 26%;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    content: "";
  }

  .nailmuse-hero-copy {
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  .nailmuse-monogram {
    display: inline-flex;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(240, 175, 194, 0.18), rgba(255, 255, 255, 0.03));
    color: #f0b4c5;
    font-family: Georgia, serif;
    font-size: 17px;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  }

  .nailmuse-hero .section-kicker {
    color: #d99aaf;
  }

  .nailmuse-hero h3 {
    max-width: 650px;
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .nailmuse-hero p {
    max-width: 680px;
    margin-top: 11px;
    color: #b9aab3;
    font-size: 11px;
    line-height: 1.7;
  }

  .nailmuse-output-map {
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nailmuse-output-map article {
    position: relative;
    display: grid;
    min-height: 82px;
    align-content: center;
    padding: 14px 15px 14px 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
  }

  .nailmuse-output-map article.is-hero {
    border-color: rgba(227, 151, 175, 0.2);
    background: rgba(202, 117, 144, 0.11);
  }

  .nailmuse-output-map article.is-sheet {
    border-style: dashed;
  }

  .nailmuse-output-map article > span {
    position: absolute;
    top: 12px;
    left: 13px;
    color: #b97b91;
    font-family: Georgia, serif;
    font-size: 11px;
  }

  .nailmuse-output-map strong {
    color: #f7eef2;
    font-size: 10px;
  }

  .nailmuse-output-map small {
    margin-top: 2px;
    color: #8e8189;
    font-size: 8px;
  }

  .nailmuse-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nailmuse-creator,
  .nailmuse-results {
    overflow: hidden;
  }

  .nailmuse-step {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    float: left;
    margin-right: 11px;
    border: 1px solid #ead5dc;
    border-radius: 9px;
    background: #fbf2f5;
    color: #9e4865;
    font-size: 9px;
    font-weight: 800;
  }

  .nailmuse-source-grid {
    display: grid;
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(230px, 0.8fr)
      minmax(230px, 0.8fr);
    min-height: 330px;
    border-bottom: 1px solid var(--slate-150);
  }

  .nailmuse-dropzone {
    position: relative;
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 35px;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 40%, rgba(193, 110, 136, 0.09), transparent 33%),
      #fcfafb;
    text-align: center;
    cursor: pointer;
    transition: background var(--ease), box-shadow var(--ease);
  }

  .nailmuse-dropzone--hand {
    border-right: 1px solid var(--slate-150);
  }

  .nailmuse-dropzone--outfit,
  .nailmuse-dropzone--inspiration {
    background:
      radial-gradient(circle at 50% 40%, rgba(115, 101, 151, 0.08), transparent 34%),
      #fafafd;
  }

  .nailmuse-dropzone--outfit {
    border-right: 1px solid var(--slate-150);
  }

  .nailmuse-dropzone--inspiration {
    background:
      radial-gradient(circle at 50% 40%, rgba(181, 83, 116, 0.09), transparent 34%),
      #fdf9fa;
  }

  .nailmuse-dropzone.is-dragging {
    z-index: 2;
    background: #fbf0f4;
    box-shadow: inset 0 0 0 2px #bd6b86;
  }

  .nailmuse-dropzone > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .nailmuse-drop-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid #ead4dc;
    border-radius: 19px;
    background: var(--white);
    color: #9e4865;
    box-shadow: 0 10px 25px rgba(76, 34, 50, 0.08);
  }

  .nailmuse-dropzone--outfit .nailmuse-drop-icon {
    border-color: #ded8e8;
    color: #76698f;
  }

  .nailmuse-dropzone > strong {
    color: #38222b;
    font-size: 15px;
  }

  .nailmuse-dropzone > p {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 10px;
  }

  .nailmuse-dropzone > small {
    margin-top: 15px;
    color: var(--slate-400);
    font-size: 8px;
  }

  .nailmuse-source-tag {
    position: absolute;
    top: 17px;
    left: 17px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f4dce4;
    color: #8d3d59;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nailmuse-source-tag.is-optional {
    background: #ebe7f1;
    color: #706382;
  }

  .nailmuse-dropzone > img {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ebe8ea;
  }

  .nailmuse-dropzone > img[hidden],
  .nailmuse-source-actions[hidden] {
    display: none;
  }

  .nailmuse-dropzone.has-image::after {
    position: absolute;
    z-index: 4;
    inset: auto 0 0;
    height: 88px;
    background: linear-gradient(transparent, rgba(19, 12, 16, 0.72));
    content: "";
    pointer-events: none;
  }

  .nailmuse-dropzone > button,
  .nailmuse-source-actions {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 14px;
  }

  .nailmuse-dropzone > button,
  .nailmuse-source-actions button {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;
    background: rgba(24, 15, 20, 0.76);
    color: var(--white);
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
  }

  .nailmuse-source-actions {
    display: flex;
    gap: 7px;
  }

  .nailmuse-source-actions button:last-child {
    background: rgba(133, 32, 56, 0.82);
  }

  .nailmuse-design-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nailmuse-draft-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 20px;
    border-bottom: 1px solid #e8dce1;
    background: #fff8fa;
    color: #9b4662;
  }

  .nailmuse-draft-note[hidden] {
    display: none;
  }

  .nailmuse-draft-note div {
    color: var(--slate-500);
    font-size: 8px;
  }

  .nailmuse-draft-note strong {
    color: #5f2f40;
    font-size: 9px;
  }

  .nailmuse-draft-note p {
    margin-top: 2px;
  }

  .nailmuse-dropzone.is-reused-source {
    cursor: default;
  }

  .nailmuse-control-group.is-reference-controlled {
    background: #f8f6f7;
    opacity: 0.68;
  }

  .nailmuse-control-group.is-reference-controlled
    .nailmuse-style-options {
    pointer-events: none;
  }

  .nailmuse-control-group {
    padding: 23px;
    border-right: 1px solid var(--slate-150);
    border-bottom: 1px solid var(--slate-150);
  }

  .nailmuse-control-group:nth-child(even),
  .nailmuse-control-group--wide {
    border-right: 0;
  }

  .nailmuse-control-group--wide {
    grid-column: 1 / -1;
  }

  .nailmuse-control-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
  }

  .nailmuse-control-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .nailmuse-control-heading > div > span {
    color: #b66c83;
    font-family: Georgia, serif;
    font-size: 9px;
  }

  .nailmuse-control-heading h4 {
    color: #3b2730;
    font-size: 12px;
  }

  .nailmuse-control-heading > small {
    color: var(--slate-400);
    font-size: 8px;
    text-align: right;
  }

  .nailmuse-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 3px;
    border: 1px solid var(--slate-150);
    border-radius: 12px;
    background: var(--slate-50);
  }

  .nailmuse-segmented input,
  .nailmuse-option-chips input,
  .nailmuse-style-options input,
  .nailmuse-quality-options input {
    position: absolute;
    opacity: 0;
  }

  .nailmuse-segmented span {
    display: block;
    padding: 8px 7px;
    border-radius: 9px;
    color: var(--slate-500);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
  }

  .nailmuse-segmented input:checked + span {
    background: var(--white);
    color: #913f5a;
    box-shadow: 0 3px 10px rgba(40, 23, 30, 0.08);
  }

  .nailmuse-palette-picker {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 15px;
  }

  .nailmuse-palette-picker[hidden] {
    display: none;
  }

  .nailmuse-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .nailmuse-swatches > button,
  .nailmuse-custom-color {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
  }

  .nailmuse-swatches > button span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  .nailmuse-swatch--1 span { background: #8e1537; }
  .nailmuse-swatch--2 span { background: #e8a3ad; }
  .nailmuse-swatch--3 span { background: #f0d5bd; }
  .nailmuse-swatch--4 span { background: #ef3340; }
  .nailmuse-swatch--5 span { background: #ee6c4d; }
  .nailmuse-swatch--6 span { background: #c9a227; }
  .nailmuse-swatch--7 span { background: #5f8d4e; }
  .nailmuse-swatch--8 span { background: #1d6a73; }
  .nailmuse-swatch--9 span { background: #3155a6; }
  .nailmuse-swatch--10 span { background: #7656a8; }
  .nailmuse-swatch--11 span { background: #2b2b2d; }
  .nailmuse-swatch--12 span { background: #f4f1ea; }

  .nailmuse-swatches > button.is-selected {
    border-color: #8d3e59;
    box-shadow: 0 0 0 2px #ecd0da;
  }

  .nailmuse-custom-color {
    position: relative;
    border-style: dashed;
    border-radius: 50%;
    color: #9e4865;
  }

  .nailmuse-custom-color input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .nailmuse-custom-color .icon {
    width: 13px;
    height: 13px;
  }

  .nailmuse-selected-colors {
    display: flex;
    min-width: 120px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nailmuse-selected-color {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border: 1px solid var(--slate-150);
    border-radius: 999px;
    background: var(--white);
    color: var(--slate-600);
    cursor: pointer;
  }

  .nailmuse-selected-color > canvas {
    width: 11px;
    height: 11px;
  }

  .nailmuse-selected-color b {
    font-size: 7px;
  }

  .nailmuse-selected-color i {
    color: var(--slate-400);
    font-size: 11px;
    font-style: normal;
  }

  .nailmuse-option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .nailmuse-option-chips span {
    display: block;
    padding: 7px 10px;
    border: 1px solid var(--slate-150);
    border-radius: 999px;
    background: var(--white);
    color: var(--slate-600);
    font-size: 8px;
    font-weight: 650;
    cursor: pointer;
  }

  .nailmuse-option-chips input:checked + span {
    border-color: #bd7188;
    background: #fcf0f4;
    color: #8c3b56;
  }

  .nailmuse-style-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nailmuse-style-options label > span {
    display: flex;
    min-height: 67px;
    justify-content: center;
    flex-direction: column;
    padding: 10px 12px;
    border: 1px solid var(--slate-150);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
  }

  .nailmuse-style-options label > span:hover {
    transform: translateY(-1px);
    border-color: #d6aabb;
  }

  .nailmuse-style-options b,
  .nailmuse-quality-options b {
    color: var(--slate-800);
    font-size: 9px;
  }

  .nailmuse-style-options small,
  .nailmuse-quality-options small {
    margin-top: 3px;
    color: var(--slate-400);
    font-size: 7px;
  }

  .nailmuse-style-options input:checked + span {
    border-color: #b75d7a;
    background: linear-gradient(145deg, #fff8fa, #fcedf2);
    box-shadow: 0 0 0 1px rgba(183, 93, 122, 0.1);
  }

  .nailmuse-style-options input:checked + span b {
    color: #8e3c58;
  }

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

  .nailmuse-context-grid .field {
    gap: 6px;
  }

  .nailmuse-quality-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .nailmuse-quality-options label > span {
    display: flex;
    min-height: 55px;
    justify-content: center;
    flex-direction: column;
    padding: 9px 10px;
    border: 1px solid var(--slate-150);
    border-radius: 11px;
    text-align: center;
    cursor: pointer;
  }

  .nailmuse-quality-options input:checked + span {
    border-color: #b8637f;
    background: #fcf0f4;
  }

  .nailmuse-note-field textarea {
    min-height: 76px;
    resize: vertical;
  }

  .nailmuse-submit-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
    padding: 19px 23px;
    background: #fcfafb;
  }

  .nailmuse-submit-bar > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9b4964;
  }

  .nailmuse-submit-bar > div > span {
    display: flex;
    flex-direction: column;
    color: var(--slate-400);
    font-size: 8px;
  }

  .nailmuse-submit-bar > div strong {
    color: var(--slate-700);
    font-size: 9px;
  }

  .nailmuse-generate {
    min-width: 228px;
    border-color: #9d4663;
    background: linear-gradient(135deg, #a64968, #7f334f);
    box-shadow: 0 8px 18px rgba(140, 58, 86, 0.2);
  }

  .nailmuse-generate:hover {
    background: linear-gradient(135deg, #b45373, #8e3b59);
  }

  .nailmuse-submit-bar > .form-feedback {
    grid-column: 1 / -1;
    margin: 0;
  }

  .nailmuse-processing {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid #ead9df;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 0 50%, rgba(190, 105, 133, 0.12), transparent 25%),
      var(--white);
    box-shadow: var(--shadow-sm);
  }

  .nailmuse-processing[hidden],
  .nailmuse-error[hidden],
  .nailmuse-results[hidden],
  .nailmuse-prompt-review[hidden] {
    display: none;
  }

  .nailmuse-prompt-review {
    overflow: hidden;
  }

  .nailmuse-prompt-review-body {
    padding: 20px 22px;
  }

  .nailmuse-prompt-review textarea {
    min-height: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    line-height: 1.6;
    resize: vertical;
  }

  .nailmuse-prompt-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
  }

  .nailmuse-prompt-actions .form-feedback {
    margin: 0 0 0 auto;
  }

  .nailmuse-processing-glow {
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5c8d2;
    border-radius: 23px;
    background: #fbf0f4;
    color: #9b4662;
    animation: nailmuse-pulse 1.8s ease-in-out infinite;
  }

  .nailmuse-processing-glow span {
    font-family: Georgia, serif;
    font-size: 16px;
  }

  @keyframes nailmuse-pulse {
    50% {
      box-shadow: 0 0 0 12px rgba(180, 91, 120, 0.07);
      transform: translateY(-2px);
    }
  }

  .nailmuse-processing-copy h3 {
    margin-top: 3px;
    color: #452630;
    font-size: 16px;
  }

  .nailmuse-processing-copy > p {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 9px;
  }

  .nailmuse-progress-track {
    height: 5px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0e5e9;
  }

  .nailmuse-progress-track span {
    display: block;
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a84968, #df9db2);
    transition: width 500ms ease;
  }

  .nailmuse-processing--planning .nailmuse-progress-track span {
    width: 14%;
  }

  .nailmuse-processing--rendering_hero .nailmuse-progress-track span {
    width: 36%;
  }

  .nailmuse-processing--rendering_left .nailmuse-progress-track span {
    width: 56%;
  }

  .nailmuse-processing--rendering_right .nailmuse-progress-track span {
    width: 76%;
  }

  .nailmuse-processing--composing .nailmuse-progress-track span {
    width: 92%;
  }

  .nailmuse-progress-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 9px;
  }

  .nailmuse-progress-steps span {
    color: var(--slate-300);
    font-size: 7px;
  }

  .nailmuse-progress-steps .is-active {
    color: #a34b67;
    font-weight: 800;
  }

  .nailmuse-progress-steps .is-complete {
    color: var(--green-600);
  }

  .nailmuse-error {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid #f3cbd3;
    border-radius: var(--radius-lg);
    background: #fff8f9;
  }

  .nailmuse-error > span {
    color: var(--red-600);
  }

  .nailmuse-error > div {
    flex: 1;
  }

  .nailmuse-error strong {
    color: var(--red-700);
    font-size: 11px;
  }

  .nailmuse-error p {
    margin-top: 3px;
    color: var(--slate-600);
    font-size: 9px;
  }

  .nailmuse-text-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 0;
    background: transparent;
    color: var(--red-600);
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
  }

  .nailmuse-text-danger .icon {
    width: 14px;
    height: 14px;
  }

  .nailmuse-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nailmuse-continue {
    border-color: #9d4663;
    background: linear-gradient(135deg, #a64968, #7f334f);
  }

  .nailmuse-continue:hover {
    background: linear-gradient(135deg, #b45373, #8e3b59);
  }

  [data-nailmuse-supporting-views][hidden] {
    display: none;
  }

  .nailmuse-next-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 22px;
    border-bottom: 1px solid #eadce1;
    background: #fffafb;
  }

  .nailmuse-next-step[hidden] {
    display: none;
  }

  .nailmuse-next-step > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcece6;
    border-radius: 11px;
    background: #eff8f4;
    color: var(--green-700);
  }

  .nailmuse-next-step > span .icon {
    width: 16px;
    height: 16px;
  }

  .nailmuse-next-step > div {
    flex: 1;
  }

  .nailmuse-next-step strong {
    color: #50303b;
    font-size: 10px;
  }

  .nailmuse-next-step p {
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 8px;
  }

  .nailmuse-next-step .form-feedback {
    display: block;
    margin-top: 6px;
  }

  .nailmuse-next-step.is-processing {
    background: #fdf6f8;
  }

  .nailmuse-text-danger:disabled {
    cursor: not-allowed;
    opacity: 0.45;
  }

  .nailmuse-plan-card {
    padding: 18px 22px;
    border-bottom: 1px solid #e9dce1;
    background:
      radial-gradient(circle at 100% 0, rgba(185, 102, 130, 0.1), transparent 27%),
      #fdf9fa;
  }

  .nailmuse-plan-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 25px;
  }

  .nailmuse-plan-identity h4 {
    margin-top: 3px;
    color: #5f2f40;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 500;
  }

  .nailmuse-plan-identity p {
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 8px;
    line-height: 1.55;
  }

  .nailmuse-plan-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .nailmuse-plan-details > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 8px 10px;
    border: 1px solid #ecdee3;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
  }

  .nailmuse-plan-details small {
    color: #ac7386;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .nailmuse-plan-details b {
    margin-top: 2px;
    overflow: hidden;
    color: var(--slate-700);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nailmuse-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    grid-template-areas:
      "hero left"
      "hero right"
      "sheet sheet";
    gap: 13px;
    padding: 22px;
    background: #f8f6f7;
  }

  .nailmuse-gallery.is-front-only {
    grid-template-columns: minmax(280px, 720px);
    grid-template-areas: "hero";
    justify-content: center;
  }

  .nailmuse-result-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4dadd;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 5px 16px rgba(42, 25, 32, 0.045);
  }

  .nailmuse-result-card--hero {
    grid-area: hero;
  }

  .nailmuse-result-card--angle_left {
    grid-area: left;
  }

  .nailmuse-result-card--angle_right {
    grid-area: right;
  }

  .nailmuse-result-card--contact_sheet {
    grid-area: sheet;
  }

  .nailmuse-result-preview {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #eae5e7;
    cursor: zoom-in;
  }

  .nailmuse-result-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
  }

  .nailmuse-result-card--hero .nailmuse-result-preview img {
    aspect-ratio: 1 / 1.18;
  }

  .nailmuse-result-card--angle_left .nailmuse-result-preview img,
  .nailmuse-result-card--angle_right .nailmuse-result-preview img {
    aspect-ratio: 1;
  }

  .nailmuse-result-card--contact_sheet .nailmuse-result-preview img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }

  .nailmuse-result-preview:hover img {
    transform: scale(1.012);
    filter: brightness(0.93);
  }

  .nailmuse-result-preview > span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(24, 15, 20, 0.75);
    color: var(--white);
    font-size: 7px;
    opacity: 0;
    transition: opacity var(--ease);
    backdrop-filter: blur(7px);
  }

  .nailmuse-result-preview:hover > span,
  .nailmuse-result-preview:focus-visible > span {
    opacity: 1;
  }

  .nailmuse-result-preview > span .icon {
    width: 12px;
    height: 12px;
  }

  .nailmuse-result-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .nailmuse-result-card > div > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .nailmuse-result-card > div strong {
    color: #4c2c37;
    font-size: 9px;
  }

  .nailmuse-result-card > div small {
    color: var(--slate-400);
    font-size: 7px;
  }

  .nailmuse-result-card > div .icon-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
    background: #fbf3f6;
    color: #9b4662;
  }

  .nailmuse-job-list {
    display: flex;
    flex-direction: column;
  }

  .nailmuse-job-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-top: 1px solid var(--slate-150);
  }

  .nailmuse-job-item:first-child {
    border-top: 0;
  }

  .nailmuse-job-item.is-current {
    background: #fdf7f9;
  }

  .nailmuse-job-source {
    width: 58px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5d8dd;
    border-radius: 9px;
    background: #eee8ea;
    cursor: pointer;
  }

  .nailmuse-job-source img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nailmuse-job-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .nailmuse-job-copy strong {
    overflow: hidden;
    color: var(--slate-800);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nailmuse-job-copy span,
  .nailmuse-job-copy small {
    color: var(--slate-400);
    font-size: 7px;
  }

  .nailmuse-status {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-700);
    font-size: 7px;
    font-weight: 800;
  }

  .nailmuse-status--completed {
    background: var(--green-100);
    color: var(--green-700);
  }

  .nailmuse-status--failed {
    background: var(--red-100);
    color: var(--red-700);
  }

  .nailmuse-job-actions {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .nailmuse-job-actions button {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid var(--slate-150);
    border-radius: 8px;
    background: var(--white);
    color: var(--slate-600);
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
  }

  .nailmuse-job-actions button.is-danger {
    width: 30px;
    padding: 0;
    color: var(--red-600);
  }

  .nailmuse-job-actions .icon {
    width: 13px;
    height: 13px;
  }

  .nailmuse-viewer {
    width: min(1180px, calc(100vw - 32px));
    max-width: none;
    height: min(880px, calc(100vh - 32px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 19px;
    background: #110e11;
    color: var(--white);
    box-shadow: 0 30px 80px rgba(3, 2, 3, 0.6);
  }

  .nailmuse-viewer::backdrop {
    background: rgba(8, 5, 7, 0.82);
    backdrop-filter: blur(6px);
  }

  .nailmuse-viewer-shell {
    display: grid;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .nailmuse-viewer header,
  .nailmuse-viewer footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #171217;
  }

  .nailmuse-viewer footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    color: #8d838a;
    font-size: 8px;
  }

  .nailmuse-viewer header .section-kicker {
    color: #bb7189;
  }

  .nailmuse-viewer header h3 {
    margin-top: 2px;
    font-size: 12px;
  }

  .nailmuse-viewer header > button {
    width: 33px;
    height: 33px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 21px;
    cursor: pointer;
  }

  .nailmuse-viewer-stage {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 15px;
    background:
      linear-gradient(45deg, #141014 25%, transparent 25%),
      linear-gradient(-45deg, #141014 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #141014 75%),
      linear-gradient(-45deg, transparent 75%, #141014 75%),
      #110e11;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    background-size: 12px 12px;
  }

  .nailmuse-viewer-stage > span {
    color: #968a91;
    font-size: 9px;
  }

  .nailmuse-viewer-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .nailmuse-instruction-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid #e9d8de;
    border-radius: var(--radius-md);
    background: #fdf8fa;
    color: #9d4a65;
  }

  .nailmuse-instruction-note strong {
    color: #643346;
    font-size: 10px;
  }

  .nailmuse-instruction-note p {
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 8px;
  }

  .nailmuse-instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .nailmuse-instruction-card {
    padding: 20px;
  }

  .nailmuse-instruction-card form {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 13px;
  }

  .nailmuse-instruction-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-150);
  }

  .nailmuse-instruction-index {
    display: inline-flex;
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebd8df;
    border-radius: 11px;
    background: #fcf2f5;
    color: #a64f6b;
    font-family: Georgia, serif;
    font-size: 11px;
  }

  .nailmuse-instruction-heading h3 {
    margin-top: 2px;
    color: #4b2835;
    font-size: 13px;
  }

  .nailmuse-instruction-heading p {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 8px;
  }

  .nailmuse-instruction-card textarea {
    min-height: 250px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    line-height: 1.55;
    resize: vertical;
  }

  .nailmuse-instruction-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
  }

  .nailmuse-instruction-footer > span {
    color: var(--slate-400);
    font-size: 7px;
  }

  .nailmuse-option-heading {
    margin-top: 30px;
  }

  .nailmuse-option-admin {
    display: grid;
    gap: 18px;
  }

  .nailmuse-option-group {
    overflow: hidden;
  }

  .nailmuse-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nailmuse-option-form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 11px;
    padding: 18px;
    border-top: 1px solid var(--slate-150);
    border-right: 1px solid var(--slate-150);
  }

  .nailmuse-option-form:nth-child(even) {
    border-right: 0;
  }

  .nailmuse-option-identity {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .nailmuse-option-identity strong {
    color: #4b2835;
    font-size: 10px;
  }

  .nailmuse-option-identity small {
    color: var(--slate-400);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 7px;
  }

  .nailmuse-option-form textarea {
    min-height: 84px;
    resize: vertical;
  }

  .nailmuse-option-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nailmuse-option-actions .form-feedback {
    margin: 0;
  }

  @media (max-width: 1100px) {
    .nailmuse-hero {
      grid-template-columns: 1fr;
    }

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

    .nailmuse-dropzone--inspiration {
      grid-column: 1 / -1;
      border-top: 1px solid var(--slate-150);
    }

    .nailmuse-instruction-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 760px) {
    .nailmuse-heading {
      align-items: stretch;
    }

    .nailmuse-heading .button {
      width: 100%;
    }

    .nailmuse-hero {
      gap: 22px;
      padding: 23px;
    }

    .nailmuse-hero-copy {
      flex-direction: column;
    }

    .nailmuse-output-map {
      grid-template-columns: 1fr 1fr;
    }

    .nailmuse-source-grid,
    .nailmuse-design-grid,
    .nailmuse-context-grid,
    .nailmuse-plan-inner,
    .nailmuse-gallery {
      grid-template-columns: 1fr;
    }

    .nailmuse-source-grid {
      min-height: 0;
    }

    .nailmuse-dropzone {
      min-height: 280px;
    }

    .nailmuse-dropzone--hand {
      border-right: 0;
      border-bottom: 1px solid var(--slate-150);
    }

    .nailmuse-dropzone--outfit {
      border-right: 0;
      border-bottom: 1px solid var(--slate-150);
    }

    .nailmuse-dropzone--inspiration {
      grid-column: 1;
      border-top: 0;
    }

    .nailmuse-control-group,
    .nailmuse-control-group:nth-child(even) {
      grid-column: 1;
      border-right: 0;
    }

    .nailmuse-style-options {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nailmuse-context-grid {
      gap: 9px;
    }

    .nailmuse-submit-bar {
      grid-template-columns: 1fr;
    }

    .nailmuse-generate {
      width: 100%;
    }

    .nailmuse-processing {
      grid-template-columns: 1fr;
    }

    .nailmuse-progress-steps {
      grid-template-columns: 1fr;
      gap: 4px;
    }

    .nailmuse-result-actions,
    .nailmuse-error,
    .nailmuse-prompt-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .nailmuse-prompt-actions .form-feedback {
      margin: 0;
    }

    .nailmuse-result-actions {
      width: 100%;
    }

    .nailmuse-result-actions .button,
    .nailmuse-result-actions .nailmuse-text-danger {
      width: 100%;
      justify-content: center;
    }

    .nailmuse-plan-details {
      grid-template-columns: 1fr;
    }

    .nailmuse-gallery {
      grid-template-areas:
        "hero"
        "left"
        "right"
        "sheet";
    }

    .nailmuse-result-card--hero .nailmuse-result-preview img,
    .nailmuse-result-card--angle_left .nailmuse-result-preview img,
    .nailmuse-result-card--angle_right .nailmuse-result-preview img {
      aspect-ratio: 1;
    }

    .nailmuse-job-item {
      grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .nailmuse-job-source {
      width: 52px;
    }

    .nailmuse-job-actions {
      grid-column: 2 / -1;
    }

    .nailmuse-instruction-footer {
      align-items: stretch;
      flex-direction: column;
    }

    .nailmuse-option-list {
      grid-template-columns: 1fr;
    }

    .nailmuse-option-form {
      border-right: 0;
    }

    .nailmuse-viewer {
      width: calc(100vw - 16px);
      height: calc(100vh - 16px);
      border-radius: 14px;
    }

    .nailmuse-viewer footer {
      align-items: stretch;
      flex-direction: column;
    }
  }

@media (max-width: 720px) {
  .azure-cost-page-heading .button {
    width: 100%;
  }

  .azure-cost-hero,
  .azure-cost-dashboard-grid,
  .azure-cost-detail-grid {
    grid-template-columns: 1fr;
  }

  .azure-cost-hero > div:first-child {
    padding: 24px;
  }

  .azure-cost-hero-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .azure-cost-hero-meta span {
    padding: 13px 24px;
  }

  .azure-cost-summary-grid,
  .azure-cost-insight-grid,
  .azure-cost-calendar {
    grid-template-columns: 1fr;
  }

  .azure-cost-insight-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .azure-cost-insight-grid article:last-child {
    border-bottom: 0;
  }

  .azure-cost-budget-body,
  .azure-cost-estimate-panel {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .azure-cost-budget-ring {
    justify-self: center;
  }

  .azure-cost-estimate-value {
    justify-items: start;
  }

  .azure-cost-month-days,
  .azure-cost-month-weekdays {
    gap: 5px;
  }

  .azure-cost-breakdown-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .azure-cost-breakdown-row progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .azure-cost-data-footer {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .pixora-hero,
  .pixora-upload-layout,
  .pixora-prompt-layout,
  .instruction-layout {
    grid-template-columns: 1fr;
  }

  .pixora-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .pixora-dropzone {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .pixora-prompt-layout > img {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .instruction-create-panel {
    position: static;
  }

  .pixora-history-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pixora-history-search {
    grid-column: 1 / -1;
  }

  .pixora-history-count {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .pixora-hero > div:first-child,
  .pixora-hero-facts {
    padding: 23px;
  }

  .pixora-hero-facts {
    display: flex;
  }

  .pixora-hero h3 {
    font-size: 23px;
  }

  .pixora-direction-panel,
  .pixora-prompt-layout > div,
  .pixora-model-grid,
  .pixora-results-grid {
    padding: 17px;
  }

  .pixora-preset-grid,
  .pixora-model-grid,
  .pixora-results-grid {
    grid-template-columns: 1fr;
  }

  .pixora-workflow-modes,
  .pixora-analysis-details {
    grid-template-columns: 1fr;
  }

  .pixora-autopilot-overview {
    min-height: 0;
  }

  .pixora-autopilot-overview-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pixora-autopilot-live {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pixora-autopilot-flow {
    grid-template-columns: 1fr;
  }

  .pixora-workflow-modes {
    padding: 14px 17px;
  }

  .pixora-inline-actions,
  .instruction-actions,
  .pixora-detail-actions,
  .pixora-source-lock {
    flex-direction: column;
    align-items: stretch;
  }

  .pixora-image-viewer {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .pixora-image-viewer-shell {
    max-height: calc(100vh - 18px);
  }

  .pixora-image-viewer-stage {
    min-height: 55vh;
  }

  .pixora-image-viewer-surface {
    padding: 8px;
  }

  .pixora-image-viewer header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pixora-image-viewer-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pixora-image-viewer footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pixora-image-viewer footer .button {
    width: 100%;
  }

  .pixora-inline-actions .button,
  .instruction-actions .button {
    width: 100%;
  }

  .pixora-generation-controls {
    grid-template-columns: 1fr;
    padding: 0 17px 17px;
  }

  .pixora-stage.is-autopilot .pixora-generation-controls {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .pixora-generation-controls select,
  .instruction-form select,
  .field textarea,
  .pixora-history-search input,
  .pixora-history-filter select {
    font-size: 16px;
  }

  .pixora-history-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 13px;
  }

  .pixora-history-search {
    grid-column: 1 / -1;
  }

  .pixora-history-filter select {
    min-width: 0;
  }

  .pixora-history-toolbar > .pixora-history-filter:nth-child(2) {
    grid-column: 1 / -1;
  }

  .pixora-history-reset {
    width: 100%;
  }

  .pixora-history-count {
    justify-self: end;
    white-space: normal;
    text-align: right;
  }

  .pixora-results-grid {
    grid-template-columns: 1fr;
  }

  .pixora-job-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .pixora-job-list {
    padding: 10px 12px 14px;
  }

  .pixora-job-group-list {
    padding: 0 8px;
  }

  .pixora-job-row > .status-pill {
    grid-column: 3;
    justify-self: start;
  }

  .pixora-job-open {
    grid-column: 2 / 3;
  }

  .pixora-job-delete {
    grid-column: 3;
    justify-self: start;
  }

  .pixora-history-panel > .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pixora-history-actions {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .pixora-history-actions .panel-meta {
    width: 100%;
  }
}

@media (max-width: 1220px) {
  .summary-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid--dashboard {
    grid-template-columns: 1fr;
  }

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

  .endpoint-item:nth-child(2) {
    border-right: 0;
  }

  .endpoint-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--slate-150);
  }

  .login-shell {
    grid-template-columns: minmax(390px, 0.82fr) minmax(470px, 1.18fr);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: min(var(--sidebar-width), calc(100vw - 52px));
    box-shadow: var(--shadow-md);
    transform: translateX(-105%);
  }

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

  .nav-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    background: rgba(8, 17, 31, 0.54);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .icon-button.sidebar-close,
  .icon-button.mobile-menu {
    display: inline-flex;
  }

  .sidebar-close {
    color: #7d8fa5;
  }

  .mobile-menu {
    margin-left: -8px;
    color: var(--slate-700);
  }

  .collapse-button {
    display: none;
  }

  .app-frame,
  .nav-collapsed .app-frame {
    margin-left: 0;
  }

  .nav-collapsed .sidebar {
    width: min(var(--sidebar-width), calc(100vw - 52px));
  }

  .nav-collapsed .brand-copy,
  .nav-collapsed .nav-label,
  .nav-collapsed .nav-item > span,
  .nav-collapsed .profile-copy,
  .nav-collapsed .add-account-button,
  .nav-collapsed .logout-button {
    display: initial;
  }

  .nav-collapsed .sidebar-header {
    justify-content: space-between;
    padding: 0 22px;
  }

  .nav-collapsed .sidebar-nav {
    padding: 24px 14px;
  }

  .nav-collapsed .nav-item {
    justify-content: flex-start;
    padding: 0 13px;
  }

  .nav-collapsed .profile-block {
    justify-content: flex-start;
    padding: 9px;
  }

  .vpn-overview {
    grid-template-columns: 1fr;
  }

  .lifecycle-grid,
  .import-workspace {
    grid-template-columns: 1fr;
  }

  .vpn-identity-card {
    min-height: 235px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .history-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-controls {
    width: 100%;
    justify-content: space-between;
  }

  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-day-detail {
    border-top: 1px solid var(--slate-150);
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .login-shell {
    display: flex;
    min-height: 100vh;
  }

  .login-visual {
    display: none;
  }

  .login-form-panel {
    width: 100%;
    min-height: 100vh;
    justify-content: space-between;
    padding: 28px;
  }

  .login-mobile-brand {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    color: var(--slate-950);
    font-size: 14px;
  }

  .login-mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .content-grid--system {
    grid-template-columns: 1fr;
  }

  .storage-list-grid {
    grid-template-columns: 1fr;
  }

  .storage-list-card {
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .storage-list-card:last-child {
    border-bottom: 0;
  }

  .settings-hero {
    grid-template-columns: 1fr;
  }

  .settings-roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 70px;
  }

  .topbar {
    padding-inline: 18px;
  }

  .topbar-eyebrow,
  .mode-badge {
    display: none;
  }

  .topbar-title {
    font-size: 17px;
  }

  .main-content {
    padding: 24px 16px 38px;
  }

  .app-footer {
    padding: 18px 16px;
  }

  .app-footer span:last-child {
    display: none;
  }

  .welcome-panel {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .welcome-status {
    width: 100%;
    min-width: 0;
  }

  .summary-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 104px;
  }

  .panel-header {
    min-height: 70px;
    padding: 17px;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }

  .resource-item,
  .resource-item--primary {
    grid-column: auto;
    padding: 18px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--slate-150);
  }

  .resource-item:last-child {
    border-bottom: 0;
  }

  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .endpoint-item,
  .endpoint-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .endpoint-item:last-child {
    border-bottom: 0;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .system-heading-status {
    align-items: flex-start;
  }

  .page-heading .button {
    width: 100%;
  }

  .page-heading-actions {
    width: 100%;
    flex-direction: column;
  }

  .notice-banner {
    align-items: flex-start;
  }

  .create-vpn-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .create-vpn-icon {
    display: none;
  }

  .create-vpn-form .button,
  .form-feedback {
    width: 100%;
    grid-column: 1;
  }

  .create-vpn-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-vpn-result .button {
    width: 100%;
  }

  .lifecycle-user-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 4px;
  }

  .lifecycle-user-meta {
    grid-column: 2 / -1;
    text-align: left;
  }

  .lifecycle-user-row > .table-action {
    grid-column: 2;
  }

  .remove-vpn-button {
    grid-column: 3;
  }

  .import-selector-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .import-client-select {
    width: 100%;
    min-width: 0;
  }

  .import-tabs {
    grid-template-columns: 1fr;
  }

  .import-tab {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .import-profile-grid {
    grid-template-columns: 1fr;
  }

  .import-profile-grid > div,
  .import-profile-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .import-profile-wide {
    grid-column: 1;
  }

  .storage-analysis-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .storage-scan-state {
    align-items: flex-start;
  }

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

  .storage-capacity-grid > div {
    padding: 14px 17px;
    border-bottom: 1px solid var(--slate-150);
  }

  .storage-capacity-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .storage-capacity-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .storage-capacity-progress {
    width: calc(100% - 34px);
    margin: 4px 17px 17px;
  }

  .storage-list-card,
  .storage-files-card {
    padding: 17px;
  }

  .storage-file-list {
    grid-template-columns: 1fr;
  }

  .history-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .history-user-filter select,
  .history-month-control {
    width: 100%;
  }

  .history-user-filter {
    width: 100%;
    min-width: 0;
  }

  .history-user-filter select,
  .import-client-select select {
    min-height: 46px;
    font-size: 16px;
  }

  .portal-select-trigger {
    min-height: 48px;
    padding: 7px 10px;
  }

  .portal-select-value,
  .portal-select-option {
    font-size: 15px;
  }

  .portal-select-option {
    min-height: 48px;
  }

  .portal-select-menu {
    max-height: min(360px, 52vh);
    border-radius: 14px;
  }

  .history-calendar-card,
  .history-day-detail {
    padding: 16px;
  }

  .history-calendar-grid {
    gap: 4px;
  }

  .history-day,
  .history-calendar-spacer {
    min-height: 58px;
  }

  .history-day {
    padding: 7px;
    border-radius: 9px;
  }

  .history-day.is-today::after {
    top: 7px;
    right: 7px;
  }

  .history-day-usage {
    font-size: 7px;
  }

  .history-calendar-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .detail-grid > div,
  .detail-grid > div:nth-child(3n) {
    border-right: 1px solid var(--slate-150);
    border-bottom: 1px solid var(--slate-150);
  }

  .detail-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .detail-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    padding: 10px 14px;
  }

  .data-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-bottom: 10px;
    padding: 17px;
    border: 1px solid var(--slate-150);
    border-radius: 14px;
    background: var(--white);
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table td {
    height: auto;
    padding: 0;
    border: 0;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--slate-400);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .data-table td:first-child,
  .data-table td:nth-child(2),
  .data-table td:last-child {
    grid-column: 1 / -1;
  }

  .credential-value {
    min-width: 0;
    word-break: break-all;
  }

  .name-editor {
    width: 100%;
    min-width: 0;
  }

  .table-actions {
    justify-content: flex-start;
  }

  .traffic-heading-status {
    align-items: flex-start;
  }

  .traffic-metric,
  .traffic-usage {
    min-width: 0;
  }

  .table-action {
    min-height: 38px;
  }

  .settings-hero > div:first-child {
    padding: 25px;
  }

  .settings-roadmap {
    display: flex;
    padding: 23px 25px;
  }

  .settings-card {
    grid-template-columns: auto 1fr;
  }

  .availability-label {
    grid-column: 2;
    justify-self: start;
  }

  .configuration-list {
    grid-template-columns: 1fr;
  }

  .configuration-list > div,
  .configuration-list > div:nth-child(2n),
  .configuration-list > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .configuration-list > div:last-child {
    border-bottom: 0;
  }

  .login-form-panel {
    padding: 22px 17px;
  }

  .login-card {
    padding: 28px 22px;
    border-radius: 19px;
  }
}

@media (max-width: 450px) {
  .topbar-avatar {
    display: none;
  }

  .welcome-panel h2,
  .page-heading h2 {
    font-size: 25px;
  }

  .panel-header {
    align-items: flex-start;
  }

  .text-link,
  .panel-header > .read-only-label {
    display: none;
  }

  .vpn-identity-card {
    min-height: 250px;
  }

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

  .detail-grid > div,
  .detail-grid > div:nth-child(2n),
  .detail-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--slate-150);
  }

  .detail-grid > div:last-child {
    border-bottom: 0;
  }

  .data-table tbody tr {
    grid-template-columns: 1fr;
  }

  .data-table td,
  .data-table td:first-child,
  .data-table td:nth-child(2),
  .data-table td:last-child {
    grid-column: 1;
  }

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

  .availability-label {
    grid-column: 1;
  }

  .configuration-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .configuration-list strong {
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .account-settings-grid,
  .access-control-editor-grid {
    grid-template-columns: 1fr;
  }

  .access-control-hero {
    grid-template-columns: 1fr;
  }

  .access-control-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .access-user-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .access-user-access,
  .access-user-login {
    grid-column: 2;
  }

  .access-row-actions {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .user-usage-detail-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-usage-detail-fields > div,
  .user-usage-detail-fields > div:nth-child(4n) {
    border-right: 1px solid var(--slate-100);
  }

  .user-usage-detail-fields > div:nth-child(3n) {
    border-right: 0;
  }

  .user-usage-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .settings-access-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-access-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .access-form-row,
  .permission-matrix,
  .access-role-list {
    grid-template-columns: 1fr;
  }

  .access-role-card,
  .access-role-card:nth-child(-n + 2),
  .access-role-card:nth-child(2n) {
    border-top: 1px solid var(--slate-100);
    border-right: 0;
  }

  .access-role-card:first-child {
    border-top: 0;
  }

  .access-control-rules {
    grid-template-columns: 1fr;
  }

  .access-user-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .access-user-access,
  .access-user-login,
  .access-row-actions {
    grid-column: 2;
    grid-row: auto;
    justify-content: flex-start;
  }

  .access-row-actions .table-action {
    min-height: 36px;
  }

  .user-usage-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 15px;
  }

  .user-usage-shell {
    max-height: calc(100vh - 18px);
  }

  .user-usage-header,
  .user-usage-footer {
    padding: 14px;
  }

  .user-usage-body {
    padding: 14px;
  }

  .user-usage-summary-grid {
    grid-template-columns: 1fr;
  }

  .user-usage-history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .user-usage-history-heading select {
    width: 100%;
  }

  .user-usage-activity > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
  }

  .user-usage-service-badge {
    min-width: 64px;
  }

  .user-usage-status {
    grid-column: 2;
    justify-self: start;
  }

  .user-usage-activity-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .user-usage-activity-detail {
    padding: 0 13px 13px;
  }

  .user-usage-detail-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-usage-detail-fields > div,
  .user-usage-detail-fields > div:nth-child(3n),
  .user-usage-detail-fields > div:nth-child(4n) {
    border-right: 1px solid var(--slate-100);
  }

  .user-usage-detail-fields > div:nth-child(2n) {
    border-right: 0;
  }

  .user-usage-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .access-control-hero > div:first-child {
    padding: 23px;
  }

  .account-settings-form,
  .access-editor-form {
    padding: 17px;
  }

  .access-user-row {
    padding: 13px;
  }

  .access-user-identity > span:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .user-usage-user p {
    display: grid;
    gap: 2px;
  }

  .user-usage-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .user-usage-footer > div,
  .user-usage-footer .button {
    width: 100%;
  }

  .user-usage-footer .button {
    flex: 1;
  }

  .user-usage-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Chat */

.chat-page-heading {
  align-items: flex-end;
}

.chat-page-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.chat-page-facts span {
  padding: 6px 9px;
  border: 1px solid var(--slate-150);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 7px;
}

.chat-page-facts b {
  color: var(--blue-700);
}

.chat-app {
  position: relative;
  display: grid;
  height: max(680px, calc(100vh - var(--topbar-height) - 210px));
  max-height: 920px;
  grid-template-columns: minmax(270px, 0.3fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.chat-history {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  padding: 16px;
  border-right: 1px solid var(--slate-150);
  background:
    linear-gradient(180deg, #f9fbff, #f5f7fb);
}

.chat-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.chat-history-header h3 {
  color: var(--slate-900);
  font-size: 16px;
}

.chat-history-close {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 20px;
  cursor: pointer;
}

.chat-new-button {
  width: 100%;
  margin-bottom: 11px;
}

.chat-history-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.chat-history-search .icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--slate-400);
  pointer-events: none;
}

.chat-history-search input {
  width: 100%;
  height: 38px;
  padding: 0 11px 0 34px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-700);
  font-size: 9px;
}

.chat-history-search input:focus,
.chat-history-filters select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
  outline: none;
}

.chat-history-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.chat-history-filters label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 700;
}

.chat-history-filters select {
  width: 100%;
  height: 35px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 8px;
}

.chat-history-status {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--slate-400);
  font-size: 8px;
}

.chat-history-status[hidden],
.chat-history-empty[hidden] {
  display: none;
}

.chat-history-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-200) transparent;
}

.chat-history-group {
  margin-bottom: 8px;
}

.chat-history-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 6px 5px;
  list-style: none;
  cursor: pointer;
}

.chat-history-group > summary::-webkit-details-marker {
  display: none;
}

.chat-history-group > summary > span:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.chat-history-group > summary .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.chat-history-group > summary strong {
  overflow: hidden;
  color: var(--slate-600);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-history-group > summary > span:nth-child(2) {
  color: var(--slate-400);
  font-size: 6px;
}

.chat-history-group-arrow .icon {
  transform: rotate(90deg);
  transition: transform var(--ease);
}

.chat-history-group[open] .chat-history-group-arrow .icon {
  transform: rotate(-90deg);
}

.chat-history-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 11px;
}

.chat-history-item:hover {
  border-color: var(--slate-150);
  background: rgba(255, 255, 255, 0.72);
}

.chat-history-item.is-active {
  border-color: #cbd8f5;
  background: var(--blue-50);
}

.chat-history-item-open {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px;
  padding: 10px 34px 10px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-history-item-avatar {
  width: 28px;
  height: 28px;
  grid-row: 1 / span 2;
  border-radius: 9px;
}

.chat-history-item-open > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.chat-history-item-open > span,
.chat-history-item-open > p {
  grid-column: 2;
}

.chat-history-item-open strong,
.chat-history-item-open p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-history-item-open strong {
  color: var(--slate-700);
  font-size: 8px;
}

.chat-history-item-open small,
.chat-history-item-open p {
  color: var(--slate-400);
  font-size: 6px;
}

.chat-history-item-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--slate-300);
  color: transparent;
}

.chat-history-item-status.is-ready {
  background: var(--green-600);
}

.chat-history-item-status.is-queued,
.chat-history-item-status.is-processing {
  background: var(--blue-500);
}

.chat-history-item-status.is-failed {
  background: var(--red-600);
}

.chat-history-item-delete {
  position: absolute;
  top: 8px;
  right: 7px;
  display: none;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: var(--white);
  color: var(--red-600);
  cursor: pointer;
}

.chat-history-item:hover .chat-history-item-delete,
.chat-history-item.is-active .chat-history-item-delete {
  display: inline-flex;
}

.chat-history-item-delete:disabled {
  color: var(--slate-300);
  cursor: not-allowed;
}

.chat-history-item-delete .icon {
  width: 12px;
  height: 12px;
}

.chat-history-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--slate-400);
  text-align: center;
}

.chat-history-empty .icon {
  width: 25px;
  height: 25px;
}

.chat-history-empty strong {
  color: var(--slate-600);
  font-size: 9px;
}

.chat-history-empty p {
  max-width: 190px;
  font-size: 7px;
}

.chat-history-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-150);
  color: var(--slate-400);
  font-size: 6px;
}

.chat-conversation {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background:
    radial-gradient(circle at 50% 0, rgba(65, 105, 225, 0.035), transparent 30%),
    var(--white);
}

.chat-conversation-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--slate-100);
  background: rgba(255, 255, 255, 0.92);
}

.chat-history-open {
  display: none;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-600);
  cursor: pointer;
}

.voxora-avatar-trigger {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--slate-150);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-500);
  cursor: pointer;
  font-size: 7px;
  font-weight: 700;
}

.voxora-avatar-trigger:hover {
  border-color: #b9c9ef;
  background: var(--blue-50);
}

.voxora-avatar-trigger img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.chat-conversation-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.chat-conversation-heading[hidden],
.chat-conversation-actions[hidden],
.chat-new-category[hidden],
.chat-welcome[hidden],
.chat-messages[hidden],
.chat-conversation-error[hidden],
.chat-selected-attachments[hidden] {
  display: none;
}

.chat-conversation-heading input {
  min-width: 0;
  flex: 1;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--slate-850, var(--slate-800));
  font-size: 13px;
  font-weight: 720;
}

.chat-conversation-heading input:hover,
.chat-conversation-heading input:focus {
  border-color: var(--slate-200);
  background: var(--slate-50);
  outline: none;
}

.chat-conversation-heading select {
  height: 34px;
  padding: 0 27px 0 9px;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 8px;
}

.chat-conversation-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.chat-model-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 7px;
  font-weight: 750;
}

.chat-welcome {
  display: grid;
  width: min(700px, 100%);
  align-self: center;
  justify-self: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}

.chat-welcome-mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid #ccdaf5;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #eef4ff, #f2edff);
  color: #4e6dc9;
  box-shadow: 0 10px 28px rgba(65, 105, 225, 0.1);
}

.chat-welcome-mark img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.chat-welcome h3 {
  margin-top: 5px;
  color: var(--slate-900);
  font-size: 24px;
}

.chat-welcome > p {
  max-width: 560px;
  margin-top: 9px;
  color: var(--slate-500);
  font-size: 10px;
  line-height: 1.65;
}

.chat-suggestions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.chat-suggestions button {
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--slate-150);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}

.chat-suggestions button:hover {
  border-color: #b9c9ef;
  transform: translateY(-1px);
}

.chat-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 22px clamp(18px, 5vw, 72px);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-200) transparent;
}

.chat-message {
  display: grid;
  max-width: 880px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  margin: 0 auto 18px;
}

.chat-message.is-user {
  grid-template-columns: minmax(0, 1fr) 32px;
}

.chat-message.is-user .chat-message-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chat-message.is-user .chat-message-bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  border-color: #d4def5;
  background: var(--blue-50);
}

.chat-message-avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue-700);
}

.chat-message.is-user .chat-message-avatar {
  background: var(--navy-900);
  color: var(--white);
}

.chat-message-avatar .icon {
  width: 15px;
  height: 15px;
}

.chat-message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.chat-message-bubble {
  width: min(100%, 780px);
  overflow: hidden;
  padding: 13px 15px;
  border: 1px solid var(--slate-150);
  border-radius: 14px;
  background: var(--white);
}

.chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.chat-message-meta strong {
  color: var(--slate-700);
  font-size: 8px;
}

.chat-message-meta time {
  color: var(--slate-400);
  font-size: 6px;
}

.chat-message-content {
  display: grid;
  gap: 10px;
  color: var(--slate-700);
  font-size: 10px;
  line-height: 1.7;
}

.chat-message-prose {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message-content pre {
  max-width: 100%;
  overflow: auto;
  padding: 13px;
  border-radius: 10px;
  background: #101a2b;
  color: #dbe5f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  line-height: 1.6;
  white-space: pre;
}

.chat-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.chat-message-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
}

.chat-message-image img {
  display: block;
  width: 120px;
  height: 92px;
  object-fit: cover;
  background: var(--slate-100);
}

.chat-message-document {
  display: grid;
  max-width: 250px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  padding: 9px 10px;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
}

.chat-message-document .icon {
  width: 15px;
  height: 15px;
  grid-row: 1 / span 2;
  color: var(--blue-600);
}

.chat-message-document strong {
  overflow: hidden;
  color: var(--slate-600);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message-document small {
  color: var(--slate-400);
  font-size: 6px;
}

.chat-message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--slate-100);
}

.chat-message-footer > span {
  color: var(--slate-400);
  font-size: 6px;
}

.voxora-copy-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d8e1f2;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, #f7f9fd);
  color: var(--slate-600);
  cursor: pointer;
  font-size: 7px;
  font-weight: 720;
  transition:
    border-color var(--ease),
    background var(--ease),
    color var(--ease),
    transform var(--ease);
}

.voxora-copy-button:hover {
  border-color: #b5c7ee;
  background: var(--blue-50);
  color: var(--blue-700);
  transform: translateY(-1px);
}

.voxora-copy-button.is-copied {
  border-color: #b7e4d2;
  background: var(--green-100);
  color: var(--green-700);
}

.voxora-copy-button .icon {
  width: 13px;
  height: 13px;
}

.chat-thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--slate-400);
  font-size: 8px;
}

.chat-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  animation: chat-thinking 1.1s infinite ease-in-out;
}

.chat-thinking i:nth-child(2) {
  animation-delay: 120ms;
}

.chat-thinking i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chat-thinking {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-conversation-error {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 clamp(18px, 5vw, 72px) 10px;
  padding: 11px 13px;
  border: 1px solid #efccd4;
  border-radius: 11px;
  background: #fff6f7;
}

.chat-conversation-error > .icon {
  width: 18px;
  height: 18px;
  color: var(--red-600);
}

.chat-conversation-error strong {
  color: var(--red-700);
  font-size: 8px;
}

.chat-conversation-error p {
  margin-top: 2px;
  color: var(--red-600);
  font-size: 7px;
}

.chat-composer {
  display: grid;
  gap: 8px;
  padding: 12px clamp(18px, 5vw, 72px) 14px;
  border-top: 1px solid var(--slate-100);
  background: rgba(255, 255, 255, 0.96);
}

.chat-new-category {
  display: flex;
  justify-content: flex-end;
}

.chat-new-category label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--slate-400);
  font-size: 7px;
  font-weight: 700;
}

.chat-new-category select {
  height: 31px;
  padding: 0 26px 0 8px;
  border: 1px solid var(--slate-150);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 8px;
}

.chat-selected-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-selected-file {
  display: grid;
  max-width: 240px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border: 1px solid var(--slate-150);
  border-radius: 9px;
  background: var(--slate-50);
}

.chat-selected-file > img,
.chat-selected-file > .icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  color: var(--blue-600);
}

.chat-selected-file > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.chat-selected-file strong {
  overflow: hidden;
  color: var(--slate-600);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-selected-file small {
  color: var(--slate-400);
  font-size: 6px;
}

.chat-selected-file button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
}

.chat-composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--slate-200);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(22, 34, 53, 0.06);
}

.chat-composer-row:focus-within {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.09);
}

.chat-attach-button,
.chat-send-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

.chat-attach-button {
  background: var(--slate-100);
  color: var(--slate-600);
}

.chat-attach-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-send-button {
  background: var(--blue-600);
  color: var(--white);
}

.chat-send-button:disabled,
.chat-attach-button:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-attach-button .icon,
.chat-send-button .icon {
  width: 16px;
  height: 16px;
}

.chat-send-button .icon {
  transform: rotate(-90deg);
}

.chat-message-field textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  max-height: 180px;
  padding: 9px 4px;
  overflow-y: auto;
  border: 0;
  background: transparent;
  color: var(--slate-800);
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
  resize: none;
}

.chat-message-field textarea:focus {
  outline: none;
}

.chat-composer-meta {
  display: flex;
  min-height: 14px;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-400);
  font-size: 7px;
}

.chat-composer-meta > span:first-child {
  color: var(--red-600);
}

.chat-composer > p {
  color: var(--slate-400);
  font-size: 6px;
  text-align: center;
}

.chat-mobile-backdrop {
  display: none;
}

.voxora-avatar-dialog {
  width: min(650px, calc(100vw - 30px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--slate-150);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(8, 17, 31, 0.3);
}

.voxora-avatar-dialog::backdrop {
  background: rgba(8, 17, 31, 0.62);
  backdrop-filter: blur(4px);
}

.voxora-avatar-dialog form {
  padding: 22px;
}

.voxora-avatar-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.voxora-avatar-dialog-heading h3 {
  color: var(--slate-900);
  font-size: 19px;
}

.voxora-avatar-dialog-heading p {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 8px;
}

.voxora-avatar-dialog-heading > button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--slate-150);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-500);
  font-size: 21px;
  cursor: pointer;
}

.voxora-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.voxora-avatar-grid > button {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--slate-150);
  border-radius: 13px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}

.voxora-avatar-grid > button:hover {
  border-color: #b9c9ef;
  transform: translateY(-1px);
}

.voxora-avatar-grid > button.is-selected {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.08);
}

.voxora-avatar-grid img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.voxora-avatar-grid > button > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.voxora-avatar-grid strong {
  color: var(--slate-700);
  font-size: 9px;
}

.voxora-avatar-grid small {
  color: var(--slate-400);
  font-size: 7px;
}

.voxora-avatar-grid > button > .icon {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  width: 14px;
  height: 14px;
  color: var(--blue-700);
}

.voxora-avatar-grid > button.is-selected > .icon {
  display: block;
}

@media (max-width: 1024px) {
  .chat-app {
    height: max(680px, calc(100vh - var(--topbar-height) - 190px));
    grid-template-columns: 1fr;
  }

  .chat-history {
    position: absolute;
    z-index: 20;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(330px, calc(100% - 52px));
    border-right: 1px solid var(--slate-150);
    box-shadow: var(--shadow-md);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .chat-app.is-history-open .chat-history {
    transform: translateX(0);
  }

  .chat-mobile-backdrop {
    position: absolute;
    z-index: 15;
    inset: 0;
    display: block;
    background: rgba(8, 17, 31, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .chat-app.is-history-open .chat-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .chat-history-close,
  .chat-history-open {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .chat-page-heading {
    align-items: stretch;
  }

  .chat-page-facts {
    justify-content: flex-start;
  }

  .chat-app {
    height: calc(100dvh - 150px);
    min-height: 620px;
    border-radius: 15px;
  }

  .chat-conversation-header {
    padding: 9px 11px;
  }

  .voxora-avatar-trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 3px;
  }

  .voxora-avatar-trigger img {
    width: 30px;
    height: 30px;
  }

  .voxora-avatar-trigger span {
    display: none;
  }

  .chat-conversation-heading {
    display: grid;
    gap: 3px;
  }

  .chat-conversation-heading input {
    width: 100%;
    padding: 4px 5px;
    font-size: 10px;
  }

  .chat-conversation-heading select {
    width: max-content;
    height: 27px;
  }

  .chat-model-badge {
    display: none;
  }

  .chat-welcome {
    padding: 24px 17px;
  }

  .chat-welcome h3 {
    font-size: 20px;
  }

  .chat-suggestions {
    grid-template-columns: 1fr;
  }

  .chat-messages {
    padding: 16px 11px;
  }

  .chat-message,
  .chat-message.is-user {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 6px;
  }

  .chat-message.is-user .chat-message-avatar {
    grid-column: 1;
  }

  .chat-message.is-user .chat-message-bubble {
    grid-column: 2;
    justify-self: stretch;
  }

  .chat-message-avatar {
    width: 27px;
    height: 27px;
  }

  .chat-message-bubble {
    width: 100%;
    padding: 11px;
  }

  .voxora-avatar-dialog {
    width: calc(100vw - 16px);
    border-radius: 15px;
  }

  .voxora-avatar-dialog form {
    padding: 16px;
  }

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

  .chat-conversation-error {
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0 11px 8px;
  }

  .chat-conversation-error .button {
    grid-column: 1 / -1;
  }

  .chat-composer {
    padding: 9px 11px 11px;
  }

  .chat-new-category {
    justify-content: flex-start;
  }

  .chat-message-field textarea,
  .chat-new-category select,
  .chat-history-search input,
  .chat-history-filters select {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
