/* R6.16.70 — product-first flow, order workspace and long-tail visual hardening */
.product-entry-hero-simple{grid-template-columns:minmax(0,1fr) minmax(360px,.72fr);align-items:center;gap:24px}
.product-entry-promise{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-entry-promise>div{display:grid;gap:3px;padding:14px;border:1px solid var(--fp-border);border-radius:14px;background:var(--fp-surface)}
.product-entry-promise b{font-size:9px;color:var(--fp-primary-strong);text-transform:uppercase;letter-spacing:.08em}
.product-entry-promise strong{font-size:13px}.product-entry-promise span{font-size:10px;line-height:1.5;color:var(--fp-muted)}
.product-mode-settings,.product-optional-section{padding:0;overflow:hidden}
.product-mode-settings>summary,.product-optional-section>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none;padding:15px 17px}
.product-mode-settings>summary::-webkit-details-marker,.product-optional-section>summary::-webkit-details-marker{display:none}
.product-mode-settings>summary>span:first-child,.product-optional-section>summary>span:first-child{display:grid;gap:3px}
.product-mode-settings>summary small,.product-optional-section>summary small{font-size:10px;color:var(--fp-muted)}
.product-mode-settings>summary>span:last-child,.product-optional-section>summary>span:last-child{font-size:10px;color:var(--fp-primary-strong);white-space:nowrap}
.product-mode-settings[open]>summary,.product-optional-section[open]>summary{border-bottom:1px solid var(--fp-border);background:var(--fp-surface-2)}
.product-mode-settings .mode-segment-rich{padding:15px 16px 6px}.product-mode-settings .mode-explain{margin:6px 16px 16px;grid-column:auto}
.product-optional-section .product-image-entry-grid,.product-optional-section .existing-image-strip{margin:16px}
.product-fast-start-bar{box-shadow:none;background:linear-gradient(135deg,var(--fp-surface),var(--fp-surface-2))}
.product-step-nav{align-items:center}.product-step-nav .product-nav-more{margin-left:auto;border:1px dashed var(--fp-border-strong);color:var(--fp-primary-strong)}
.product-secondary-gate{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0;padding:16px 17px;border:1px dashed var(--fp-border-strong);border-radius:15px;background:var(--fp-surface-2)}
.product-secondary-gate>div{display:grid;gap:3px}.product-secondary-gate strong{font-size:12px}.product-secondary-gate span{font-size:10px;line-height:1.5;color:var(--fp-muted)}
.product-secondary-gate.is-open{border-style:solid;background:var(--fp-primary-soft)}
.product-secondary-section[hidden]{display:none!important}
.product-form-page .image-ai-card{background:var(--fp-surface-2)}
.product-form-page .image-ai-card .ai-mini-mark{background:var(--fp-surface);color:var(--fp-muted);border:1px solid var(--fp-border)}
.product-form-page .sticky-form-actions{max-width:calc(100vw - var(--sidebar-width) - 52px)}
.product-form-page .sticky-form-actions .actions{flex-wrap:wrap}
.product-form-page .readiness-section{margin-bottom:10px}

