/* Projects: a quiet workspace around the blood-orange signal. */
.pj-dialog { color-scheme: dark; width: min(850px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #ffffff25; border-radius: 24px; background: radial-gradient(ellipse 70% 280px at 105% -12%, #f7350030, transparent 75%), #030303; color: #f3f2ef; box-shadow: 0 32px 120px #000e, inset 0 1px #ffffff0c; overflow: auto; overscroll-behavior: contain; scrollbar-color: #3b3330 #080808; font-family: inherit; }
.pj-dialog::backdrop { background: #000c; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pj-dialog *, .pj-mode * { box-sizing: border-box; }
.pj-dialog [hidden], .pj-mode[hidden] { display: none !important; }
.pj-shell { padding: 32px; }
.pj-dialog button, .pj-dialog input, .pj-mode button, .pj-dialog a { font: inherit; }
.pj-dialog button, .pj-mode button { cursor: pointer; touch-action: manipulation; }
.pj-dialog button:disabled, .pj-dialog input:disabled { opacity: .45; cursor: default; }
.pj-dialog :is(button,input,a,summary):focus-visible, .pj-mode button:focus-visible { outline: 2px solid #ff815f; outline-offset: 4px; }
.pj-dialog svg, .pj-mode svg { width: 20px; height: 20px; flex-shrink: 0; }
.pj-dialog a { text-decoration: none; }
.pj-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.pj-eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 600; letter-spacing: .13em; color: #b2aaa5; }
.pj-dialog h2 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.pj-dialog h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.pj-dialog p { line-height: 1.6; }
.pj-primary, .pj-secondary, .pj-danger, .pj-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px !important; font-weight: 600 !important; line-height: 1.35; text-decoration: none; }
.pj-primary { color: #180600; background: linear-gradient(115deg, #ff6b30, #ff3e0a 65%, #f22c0a); border-color: #ff7a474d; box-shadow: inset 0 1px #ffffff2c, 0 5px 22px #f8320017; }
.pj-secondary { color: #e5e1dd; background: linear-gradient(145deg, #ffffff09, #ffffff03), #080808; border-color: #ffffff24; }
.pj-text-button { padding: 8px 0; color: #c5bcb7; background: transparent; }
.pj-danger { color: #ffc1af; background: #47150e; border-color: #ff684340; }
.pj-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; min-width: 42px; padding: 9px; border: 1px solid transparent; border-radius: 9px; color: #bcb4af; background: transparent; }
.pj-icon > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pj-header > .pj-icon { border-color: #ffffff20; border-radius: 50%; background: #ffffff05; }
.pj-intro { font-size: 14px; color: #b3aca7; margin: 0 0 21px; }
.pj-create, .pj-rename { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.pj-dialog input { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #ffffff25; border-radius: 9px; color: #f3f0ed; background: #090909; font-size: 14px; }
.pj-dialog input::placeholder { color: #8e8580; }
.pj-dialog input:focus { border-color: #ff623d8c; }
.pj-create .pj-primary, .pj-rename .pj-secondary { flex-shrink: 0; min-height: 46px; }
.pj-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pj-project-card { min-width: 0; border: 1px solid #ffffff17; border-radius: 13px; background: linear-gradient(145deg, #ffffff05, transparent), #090909; overflow: hidden; }
.pj-project-card.pj-is-active { border-color: #ff522d77; background: radial-gradient(ellipse at 0 0, #fa3c0017, transparent 80%), #090909; }
.pj-project-open { display: flex; align-items: center; width: 100%; gap: 13px; min-height: 92px; padding: 20px 16px; text-align: left; border: 0; color: #f2eeeb; background: transparent; }
.pj-project-symbol { color: #ff693d; display: flex; }
.pj-project-symbol svg { width: 24px; height: 24px; }
.pj-project-name { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 7px; }
.pj-project-name strong { font-size: 14px; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.pj-project-name small { color: #a39891; font-size: 10px; line-height: 1.4; }
.pj-project-open > svg { width: 17px; height: 17px; color: #867b75; }
.pj-fine { color: #8c827b; font-size: 11px; margin: 20px 0 0; }
.pj-empty { padding: 45px 22px; text-align: center; border: 1px dashed #ffffff1f; border-radius: 15px; background: radial-gradient(ellipse at 100% 120%, #ff3b0012, transparent 72%), #070707; }
.pj-empty-mark { color: #ff6336; margin: 0 auto 20px; display: flex; justify-content: center; }
.pj-empty-mark svg { width: 40px; height: 40px; }
.pj-empty h3 { font-size: 24px; letter-spacing: -.035em; }
.pj-empty p { margin: 12px auto 22px; max-width: 390px; color: #aba099; font-size: 13px; }
.pj-empty > p:last-child { margin-bottom: 0; }
.pj-empty .pj-fine { font-size: 11px; margin-top: 19px; }
.pj-loading { color: #afa69f; font-size: 13px; min-height: 130px; padding: 44px 0; text-align: center; }
.pj-status { min-height: 0; margin: 18px 0 0; font-size: 12px; color: #bca9a0; overflow-wrap: anywhere; }
.pj-status:empty { display: none; }
.pj-detail-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: -4px 0 15px; }
.pj-detail-top .pj-text-button { font-size: 11px !important; min-height: 38px; }
.pj-detail-count { color: #a49890; font-size: 11px; line-height: 1.5; text-align: right; }
.pj-detail-actions { display: flex; gap: 9px; align-items: center; }
.pj-note { font-size: 12px; color: #b0a49c; margin: 13px 0 0; }
.pj-rename { margin-top: 16px; margin-bottom: 12px; }
.pj-manage { margin-top: 22px; background: #080808; border: 1px solid #ffffff1a; border-radius: 11px; }
.pj-manage summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 14px; list-style: none; cursor: pointer; color: #d2c8c1; font-size: 12px; }
.pj-manage summary::-webkit-details-marker { display: none; }
.pj-manage summary > svg:last-child { margin-left: auto; width: 15px; height: 15px; color: #8f8279; transition: transform .15s; }
.pj-manage[open] summary > svg:last-child { transform: rotate(180deg); }
.pj-manage-body { padding: 0 14px 15px; }
.pj-manage-body > .pj-note { margin: 0 0 13px; }
.pj-link-row { display: flex; gap: 7px; align-items: center; }
.pj-link-row input { font-size: 12px; height: 42px; color: #b8aca5; }
.pj-link-row .pj-icon { border-color: #ffffff20; }
.pj-manage-body > .pj-text-button { font-size: 11px !important; margin-top: 7px; }
.pj-sounds-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; margin-bottom: 15px; }
.pj-search { display: flex; gap: 7px; align-items: center; width: 235px; color: #8d827a; border-bottom: 1px solid #ffffff24; }
.pj-search > svg { width: 16px; height: 16px; }
.pj-search input { border: 0; background: transparent; height: 40px; font-size: 12px; padding: 0 2px; }
.pj-sound { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 42px 42px; align-items: center; gap: 12px; padding: 13px 0; min-height: 75px; border-bottom: 1px solid #ffffff12; }
.pj-sound:has(.pj-remove) { grid-template-columns: 42px minmax(0, 1fr) auto 42px 42px; }
.pj-sound:not(:has(.pj-remove)) { grid-template-columns: 42px minmax(0, 1fr) auto 42px; }
.pj-play { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #ffffff2b; border-radius: 50%; background: #ffffff07; color: #f3eee9; }
.pj-play[aria-pressed=true] { color: #ff7246; border-color: #ff5a3277; background: #ff460a12; }
.pj-play svg { width: 24px; height: 24px; }
.pj-sound-name { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.pj-sound-name strong { font-weight: 500; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.pj-sound-name small { color: #94867d; font-size: 10px; line-height: 1.3; }
.pj-duration { font-size: 10px; color: #a19288; font-variant-numeric: tabular-nums; }
.pj-more { display: flex; justify-content: center; padding: 20px 0 5px; }
.pj-delete-section { background: transparent; border-color: transparent; margin-top: 26px; }
.pj-delete-section > summary { color: #8e827b; padding-left: 0; font-size: 11px; }
.pj-delete-section > .pj-manage-body { padding-left: 0; }
.pj-confirm-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.pj-mode { display: flex; align-items: center; gap: 14px; min-height: 74px; margin-top: 24px; margin-bottom: 2px; padding: 13px 17px; border: 1px solid #ff4d283b; border-radius: 13px; background: radial-gradient(ellipse at 0 0, #fb39001f, transparent 70%), #080606; color: #f0e7e2; }
.pj-mode-symbol { color: #ff6437; display: flex; }
.pj-mode-name { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pj-mode-name span { color: #b79584; font-size: 10px; line-height: 1.3; }
.pj-mode-name strong { font-size: 14px; font-weight: 550; line-height: 1.3; overflow-wrap: anywhere; }
.pj-mode-count { margin-left: auto; color: #b59d90; font-size: 11px; white-space: nowrap; }
.pj-mode-actions { display: flex; gap: 7px; align-items: center; }
.pj-mode-actions .pj-secondary { min-height: 40px; padding: 8px 12px; font-size: 11px !important; }
.pj-mode-actions .pj-icon { border-color: #ffffff12; }
.pj-save-dialog { width: min(490px, calc(100vw - 40px)); }
.pj-save-dialog h2 { font-size: 25px; margin: 18px 0; }
.pj-save-mark { color: #ff784b; display: flex; }
.pj-save-mark svg { width: 30px; height: 30px; }
.pj-save-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 24px; }
.pj-toast { position: fixed; left: 50%; bottom: 115px; z-index: 2000; transform: translate(-50%, 10px); max-width: min(460px, calc(100vw - 28px)); padding: 13px 19px; border: 1px solid #ff633943; border-radius: 10px; background: #1a0d09f5; color: #f4e6df; font-family: inherit; font-size: 12px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: 0 8px 30px #0008; }
.pj-toast.pj-visible { opacity: 1; transform: translate(-50%, 0); }
.pj-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) { .pj-icon:hover, .pj-project-open:hover { background: #ffffff08; color: #fff; } .pj-secondary:hover { border-color: #ffffff4a; } .pj-primary:hover { filter: brightness(1.08); } .pj-play:hover { border-color: #ff71478c; } .pj-text-button:hover { color: #ff9b73; } }
@media (max-width: 600px) {
  .pj-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .pj-shell { padding: 23px 18px; }
  .pj-header { gap: 10px; margin-bottom: 22px; }
  .pj-eyebrow { font-size: 9px; margin-bottom: 10px; }
  .pj-dialog h2 { font-size: 28px; }
  .pj-dialog input { font-size: 16px; }
  .pj-project-grid { grid-template-columns: minmax(0, 1fr); }
  .pj-project-open { min-height: 83px; }
  .pj-create { flex-wrap: wrap; }
  .pj-create input { flex-basis: 100%; }
  .pj-create .pj-primary { width: 100%; }
  .pj-icon { width: 44px; height: 44px; min-width: 44px; }
  .pj-sounds-top { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 27px; }
  .pj-search { width: 100%; }
  .pj-search input { font-size: 16px; }
  .pj-sound, .pj-sound:has(.pj-remove) { grid-template-columns: 40px minmax(0, 1fr) 42px 36px; column-gap: 8px; }
  .pj-sound:not(:has(.pj-remove)) { grid-template-columns: 40px minmax(0, 1fr) 42px; }
  .pj-duration { display: none; }
  .pj-sound .pj-icon { min-width: 36px; width: 36px; height: 44px; padding: 8px; }
  .pj-sound-name strong { font-size: 12px; }
  .pj-empty { padding: 34px 15px; }
  .pj-empty h3 { font-size: 22px; }
  .pj-rename { flex-wrap: wrap; }
  .pj-rename .pj-secondary { width: 100%; }
  .pj-mode { margin-top: 18px; gap: 11px; padding: 13px; flex-wrap: wrap; }
  .pj-mode-name { flex: 1; }
  .pj-mode-name strong { font-size: 13px; }
  .pj-mode-count { margin-left: 0; }
  .pj-mode-actions { width: 100%; justify-content: flex-end; }
  .pj-mode-actions .pj-secondary { flex: 1; min-height: 44px; }
  .pj-mode-actions .pj-icon { min-height: 44px; }
  .pj-link-row input { font-size: 16px; }
  .pj-save-dialog h2 { font-size: 24px; }
}
@media (max-width: 360px) { .pj-shell { padding: 21px 14px; } .pj-dialog h2 { font-size: 25px; } .pj-sound, .pj-sound:has(.pj-remove) { gap: 5px; grid-template-columns: 38px minmax(0, 1fr) 34px 32px; } .pj-sound:not(:has(.pj-remove)) { grid-template-columns: 38px minmax(0, 1fr) 36px; } .pj-sound .pj-icon { width: 32px; min-width: 32px; } .pj-detail-count { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .pj-dialog *, .pj-toast { scroll-behavior: auto !important; transition: none !important; } }
