/* Add a product (AddProductScreen + the listing paywall). The page keeps the product page's language:
   the same breadcrumb, a 38px title, solid offset shadows, and a forest panel that previews the listing
   as it will look, on its page and on the board, while the maker types. */
.add-product-page{max-width:1160px}
.add-layout{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);grid-template-areas:"head stage" "fields stage" "actions stage";column-gap:56px;align-items:start}
.add-head{grid-area:head;min-width:0}
.add-fields{grid-area:fields;min-width:0;max-width:560px}
.add-actions{grid-area:actions;max-width:560px;margin-top:32px}
.add-stage{grid-area:stage;position:sticky;top:32px;padding:24px;border-radius:24px;background:var(--forest);color:var(--on-forest)}
.add-head .product-breadcrumb{margin-bottom:28px}
.add-head h1{margin:0;font:700 38px/44px var(--app-font);letter-spacing:-1px}
.add-lead{max-width:46ch;margin:10px 0 0;font-size:16px;line-height:24px;color:var(--muted)}

/* Link, Details, Publish: a real sequence, so it is numbered. */
.add-stepper{display:flex;align-items:center;gap:10px;margin:28px 0 32px;padding:0;list-style:none}
.add-stepper li{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-size:14px;line-height:20px;font-weight:600;color:var(--muted)}
.add-stepper li:last-child{flex:none}
.add-stepper li:not(:last-child)::after{content:'';flex:1;min-width:12px;height:2px;border-radius:2px;background:var(--line)}
.add-stepper li.done::after{background:var(--app-inverse-surface)}
.add-stepper .current,.add-stepper .done{color:var(--ink)}
.add-step-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border:1.5px solid var(--line);border-radius:50%;background:var(--card);font-size:13px;font-weight:700}
.add-stepper .current .add-step-mark{border-color:var(--action);background:var(--action);color:var(--on-action);box-shadow:0 2px 0 var(--app-shadow)}
.add-stepper .done .add-step-mark{border-color:var(--app-inverse-surface);background:var(--app-inverse-surface);color:var(--app-inverse-ink)}
.add-step-mark .ui-icon{width:16px;height:16px;stroke-width:2.4}

/* Fields */
.add-label{display:block;margin:24px 0 8px;font-size:15px;line-height:20px;font-weight:700;color:var(--ink)}
.add-fields>.add-label:first-child,.add-fields>fieldset>.add-label:first-child{margin-top:0}
.add-input{position:relative}
.add-input input{display:block;width:100%;min-height:56px;margin:0;padding:0 16px;border:1px solid var(--line);border-radius:var(--radius-large-button);background:var(--card);color:var(--ink);font-size:16px;font-weight:500;box-shadow:0 2px 0 var(--app-shadow)}
.add-input.with-icon input{padding-left:48px}
.add-input>.ui-icon{position:absolute;top:50%;left:16px;width:20px;height:20px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.add-input input:focus{outline:none;border-color:var(--app-primary);box-shadow:0 0 0 3px var(--soft-primary)}
.add-input input[aria-invalid=true]{border-color:var(--app-error)}
.add-help{display:flex;justify-content:space-between;gap:12px;margin:8px 2px 0;font-size:13px;line-height:18px;color:var(--muted)}
.add-help.error{color:var(--app-danger-text)}
.add-count{flex:none;font-variant-numeric:tabular-nums}
.add-count.full{color:var(--soft-primary-ink);font-weight:700}
.add-categories{min-width:0;margin:28px 0 0;padding:0;border:0}
.add-layout .add-categories legend{margin:0 0 10px;padding:0}
.add-chip-row{display:flex;flex-wrap:wrap;gap:8px}
.add-layout .add-chip{position:relative;display:inline-flex;margin:0;cursor:pointer}
.add-chip input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.add-chip span{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font-size:14px;font-weight:600}
.add-chip:hover span{border-color:var(--muted)}
.add-chip input:checked+span{border-color:var(--app-inverse-surface);background:var(--app-inverse-surface);color:var(--app-inverse-ink)}
.add-chip input:focus-visible+span{outline:2px solid var(--app-primary);outline-offset:2px}
.add-notice{margin:20px 0 0;padding:12px 14px;border-radius:var(--radius-button);background:var(--soft-danger);color:var(--soft-danger-ink);font-size:14px;line-height:20px;font-weight:600}
.add-fields .form-error{margin-top:16px}

/* Buttons: the product page's large action button and its quiet partner. */
.add-buttons{display:flex;gap:12px}
.add-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;margin:0;padding:0 24px;border:1px solid var(--line);border-radius:16px;font-size:15px;line-height:20px;font-weight:700;cursor:pointer}
.add-button.primary{flex:1;max-width:320px;border-color:var(--action);background:var(--action);color:var(--on-action);box-shadow:0 3px 0 var(--app-shadow)}
.add-button.secondary{background:var(--card);color:var(--ink);box-shadow:0 2px 0 var(--app-shadow)}
.add-button:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 var(--app-shadow)}
.add-button:disabled{opacity:.5;box-shadow:none;cursor:default}
.add-button:focus-visible{outline:3px solid var(--soft-primary-ink);outline-offset:3px}
.add-action-hint{margin:10px 0 0;font-size:13px;line-height:18px;font-weight:600;color:var(--green)}

