/* Adapted from the actual Flow application, not the older DESIGN.md snapshot:
   src/app/globals.css .app-button/.app-button-primary, .product-page-header,
   .product-tabs-compact, .input, .app-table and .product-panel;
   src/components/workspaces/workspace-team-client.tsx member table and badges;
   src/components/ui/app-select.tsx / app-menu.tsx / app-dialog.tsx.
   Static Mona Sans Regular matches src/app/layout.tsx font rendering. */
@font-face {
  font-family: "Mona Sans";
  src: url("/mona-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #080808;
  --muted: #5f6068;
  --subtle: #8d8e97;
  --border: #e8e7ee;
  --guide: rgba(232, 231, 238, 0.62);
  --accent: #6754e9;
  --accent-soft: #efeaff;
  --gutter: 45px;
  --content-inset: 24px;
  --content-gutter: calc(var(--gutter) + var(--content-inset));
  font-family: "Mona Sans", "Noto Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  position: relative;
  padding-bottom: 48px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px var(--content-gutter) 32px;
}
header > div {
  min-width: 0;
}
h1 {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.7px;
  font-weight: 400;
  margin: 0;
}
h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0 0 10px;
}
p {
  margin: 0 0 16px;
}
.page-description {
  max-width: 920px;
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
  margin: 4px 0 0;
}
button,
input,
select {
  font: inherit;
  font-weight: 400;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d9dee8;
  border-radius: 9999px;
  background: #fff;
  color: var(--ink);
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
button:hover {
  background: #f6f6f9;
  border-color: #b8bdc8;
}
button.primary {
  background: var(--accent);
  border: 2px solid transparent;
  color: #fff;
}
button.primary:hover {
  background: #5643d8;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.add-button {
  white-space: nowrap;
}
.add-button > span {
  font-family: system-ui, sans-serif;
  font-size: 18px;
  line-height: 14px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(103, 84, 233, 0.6);
  outline-offset: 3px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px var(--content-gutter) 0;
  min-height: 64px;
}
.table-heading h2 {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 0 0 16px;
  margin: 0;
}
.table-heading h2 span {
  font-size: 14px;
  color: inherit;
}
#sync-summary {
  padding-bottom: 16px;
}
.table-band {
  padding: 0 var(--gutter);
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
}
th,
td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
td {
  font-size: 14px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfdfe;
}
.feed-name {
  display: block;
  max-width: 230px;
  overflow-wrap: anywhere;
  line-height: 20px;
}
.cell-detail {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 20px;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  background: #f6f6f9;
  color: var(--muted);
}
.badge.ready {
  background: #e7f7ef;
  color: #1f7d56;
}
.badge.ready::before,
.badge.attention::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.attention {
  background: #fff7db;
  color: #8b5a10;
}
.badge.generating,
.badge.updating,
.badge.queued {
  background: var(--accent-soft);
  color: var(--accent);
}
.feed-details {
  font-size: 12px;
  margin-top: 7px;
  max-width: 250px;
}
.feed-details summary {
  color: var(--muted);
  cursor: pointer;
}
.feed-details p {
  margin: 8px 0;
  font-size: 12px;
  line-height: 18px;
}
.feed-error {
  color: #8b5a10;
  overflow-wrap: anywhere;
}
.row-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-width: 130px;
}
.row-actions > button {
  font-size: 13px;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}
