/* FLYPIGBOX V0.8.20-R6.15.18
   Existing product pages visual hierarchy and interaction consistency closure.
   No new business modules, pages, fields, tables or workflows. */

.r61518-mode-switch{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px;border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface-2)}
.r61518-mode-switch .btn{min-height:34px;padding:7px 12px;border-color:transparent;background:transparent;box-shadow:none;white-space:nowrap}
.r61518-mode-switch .btn[aria-current="page"]{background:var(--fp-primary);border-color:var(--fp-primary);color:#fff;pointer-events:none}
.r61518-tertiary-action{color:var(--fp-muted)!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.r61518-tertiary-action:hover{color:var(--fp-text)!important;background:var(--fp-surface-2)!important}

/* Quick product intake: one compact image queue plus one complete preview. */
.r61518-product-intake-page .r68-intake-hero{align-items:center;padding:18px 20px}
.r61518-product-intake-page .r68-intake-hero h2{font-size:21px;margin-bottom:5px}
.r61518-product-intake-page .r68-intake-hero p{font-size:12.5px;line-height:1.55}
.r61518-product-intake-page .r68-step-card{padding:18px}
.r61518-product-intake-page .r68-step-head{margin-bottom:14px}
.r61518-product-intake-page .r68-identity-grid{grid-template-columns:minmax(210px,.58fr) minmax(520px,1.42fr);gap:15px}
.r61518-product-intake-page .manual-drop-zone{min-height:132px;padding:16px}
.r61518-product-intake-page .r68-image-panel.has-images .manual-drop-zone{min-height:76px;padding:11px 14px}
.r61518-product-intake-page .r68-image-panel.has-images .manual-drop-zone strong{font-size:12.5px}
.r61518-product-intake-page .r68-image-panel.has-images .manual-drop-zone span{font-size:9.5px}
.r61518-product-intake-page .r61518-image-queue{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px;min-height:0}
.r61518-product-intake-page .r61518-image-queue:empty{display:none}
.r61518-product-intake-page .r61518-image-queue>div:not(.empty){aspect-ratio:1.15/1;border-radius:9px}
.r61518-product-intake-page .r61518-image-queue img{object-fit:contain;background:#fff}
.r61518-product-intake-page .manual-preview-image{height:210px;background:linear-gradient(145deg,var(--fp-surface),var(--fp-surface-2))}
.r61518-product-intake-page .manual-preview-image img{width:100%;height:100%;object-fit:contain!important;object-position:center;padding:8px;box-sizing:border-box}
.r61518-preview-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.r61518-owner-badge{background:var(--fp-surface-2);color:var(--fp-text);border:1px solid var(--fp-border)}
.r68-choice-card.is-selected{border-color:color-mix(in srgb,var(--fp-primary) 55%,var(--fp-border));background:color-mix(in srgb,var(--fp-primary) 7%,var(--fp-surface))}
.r68-shortcuts button.is-selected{border-color:var(--fp-primary);background:var(--fp-primary-soft);color:var(--fp-primary-strong);font-weight:800;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fp-primary) 38%,transparent)}
.r61518-save-actions .primary{min-width:150px}
.r61518-product-intake-page .r68-save-bar{padding:10px 20px}
.r61518-product-intake-page .r68-save-bar span{font-size:10.5px}

/* Route-based product intake: make suggestions visibly read-only and owner state unambiguous. */
.r61518-product-route-page .r64-lite-page{max-width:1480px}
.r61518-product-route-page .r64-lite-intro{padding:17px 20px;align-items:center}
.r61518-product-route-page .r64-lite-intro h2{font-size:21px;margin:3px 0 5px}
.r61518-product-route-page .r64-lite-intro p{font-size:12.5px;line-height:1.55}
.r61518-product-route-page .r64-lite-form{gap:13px}
.r61518-product-route-page .r64-lite-card{padding:17px 18px}
.r61518-product-route-page .r64-image-drop{min-height:102px}
.r61518-product-route-page [data-r61518-route-images].has-images .r64-image-drop{min-height:68px}
.r61518-product-route-page .r64-image-preview{min-height:0;margin-top:9px}
.r61518-product-route-page .r64-image-preview>span:only-child{display:none}
.r61518-product-route-page .r64-image-preview img{object-fit:contain;background:#fff}
.r61518-product-route-page .r64-choice-box.is-customer-specific{border-color:color-mix(in srgb,var(--fp-primary) 55%,var(--fp-border));background:color-mix(in srgb,var(--fp-primary) 6%,var(--fp-surface))}
.r61518-product-route-page .r61518-system-field{padding:10px 11px;border:1px solid color-mix(in srgb,var(--fp-primary) 22%,var(--fp-border));border-radius:11px;background:color-mix(in srgb,var(--fp-primary) 5%,var(--fp-surface-2))}
.r61518-product-route-page .r61518-system-field label{color:var(--fp-primary-strong)}
.r61518-product-route-page .r61518-system-field input[readonly],.r61518-product-route-page .r61518-system-field .r61513-profile-summary{border:0;background:transparent;box-shadow:none;padding:5px 0;min-height:auto;color:var(--fp-text);font-weight:700}
.r61518-product-route-page .r64-lite-actions{padding:13px 16px}
.r61518-product-route-page .r64-lite-actions .primary{min-width:160px}

/* Complete product master: basics first, optional sections collapsed, uniform headings. */
.r61518-product-master-page .pm-page{padding-bottom:148px}
.r61518-product-master-page .pm-form{gap:13px}
.r61518-product-master-page .pm-header{padding:17px 20px;border-radius:16px}
.r61518-master-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.r61518-master-title-line h1{margin:4px 0 5px!important;font-size:23px!important}
.r61518-mode-chip{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border-radius:999px;background:var(--fp-primary-soft);color:var(--fp-primary-strong);font-size:10.5px;font-weight:800}
.r61518-product-master-page .pm-header p{font-size:12.5px;line-height:1.5}
.r61518-master-actions{align-items:center}
.r61518-product-master-page .pm-sheet-title,.r61518-product-master-page .pm-sheet-title-red{justify-content:flex-start;min-height:39px;padding:8px 16px;background:color-mix(in srgb,var(--fp-primary) 8%,var(--fp-surface));color:var(--fp-primary-strong);border-bottom:1px solid color-mix(in srgb,var(--fp-primary) 25%,var(--fp-border));letter-spacing:0}
.r61518-product-master-page .pm-v075-product-body{grid-template-columns:minmax(300px,34%) minmax(0,1fr)}
.r61518-product-master-page .pm-v075-image-board{grid-template-rows:auto minmax(300px,1fr) auto auto auto;padding:15px}
.r61518-product-master-page .pm-v075-image-board .pm-main-image-sheet{height:clamp(310px,31vw,460px);min-height:300px}
.r61518-product-master-page .pm-panel-heading,.r61518-product-master-page .pm-image-head{padding-bottom:8px;border-bottom:1px solid var(--fp-border)}
.r61518-product-master-page .pm-basic-grid{gap:10px;padding:15px}
.r61518-product-master-page .pm-basic-field label,.r61518-product-master-page .field label{color:color-mix(in srgb,var(--fp-text) 88%,var(--fp-muted));font-size:11.5px}
.r61518-product-master-page .pm-image-head small,.r61518-product-master-page .pm-panel-heading small,.r61518-product-master-page .pm-details>summary small{font-size:11.5px;color:color-mix(in srgb,var(--fp-muted) 88%,var(--fp-text));line-height:1.45}
.r61518-master-section{display:block!important;overflow:hidden;border:1px solid var(--fp-border);border-radius:16px;background:var(--fp-surface);box-shadow:0 8px 28px rgba(25,35,58,.045)}
.r61518-master-section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;cursor:pointer}
.r61518-master-section>summary::-webkit-details-marker{display:none}
.r61518-master-section>summary>span{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:10px;align-items:center}
.r61518-master-section>summary b{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--fp-primary-soft);color:var(--fp-primary-strong)}
.r61518-master-section>summary strong{font-size:16px}
.r61518-master-section>summary small{color:var(--fp-muted);font-size:11.5px;font-weight:500}
.r61518-master-section>summary em{font-style:normal;padding:4px 8px;border-radius:999px;background:var(--fp-surface-2);color:var(--fp-muted);font-size:10.5px;white-space:nowrap}
.r61518-master-section[open]>summary{border-bottom:1px solid var(--fp-border)}
.r61518-master-section-body{display:block}
.r61518-inside-title{padding:12px 14px 8px}
.r61518-inside-title>div{display:grid;gap:2px}
.r61518-inside-title small{font-size:11px;color:var(--fp-muted)}
.r61518-product-master-page .pm-details>summary{padding:13px 16px}
.r61518-product-master-page .pm-details>summary strong{font-size:15px}
.r61518-details-meta{display:flex;align-items:center;gap:10px}
.r61518-details-meta em{font-style:normal;padding:4px 8px;border-radius:999px;background:var(--fp-surface-2);color:var(--fp-muted);font-size:10px}
.r61518-product-master-page .pm-details-body{padding:0 16px 16px}
.r61518-product-master-page .pm-map-card{padding:13px;background:var(--fp-surface)}
.r61518-linkage-details .pm-link-grid{padding-top:2px}
.r61518-product-master-page .pm-link-grid article{padding:13px;gap:6px}
.r61518-product-master-page .pm-link-grid article>strong{font-size:17px}
.r61518-product-master-page .pm-link-grid p{font-size:11.5px;min-height:35px}
.r61518-master-save-bar{bottom:10px;margin-top:2px;padding:10px 13px}
.r61518-master-save-bar small{font-size:10.5px;line-height:1.45}
.r61518-master-save-bar .btn-primary{min-width:118px}

@media(max-width:1250px){
 .r61518-product-intake-page .r68-identity-grid{grid-template-columns:minmax(210px,.65fr) minmax(440px,1.35fr)}
}
@media(max-width:900px){
 .r61518-mode-switch{width:100%}
 .r61518-mode-switch .btn{flex:1;text-align:center}
 .r61518-product-intake-page .r68-identity-grid{grid-template-columns:1fr}
 .r61518-product-intake-page .r61518-image-queue{grid-template-columns:repeat(5,minmax(62px,1fr))}
 .r61518-product-master-page .pm-v075-product-body{grid-template-columns:1fr}
 .r61518-details-meta em{display:none}
}
@media(max-width:620px){
 .r61518-product-intake-page .r61518-image-queue{grid-template-columns:repeat(3,minmax(0,1fr))}
 .r61518-product-master-page .pm-page{padding-bottom:100px}
 .r61518-master-actions{width:100%;display:grid;grid-template-columns:1fr auto}
 .r61518-master-section>summary{padding:13px}
 .r61518-master-section>summary em{display:none}
}