/* The forest panel: the listing's page header, then its row on the board. */
.add-stage-label{margin:0 0 12px;font-size:13px;line-height:18px;font-weight:600;color:var(--on-forest-muted)}
.add-stage-label:not(:first-child){margin-top:24px}
.listing-card{padding:20px;border-radius:18px;background:var(--app-card);color:var(--ink);box-shadow:0 3px 0 rgb(0 0 0 / 22%)}
.listing-hero{display:flex;align-items:flex-start;gap:16px}
.listing-logo,.listing-row-logo{display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;background:var(--sage);color:var(--ink);font-weight:700}
.listing-logo{width:64px;height:64px;border-radius:16px;font-size:26px;box-shadow:0 3px 0 var(--app-shadow)}
.listing-row-logo{width:40px;height:40px;border-radius:11px;font-size:17px}
.listing-logo img,.listing-row-logo img{width:100%;height:100%;object-fit:cover}
.listing-logo .ui-icon{width:26px;height:26px;color:var(--muted)}
.listing-row-logo .ui-icon{width:18px;height:18px;color:var(--muted)}
.listing-id{min-width:0}
.listing-category{margin:2px 0 4px;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--soft-primary-ink)}
.listing-id h2{margin:0;font:700 24px/30px var(--app-font);letter-spacing:-.5px;overflow-wrap:anywhere}
.listing-maker{margin:4px 0 0;font-size:14px;line-height:20px;font-weight:600;color:var(--muted)}
.listing-pitch{margin:16px 0 0;font-size:15px;line-height:22px;overflow-wrap:anywhere}
.listing-placeholder{color:var(--app-ink-muted)}
.listing-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--app-owned-border);border-radius:14px;background:var(--app-owned-bg);color:var(--ink)}
.listing-row-copy{display:flex;flex:1;flex-direction:column;min-width:0}
.listing-row-copy b,.listing-row-copy>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.listing-row-copy b{font-size:15px;line-height:20px}
.listing-row-copy>span{font-size:13px;line-height:18px;color:var(--muted)}
.listing-row-score{display:flex;align-items:baseline;gap:3px;flex:none}
.listing-row-score strong{font-size:18px}
.listing-row-score small{font-size:12px;color:var(--muted)}
.add-stage-note{margin:16px 0 0;font-size:13px;line-height:18px;color:var(--on-forest-muted)}
.add-stage-retry{padding:0;border:0;background:none;color:var(--on-forest-highlight);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.listing-skeleton{display:block;width:60%;height:14px;border-radius:7px;background:var(--line);animation:listing-pulse 1.1s ease-in-out infinite alternate}
.listing-id h2 .listing-skeleton{height:22px;margin:4px 0}
.listing-pitch .listing-skeleton.wide{width:92%;margin-bottom:8px}
.listing-row-copy .listing-skeleton{height:16px;margin:2px 0}
@keyframes listing-pulse{from{opacity:.45}to{opacity:1}}

/* Publish: what the $5 buys. */
.add-order{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 2px 0 var(--app-shadow)}
.add-order-line{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.add-order-line b{display:block;font-size:16px;line-height:22px}
.add-order-line small{display:block;margin-top:2px;font-size:13px;line-height:18px;color:var(--muted);overflow-wrap:anywhere}
.add-order-line strong{font-size:28px;line-height:32px;letter-spacing:-.5px}
.add-order-points{display:grid;gap:10px;margin:16px 0 0;padding:0;list-style:none}
.add-order-points li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:20px;font-weight:600}
.add-order-points .ui-icon{flex:none;width:20px;height:20px;color:var(--green)}
.add-unavailable{margin:16px 0 0;padding:14px 16px;border-radius:14px;background:var(--soft-primary);color:var(--ink);font-size:14px;line-height:20px}
.add-legal{margin:16px 0 0;font-size:12px;line-height:18px;color:var(--muted)}
.add-legal a{color:inherit}

/* Back from checkout */
.add-status{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 2px 0 var(--app-shadow)}
.add-status h2{margin:0;font-size:20px;line-height:26px;overflow-wrap:anywhere}
.add-status p{margin:6px 0 0;color:var(--muted)}
.add-status .add-button{margin-top:16px}
.add-spinner{display:block;width:28px;height:28px;margin-bottom:14px;border:3px solid var(--soft-primary);border-top-color:var(--action);border-radius:50%;animation:add-spin .8s linear infinite}
@keyframes add-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.listing-skeleton,.add-spinner{animation:none}}