button.actions-trigger {
  border: 0;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  color: var(--muted);
  font-size: 23px;
  line-height: 24px;
}
.actions-trigger:hover {
  background: #f6f6f9;
  color: var(--ink);
}
.actions-options {
  position: fixed;
  inset: auto;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(19, 18, 24, 0.12);
  min-width: 176px;
  max-width: calc(100vw - 16px);
}
.actions-options:popover-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.actions-options button {
  justify-content: flex-start;
  text-align: left;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  white-space: nowrap;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
button.danger {
  color: #d14343;
}
.footnote {
  font-size: 12px;
  color: var(--subtle);
  padding: 24px var(--content-gutter);
  margin: 0;
}
.empty {
  margin: 32px var(--content-gutter);
  padding: 48px 24px;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}
.empty p {
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.feed-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  margin: 0 auto 20px;
}
.form-tabs {
  display: flex;
  gap: 24px;
  padding: 24px var(--content-gutter) 0;
}
.form-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 0 16px;
  background: transparent;
  height: auto;
  min-height: 32px;
  font-size: 14px;
  color: var(--subtle);
}
.form-tabs button:hover {
  color: var(--ink);
}
.form-tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
  gap: 28px;
  padding: 32px var(--content-gutter);
  align-items: start;
}
.editor-grid > .card {
  padding: 26px 28px;
}
label {
  display: block;
  margin: 20px 0 8px;
  font-size: 13px;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  min-height: 42px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.15s;
}
select {
  border-radius: 9999px;
  padding-right: 32px;
}
input:not([type="checkbox"]):focus,
select:focus {
  border-color: rgba(111, 94, 249, 0.55);
}
input[readonly],
select:disabled {
  background: #fafafa;
  color: var(--muted);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
#platform-note,
#currency-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 20px 0;
}
.selection {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.selection span {
  font-size: 13px;
}
button.text-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 0 4px;
  font-size: 13px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px var(--content-gutter);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-heading h2 {
  margin: 0;
}
.mapping-row {
  display: grid;
  grid-template-columns: minmax(125px, 1fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.mapping-row:last-child {
  border-bottom: 0;
}
.mapping-label {
  font-size: 14px;
}
.mapping-row .cell-detail {
  font-size: 12px;
  color: var(--subtle);
}
.mapping-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.mapping-controls > * {
  flex: 1;
}
.mapping-controls .badge {
  flex: 0;
}
.mapping-controls > select,
.mapping-controls > input {
  font-size: 13px;
  padding-left: 12px;
}
.system-value {
  font-size: 13px;
  color: var(--muted);
}
.optional-mappings {
  margin-top: 22px;
}
.optional-mappings > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
}
.help {
  background: #fafafa;
  box-shadow: none;
}
.help h2 {
  font-size: 16px;
}
.help ol {
  padding-left: 18px;
}
.help li {
  margin-bottom: 14px;
}
.help p,
.help ol {
  font-size: 13px;
  color: var(--muted);
}
.help a {
  font-size: 13px;
}
#notice,
.hint {
  border: 1px solid #e4dffa;
  border-radius: 12px;
  padding: 12px 16px;
  background: #f8f6ff;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#notice {
  margin: 20px var(--content-gutter);
}
#notice.error,
#picker-error {
  border-color: #f2d4d4;
  background: #fff8f8;
  color: #b73636;
}
.hint {
  margin: 16px 0;
}
#opening {
  margin: 24px var(--content-gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#opening h2 {
  display: none;
}
#opening p {
  margin: 0;
}
footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 24px var(--content-gutter);
  color: var(--subtle);
  font-size: 12px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(3px);
}
.dialog-header,
.dialog-actions,
.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-header {
  margin-bottom: 20px;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-header button {
  border: 0;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 6px;
}
.dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.picker-results {
  max-height: 40vh;
  overflow: auto;
  padding: 8px 0;
}
.picker-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
#help {
  padding: 32px var(--content-gutter) 24px;
}
.help-section-heading {
  margin-bottom: 20px;
}
.help-section-heading h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.help-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.quick-start-card {
  padding: 24px;
  box-shadow: none;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  margin-bottom: 18px;
}
.quick-start-card h3 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.quick-start-card p {
  font-size: 13px;
  line-height: 21px;
  color: var(--muted);
  margin: 0;
}
.quick-start-card a {
  display: inline-block;
  font-size: 13px;
  margin-top: 16px;
  text-decoration: none;
}
.help-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  line-height: 21px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 18px;
  line-height: 20px;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
  margin: 12px 28px 0 0;
  max-width: 70ch;
}
.support-panel {
  padding: 26px;
  background: #fafafa;
  box-shadow: none;
}
.support-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.support-panel p {
  font-size: 13px;
  line-height: 22px;
  color: var(--muted);
}
.support-panel a {
  font-size: 13px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.support-email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.support-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.support-panel .support-note {
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 12px;
}
.legal {
  max-width: 800px;
}
main.legal {
  margin: auto;
  padding: 0 24px 32px;
}
main.legal::before {
  display: none;
}
main.legal header {
  padding-inline: 0;
}
.legal h2 {
  margin-top: 26px;
}
.legal h2:first-child {
  margin-top: 0;
}
.steps {
  padding-left: 22px;
}
.steps li {
  padding: 7px 0;
}
.spinner,
button.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
button.is-loading {
  opacity: 0.8;
}
.skeleton {
  display: block;
  width: 85%;
  height: 14px;
  border-radius: 4px;
  background: #f2f2f7;
  animation: pulse 1.6s ease-in-out infinite;
}
.skeleton-row td {
  padding-block: 25px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden],
s-app-nav {
  display: none !important;
}
@media (max-width: 1000px) {
  th,
  td {
    padding-inline: 16px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-grid > .help {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --gutter: 12px;
    --content-inset: 16px;
  }
  header {
    padding-block: 26px;
    align-items: flex-start;
    gap: 16px;
  }
  h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .page-description {
    font-size: 13px;
    line-height: 20px;
  }
  header .primary {
    font-size: 13px;
    padding-inline: 12px;
    margin-top: 2px;
  }
  .table-heading {
    padding-top: 20px;
    gap: 12px;
  }
  #sync-summary {
    font-size: 11px;
  }
  .table-scroll {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
  }
  tr:last-child {
    border-bottom: 0;
  }
  td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    font-size: 13px;
  }
  td:first-child {
    grid-column: 1 / -1;
  }
  .feed-name {
    max-width: none;
    font-size: 14px;
  }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--subtle);
    font-size: 11px;
    margin-bottom: 5px;
  }
  td:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--guide);
    padding-top: 12px;
  }
  .row-actions {
    justify-content: flex-end;
  }
  .cell-detail {
    font-size: 12px;
    line-height: 18px;
  }
  .form-tabs {
    gap: 24px;
    padding-top: 20px;
  }
  .form-tabs button {
    font-size: 13px;
  }
  .editor-grid {
    padding-block: 24px;
  }
  .editor-grid > .card {
    padding: 22px 18px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .mapping-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mapping-controls > select,
  .mapping-controls > input {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .form-actions {
    position: static;
  }
  .empty {
    padding: 36px 18px;
  }
  footer {
    flex-wrap: wrap;
  }
  .quick-start-grid,
  .help-detail-grid {
    grid-template-columns: 1fr;
  }
  .quick-start-grid {
    gap: 12px;
  }
  .quick-start-card {
    padding: 20px;
  }
  .step-number {
    margin-bottom: 12px;
  }
  .help-detail-grid {
    gap: 28px;
    margin-top: 28px;
  }
  #help {
    padding-top: 26px;
  }
  .support-panel {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
