:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202124;
  background: #fafafa;
  font-synthesis: none;
  --muted: #65656e;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --line: #e8e8eb;
  --accent: #171719;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dedee3;
  border-radius: 5px;
  background: white;
  color: #303036;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease-out);
}
button:hover {
  background: #f0f0f2;
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:where(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.primary {
  background: #202022;
  color: white;
  border-color: #202022;
}
.primary:hover {
  background: #3b3b40;
}
.subtle {
  background: transparent;
  border: none;
  color: #777;
}
.icon {
  padding: 4px 8px;
  font-size: 20px;
}
.muted,
small {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
input,
textarea,
select {
  background: white;
  border: 1px solid #dedee3;
  border-radius: 5px;
  padding: 11px 12px;
  outline: none;
  color: #303036;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #888;
  box-shadow: 0 0 0 3px #00000006;
}
textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.3px;
  font-weight: 600;
  line-height: 1.2;
}
p {
  line-height: 1.6;
  color: #7b7b83;
}
.eyebrow {
  display: block;
  color: #929299;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  margin-bottom: 14px;
}
.brand-mark {
  height: 30px;
  width: 30px;
  display: inline-grid;
  place-items: center;
  background: #202022;
  color: white;
  border-radius: 7px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px #ffffff25;
}
.brand {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.brand-logo {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1324 / 325;
}
.brand-logo img {
  position: absolute;
  max-width: none;
  width: 133.988%;
  height: auto;
  left: -18.731%;
  top: -86.462%;
}
.brand {
  width: 100%;
}
.login-logo {
  width: min(100%, 340px);
  margin-bottom: 40px;
}
.version {
  font-size: 10px;
  border: 1px solid #ddd;
  padding: 2px 4px;
  color: #8b8b93;
  border-radius: 3px;
  margin-left: auto;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fdfdfd;
  border-right: 1px solid var(--line);
  padding: 28px 19px;
  display: flex;
  flex-direction: column;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 10px;
  border-radius: 6px;
  margin: 29px 0 30px;
  font-size: 12px;
  font-weight: 600;
}
.workspace small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  font-weight: 400;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #ece9e4;
  color: #786d5f;
  width: 31px;
  height: 31px;
  border: 1px solid #e1dcd4;
  border-radius: 5px;
  font-size: 12px;
}
.online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64a98a;
  display: inline-block;
}
.workspace .online {
  margin-left: auto;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #9a9aa2;
  font-weight: 650;
  padding-left: 10px;
}
nav {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
nav button {
  border: none;
  background: transparent;
  justify-content: flex-start;
  font-size: 12px;
  padding: 11px 10px;
  color: #71717a;
}
nav button.active {
  background: #eeeef0;
  color: #202024;
  font-weight: 600;
}
nav .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
nav .badge {
  margin-left: auto;
  font-size: 10px;
  color: #909098;
}
nav .project-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #aaa;
  margin: 0 7px;
}
.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}
#project-nav {
  overflow: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.secure {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 20px 8px;
}
.secure > span {
  font-size: 25px;
  color: #909097;
}
.secure small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.sidebar-bottom button {
  font-size: 11px;
}
.main {
  margin-left: 240px;
}
header {
  height: 73px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 11px;
  background: #ffffffaa;
}
.crumb {
  margin: 0 15px;
  color: #bbb;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #888;
}
.small {
  width: 27px;
  height: 27px;
  margin-left: 12px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.page-heading p {
  margin-top: 11px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 8px;
}
.actions button {
  font-size: 11px;
  white-space: nowrap;
}
#title-count {
  font-size: 13px;
  vertical-align: middle;
  margin-left: 12px;
  letter-spacing: 0;
  color: #777;
  border: 1px solid #e0e0e4;
  border-radius: 5px;
  padding: 3px 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0 22px;
}
.stat {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
}
.stat-label {
  color: #93939b;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.stat small {
  font-size: 10px;
}
.dropzone {
  border: 1px dashed #d5d5db;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  background: #f7f7f8;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
.dropzone:hover,
.dropzone.drag {
  background: #eeeef1;
  border-color: #888;
}
.upload-symbol {
  display: grid;
  place-items: center;
  border: 1px solid #dddde3;
  background: white;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 22px;
  color: #72727b;
  box-shadow: 0 2px 3px #00000003;
}
.dropzone strong {
  font-size: 12px;
  font-weight: 550;
}
.dropzone p {
  font-size: 11px;
  margin-top: 5px;
}
.link {
  color: #343438;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drop-info {
  margin-left: auto;
  text-align: right;
  font-size: 10px;
  color: #909099;
  line-height: 1.9;
}
.drop-info span {
  color: #aaaab1;
}
.toolbar {
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 330px;
}
.search-wrap span {
  position: absolute;
  left: 12px;
  top: 7px;
  font-size: 22px;
  color: #96969f;
}
.search-wrap input {
  width: 100%;
  font-size: 11px;
  padding-left: 37px;
  background: #fff;
}
.filters {
  display: flex;
  gap: 8px;
}
.filters select,
.filters button {
  font-size: 11px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 19px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  position: relative;
  cursor: pointer;
}
.card:hover {
  border-color: #bbb;
}
.card.selected {
  border-color: #555;
  box-shadow: 0 0 0 1px #555;
}
.card-image {
  height: 210px;
  background: repeating-conic-gradient(#f3f3f4 0% 25%, #f8f8f9 0% 50%) 50%/18px
    18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.card-meta {
  padding: 15px;
}
.card-meta strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta small {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 9px;
}
.clean-badge {
  color: #65937e;
}
.card-check {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 17px;
  height: 17px;
  accent-color: #242427;
  cursor: pointer;
}
.star {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  background: #ffffffed;
  font-size: 16px;
  border-color: #00000009;
}
.star.on {
  color: #b68b32;
}
.empty {
  grid-column: 1/-1;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #fff;
  padding: 28px;
}
.empty .empty-icon {
  font-size: 32px;
  color: #b1b1ba;
  margin-bottom: 18px;
}
.empty h2 {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  max-width: 380px;
}
.empty button {
  margin-top: 22px;
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.5px;
}
.bulk {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #242426;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bulk strong {
  font-size: 11px;
  margin-right: auto;
}
.bulk button {
  font-size: 10px;
  background: #353538;
  border-color: #505057;
  color: #eee;
}
.prompt-card {
  padding: 22px;
  min-height: 190px;
}
.prompt-card h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.prompt-card p {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.prompt-card small {
  display: block;
  margin-top: 18px;
  font-size: 10px;
}
.notice {
  padding: 15px;
  border: 1px solid var(--line);
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.6;
  background: white;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  width: min(600px, 95vw);
  max-height: 90vh;
  color: #26262c;
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #18182060;
  backdrop-filter: blur(3px);
}
dialog[open]::backdrop {
  animation: backdrop-in 220ms var(--ease-out);
}
dialog.closing::backdrop {
  opacity: 0;
  transition: opacity 160ms ease;
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-head {
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.modal-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-body p {
  font-size: 12px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.modal-actions button {
  font-size: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.preview-name {
  font-family: monospace;
  font-size: 12px;
  background: #f5f5f6;
  padding: 15px;
  border-radius: 4px;
  color: #666;
  overflow-wrap: anywhere;
}
.detail-image {
  max-height: 45vh;
  object-fit: contain;
  background: #f5f5f7;
  border-radius: 4px;
}
.detail-meta {
  font-size: 11px;
  color: #888;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 8px);
  padding: 14px 22px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #242426;
  color: #fff;
  font-size: 12px;
  z-index: 30;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease-out),
    visibility 180ms;
  white-space: pre-line;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
#progress {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 330px;
  max-width: 90vw;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 40px #0002;
  z-index: 20;
}
#progress strong {
  font-size: 12px;
}
progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 15px 0;
  accent-color: #333;
}
#progress-detail {
  font-size: 10px;
  color: #999;
  overflow-wrap: anywhere;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fafafa;
}
.login-card {
  width: min(420px, 90vw);
  padding: 40px 0;
}
.login-card .brand-mark {
  margin-bottom: 35px;
  width: 40px;
  height: 40px;
  font-size: 24px;
}
.login-card h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
.login-card p {
  font-size: 13px;
  margin: 17px 0 30px;
}
.login-card label {
  margin-top: 30px;
}
.login-card button {
  width: 100%;
  margin-top: 15px;
  justify-content: space-between;
  padding: 13px;
}
.login-card small {
  font-size: 11px;
}
.login-card #login-error {
  color: #b24444;
  margin: 15px 0;
  font-size: 12px;
}
.error-list {
  padding: 12px;
  background: #fff5f4;
  color: #a54d43;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  border-radius: 4px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  font-size: 12px;
}
.check-label input {
  accent-color: #222;
}
a {
  color: inherit;
}
.file-list {
  font-size: 12px;
  line-height: 1.8;
  color: #777;
  max-height: 140px;
  overflow: auto;
}
@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .card-image {
    height: 260px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 205px;
    padding: 25px 14px;
  }
  .main {
    margin-left: 205px;
  }
  main {
    padding: 28px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .drop-info {
    display: none;
  }
  .actions {
    margin-top: 5px;
  }
  header {
    padding: 0 28px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    height: auto;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  aside .workspace,
  .nav-label {
    display: none;
  }
  aside {
    position: relative;
  }
  .sidebar-bottom {
    position: absolute;
    top: 17px;
    right: 16px;
    margin: 0;
    padding: 0;
  }
  .sidebar-bottom button {
    min-height: 40px;
  }
  .project-heading {
    margin-top: 10px;
  }
  .project-heading .nav-label {
    display: block;
  }
  .brand {
    margin-bottom: 12px;
    width: 185px;
  }
  #main-nav,
  #project-nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 7px;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px;
  }
  #project-nav:empty {
    display: none;
  }
  .main {
    margin: 0;
  }
  header {
    height: 50px;
    padding: 0 20px;
  }
  .header-right {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    gap: 8px;
    margin-top: 25px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat-label {
    font-size: 9px;
  }
  .dropzone {
    padding: 20px;
    gap: 12px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-wrap {
    max-width: none;
  }
  .filters {
    justify-content: space-between;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-image {
    height: 170px;
  }
  .card-meta {
    padding: 11px;
  }
  .card-meta small {
    font-size: 9px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .actions button {
    font-size: 10px;
  }
  #progress {
    right: 15px;
    bottom: 15px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .prompt-card {
    grid-column: 1/-1;
  }
  .bulk button {
    padding: 7px;
  }
  footer {
    font-size: 8px;
  }
  .modal-body {
    padding: 20px;
  }
  .empty {
    min-height: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  dialog::backdrop {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
