/* Compact workspace forms, confirmations and a neutral asset library. */
#workspace-dialog {
  width: min(480px, calc(100vw - 32px));
  height: fit-content;
  min-height: 0;
  max-height: calc(100dvh - 48px);
  padding: 26px;
  border: 1px solid #333;
  border-radius: 20px;
  background: #151515;
  color: #f2f2f2;
  backdrop-filter: none;
}
#workspace-dialog h2 { font-family: inherit; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
#workspace-dialog .field, #workspace-dialog .field > span, #workspace-dialog .project-type-picker legend { color: #929292; font-size: 12px; }
#workspace-dialog .field input { height: 44px; padding: 0 15px; border: 1px solid #353535; border-radius: 12px; background: #222; color: #eee; font-size: 14px; }
#workspace-dialog .field input:focus { outline: 1px solid #a5a5a5; outline-offset: 1px; }
#workspace-dialog .project-type-choice { min-height: 116px; padding: 17px 12px; gap: 10px; border: 1px solid #333; border-radius: 14px; background: #1b1b1b; color: #9a9a9a; }
#workspace-dialog .project-type-choice:hover { background: #222; border-color: #696969; }
#workspace-dialog .project-type-choice:has(input:checked) { background: #292929; border-color: #c7c7c7; color: #f4f4f4; }
#workspace-dialog .project-type-choice input { accent-color: #e3e3e3; }
#workspace-dialog .project-type-choice strong { font-size: 14px; font-weight: 500; }
#workspace-dialog .project-type-art { width: 40px; height: 40px; border-radius: 11px; border: 1px solid #353535; background: #141414; color: #939393; }
#workspace-dialog .project-type-art svg { width: 25px; height: 25px; }
#workspace-dialog .project-type-choice:has(input:checked) .project-type-art { background: #202020; border-color: #626262; color: #eee; }
#workspace-dialog .workspace-dialog-actions { padding-top: 20px; border-color: #303030; gap: 10px; }
#workspace-dialog .workspace-dialog-actions button { min-height: 40px; padding: 9px 20px; border: 1px solid #363636; border-radius: 999px; background: #202020; color: #bbb; font-size: 12px; }
#workspace-dialog .workspace-dialog-actions button:hover { background: #2a2a2a; color: #eee; }
#workspace-dialog .workspace-dialog-actions button[type=submit] { border-color: #f4f4f4; background: #f4f4f4; color: #151515; font-weight: 500; }
#workspace-dialog .workspace-dialog-actions button[type=submit]:hover { background: #fff; border-color: #fff; }
@media (max-width: 380px) { #workspace-dialog { padding: 20px; } }

#delete-workspace-dialog, #delete-shot-dialog {
  width: min(440px, calc(100vw - 32px));
  height: fit-content;
  min-height: 0;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 26px;
  overflow: auto;
  border: 1px solid #33383b;
  border-radius: 18px;
  background: #111314;
  color: #f2f2f2;
  gap: 0;
}
#delete-workspace-dialog h2, #delete-shot-dialog h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
#delete-workspace-name, #delete-shot-name { margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
#delete-workspace-dialog > .muted, #delete-shot-dialog > .muted { margin: 0; color: #979da1; font-size: 12px; line-height: 1.8; }
#delete-workspace-dialog .form-error, #delete-shot-dialog .form-error { margin-top: 14px; }
#delete-workspace-dialog .workspace-dialog-actions, #delete-shot-dialog .workspace-dialog-actions { margin-top: 24px; gap: 10px; }
#delete-workspace-dialog button, #delete-shot-dialog button { min-height: 38px; padding: 8px 18px; border-radius: 999px; font-size: 12px; }
#delete-workspace-confirm, #delete-shot-confirm { background: #cf4148; border: 1px solid #dc5359; color: #fff; }
#delete-workspace-confirm:hover, #delete-shot-confirm:hover { background: #e14c53; border-color: #eb646a; color: #fff; }
#delete-workspace-confirm:disabled, #delete-shot-confirm:disabled { opacity: .45; cursor: wait; }
#asset-library { background: #070707; border-color: #303335; backdrop-filter: none; }
#asset-search { width: 100%; min-width: 0; height: 40px; border: 1px solid #303436; border-radius: 999px; background: #151617; color: #eee; padding: 0 14px; font: inherit; font-size: 12px; }
#asset-search::placeholder { color: #72777b; }
#asset-library .asset-library-filters button { color: #969c9f; border-radius: 999px; }
#asset-library .asset-library-filters button[aria-pressed=true] { color: #eee; background: #202224; }
#asset-library .quiet-button { background: #151617; border-color: #303335; }
#asset-library .quiet-button:hover { background: #202224; border-color: #53585c; }

