/* one legible interface family; caption previews retain their chosen fonts. */
@font-face {
  font-family: Rip UI;
  src: url('/ui-fonts/MonaSans-VF.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
body,
body.landing-page #home {
  font-family:
    Rip UI,
    Segoe UI,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea,
body.landing-page #home button,
body.landing-page #home input,
body.landing-page #home select {
  font-family:
    Rip UI,
    Segoe UI,
    sans-serif;
}
.home-tabs a {
  font-size: 13px;
}
.page-sub,
.lib-card .preview {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--c-fg-3);
}
.lib-card .meta {
  font-size: var(--t-meta);
  color: var(--c-fg-3);
  line-height: 1.5;
}
.lib-card .title {
  font-size: var(--t-body);
  font-weight: 500;
}
.lib-card .actions a,
.lib-card .actions button {
  font-size: var(--t-label);
  min-height: var(--h-md);
}
.section-title,
.field,
.hint {
  letter-spacing: 0.1px;
}
.hint {
  font-size: var(--t-label);
  line-height: 1.6;
}
.nav-label {
  font-size: var(--t-meta);
  letter-spacing: 0;
}
#libGrid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-5) var(--s-4);
  justify-content: start;
}
.lib-card {
  border-radius: 0;
  padding: 0;
}
.lib-card .thumb {
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.lib-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lib-card .body {
  padding: var(--s-2) 0 var(--s-2);
}
.lib-card .preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-card .actions {
  padding: 0;
  gap: var(--s-1);
}
.library-play {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
  border: 0;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(8px);
  color: var(--c-fg);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: var(--t-label);
  font-weight: 500;
  box-shadow: none;
}
.library-play:hover {
  background: rgba(36, 36, 40, 0.9);
}
.lib-card .fav {
  z-index: 3;
}
.account-trigger::after {
  content: '⌄';
  margin-left: 6px;
  color: var(--c-fg-3);
}
/* CLAUDE 10-12 Graphite: floating layers (menus, dialogs) are the boxes that carry meaning: --c-overlay + --e-float */
.account-dropdown {
  position: fixed;
  right: 26px;
  top: 91px;
  z-index: 100;
  width: 250px;
  background: var(--c-overlay);
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--e-float);
  padding: 6px;
  transform-origin: top right; /* the enter and exit (opacity + scale from the trigger, no animation on a keyboard open) are motion.css's */
}
.account-dropdown[hidden] {
  display: none;
}
.account-dropdown a,
.account-dropdown button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  color: var(--c-fg);
  text-decoration: none;
  font-size: var(--t-body);
}
.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
}
.account-dropdown small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 2px;
  color: var(--c-fg-3);
  font-size: var(--t-meta);
}
.account-dropdown #accountSignOut {
  border-top: 1px solid var(--c-line);
  border-radius: 0;
  margin-top: 4px;
  color: var(--c-danger);
}
.settings-dialog,
.library-player {
  background: var(--c-overlay);
  color: var(--c-fg);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--e-float);
  padding: var(--s-5);
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
}
/* CLAUDE 10-18: these two enter and exit through motion.css's dialog recipe (rc-dialog was an enter-only keyframe) */
.settings-dialog {
  width: 450px;
}
.settings-dialog h2,
.library-player h2 {
  font-size: var(--t-title);
  font-weight: 600;
  letter-spacing: 0;
}
.settings-dialog label {
  display: block;
  margin: var(--s-4) 0;
  font-size: var(--t-label);
  color: var(--c-fg-2);
}
.settings-dialog input,
.settings-dialog textarea {
  display: block;
  width: 100%;
  margin-top: var(--s-2);
  font-size: var(--t-body);
}
.settings-dialog textarea {
  font-family: inherit;
  resize: vertical;
}
.settings-dialog p,
.settings-dialog small {
  font-size: var(--t-label);
  line-height: 1.6;
  color: var(--c-fg-3);
  overflow-wrap: anywhere;
}
.dialog-close {
  float: right;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--c-fg-2);
}
.settings-dialog .primary {
  width: 100%;
  margin-top: var(--s-3);
  border-radius: var(--r-pill);
}
.settings-dialog::backdrop,
.library-player::backdrop {
  background: rgba(0, 0, 0, 0.6); /* the blur (6 px, desktop, never over the editor) is motion.css's */
}
.library-player {
  width: 470px;
  overflow: auto;
}
.library-player > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.library-player h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.library-player button {
  font-size: 24px;
  border: 0;
  background: transparent;
}
.library-player video {
  display: block;
  margin: auto;
  max-height: 70dvh;
  width: 100%;
  border-radius: var(--r-lg);
  background: #000;
}
.library-player p {
  font-size: var(--t-label);
  color: var(--c-fg-2);
}
.username-dialog .username-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
/* CLAUDE 10-18: the suggested usernames are quiet capsules (the .m-chip look), not outlined blue-grey pills */
.username-dialog .username-suggest button {
  background: var(--c-raised);
  border: 0;
  color: var(--c-fg-2);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: var(--t-label);
  cursor: pointer;
}
.username-dialog .username-suggest button:hover {
  background: var(--c-overlay);
  color: var(--c-fg);
}
.username-dialog #usernameStatus {
  min-height: 18px;
  font-weight: 600;
}
.username-dialog #usernameStatus.ok {
  color: var(--c-signal);
}
.username-dialog #usernameStatus.bad {
  color: var(--c-danger);
}
.username-dialog small a {
  color: var(--c-fg);
}
.username-dialog .primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
} /* session 26 username onboarding */
.lib-card .thumb video {
  object-fit: contain;
  background: #090b0f;
}
#landingAccount.account-trigger {
  max-width: 210px;
}
@media (max-width: 820px) {
  .account-dropdown {
    top: 86px;
    right: 18px;
  }
}
@media (max-width: 520px) {
  .account-dropdown {
    top: 140px;
  }
  .lib-card .thumb {
    height: 280px;
  }
  #libGrid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 210px));
  }
  .library-player {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  #landingAccount.account-trigger {
    max-width: 110px;
  }
}

