/* RHTV-inspired visual system for the existing Crediea application. */
:root {
  color-scheme: dark;
  --accent: #ccff00;
  --muted: #99999e;
  --border: #303032;
  color: #f2f2f3;
  background: #171719;
  font-family: Inter, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}
body {
  background: #171719;
  color: #f2f2f3;
}
a {
  color: #d0ee66;
}
.layout {
  grid-template-columns: 220px 1fr;
}
.sidebar {
  width: 220px;
  background: #121214;
  border-color: #29292b;
  padding: 28px 16px;
}
@media (min-width: 701px) {
  .sidebar {
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #53603b transparent;
  }
  .sidebar > * {
    flex-shrink: 0;
  }
}
.brand {
  padding: 0 12px 32px;
  gap: 12px;
}
.logo {
  background: #ccff00;
  color: #141511;
  border-radius: 11px;
  font-size: 25px;
}
.brand strong {
  color: #f4f4f5;
  font-size: 23px;
}
.brand small {
  color: #858589;
  font-size: 12px;
}
.navlabel {
  font-size: 12px;
  color: #737379;
  padding: 22px 14px 10px;
}
.nav {
  font-size: 14px;
  color: #a5a5ab;
  border-radius: 9px;
  padding: 13px 14px;
  margin: 4px 0;
  gap: 12px;
}
.nav svg {
  width: 19px;
  height: 19px;
}
.nav:hover {
  background: #252527;
  color: #fff;
}
.nav.active {
  background: #ccff0014;
  color: #d3ff35;
}
.nav.active:before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  background: #ccff00;
  border-radius: 0 3px 3px 0;
}
.helpbox {
  background: #1d1d20;
  border-color: #303033;
}
.helpbox p {
  color: #96969f;
  font-size: 13px;
}
.helpbox button {
  color: #d2eb72;
}
.sidefoot {
  text-align: center;
  color: #737379;
  font-size: 12px;
  line-height: 1.8;
}
.topbar {
  height: 76px;
  background: #171719;
  border-color: #2b2b2e;
  padding: 0 40px;
}
.breadcrumb {
  font-size: 14px;
  color: #77777e;
}
.breadcrumb span {
  color: #dedee1;
}
.mode {
  background: #242626;
  color: #b7bfab;
  font-size: 12px;
  border: 1px solid #343730;
}
.avatar {
  background: #3a4130;
  color: #d6ed9d;
}
.profile strong {
  font-size: 14px;
}
.profile small {
  font-size: 12px;
  color: #909097;
}
.content {
  padding: 40px;
  max-width: 1600px;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.studio-kicker {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #808087;
  font-weight: 600;
}
.workspace-heading h1 {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 11px 0 12px;
}
.workspace-heading p {
  font-size: 14px;
  color: #9a9aa0;
  margin: 0;
}
.primary {
  background: #ccff00;
  color: #151711;
  border-radius: 9px;
  padding: 12px 19px;
  font-weight: 650;
  box-shadow: none;
  font-size: 14px;
}
.primary:hover {
  background: #ddff60;
}
.primary:disabled {
  background: #69743a;
  color: #babfa8;
}
.secondary {
  background: #252628;
  border-color: #414246;
  color: #e4e5df;
  font-size: 14px;
  border-radius: 8px;
}
.secondary:hover {
  border-color: #a0b348;
  background: #303328;
}
.workspace-banner {
  position: relative;
  background: linear-gradient(110deg, #2c3220 0%, #252a20 45%, #202222 100%);
  border: 1px solid #3d4430;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 21px;
  margin-bottom: 38px;
  overflow: hidden;
  min-height: 145px;
}
.banner-symbol {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #ccff0012;
  display: grid;
  place-items: center;
  color: #d3ff3b;
  flex-shrink: 0;
}
.banner-symbol svg {
  width: 29px;
  height: 29px;
}
.workspace-banner strong {
  font-size: 23px;
  letter-spacing: 0.5px;
  font-weight: 550;
}
.workspace-banner p {
  font-size: 14px;
  color: #a9ae9e;
  margin: 10px 0 0;
  line-height: 1.8;
}
.workspace-banner .secondary {
  margin-left: auto;
  z-index: 1;
  background: #2b3023;
  border-color: #64713b;
  white-space: nowrap;
}
.banner-art {
  position: absolute;
  right: -45px;
  top: -55px;
  width: 300px;
  height: 260px;
  pointer-events: none;
  opacity: 0.16;
}
.banner-art i {
  position: absolute;
  inset: 0;
  border: 1px solid #d0ff47;
  border-radius: 42px;
  transform: rotate(35deg);
}
.banner-art i:nth-child(2) {
  inset: 30px;
}
.banner-art i:nth-child(3) {
  inset: 60px;
}
.project-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 25px;
  gap: 16px;
}
.project-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  white-space: nowrap;
}
.project-scope .selected {
  font-weight: 600;
}
.count {
  font-size: 12px;
  background: #303033;
  border-radius: 6px;
  min-width: 24px;
  padding: 3px 7px;
  text-align: center;
  color: #bdbdc2;
}
.project-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-search {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #222225;
  border: 1px solid #343438;
  border-radius: 8px;
  padding: 0 12px;
  color: #85858c;
}
.project-search svg {
  width: 17px;
  height: 17px;
}
.project-search input {
  border: 0;
  background: transparent;
  width: 185px;
  box-shadow: none;
  font-size: 14px;
  padding: 11px 0;
}
.project-sort-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 16px;
  border: 1px solid #3a3b3e;
  border-radius: 12px;
  background: #222225;
  color: #d2d2d7;
  white-space: nowrap;
  font-size: 14px;
}
.project-sort-trigger > span {
  color: #92929b;
}
.project-sort-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  width: 280px;
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #353538;
  border-radius: 16px;
  background: #1b1b1e;
  color: #d4d4d9;
  box-shadow: 0 20px 50px #0008;
}
.project-sort-menu::backdrop {
  background: transparent;
}
.project-sort-menu p {
  margin: 9px 12px;
  color: #85858e;
  font-size: 12px;
}
.project-sort-menu button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 12px;
  border: 0;
  border-radius: 8px;
  color: #bbbcc3;
  font-size: 15px;
  text-align: left;
  background: transparent;
}
.project-sort-menu button:hover {
  background: #2c2c31;
}
.project-sort-menu button[aria-pressed='true'] {
  color: #f0f1ed;
}
.project-sort-menu hr {
  border: 0;
  border-top: 1px solid #36363b;
  margin: 9px 0 16px;
}
.project-controls select {
  width: 130px;
  font-size: 14px;
  background-color: #222225;
}
.view-toggle {
  display: flex;
  padding: 4px;
  border: 1px solid #343438;
  border-radius: 8px;
  background: #202023;
  gap: 3px;
}
.view-toggle button {
  padding: 5px;
  color: #77777f;
  border-radius: 4px;
}
.view-toggle button[aria-pressed='true'] {
  background: #3a3a3e;
  color: #f3f3f4;
}
.view-toggle svg {
  width: 18px;
  height: 18px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.project-card {
  min-width: 0;
  padding: 0;
  text-align: left;
  transition: transform 0.18s;
  color: #ededf0;
}
.project-card:hover {
  transform: translateY(-3px);
}
.project-cover {
  aspect-ratio: 10/7;
  border-radius: 20px;
  background: #272729;
  border: 1px solid #343436;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #85858d;
}
.project-record .cover-badge {
  top: auto;
  left: auto;
  bottom: 12px;
  right: 12px;
}
.project-cover img,
.project-cover video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-nodes {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bfd978;
}
.project-nodes svg {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  background: #363d2d;
  border: 1px solid #5e6b46;
  border-radius: 9px;
  padding: 13px;
}
.project-nodes i {
  width: 20px;
  height: 1px;
  background: #69754f;
}
.cover-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #18181cc9;
  padding: 5px 9px;
  border-radius: 6px;
  color: #bfbfc7;
  font-size: 12px;
}
.project-caption {
  padding: 15px 3px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-caption strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.project-caption span,
.project-caption a {
  font-size: 13px;
  color: #898991;
}
.new-project {
  aspect-ratio: 10/7;
  border: 1px dashed #48484b;
  border-radius: 20px;
  background: #232325;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #e2e2e6;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.new-project:hover {
  background: #2b2e23;
  border-color: #a1bb50;
}
.new-project-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #30322a;
  color: #ccff00;
  margin-bottom: 3px;
}
.new-project-icon svg {
  width: 28px;
  height: 28px;
}
.new-project strong {
  font-size: 16px;
  font-weight: 550;
}
.new-project > span:last-child {
  font-size: 13px;
  color: #8c8c94;
}
.studio-empty {
  text-align: center;
  padding: 65px 20px 75px;
  color: #74747e;
}
.studio-empty > svg {
  width: 40px;
  height: 40px;
  stroke-width: 1;
  opacity: 0.7;
}
.studio-empty h3 {
  font-size: 17px;
  font-weight: 500;
  color: #a9a9b1;
  margin: 18px 0 10px;
}
.studio-empty p {
  font-size: 14px;
  color: #7d7d87;
  line-height: 1.8;
}
.workspace-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #2a2a2d;
  padding-top: 23px;
  margin-top: 35px;
  font-size: 12px;
  color: #686871;
}
.workspace-foot span:last-child {
  letter-spacing: 2px;
}
.list-view {
  grid-template-columns: 1fr;
}
.list-view .new-project {
  aspect-ratio: auto;
  min-height: 95px;
  flex-direction: row;
}
.list-view .project-card {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #343438;
  padding-bottom: 16px;
  gap: 20px;
}
.list-view .project-cover {
  width: 150px;
  flex-shrink: 0;
  border-radius: 10px;
}
.list-view .project-nodes {
  transform: scale(0.5);
}
input,
textarea,
select {
  background: #222225;
  border-color: #3b3b40;
  color: #e5e5e9;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #75757e;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #a3be42;
  box-shadow: 0 0 0 3px #ccff0010;
}
select {
  appearance: none;
  padding-right: 33px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%239a9a9f' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
label,
.subtext {
  color: #a6a6ae;
}
.panel,
.stat,
.appcard {
  background: #222225;
  border-color: #36363a;
}
.panelhead small,
.stathead,
.stat small,
.appcard p,
.balance p {
  color: #a0a0a9;
}
.iconbox,
.tag {
  background: #343b23;
  color: #bfd877;
}
.filter {
  background: #252528;
  border-color: #3b3b40;
  color: #aaaab3;
  font-size: 14px;
}
.filter.selected {
  background: #ccff0014;
  border-color: #697d32;
  color: #d3ed7b;
}
.hero {
  background: #292f20;
  border-color: #414a30;
}
.hero p {
  color: #adb69b;
}
.hero h2 {
  color: #f0f3e9;
}
.heroart {
  opacity: 0.35;
}
.eyebrow {
  color: #b4cb76;
}
.appvisual {
  background: #333b28;
  color: #bdd77c;
}
.appvisual.blue {
  background: #263342;
  color: #8db5d9;
}
.appvisual.orange {
  background: #403226;
  color: #d4ab7d;
}
.appvisual.green {
  background: #263b34;
  color: #83bba4;
}
th {
  background: #29292d;
  color: #a5a5af;
}
td {
  border-color: #35353a;
  color: #bebec7;
}
td:first-child {
  color: #ededf0;
}
.pill {
  background: #243d32;
  color: #9dd2b8;
}
.pill.running,
.pill.queued {
  background: #363a25;
  color: #c3d382;
}
.pill.off,
.pill.failed {
  background: #452a2c;
  color: #e6a3a6;
}
.notice,
.result {
  background: #2a2d23;
  color: #b9c3a8;
  border: 1px solid #3f4732;
}
.result {
  color: #d5d8cc;
}
.textbtn {
  color: #c7de82;
  font-size: 14px;
}
.footer {
  color: #7d7d86;
  font-size: 12px;
}
dialog {
  background: #222225;
  border-color: #44444b;
  color: #f0f0f3;
}
dialog::backdrop {
  background: #0009;
}
.error {
  color: #f1a0a0;
}
#toast {
  background: #d1ec80;
  color: #1b2112;
}
.loginintro {
  background: #20261a;
}
.loginintro p {
  color: #aebc99;
}
.loginpage {
  background: #171719;
}
.loginintro h1 {
  color: #f3f3ed;
}
.demobox {
  background: #252528;
}
.bartrack {
  background: #35353b;
}
.barfill {
  background: #a9c75b;
}
.canvas-shell {
  border-radius: 15px;
  --c-bg: #18181a;
  --c-panel: #232325;
  --c-border: #38383d;
}
.canvas-top-actions .canvas-run {
  background: #ccff00;
  color: #202510;
}
.canvas-top-actions .canvas-run:hover {
  background: #dcff53;
}
.canvas-stage {
  background-color: #19191c;
}
.canvas-library > button {
  border-color: #45454c;
}
.canvas-library > button:hover {
  background: #303034;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #c9f24c;
  outline-offset: 4px;
}
@media (min-width: 1600px) {
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .list-view {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
  }
  .content {
    padding: 30px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-view {
    grid-template-columns: 1fr;
  }
  .project-search input {
    width: 130px;
  }
  .workspace-banner {
    padding: 24px;
  }
  .banner-symbol {
    display: none;
  }
  .workspace-banner p {
    max-width: 330px;
  }
  .project-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .project-controls {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    width: auto;
    position: static;
    height: auto;
    padding: 15px;
  }
  .sidebar .brand {
    padding: 0 10px 15px;
  }
  .nav.active:before {
    display: none;
  }
  .nav {
    font-size: 13px;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .content {
    padding: 26px 18px;
  }
  .workspace-heading h1 {
    font-size: 29px;
  }
  .workspace-heading {
    align-items: center;
    gap: 12px;
  }
  .workspace-heading > .primary {
    padding: 11px 13px;
    white-space: nowrap;
  }
  .studio-kicker {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .workspace-heading p {
    font-size: 13px;
  }
  .workspace-banner {
    padding: 23px;
    display: block;
    margin-bottom: 28px;
  }
  .workspace-banner strong {
    font-size: 21px;
  }
  .workspace-banner p {
    font-size: 14px;
    max-width: none;
    margin-bottom: 18px;
  }
  .workspace-banner .secondary {
    position: relative;
    margin: 0;
  }
  .project-toolbar {
    gap: 18px;
  }
  .project-controls {
    width: 100%;
    margin: 0;
    gap: 8px;
  }
  .project-search {
    flex: 1;
    min-width: 0;
  }
  .project-search input {
    width: 100%;
    min-width: 0;
  }
  .project-controls select {
    width: 118px;
  }
  .view-toggle {
    display: none;
  }
  .project-grid {
    gap: 15px;
  }
  .new-project strong {
    font-size: 14px;
  }
  .new-project > span:last-child {
    font-size: 12px;
  }
  .new-project-icon {
    width: 40px;
    height: 40px;
  }
  .new-project {
    gap: 8px;
    border-radius: 14px;
  }
  .project-cover {
    border-radius: 14px;
  }
  .project-nodes {
    transform: scale(0.65);
  }
  .studio-empty {
    padding: 45px 8px;
  }
  .workspace-foot {
    gap: 15px;
    font-size: 11px;
  }
  .workspace-foot span:last-child {
    letter-spacing: 1px;
  }
  .profile {
    padding-left: 0;
  }
  .mode {
    font-size: 11px;
  }
  .loginintro {
    display: none;
  }
  .loginform {
    background: #171719;
  }
  .list-view .project-cover {
    width: 110px;
  }
  .list-view .project-card {
    gap: 12px;
  }
  .list-view .new-project {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.database-notice {
  margin-bottom: 24px;
  font-size: 14px;
}
.database-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.database-toolbar label {
  font-size: 14px;
  margin-top: 0;
}
.database-toolbar select {
  min-width: 230px;
}
.database-search {
  flex: 1;
  min-width: 220px;
}
.database-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  font-size: 14px;
}
.database-summary span {
  color: #a4a4ae;
}
.database-table {
  max-height: 65vh;
  scrollbar-color: #53535c #242427;
}
.database-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 14px;
  padding: 14px 18px;
}
.database-table th small {
  display: block;
  font-size: 12px;
  color: #858590;
  margin-top: 6px;
  font-weight: 400;
}
.database-table td {
  font-size: 14px;
  max-width: 340px;
  padding: 15px 18px;
}
.database-cell {
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: #d2e994;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: #74824e;
  text-underline-offset: 4px;
}
.database-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 14px;
  color: #aaaab5;
}
.database-pagination > span {
  margin-right: auto;
}
.database-pagination label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 14px;
}
.database-pagination select {
  width: 83px;
}
.database-detail {
  font-family: inherit;
  max-height: 60vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.database-pagination button:disabled {
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .database-toolbar > div {
    width: 100%;
  }
  .database-toolbar select {
    width: 100%;
  }
  .database-pagination > span {
    width: 100%;
  }
  .database-table td {
    padding: 13px;
  }
  .database-cell {
    max-width: 210px;
  }
}
.school-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.school-row-actions .secondary {
  padding: 8px 13px;
  white-space: nowrap;
}
.school-accounts-back {
  margin-bottom: 24px;
}
.school-account-summary {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 19px 23px;
  background: #222522;
  border: 1px solid #394034;
  border-radius: 12px;
  margin-bottom: 25px;
  color: #a6afa0;
  font-size: 14px;
}
.school-account-summary strong {
  font-size: 21px;
  color: #d1e99f;
  margin-left: 8px;
}
.school-account-summary .textbtn {
  margin-left: auto;
}
.account-filters {
  margin-bottom: 12px;
}
.account-filters select {
  width: 155px;
}
.account-filters input {
  flex: 1;
  min-width: 180px;
}
.account-filters + .subtext {
  margin: 12px 0 18px;
  font-size: 14px;
}
@media (max-width: 700px) {
  .school-account-summary {
    gap: 15px;
    padding: 17px;
  }
  .school-account-summary .textbtn {
    margin-left: 0;
  }
  .account-filters select {
    width: calc(50% - 5px);
  }
  .account-filters input {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .school-row-actions {
    gap: 10px;
  }
}
.project-record {
  position: relative;
}
.project-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
}
.project-open:disabled {
  opacity: 1;
  cursor: default;
}
.project-delete {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  padding: 7px 12px;
  border: 1px solid #795250;
  border-radius: 8px;
  background: #302626ee;
  color: #f2b9b2;
  font-size: 12px;
}
.project-delete:hover {
  background: #583532;
  border-color: #d48b83;
}
.project-restore {
  background: #303a26ee;
  color: #d2e8a5;
  border-color: #657c46;
}
.project-restore:hover {
  background: #495b34;
}
.project-record .project-caption {
  padding-right: 55px;
}
.list-view .project-record {
  padding-right: 75px;
}
.list-view .project-open {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.list-view .project-delete {
  top: 50%;
  transform: translateY(-50%);
}
.project-controls > [data-project-trash] {
  white-space: nowrap;
  padding: 10px;
  font-size: 12px;
}
.project-controls > [data-project-trash][aria-pressed='true'] {
  border-color: #9eb657;
  color: #d2e8a5;
}
@media (max-width: 700px) {
  .project-controls {
    flex-wrap: wrap;
  }
  .project-delete {
    right: 8px;
    top: 8px;
    padding: 6px 9px;
  }
  .list-view .project-open {
    gap: 12px;
  }
}
.project-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
}
.project-more {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border: 1px solid #505448;
  border-radius: 9px;
  background: #20231eee;
  color: #e4ebd5;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 2px;
}
.project-more:hover,
.project-more[aria-expanded='true'] {
  background: #465234;
  border-color: #b7d381;
}
.project-action-menu {
  position: absolute;
  right: 0;
  top: 39px;
  width: 160px;
  padding: 6px;
  background: #282c25;
  border: 1px solid #505a43;
  border-radius: 11px;
  box-shadow: 0 12px 35px #0009;
}
.project-action-menu[hidden] {
  display: none;
}
.project-action-menu button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  color: #e0e6d7;
  font-size: 13px;
}
.project-action-menu button:hover,
.project-action-menu button:focus-visible {
  background: #434e35;
  outline: 0;
}
.project-action-menu button.danger {
  color: #f0aca4;
  border-top: 1px solid #ffffff12;
}
.list-view .project-actions {
  top: 12px;
}
.project-record:has(.project-action-menu:not([hidden])) {
  z-index: 5;
}
.stats.personal-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-usage-panel {
  margin: 0 0 24px;
}
.account-usage-panel .panelhead small {
  color: #929b85;
  font-size: 12px;
}
.account-usage-panel th,
.account-usage-panel td {
  padding: 15px 20px;
}
.account-usage-panel th:nth-last-child(-n + 2),
.account-usage-panel td:nth-last-child(-n + 2) {
  text-align: right;
}
@media (max-width: 700px) {
  .stats.personal-stats {
    gap: 12px;
  }
  .account-usage-panel th,
  .account-usage-panel td {
    padding: 12px;
  }
}

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.admin-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  padding: 22px;
  border: 1px solid #343438;
  border-radius: 14px;
  background: #222225;
  color: #ededf0;
}
.admin-shortcut:hover {
  border-color: #819a39;
  background: #292d23;
}
.admin-shortcut strong {
  font-size: 17px;
}
.admin-shortcut > span:last-child {
  font-size: 13px;
  color: #aaaab2;
  line-height: 1.7;
}
.admin-dashboard-panels {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
}
.admin-dashboard-panels .panelhead {
  padding: 20px 22px 16px;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.admin-account-panel .tablewrap table {
  min-width: 0;
  white-space: normal;
}
.admin-account-panel :is(th, td) {
  padding-inline: 14px;
}
.admin-account-panel :is(th, td):first-child {
  padding-inline-start: 22px;
  white-space: nowrap;
}
.admin-account-panel :is(th, td):nth-child(2),
.admin-account-panel :is(th, td):nth-child(3) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.admin-account-panel .admin-role-disabled {
  font-weight: 650;
  color: #efb3ad;
}
.admin-monitor-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 22px;
}
.admin-monitor-metrics > div {
  padding: 14px 16px;
  border: 1px solid #3a3b3f;
  border-radius: 10px;
  background: #27282b;
}
.admin-monitor-metrics dt {
  color: #b9bac2;
  font-size: 13px;
}
.admin-monitor-metrics dd {
  margin: 4px 0 0;
  font-size: 25px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.admin-monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 22px 22px;
}
@media (max-width: 1000px) {
  .admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard-panels {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .admin-shortcuts {
    grid-template-columns: 1fr;
  }
  .admin-account-panel :is(th, td) {
    padding-inline: 8px;
  }
  .admin-account-panel :is(th, td):first-child {
    padding-inline-start: 14px;
  }
}

.settingsgrid.credits-personal {
  grid-template-columns: minmax(0, 1fr);
}
.credits-personal .balance {
  padding: 30px 32px;
}
.credits-personal .balance > strong {
  font-size: clamp(36px, 4vw, 52px);
  margin: 22px 0;
}
.credits-personal .balance .bartrack {
  max-width: 100%;
  margin-top: 8px;
}
.credits-personal .balance > p {
  margin-bottom: 0;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .credits-personal .balance {
    padding: 24px 20px;
  }
}