@media(max-width:999px){
  .add-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "fields" "stage" "actions"}
  .add-fields,.add-actions{max-width:none}
  .add-stage{position:static;margin-top:28px}
}
@media(max-width:699px){
  .add-head .product-breadcrumb{margin-bottom:20px}
  .add-head h1{font-size:28px;line-height:34px;letter-spacing:-.6px}
  .add-lead{font-size:15px;line-height:22px}
  .add-stepper{margin:22px 0 24px}
  .add-stage{padding:18px;border-radius:20px}
  .add-button.primary{max-width:none}
  /* Like the app's bottom bar: the step's action stays in reach above the tab bar. */
  .add-actions{position:sticky;bottom:calc(74px + env(safe-area-inset-bottom,0px));z-index:2;margin:20px -24px 0;padding:12px 24px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px)}
  .add-action-hint{margin-top:8px;text-align:center}
  .listing-card{padding:16px}
  .listing-id h2{font-size:21px;line-height:26px}
}

/* The edit form's link check and counters, and the restore paywall (features.js). */
.field-help{margin:6px 2px 0;font-size:13px;line-height:18px;color:var(--muted)}
.field-help:empty{display:none}
.paywall-card{max-width:640px;margin-top:20px;padding:20px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--card)}
.paywall-card>h2{margin:0 0 4px;font-size:20px;line-height:26px}
.paywall-points{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px}
.paywall-points li{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}
.paywall-points .ui-icon{width:20px;height:20px;color:var(--green)}
.paywall-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.paywall-price strong{font-size:28px;line-height:32px}
.paywall-price span{font-size:13px;color:var(--muted)}
.paywall-legal{margin:16px 0 0;font-size:12px;color:var(--muted)}
.paywall-legal a{color:inherit}

/* My products: the round add button and the empty collection (ExploreScreen.kt). */
.products-section-head .products-add{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:4px;border-radius:50%;background:var(--app-inverted);color:var(--app-on-primary);align-self:center}
.products-section-head .products-add .ui-icon{width:20px;height:20px}
.products-section-head h2{margin-right:auto}
.products-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 16px;border:1px dashed var(--line);border-radius:var(--radius-card);text-align:center}
.products-empty h3{margin:0;font-size:20px}
.products-empty p{margin:0 0 8px}
.products-empty .button{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.products-empty .ui-icon{width:18px;height:18px}

/* Board paging and the caller's own rows below the loaded pages (HomeScreen.kt). */
.board-more{margin-top:16px}
.board-your-rank{margin-top:28px}

/* Edit product link feedback (ProductLinkFeedback.kt). */
.link-feedback{margin-top:10px;padding:12px 14px;border-radius:var(--radius-button);background:var(--soft-danger);color:var(--soft-danger-ink);font-size:13px}
.link-feedback strong{display:block;font-size:14px}
.link-feedback p{margin:4px 0 0}
.link-feedback .button{margin-top:10px;min-height:40px}

/* Report and block (ModerationDialogs.kt, MakerScreens.kt). */
.report-reasons{margin:16px 0 0;padding:0;border:0;display:grid;gap:4px}
.report-reasons legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.web-dialog .report-reason{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:0 4px;font-size:15px;font-weight:600;cursor:pointer}
.web-dialog .report-reason input{display:inline;flex:none;width:20px;height:20px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;accent-color:var(--app-primary)}
.web-dialog .report-reason input:focus{box-shadow:none}
.web-dialog .report-reason input:focus-visible{outline:2px solid var(--soft-primary-ink);outline-offset:2px}
.blocked-maker{display:flex;flex-direction:column;align-items:center;gap:8px;padding:56px 16px;text-align:center}
.blocked-maker h2{margin:0;font-size:20px}
.blocked-maker .button{margin-top:8px;min-height:44px}
.maker-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 24px}
.maker-page-heading h1{font:600 24px/30px var(--app-font);letter-spacing:-.7px;margin:0}
/* Restore your listings (PaywallScreen.kt's restore). Like Add product: the choices on the left and a
   forest stage on the right that previews the result. The stage's one big number is what changes with
   the choice (points back, or how many products return); the maker's products sit under it, each with
   a lock. On a phone the choices come first and the stage follows. */