/* CLAUDE 10-04: the clips-ready prompt (notify.js), asked once when a clip job starts. Top right, under the header:
   the bottom belongs to the cookie banner and the toast. */
.ready-ping {
  position: fixed;
  right: 24px;
  top: 80px;
  z-index: 60; /* over #home (fixed, 50) */
  width: min(372px, calc(100vw - 32px));
  padding: 16px;
  /* CLAUDE 10-18: a floating layer in Graphite (it was a near-black card with a hairline); it eases in on --ease-soft */
  background: var(--c-overlay);
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--e-2, var(--e-float));
  color: var(--c-fg);
  animation: ready-ping-in var(--d-enter) var(--ease-soft);
}
.ready-ping p {
  margin: 0 0 12px;
  font-size: var(--t-title);
  font-weight: 600;
}
.ready-ping div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ready-ping button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-body);
}
@keyframes ready-ping-in {
  from {
    opacity: 0;
    translate: 0 calc(var(--shift-md) * -1); /* 0 under reduced motion: it fades (motion.css keeps that fade) */
  }
}
@media (max-width: 520px) {
  /* CLAUDE 10-20 (phone QA P1-7): on a phone it covered the page title; it sits above the tab bar instead */
  .ready-ping {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: calc(var(--tabs-h, env(safe-area-inset-bottom, 0px)) + var(--s-3));
    width: auto;
  }
}
/* CLAUDE 10-20 (phone QA P1-7): on a phone the clip job's tile comes first and runs the width of the page, its steps
   under it (app-base.js processingSteps) */
@media (max-width: 767.98px) {
  #projGrid .proj-tile[data-job] {
    grid-column: 1 / -1;
    order: -1;
  }
}
