.trial-dialog { inset-inline-start: calc(100vw - 100%); width: min(780px, calc(100% - 40px)); max-width: none; max-height: calc(100svh - 40px); padding: 0; border-color: #b8c1c7; background: #f4f6f7; box-shadow: 0 24px 90px #17232b30; }
.trial-dialog[open] { display: flex; flex-direction: column; }
.trial-dialog p { margin: 0; }
.trial-dialog::backdrop { background: #18263078; }
.trial-header { position: relative; flex: 0 0 auto; padding: 24px 28px 0; text-align: center; }
.trial-eyebrow { padding-right: 0; color: var(--steel); font-size: 14px; font-weight: 600; }
.trial-header .dialog-title-row { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
.trial-header h2 { grid-column: 2; text-wrap: balance; margin-top: 0; padding-right: 0; font-size: clamp(25px, 3vw, 32px); line-height: 1.16; letter-spacing: -.035em; }
.trial-header .trial-intro { max-width: 59ch; margin: 12px auto 0; text-wrap: balance; color: var(--body); font-size: 16px; line-height: 1.45; }
.trial-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--rule); list-style: none; }
.trial-steps li { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.trial-steps li > span { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; border: 1px solid #b9c3c9; border-radius: 50%; font-size: 13px; }
.trial-steps [aria-current] { color: var(--ink); font-weight: 600; }
.trial-steps [aria-current] > span { border-color: var(--brand-accent); background: var(--brand-accent); color: #fff; }
.trial-steps .is-complete > span { border-color: #2f5d7c; background: #e2eaf0; color: #2f5d7c; }
.trial-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable both-edges; overscroll-behavior: contain; }
.trial-body { padding: 22px 28px; }
.trial-dropzone { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 24px; border: 1px dashed #95a9b7; border-radius: 7px; background: #e9f0f4a6; text-align: center; }
.trial-dropzone.is-over { border-style: solid; border-color: var(--steel); outline: 2px solid #2f5d7c26; outline-offset: 3px; background: #dbe8f0; }
.trial-upload-mark { width: 48px; height: 48px; color: var(--steel); }
.trial-drop-copy h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.trial-drop-copy p { max-width: 47ch; text-wrap: balance; margin-top: 7px; color: var(--body); font-size: 16px; line-height: 1.45; }
.trial-dropzone.has-files { flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 17px; text-align: left; }
.trial-dropzone.has-files .trial-upload-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.trial-dropzone.has-files .trial-drop-copy { flex: 1; min-width: 150px; }
.trial-dropzone.has-files h3 { font-size: 16px; }
.trial-dropzone.has-files .trial-drop-copy p { display: none; }
.trial-choose { cursor: pointer; }
.trial-start:disabled { border-color: #cbd0d3; background: #dce0e2; color: #666e73; }
.trial-list-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 17px; }
.trial-list-heading h3 { font: 600 16px/1.4 var(--text); }
.trial-total { color: var(--muted); font-size: 14px; }
.trial-clear, .trial-login, .trial-edit { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--steel); font-size: 14px; cursor: pointer; text-align: left; }
.trial-clear { margin-left: auto; }
.trial-clear:hover, .trial-login:hover, .trial-edit:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.trial-files { margin: 0; padding: 0; list-style: none; }
.trial-file { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 20%, 152px) 44px; align-items: start; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.trial-file-info { display: grid; gap: 2px; min-width: 0; padding-block: 3px; color: var(--muted); font: 400 14px/1.4 var(--text); overflow-wrap: anywhere; }
.trial-file-name { color: var(--body); }
.trial-file[data-status="blocked"] .trial-file-check { color: #9a2e27; }
.trial-package-name { position: relative; min-width: 0; cursor: text; }
.trial-package-name input { display: block; width: 100%; min-width: 0; height: 44px; padding: 4px 24px 4px 0; border: 0; border-bottom: 1px solid #91a3ae; border-radius: 0; background: transparent; color: var(--ink); font: 500 16px/1.4 var(--text); text-overflow: ellipsis; }
.trial-package-name input:hover { border-color: var(--steel); }
.trial-package-name input:focus { outline: 0; border-color: var(--steel); box-shadow: 0 1px var(--steel); text-overflow: clip; }
.trial-package-name::after { content: ""; position: absolute; right: 3px; top: 15px; width: 14px; height: 14px; background: var(--steel); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m4 20 4.5-1 12-12a2 2 0 0 0-3.5-3.5l-12 12Z M15 5.5 18.5 9'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.trial-name-hint { display: none; }
.trial-package-name input::placeholder { color: var(--muted); font-size: 14px; font-weight: 400; opacity: 1; }
.trial-file-remove { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.trial-file-remove:hover { border-color: var(--rule); background: #e4e8eb; color: var(--ink); }
.trial-file-remove .icon { width: 16px; height: 16px; }
.trial-dialog .trial-check-summary { margin-top: 13px; color: var(--body); font-size: 14px; line-height: 1.45; }
.trial-check-summary:empty { display: none; }
.trial-dialog .trial-free-limit { max-inline-size: 60ch; margin: 0 auto 14px; text-align: center; text-wrap: balance; color: var(--body); font-size: 14px; line-height: 1.45; }
.trial-dialog .trial-notice { margin-top: 14px; padding: 11px 13px; border: 1px solid #c59a8f; border-radius: 5px; background: #f3e7e2; color: #7c3026; font-size: 14px; line-height: 1.45; }
.trial-footer { flex: 0 0 auto; padding: 16px 28px 20px; overflow: hidden; scrollbar-gutter: stable both-edges; border-top: 1px solid var(--rule); }
.trial-footer > div { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; }
.trial-footer > .trial-footer-select { justify-content: flex-end; }
.trial-footer .button { cursor: pointer; }
.trial-footer .button:disabled { cursor: default; }
.trial-footer .trial-retry:disabled { border-color: #cbd0d3; background: #dce0e2; color: #666e73; }
.trial-footer .trial-return-account { margin-inline-start: auto; width: auto; align-self: flex-end; }
.trial-result > .trial-error-reason { font-weight: 600; }
.trial-result > .trial-error-next { color: var(--muted); font-size: 14px; }
.trial-uploading { padding: 20px 0 32px; text-align: center; }
.trial-uploading h3, .trial-result h3 { margin-top: 8px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.trial-uploading .trial-upload-summary { margin-top: 12px; color: var(--body); font-size: 16px; }
.trial-progress-number { margin-top: 26px; color: var(--brand-accent); font: 700 56px/1.1 var(--heading); letter-spacing: -.05em; }
.trial-progress-number > span { margin-left: 4px; font-size: 24px; }
#trial-progress { display: block; width: 100%; height: 7px; margin-top: 20px; overflow: hidden; border: 0; border-radius: 5px; background: #dce3e7; accent-color: var(--brand-accent); }
#trial-progress::-webkit-progress-bar { border-radius: 5px; background: #dce3e7; }
#trial-progress::-webkit-progress-value { border-radius: 5px; background: var(--brand-accent); }
#trial-progress::-moz-progress-bar { border-radius: 5px; background: var(--brand-accent); }
.trial-dialog .trial-progress-caption { margin-top: 16px; color: var(--muted); font-size: 14px; }
.trial-result { max-width: 56ch; margin-inline: auto; padding: 10px 0 22px; text-align: center; }
.trial-result-mark { display: grid; width: 42px; height: 42px; margin: 0 auto 16px; place-items: center; border: 0; border-radius: 0; background: transparent; color: var(--steel); }
.trial-result-mark svg { width: 40px; height: 40px; }
.trial-result-mark--error { border-color: #c99a90; background: #f3e4df; color: var(--brand-accent); font: 700 34px/1 var(--heading); }
.trial-result > p { margin-top: 15px; color: var(--body); font-size: 16px; line-height: 1.5; }
.trial-result .trial-result-summary { font-size: 14px; color: var(--muted); }
[data-trial-panel="complete"] { padding-block: 8px 14px; }
[data-trial-panel="complete"] .trial-result-mark { margin-bottom: 10px; }
[data-trial-panel="complete"] :is(h3, .trial-complete-copy) { text-wrap: balance; }
[data-trial-panel="complete"] > p { margin-top: 10px; }
.trial-result .trial-auth-note { padding: 12px; border: 1px solid var(--rule); border-radius: 5px; background: #e7ecef; font-size: 14px; }
@media (max-width: 560px) {
  .trial-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); border-radius: 8px; }
  .trial-header { padding: 20px 16px 0; }
  .trial-header h2 { font-size: 25px; }
  .trial-eyebrow { font-size: 13px; }
  .trial-steps { gap: 6px; margin-top: 20px; padding-bottom: 15px; }
  .trial-steps li { gap: 5px; font-size: 13px; }
  .trial-steps li > span { width: 22px; height: 22px; flex-basis: 22px; font-size: 12px; }
  .trial-body { padding: 18px 16px; }
  .trial-dropzone { gap: 14px; padding: 22px 15px; }
  .trial-drop-copy h3 { font-size: 18px; }
  .trial-dropzone.has-files { align-items: center; padding: 12px; }
  .trial-dropzone.has-files .trial-upload-mark { display: none; }
  .trial-dropzone.has-files .trial-choose { flex: 1 0 100%; }
  .trial-list-heading { gap: 2px 8px; }
  .trial-list-heading h3 { font-size: 15px; }
  .trial-total { font-size: 13px; }
  .trial-file { gap: 8px; }
  .trial-footer { padding: 13px 16px 16px; }
  .trial-footer > div { flex-direction: column-reverse; align-items: stretch; gap: 5px; }
  .trial-footer .button { width: 100%; }
  .trial-footer .trial-return-account { width: auto; }
  .trial-login { align-self: center; text-align: center; }
}
@media (max-height: 650px) and (min-width: 561px) {
  .trial-header { padding-top: 18px; }
  .trial-header .trial-intro { margin-top: 8px; }
  .trial-steps { margin-top: 16px; padding-bottom: 12px; }
  .trial-body { padding-block: 16px; }
}

@media (max-width: 380px) {
  .trial-header h2 { font-size: 23px; }
}

@media (max-width: 560px) {
  .trial-file { grid-template-columns: minmax(0, 1fr) clamp(68px, 21%, 100px) 32px; column-gap: 8px; }
  .trial-file-remove { width: 32px; }
  .trial-package-name input { padding-right: 20px; }
  .trial-package-name input::placeholder { color: transparent; }
  .trial-package-name input:placeholder-shown + .trial-name-hint { position: absolute; inset: 0 18px 1px 0; display: flex; align-items: center; color: var(--muted); font: 400 12px/1.25 var(--text); pointer-events: none; }
}

.design-brief { min-width: 0; }
.trial-dialog .design-brief { margin-block-start: 16px; }
.design-brief .trial-file-name { min-width: 0; overflow-wrap: anywhere; }
.design-brief .trial-file-check:empty { display: none; }
.design-brief > [data-brief-notice] { margin-top: 8px; color: #9a2e27; font-size: 14px; }