.restore-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,400px);grid-template-areas:"main stage";column-gap:56px;align-items:start;max-width:1040px}
.restore-main{grid-area:main;min-width:0;max-width:560px}
.restore-lead{max-width:46ch;margin:0 0 24px;font-size:16px;line-height:24px;color:var(--muted)}
.restore-options{display:grid;gap:12px}
.restore-option{display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:18px;border:1.5px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 2px 0 var(--app-shadow)}
.restore-option:hover{border-color:var(--muted)}
.restore-option[aria-checked="true"]{border-color:var(--app-primary);box-shadow:0 3px 0 var(--app-primary)}
.restore-option:focus-visible{outline:3px solid var(--soft-primary-ink);outline-offset:3px}
.restore-dot{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:2px solid var(--line);background:var(--bg)}
.restore-option[aria-checked="true"] .restore-dot{border-color:var(--app-primary)}
.restore-option[aria-checked="true"] .restore-dot::after{content:'';width:12px;height:12px;border-radius:50%;background:var(--app-primary)}
.restore-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.restore-copy strong{font-size:16px;line-height:22px;font-weight:700}
.restore-copy > span:last-child{font-size:14px;line-height:20px;color:var(--muted)}
.restore-tag{margin-bottom:4px;padding:3px 10px;border-radius:999px;background:var(--soft-primary);color:var(--soft-primary-ink);font-size:12px;line-height:16px;font-weight:700}
.restore-price{display:flex;flex:none;flex-direction:column;align-items:flex-end}
.restore-price strong{font:700 24px/28px var(--app-font);letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.restore-price span{font-size:12px;line-height:16px;color:var(--muted)}
.restore-action{margin-top:24px}
.restore-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin:0;border-radius:16px;font-size:16px}
.restore-credit{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:12px 14px;border-radius:14px;background:var(--soft-mint);color:var(--soft-mint-ink);font-size:14px;line-height:20px;font-weight:600}
.restore-credit .ui-icon{flex:none;width:18px;height:18px;margin-top:1px}
.restore-fine{max-width:52ch;margin:14px 0 0;font-size:13px;line-height:19px;color:var(--muted)}
.restore-fine a{color:inherit}
.restore-stage{grid-area:stage;position:sticky;top:32px;padding:24px;border-radius:24px;background:var(--forest);color:var(--on-forest)}
.restore-stage-status{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;line-height:20px;font-weight:600;color:var(--on-forest-muted)}
.restore-stage-status .ui-icon{width:18px;height:18px}
.restore-figure{display:flex;flex-direction:column;gap:6px;margin:18px 0 0}
.restore-figure strong{font:700 76px/0.9 var(--app-font);letter-spacing:-3px;font-variant-numeric:tabular-nums;color:var(--on-forest)}
.restore-figure span{max-width:30ch;font-size:15px;line-height:21px;color:var(--on-forest-muted)}
.restore-products,.restore-returns{display:grid;margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--on-forest-track);list-style:none}
.restore-products{gap:12px}
.restore-products li{display:flex;align-items:center;gap:12px;min-width:0}
.restore-logo{position:relative;flex:none;width:40px;height:40px}
.restore-logo .product-icon{width:40px;height:40px;border-radius:12px;font-size:18px}
.restore-lock{position:absolute;right:-6px;bottom:-6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--forest);color:var(--on-forest);box-shadow:0 0 0 2px var(--forest)}
.restore-lock .ui-icon{width:12px;height:12px}
.restore-name{flex:1;min-width:0;overflow:hidden;font-size:15px;line-height:20px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.restore-state{flex:none;padding:3px 10px;border-radius:999px;background:var(--on-forest-track);color:var(--on-forest-muted);font-size:12px;line-height:16px;font-weight:700}
.restore-more{font-size:14px;color:var(--on-forest-muted)}
.restore-returns{gap:10px}
.restore-returns li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:20px;font-weight:600}
.restore-returns .ui-icon{flex:none;width:18px;height:18px;color:var(--on-forest-highlight)}
.restore-status{display:grid;justify-items:start;gap:10px;max-width:560px;padding:28px;border-radius:24px;background:var(--forest);color:var(--on-forest)}
.restore-status h2{margin:0;color:var(--on-forest);font-size:22px;line-height:28px}
.restore-status p{margin:0;color:var(--on-forest-muted);font-size:15px;line-height:22px}
.restore-status > .ui-icon{width:28px;height:28px;color:var(--on-forest-highlight)}
.restore-status .button{margin-top:6px}
.restore-status-quiet{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.restore-status-quiet h2{color:var(--ink)}
.restore-status-quiet p{color:var(--muted)}
@media(max-width:860px){
  .restore-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "stage";row-gap:28px}
  .restore-stage{position:static;padding:20px}
  .restore-figure strong{font-size:60px}
  .restore-main{max-width:none}
}
