[hidden] {
  display: none !important;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid #52525b;
  outline-offset: 3px;
}
.app-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.launcher .app-logo {
  width: 64px;
  height: 64px;
}
.launcher {
  max-width: 480px;
  margin: 60px auto;
  padding: 16px;
}
.launcher-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.launcher s-heading {
  font-size: 26px;
  font-weight: 650;
}
.launcher p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--p-color-text-secondary, #616161);
}
.launcher #home-status:empty {
  display: none;
}
.launcher #open-workspace {
  min-height: 48px;
  width: 100%;
}
.app-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  padding: 16px 28px;
  border-bottom: 1px solid var(--p-color-border, #e3e3e3);
}
.heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.heading s-heading {
  font-size: 19px;
  font-weight: 650;
}
.heading span {
  font-size: 13px;
  color: var(--p-color-text-secondary, #616161);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header > a {
  margin-left: auto;
}
.workspace-main {
  max-width: 1440px;
  margin: auto;
  padding: 24px 28px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.toolbar form {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 8px;
  position: relative;
}
.toolbar form > svg {
  position: absolute;
  left: 12px;
  color: var(--p-color-text-secondary, #616161);
  pointer-events: none;
}
.toolbar input {
  padding-left: 38px;
  background: #fff;
  height: 44px;
}
.native-select {
  height: 44px;
  border: 1px solid var(--p-color-border, #e3e3e3);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  max-width: 220px;
  min-width: 0;
}
#without {
  height: 44px;
  white-space: nowrap;
}
#without[aria-pressed="true"] {
  background: #f4f4f5;
  border-color: #a1a1aa;
}
.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}
.summary > div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.summary strong {
  font-weight: 500;
}
.summary progress {
  width: 100px;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  appearance: none;
}
.summary progress::-webkit-progress-bar {
  background: var(--p-color-border, #e3e3e3);
}
.summary progress::-webkit-progress-value {
  background: #18181b;
}
.summary progress::-moz-progress-bar {
  background: #18181b;
}
#home-status {
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
  color: var(--p-color-text-secondary, #616161);
}
#home-status:empty,
#modal-status:empty {
  display: none;
}
#home-status[data-error="true"] {
  color: #b91c1c;
}
.reauth-link {
  display: inline-flex;
  padding: 12px 16px;
  background: #18181b;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.product-photo {
  width: 38px;
  height: 48px;
  border-radius: 6px;
  background: #f4f4f5;
  object-fit: cover;
  flex: none;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.product-meta {
  font-size: 12px;
  color: var(--p-color-text-secondary, #616161);
}
.record-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--p-color-border, #e3e3e3);
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  display: grid;
  place-items: center;
  flex: none;
}
.record-button svg {
  width: 20px;
  height: 20px;
}
.product-card:not(.has-audio) .record-button {
  background: #e53935;
  border-color: #e53935;
  color: white;
}
.delete-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--p-color-text-secondary, #616161);
}
.delete-button svg {
  width: 18px;
  height: 18px;
}
.audio-state,
.published-date {
  font-size: 12px;
  color: var(--p-color-text-secondary, #616161);
}
.audio-state.pending {
  color: #a16207;
}
.audio-state.failed {
  color: #b91c1c;
}
.published-date {
  display: block;
  margin-top: 6px;
}
.dashboard-player {
  max-width: 150px;
  margin: 0;
}
.retry-job {
  font-size: 12px;
  border: 1px solid var(--p-color-border, #e3e3e3);
  border-radius: 6px;
  padding: 8px;
  margin-top: 6px;
}
.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--p-color-text-secondary, #616161);
  font-size: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0;
  font-size: 12px;
}
.pagination select {
  max-width: 80px;
}
.pagination button {
  width: 44px;
  height: 44px;
}
.pagination span {
  min-width: 100px;
  text-align: center;
}
.pagination label {
  color: var(--p-color-text-secondary, #616161);
}
#more {
  width: 100%;
}
#record-modal {
  padding: 0;
  border: 1px solid var(--p-color-border, #e3e3e3);
  border-radius: 16px;
  width: min(420px, calc(100vw - 24px));
  max-height: 92dvh;
  overflow: auto;
  box-shadow: 0 20px 70px #0002;
}
#record-modal::backdrop {
  background: #0006;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--p-color-border, #e3e3e3);
}
.modal-heading s-heading {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.modal-heading button {
  width: 44px;
  height: 44px;
  flex: none;
}
#record-frame {
  width: 100%;
  height: 330px;
  border: 0;
  display: block;
}
#modal-status {
  font-size: 13px;
  margin: 12px 16px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 640px) {
  .launcher {
    margin: 28px auto;
  }
  .launcher-content {
    padding: 24px;
  }
  .app-header {
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .app-logo {
    width: 40px;
    height: 40px;
  }
  .heading {
    display: block;
    flex: 1;
  }
  .heading s-heading {
    font-size: 17px;
  }
  .heading span {
    display: block;
    max-width: 120px;
    font-size: 11px;
  }
  .app-header > a {
    font-size: 12px;
    padding: 0 10px;
    height: 44px;
  }
  .workspace-main {
    padding: 14px 12px;
  }
  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
  }
  .toolbar form {
    grid-column: 1/-1;
  }
  .toolbar #category {
    grid-column: 2;
    grid-row: 2;
    width: 110px;
    font-size: 12px;
  }
  .toolbar #without {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    font-size: 12px;
    padding: 0 10px;
    gap: 6px;
  }
  .summary {
    margin: 12px 0;
  }
  .summary > div {
    font-size: 11px;
    gap: 8px;
  }
  .summary progress {
    width: 42px;
  }
  .product-info {
    gap: 10px;
  }
  .product-title {
    font-size: 13px;
  }
  .product-meta {
    font-size: 11px;
  }
  .product-photo {
    width: 38px;
    height: 46px;
  }
  .actions-cell > div {
    gap: 4px;
  }
  .pagination {
    justify-content: center;
    gap: 7px;
    position: sticky;
    bottom: 0;
    background: var(--p-color-bg, #f1f1f1);
    margin: 0 -12px;
    padding: 12px;
  }
  .pagination label {
    font-size: 11px;
  }
  .pagination span {
    min-width: 88px;
    font-size: 11px;
  }
  .pagination .native-select {
    width: 60px;
    padding: 0 6px;
  }
  .product-table + div {
    overflow: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

#record-modal {
  margin: auto;
}
.modal-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.modal-product s-heading {
  min-width: 0;
}
#modal-product-image {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
  background: var(--p-color-bg-surface-secondary, #f7f7f7);
}

.launcher-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-attribution {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--p-color-text-secondary, #616161);
}
.brand-attribution > span {
  font-size: 10px;
}
.brand-attribution img {
  width: 64px;
  height: 20px;
  object-fit: contain;
}
@media (max-width: 360px) {
  .launcher-title {
    gap: 8px;
  }
  .brand-attribution img {
    width: 56px;
    height: 18px;
  }
}

body { margin: 0; background: var(--p-color-bg, #f1f1f1); }
s-search-field { width: 100%; }
s-select { min-width: 0; }
s-table { display: block; }
.actions-cell > div { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.toolbar form > svg { display: none; }
.native-select { border: 0; padding: 0; background: transparent; height: auto; }
.pagination s-select { width: 70px; }
.pagination { padding-bottom: max(16px, var(--shopify-safe-area-inset-bottom, 0px)); }
.launcher-content { padding: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width:640px) { .workspace-main { padding: 12px 8px; } .pagination { flex-wrap: wrap; } .toolbar #category { width: auto; } }

@media(max-width:640px) { .toolbar { grid-template-columns: minmax(0, 1fr); } .toolbar #category { grid-column: 1; grid-row: 2; width: 100%; } .toolbar #without { grid-column: 1; grid-row: 3; width: 100%; } .summary > div { min-width: 0; flex-wrap: wrap; } .pagination { position: static; margin: 0; } }

.launcher-slogan { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--p-color-text-secondary, #4a4a4a); }

.launcher-content { position: relative; padding-top: 28px; }
.build-version { position: absolute; top: 0; right: 0; font-size: 9px; line-height: 1.4; color: var(--p-color-text-secondary, #616161); white-space: nowrap; font-weight: 400; }

/* Explicit host dimensions keep shadow-DOM form controls in their flex/grid columns. */
s-select { display: block; width: 220px; flex: none; max-width: 100%; }
s-search-field { display: block; min-width: 0; width: 100%; }
s-button { display: inline-block; flex: none; }
.toolbar form { flex: 1 1 0%; }
.toolbar #category { width: 220px; }
.pagination #page-size { width: 70px; }
.app-header #site-link { margin-left: auto; }
.delete-button { border: 0; background: transparent; border-radius: 8px; }
@media(max-width:640px) { .toolbar #category { width: 100%; } }

@media(max-width:640px) { .toolbar #category { max-width: none; } }

.audio-state { display: block; max-width: 150px; white-space: normal; overflow-wrap: anywhere; }
@media(max-width:640px) { .audio-state { max-width: 120px; } }

@media (max-width: 640px) {
  .mobile-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px 10px;
    padding: 9px 10px;
    align-items: center;
    border-bottom: 1px solid var(--p-color-border, #e3e3e3);
  }
  .mobile-product-row:last-child { border-bottom: 0; }
  .mobile-product-row .product-info { grid-column: 1; grid-row: 1; gap: 8px; }
  .mobile-product-row .product-text { min-width: 0; flex: 1; }
  .mobile-product-row .product-photo { width: 40px; height: 40px; }
  .mobile-product-row .product-title {
    margin: 0 0 2px;
    font-size: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
  }
  .mobile-product-row .product-meta {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-product-row > .record-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .mobile-audio { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mobile-audio .dashboard-player { flex: none; }
  .mobile-audio .published-date { margin: 0; flex: 1; min-width: 0; font-size: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-audio .delete-button { margin-left: auto; flex: none; }
  .mobile-audio .audio-state { margin: 0; max-width: none; font-size: 11px; }
}

voice-note.vn.dashboard-player { width: 150px; max-width: 150px; margin: 0; }
