:root {
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Noto Sans CJK SC',
    sans-serif;
  color: #25282a;
  background: #fff;
  letter-spacing: 0;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  min-height: 64px;
  border-bottom: 1px solid #e5e7e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 32px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #087964;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  min-width: 0;
}
.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand img {
  flex-shrink: 0;
}
#navigation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.workspace-label-short {
  display: none;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
h1 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 650;
  margin: 0;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.muted,
.eyebrow {
  color: #73797c;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
#email {
  overflow-wrap: anywhere;
}
button,
input {
  font: inherit;
}
button {
  min-height: 36px;
  border: 1px solid #d8dddd;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  background: white;
  color: inherit;
  flex-shrink: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:hover {
  background: #f2f5f4;
}
button.primary {
  background: #117d68;
  color: #fff;
  border-color: #117d68;
}
button.primary:hover {
  background: #0c6756;
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #d8dddd;
  border-radius: 6px;
  background: #fff;
  color: inherit;
}
input[type='file'] {
  padding: 7px;
  font-size: 12px;
}
input::file-selector-button {
  border: 0;
  background: #eef3f1;
  padding: 4px 9px;
  border-radius: 3px;
  margin-right: 10px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
:focus-visible {
  outline: 2px solid #168f78;
  outline-offset: 3px;
}
#notice {
  margin-bottom: 24px;
  border-left: 3px solid #17806a;
  background: #edf6f2;
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
#notice[data-error='true'] {
  border-color: #bc4848;
  background: #fff0ef;
}
#auth-view {
  max-width: 360px;
  margin: 56px auto;
}
#auth-view h1 {
  margin-bottom: 28px;
}
#auth-form {
  display: grid;
  gap: 20px;
}
.segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: #f1f3f2;
  border-radius: 6px;
  margin-bottom: 24px;
}
.segments button {
  border-color: transparent;
  background: transparent;
}
.segments button[aria-selected='true'] {
  background: #fff;
  box-shadow: 0 1px 3px #00000012;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid #e5e7e7;
  padding: 24px 0;
  margin-bottom: 12px;
}
.metrics > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0 20px;
  border-left: 1px solid #e5e7e7;
}
.metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.metrics span {
  font-size: 12px;
  color: #73797c;
}
.metrics strong {
  font-size: 23px;
  font-weight: 550;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.metrics .unavailable {
  font-size: 18px;
  color: #8b7350;
}
.band {
  padding: 28px 0;
  border-bottom: 1px solid #e5e7e7;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.status {
  font-size: 12px;
  color: #087964;
}
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th {
  color: #73797c;
  font-size: 12px;
  font-weight: 500;
}
td,
th {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid #eff1f0;
}
td {
  font-size: 13px;
}
.project-create {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e5e7e7;
  border-radius: 16px;
  box-shadow: 0 18px 50px #1d302d18;
}
.project-create-main,
.project-preview {
  border-top: 0;
  padding-top: 0;
}
.project-create-main {
  display: grid;
  align-content: start;
  gap: 24px;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.host-field {
  display: grid;
  gap: 0;
}
.host-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d8dddd;
  border-radius: 10px;
}
.host-mark {
  color: #168f78;
  font-size: 17px;
}
.host-kind {
  margin-left: auto;
  color: #73797c;
  font-size: 12px;
}
.workspace-heading h2 {
  margin-bottom: 5px;
}
.workspace-heading p {
  margin: 0;
}
.selection-state {
  color: #087964;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}
.folder-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-block: 1px solid #e5e7e7;
  padding: 10px 0;
}
.folder-toolbar span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.folder-list {
  max-height: 300px;
  overflow: auto;
  border-bottom: 1px solid #e5e7e7;
}
.folder-row,
.preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid #eff1f0;
}
.folder-row:last-child,
.preview-row:last-child {
  border-bottom: 0;
}
.folder-row .folder-name {
  flex: 1;
  min-width: 0;
  border: 0;
  padding-left: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.folder-row .folder-name:disabled {
  color: #25282a;
  cursor: default;
  background: transparent;
}
.folder-row > button:last-child {
  padding: 4px 9px;
  min-height: 28px;
}
.new-folder {
  display: flex;
  gap: 10px;
}
.create-project {
  justify-self: start;
}
.project-preview {
  min-width: 0;
}
.preview-list {
  max-height: 410px;
  overflow: auto;
  border-block: 1px solid #e5e7e7;
  margin-top: 22px;
}
.preview-row {
  justify-content: space-between;
  padding: 0 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.preview-row span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.existing-projects {
  margin-top: 42px;
  width: min(900px, 100%);
  margin-inline: auto;
}
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid #e5e7e7;
}
.project-row > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.project-row strong {
  overflow-wrap: anywhere;
  font-weight: 550;
  font-size: 16px;
}
.project-row span {
  color: #73797c;
  font-size: 12px;
}
.empty {
  padding: 32px 0;
  color: #73797c;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 700px) {
  header {
    min-height: 56px;
    padding: 10px 20px;
    gap: 12px;
  }
  .workspace-label {
    display: none;
  }
  .workspace-label-short {
    display: inline;
  }
  main {
    padding: 20px 20px 32px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
  .metrics > div {
    padding-inline: 16px;
  }
  .metrics > div:nth-child(odd) {
    padding-left: 0;
    border: 0;
  }
  .metrics strong {
    font-size: 20px;
  }
  .config-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .config-grid button {
    justify-self: start;
  }
  #auth-view {
    margin-top: 28px;
  }
  .project-create {
    grid-template-columns: minmax(0, 1fr);
  }
  .folder-toolbar {
    flex-wrap: wrap;
  }
  .folder-toolbar span {
    order: -1;
    flex-basis: 100%;
  }
  .project-preview {
    padding-top: 0;
  }
}

/* Codex Mirror account surfaces share the restrained spacing and borders of Desktop settings. */
.primary-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  color: #fff;
  background: #117d68;
  font-weight: 600;
  white-space: nowrap;
}
.primary-link:hover {
  color: #fff;
  background: #0c6756;
}
.primary-link .key-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
/* Workspace is where the loading page is heading anyway, so the CTA only adds noise there. */
body[data-view='loading'] .workspace-link {
  display: none;
}
.account-menu {
  position: relative;
}
.avatar-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.avatar-button:hover {
  background: transparent;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dfece8;
  color: #0d5f4f;
  font-size: 14px;
  font-weight: 650;
  text-transform: uppercase;
  transition: box-shadow 120ms ease;
}
.avatar-button:hover .avatar,
.avatar-button[aria-expanded='true'] .avatar {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #b9d8cf;
}
#account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 224px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid #e0e4e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px #0000001f;
}
.account-menu-identity {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #ecefee;
}
.account-menu-identity strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.account-menu-identity span {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#account-menu [role='menuitem'] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  text-align: left;
}
#account-menu [role='menuitem']:hover,
#account-menu [role='menuitem']:focus-visible {
  background: #f2f5f4;
  color: inherit;
  outline: none;
}
#account-menu .key-icon {
  color: #73797c;
}
.account-tabs-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e5e7e7;
  background: #fff;
}
.account-tabs {
  display: flex;
  gap: 4px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar {
  display: none;
}
.account-tabs button {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #73797c;
  background: transparent;
  white-space: nowrap;
}
.account-tabs button:hover {
  color: #25282a;
  background: transparent;
}
.account-tabs button[aria-selected='true'] {
  border-bottom-color: #117d68;
  color: #117d68;
  font-weight: 650;
}
.tab-label-short {
  display: none;
}
/* Right under the tab bar the metrics' own top rule would read as a double line. */
.account-panel > .metrics:first-child {
  border-top: 0;
  padding-top: 4px;
}
.account-panel {
  min-width: 0;
}
.overview-grid,
.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.overview-grid > div,
.form-panel,
.result-panel {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5e7e7;
  border-radius: 8px;
  background: #fafbfa;
}
.overview-grid strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
}
.overview-grid p {
  margin: 0;
}
.panel-label {
  color: #73797c;
  font-size: 12px;
}
.section-heading.compact {
  margin-top: 28px;
  margin-bottom: 8px;
}
.section-heading h2,
.form-panel h3,
.password-form h3 {
  margin: 0;
}
.section-heading p {
  margin: 4px 0 0;
}
.form-panel {
  gap: 14px;
}
.form-panel label,
.profile-form label {
  gap: 7px;
}
.form-panel select,
.profile-form input,
.key-form select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d8dddd;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.result-panel {
  display: block;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
}
.profile-form button {
  justify-self: start;
}
.password-form {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #e5e7e7;
}
.password-form h3,
.password-form button {
  grid-column: 1 / -1;
}
.key-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
}
.key-form label {
  gap: 7px;
}
.loading-view {
  max-width: 520px;
  margin: 110px auto;
  text-align: center;
}
.loading-view h1 {
  margin: 10px 0 8px;
}
.loading-view p {
  margin: 0 auto 20px;
}
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 24px;
  border: 3px solid #dce8e4;
  border-top-color: #117d68;
  border-radius: 50%;
  animation: cloud-spin 0.9s linear infinite;
}
@keyframes cloud-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .account-tabs {
    padding: 0 20px;
    gap: 0;
    font-size: 13px;
    /* Let a partially visible last tab hint that the strip scrolls. */
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
  .account-tabs button {
    padding-inline: 10px;
  }
  .overview-grid,
  .billing-grid,
  .profile-form,
  .key-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .key-form button,
  .profile-form button {
    justify-self: start;
  }
  .metrics {
    margin-top: 8px;
  }
}
@media (max-width: 480px) {
  .account-tabs {
    justify-content: space-between;
    mask-image: none;
  }
  .tab-label:has(+ .tab-label-short) {
    display: none;
  }
  .tab-label-short {
    display: inline;
  }
}