/* Keep account amounts clear of the inner scrollbar. */
.h3-dialog.h3-wallet.h3-wallet-profile { width: min(1000px, calc(100vw - 32px)); max-width: none; scrollbar-gutter: stable; }
.h3-wallet-profile .profile-account-page, .h3-wallet-profile .wallet-history { min-width: 0; }
.h3-wallet-profile .wallet-history .h3-history { overflow-x: hidden; scrollbar-gutter: stable; padding-right: 14px; }
.h3-wallet-profile .h3-history > div > span { min-width: 0; overflow-wrap: anywhere; }
.h3-wallet-profile .h3-history > div > strong, .h3-wallet-profile .h3-history > div > button { flex-shrink: 0; }

/* The login reference: video on the left, phone/email form on the right. */
.h3-dialog.h3-login[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
  width: min(1200px, calc(100vw - 80px));
  max-width: none;
  height: min(660px, calc(100dvh - 64px));
  min-height: 0;
  max-height: calc(100dvh - 64px);
  padding: 8px;
  margin: auto;
  inset: 0;
  transform: none;
  gap: 0;
  overflow: auto;
  background: #151515;
  border: 1px solid #303030;
  border-radius: 30px;
  backdrop-filter: none;
}
.h3-login .login-visual { position: relative; min-height: 100%; overflow: hidden; background: #060708; border-radius: 23px; }
.h3-login .login-visual > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.h3-login .login-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0005 0, transparent 30%, transparent 48%, #000c 100%); }
.h3-login .login-wordmark { top: 30px; left: 34px; font-size: 13px; letter-spacing: .04em; color: #e7e7e7; }
.h3-login .login-caption { left: 30px; right: 26px; bottom: 34px; }
.h3-login .login-caption h2 { color: #fff; font-family: inherit; font-size: clamp(23px, 2vw, 28px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; white-space: normal; margin: 0 0 10px; }
.h3-login .login-caption p { display: block; color: #c8c8c8; font-size: 14px; line-height: 1.7; letter-spacing: 0; }
.h3-dialog.h3-login form { align-self: center; width: 100%; padding: 44px clamp(24px, 2.6vw, 40px) 28px; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.h3-login .login-form-logo { width: 36px; height: 40px; object-fit: contain; align-self: center; margin: 0 0 14px; }
.h3-login form h2 { font-family: inherit; font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; text-align: center; }
.h3-login .login-intro { font-size: 13px; text-align: center; color: #858585; margin: 8px 0 18px; }
.h3-login .login-methods { display: flex; border: 0; border-bottom: 1px solid #303030; background: none; border-radius: 0; padding: 0; gap: 24px; margin: 0 0 18px; }
.h3-login .login-methods button { flex: 1; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 10px 0; color: #858585; font-size: 13px; }
.h3-login .login-methods button[aria-pressed=true] { color: #f4f4f4; border-bottom-color: #f4f4f4; background: none; box-shadow: none; }
.h3-login .login-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h3-login .login-input-row, .h3-login .h3-code-row { display: flex; align-items: center; min-width: 0; min-height: 48px; gap: 10px; background: #252525; border: 1px solid #333; border-radius: 999px; padding: 0 16px; }
.h3-login .login-input-row { margin-bottom: 12px; }
.h3-login .login-input-icon { width: 18px; height: 18px; flex: 0 0 18px; color: #8d8d8d; }
.h3-login .login-input-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.h3-login .login-phone-prefix { font-size: 13px; font-weight: 500; color: #c4c4c4; flex-shrink: 0; }
.h3-login #h3-login-phone, .h3-login #h3-login-code { flex: 1; width: 0; min-width: 0; min-height: 46px; height: 46px; padding: 0; margin: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #eee; font-size: 13px; box-shadow: none; }
.h3-login input::placeholder { color: #747474; }
.h3-login .login-input-row:focus-within, .h3-login .h3-code-row:focus-within { border-color: #959595; }
.h3-login .h3-code-row button { padding: 0 0 0 13px; min-height: 28px; min-width: 92px; border: 0; border-left: 1px solid #424242; border-radius: 0; background: none; color: #ddd; font-size: 11px; }
.h3-login label[for=h3-invitation] { margin: 17px 0 8px; color: #8c8c8c; font-size: 11px; }
.h3-login #h3-invitation { padding: 0 17px; min-height: 44px; height: 44px; border: 1px solid #333; border-radius: 999px; background: #252525; color: #eee; font-size: 13px; }
.h3-login #h3-invitation:disabled { background: #202020; border-color: #2c2c2c; color: #777; -webkit-text-fill-color: #777; cursor: not-allowed; opacity: 1; }
.h3-login form > p[role=status]:not(:empty) { color: #d7aaa5; font-size: 11px; margin-top: 12px; }
.h3-login .h3-primary { min-height: 47px; margin-top: 20px; padding: 12px 18px; border-radius: 999px; background: #f5f5f5; border: 1px solid #f5f5f5; color: #141414; font-size: 14px; font-weight: 600; }
.h3-login .h3-primary:hover { background: #fff; }
.h3-login .login-note { color: #858585; font-size: 10px; line-height: 1.9; margin-top: 18px; text-align: center; }
.h3-login form footer { border-top: 1px solid #292929; padding-top: 14px; margin-top: 20px; color: #666; font-size: 10px; }
.h3-dialog.h3-login .h3-login-close { position: absolute; display: grid; place-items: center; right: 15px; top: 15px; width: 34px; height: 34px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 1px solid #333; border-radius: 50%; background: #111; color: #bbb; font-size: 0; line-height: 1; }
.h3-dialog.h3-login .h3-login-close svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 980px) {
  .h3-dialog.h3-login[open] { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 1fr); }
  .h3-login .login-caption { left: 24px; right: 20px; bottom: 30px; }
  .h3-login .login-caption h2 { font-size: 25px; }
  .h3-login .login-caption p { font-size: 12px; }
}
@media (max-width: 720px) {
  .h3-dialog.h3-login[open] { width: calc(100vw - 24px); height: auto; max-height: calc(100dvh - 24px); grid-template-columns: 1fr; padding: 6px; border-radius: 23px; }
  .h3-login .login-visual { min-height: 230px; border-radius: 18px; }
  .h3-login .login-wordmark { top: 20px; left: 22px; font-size: 11px; }
  .h3-login .login-caption { left: 22px; bottom: 22px; }
  .h3-login .login-caption h2 { font-size: 23px; }
  .h3-login .login-caption p { display: block; font-size: 11px; }
  .h3-dialog.h3-login form { padding: 28px 24px 20px; }
  .h3-login .login-form-logo { display: none; }
  .h3-login form h2 { font-size: 25px; }
  .h3-login .login-intro { margin-bottom: 16px; }
  .h3-login .login-methods { margin-bottom: 18px; }
}

.h3-dialog.h3-folder-onboarding[open] { display: block; width: min(480px, calc(100vw - 32px)); height: auto; min-height: 0; max-height: calc(100dvh - 32px); padding: 28px; background: #111; border: 1px solid #303030; border-radius: 22px; color: #eee; }
.h3-folder-onboarding h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.4; }
.h3-folder-onboarding p { margin: 12px 0; color: #999; line-height: 1.7; font-size: 14px; }
.h3-folder-onboarding .folder-guide-status { color: #d6aaa5; }
.h3-folder-onboarding .folder-guide-status:empty { display: none; }
.h3-folder-onboarding .folder-guide-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.h3-folder-onboarding button { padding: 11px 20px; border-radius: 999px; border: 1px solid #353535; background: #191919; color: #bbb; }
.h3-folder-onboarding button.h3-primary { background: #f4f4f4; color: #141414; border-color: #f4f4f4; }