/* Unified order entry points: long records remain available but no longer compete with the daily workspace. */
.r61668-order-nav{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.r61668-order-nav a{white-space:normal;text-align:center;line-height:1.35}
.r612-full-records summary{gap:16px}.r612-full-records>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.r612-full-records>div a{display:flex;align-items:center;min-height:42px;padding:9px 11px;border:1px solid var(--fp-border);border-radius:10px;background:var(--fp-surface);line-height:1.4}

/* Long-tail layout guards found during the page sweep. */
.actions,.section-actions,.toolbar-actions,.card-actions{flex-wrap:wrap}
.btn,button,a.btn{max-width:100%;overflow-wrap:anywhere;line-height:1.35}
.card,.panel,section{min-width:0}
.table-wrap,.table-scroll,.responsive-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
table{max-width:100%}
.field input,.field select,.field textarea{min-width:0;max-width:100%}
input[type="date"]{min-width:138px;font-variant-numeric:tabular-nums}
details>summary{min-width:0}details>summary span,details>summary strong{min-width:0;overflow-wrap:anywhere}
.badge,.chip,.tag{max-width:100%;overflow-wrap:anywhere}

@media(max-width:1260px){
 .product-entry-hero-simple{grid-template-columns:1fr}.product-entry-promise{max-width:none}
 .product-form-page .sticky-form-actions{max-width:none}
 .r612-full-records>div{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .product-entry-promise{grid-template-columns:1fr 1fr}
 .product-secondary-gate{align-items:flex-start;display:grid}.product-secondary-gate .btn{justify-self:start}
 .product-step-nav .product-nav-more{margin-left:0}
 .r612-full-records>div{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
 .product-entry-promise{grid-template-columns:1fr}
 .product-mode-settings .mode-segment-rich{grid-template-columns:1fr}
 .product-mode-settings .mode-explain{grid-template-columns:1fr}.mode-unlock-list{justify-content:flex-start}
 .product-form-page .sticky-form-actions{left:10px!important;right:10px!important;bottom:10px;display:grid;gap:8px}
 .product-form-page .sticky-form-actions>div:first-child{display:none}
 .product-form-page .sticky-form-actions .actions{display:grid;grid-template-columns:auto 1fr 1fr;width:100%}
 .r612-full-records>div{grid-template-columns:1fr}
}

.dynamic-field-card[data-ai-writable="true"] label:after{content:"可辅助填写"!important}

/* R6.16.70 order workspace consolidation and closure density reduction */
.r61670-order-facts{display:grid;grid-template-columns:2fr repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.r61670-order-facts>div{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface)}
.r61670-order-facts small{font-size:9px;color:var(--fp-muted)}.r61670-order-facts strong{font-size:12px;overflow-wrap:anywhere}
.r61670-order-nav{position:sticky;top:8px;z-index:8;padding:8px;border:1px solid var(--fp-border);border-radius:12px;background:color-mix(in srgb,var(--fp-surface) 94%,transparent);backdrop-filter:blur(8px)}
.r61670-order-nav a{flex:0 1 auto;padding:7px 11px;border-radius:9px}.r61670-order-nav a:hover{background:var(--fp-primary-soft)}
.r61670-full-record-note{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;background:linear-gradient(135deg,var(--fp-surface),var(--fp-surface-2))}
.r61670-full-record-note>div{display:grid;gap:3px}.r61670-full-record-note strong{font-size:13px}.r61670-full-record-note p{margin:0;font-size:10px;color:var(--fp-muted);line-height:1.5}
.r61670-closure-detail{padding:0;overflow:hidden}.r61670-closure-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;cursor:pointer;list-style:none}
.r61670-closure-detail>summary::-webkit-details-marker{display:none}.r61670-closure-detail>summary>span:first-child{display:grid;gap:3px}.r61670-closure-detail>summary small{font-size:10px;color:var(--fp-muted)}
.r61670-closure-detail[open]>summary{border-bottom:1px solid var(--fp-border);background:var(--fp-surface-2)}.r61670-detail-body{padding:15px 17px}
.r61670-resolved-exceptions{margin-top:12px;border-top:1px solid var(--fp-border);padding-top:10px}.r61670-resolved-exceptions>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:8px 2px;color:var(--fp-muted)}
.r61670-resolved-exceptions .exception-case.compact{padding:12px}.r61670-resolved-exceptions .exception-case.compact h4{margin:5px 0}
.r61670-order-closure .closure-top-actions{position:sticky;top:8px;z-index:7;padding:8px;border:1px solid var(--fp-border);border-radius:12px;background:color-mix(in srgb,var(--fp-bg) 92%,transparent);backdrop-filter:blur(8px)}
@media(max-width:1050px){.r61670-order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.r61670-full-record-note{align-items:flex-start;display:grid}.r61670-full-record-note .btn{justify-self:start}}
@media(max-width:650px){.r61670-order-facts{grid-template-columns:1fr}.r61670-order-nav{position:static}.r61670-order-closure .closure-top-actions{position:static}.r61670-closure-detail>summary{align-items:flex-start;display:grid}}

/* The rapid product form must not cover the fields while the user scrolls. */
.r61518-product-intake-page .r68-intake-shell{padding-bottom:18px}
.r61518-product-intake-page .r68-save-bar{position:static;grid-column:1/-1;left:auto;right:auto;bottom:auto;max-width:none;margin-top:0;border:1px solid var(--fp-border);border-radius:14px;box-shadow:none;background:var(--fp-surface)}
.r61518-product-intake-page .r68-save-bar>div:first-child{min-width:0}
@media(max-width:850px){.r61518-product-intake-page .r68-intake-shell{padding-bottom:18px}.r61518-product-intake-page .r68-save-bar{position:static}}

/* Full product editor: save controls stay in document flow instead of covering the form. */
.product-form-page .smart-form{padding-bottom:18px}
.product-form-page .sticky-form-actions{position:static;left:auto;right:auto;bottom:auto;max-width:none;margin-top:14px;box-shadow:none;background:var(--fp-surface)}
.product-form-page.has-sticky-form-actions .ai-float-button{bottom:15px}
.product-form-page.has-sticky-form-actions .ai-float-dismiss{bottom:61px}

/* R6.16.70 visual follow-up: keep document choices readable in two-column cards. */
.r61641-plan-page .r61633-recommended-wrap .r61632-build-row>.r61664-template-choice{
  grid-column:2;width:100%;max-width:none;min-width:0;box-sizing:border-box
}
.r61641-plan-page .r61633-recommended-wrap .r61632-build-row>.actions{
  grid-column:2;justify-content:flex-start;width:100%
}
.r61641-plan-page .r61633-recommended-wrap .r61632-build-row>.actions .btn{white-space:normal;text-align:center}

/* Business settings: the defaults work without opening every maintenance form. */
.r61670-code-rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.r61670-code-rule-form{min-width:0}
.r61670-code-rule{border:1px solid var(--border,var(--line));border-radius:12px;background:var(--surface,#fff);overflow:hidden}
.r61670-code-rule>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px 14px;cursor:pointer;list-style:none}
.r61670-code-rule>summary::-webkit-details-marker{display:none}
.r61670-code-rule>summary span{display:grid;gap:3px;min-width:0}
.r61670-code-rule>summary small{color:var(--muted)}
.r61670-code-rule>summary code{font-weight:800;color:var(--primary);white-space:nowrap}
.r61670-code-rule>summary>b{font-size:12px;color:var(--muted)}
.r61670-code-rule[open]>summary{background:var(--surface-soft,#f7f9fc);border-bottom:1px solid var(--border,var(--line))}
.r61670-code-rule-body{padding:14px}
.r61670-code-rule-body>.actions{margin-top:12px;justify-content:flex-end}
.r61670-business-extra{padding:0;overflow:hidden}
.r61670-business-extra>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 20px;cursor:pointer;list-style:none}
.r61670-business-extra>summary::-webkit-details-marker{display:none}
.r61670-business-extra>summary span{display:grid;gap:4px}
.r61670-business-extra>summary small{color:var(--muted)}
.r61670-business-extra>summary>b{font-size:12px;color:var(--primary)}
.r61670-business-extra[open]>summary{border-bottom:1px solid var(--border,var(--line));background:var(--surface-soft,#f7f9fc)}
.r61670-business-extra-body{padding:16px 20px 20px}
.r61670-inner-panel{padding:14px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--surface,#fff)}

/* Product process routes: reduce empty vertical rhythm while preserving all actions. */
.r61670-process-page .r61664-route-card{padding:12px;gap:10px}
.r61670-process-page .r61664-route-main p{margin:3px 0}
.r61670-process-page .r61667-route-default-note{padding:7px 9px;margin-top:6px}
.r61670-process-page .r61667-route-template-optional{margin-top:7px}
.r61670-process-page .r61664-route-main>small:last-child{display:none}
.r61670-process-page .route-arrow{font-size:16px;line-height:1}
@media(max-width:900px){
 .r61670-code-rule-list{grid-template-columns:1fr}
 .r61670-code-rule>summary{grid-template-columns:minmax(0,1fr) auto}
 .r61670-code-rule>summary code{grid-column:1/2}
 .r61670-business-extra-body.grid{grid-template-columns:1fr}
}
