/* M06 scoped styles. Reuses ../../assets/app.css tokens and controls without altering shared files. */
body.m06-standalone{min-width:320px;overflow-x:hidden;background:var(--canvas)}
.m06-standalone main{margin:0;min-width:0;padding:24px;outline:none}
.m06-standalone .page-card{min-height:0;border-radius:10px;border:1px solid var(--border)}
.m06-preview-bar{position:sticky;top:0;z-index:30;min-height:56px;padding:8px 24px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px}
.m06-preview-brand{display:flex;align-items:center;gap:10px;min-width:220px}
.m06-preview-brand strong{font-size:16px}
.m06-preview-brand span,.m06-preview-note{color:var(--text-3);font-size:12px}
.m06-preview-dot{width:3px;height:22px;background:var(--primary);border-radius:2px}
.m06-preview-tools{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}
.m06-preview-tools label{font-size:12px;color:var(--text-2)}
.m06-preview-tools select{min-width:210px}
.m06-demo-tag{display:inline-flex;align-items:center;min-height:26px;padding:2px 9px;border:1px solid #b6dadd;border-radius:4px;background:var(--primary-soft);color:var(--primary-dark);font-size:12px;font-weight:600}
.m06-page{width:100%;min-width:0}
.m06-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.m06-page-head .eyebrow{display:block;color:var(--primary-dark);font-size:12px;font-weight:600;margin-bottom:4px}
.m06-page-head h1{overflow-wrap:anywhere}
.m06-page-head .page-sub{margin-top:6px;color:var(--text-2);max-width:850px}
.m06-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.m06-inline-banner{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin-bottom:16px;border:1px solid #cde6e7;border-radius:8px;background:#f6fbfb;color:var(--text-2);font-size:12px}
.m06-inline-banner strong{color:var(--primary-dark);white-space:nowrap}
.m06-filter-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(4,minmax(150px,1fr));gap:12px;align-items:end}
.m06-filter-grid .field{min-width:0}
.m06-filter-grid .field input,.m06-filter-grid .field select{width:100%}
.m06-filter-actions{display:flex;gap:8px;justify-content:flex-end;grid-column:1/-1}
.m06-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.m06-toolbar .grow{flex:1}
.m06-toolbar-note{font-size:12px;color:var(--text-3)}
.m06-table{min-width:1560px}
.m06-table .m06-name-cell{min-width:180px;white-space:normal}
.m06-table .m06-spec-cell{min-width:190px;max-width:280px;white-space:normal}
.m06-table .m06-time-cell{min-width:150px}
.m06-table .m06-actions{min-width:230px}
.m06-table .m06-number{text-align:right;font-variant-numeric:tabular-nums}
.m06-muted{color:var(--text-3)}
.m06-unavailable{color:var(--text-3);font-size:12px}
.m06-actions-inline{display:flex;align-items:center;justify-content:center;gap:1px}
.m06-pagination{display:flex;align-items:center;gap:10px;margin-top:16px;color:var(--text-2);font-size:12px;flex-wrap:wrap}
.m06-pagination .grow{flex:1}
.m06-pagination select{min-width:92px}
.m06-page-number{min-width:36px;height:36px;border:1px solid var(--primary);border-radius:5px;background:var(--primary-soft);color:var(--primary-dark);font-weight:600}
.m06-empty{padding:44px 20px;text-align:center;color:var(--text-2)}
.m06-empty-mark{width:52px;height:42px;border:1px solid var(--border-strong);border-radius:8px;margin:0 auto 14px;position:relative;background:var(--muted)}
.m06-empty-mark:before,.m06-empty-mark:after{content:"";position:absolute;left:12px;right:12px;height:2px;background:var(--border-strong)}
.m06-empty-mark:before{top:14px}.m06-empty-mark:after{top:24px}
.m06-empty strong{display:block;color:var(--text);margin-bottom:6px}
.m06-empty p{font-size:12px;margin-bottom:14px}
.m06-overview{display:flex;flex-wrap:wrap;gap:18px 40px;padding:17px 20px;margin-bottom:18px;background:#fff;border:1px solid var(--border);border-radius:10px}
.m06-overview>div{display:flex;align-items:center;gap:10px}
.m06-overview label{font-size:12px;color:var(--text-3)}
.m06-overview strong{font-size:18px;font-variant-numeric:tabular-nums}
.m06-detail-card{min-height:470px}
.m06-tabs{display:flex;gap:4px;overflow:auto;white-space:nowrap;border-bottom:1px solid var(--border);margin-bottom:18px}
.m06-tabs .inner-tab{flex-shrink:0}
.m06-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:6px 0 16px}
.m06-section-head p{font-size:12px;color:var(--text-3);margin-top:4px}
.m06-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.m06-detail-grid .detail-field{min-width:0}
.m06-detail-grid .detail-field div{white-space:normal}
.m06-compatibility{margin-top:20px;border:1px solid var(--border);border-radius:8px;background:var(--muted)}
.m06-compatibility summary{padding:13px 15px;color:var(--primary-dark);font-weight:600;cursor:pointer}
.m06-compatibility-body{padding:0 15px 15px}
.m06-compatibility-note{font-size:12px;color:var(--text-2);padding:10px 12px;background:#fff;border-left:3px solid var(--primary);margin-top:12px}
.m06-table-compact{min-width:900px}
.m06-table-compact td,.m06-table-compact th{padding:12px}
.m06-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.m06-metric-card{min-width:0;border:1px solid var(--border);border-radius:8px;background:#fff;padding:15px}
.m06-metric-card label{display:block;color:var(--text-3);font-size:12px;margin-bottom:7px}
.m06-metric-card strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.m06-metric-card small{display:block;color:var(--text-3);margin-top:4px}
.m06-metric-card.warning{border-color:#ead3ae;background:var(--warning-soft)}
.m06-stock-rule{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--muted);font-size:12px;color:var(--text-2);line-height:1.8}
.m06-stock-rule strong{color:var(--text)}
.m06-audit{padding:17px 0;border-bottom:1px solid var(--border)}
.m06-audit:first-child{padding-top:0}
.m06-audit:last-child{border-bottom:0}
.m06-audit-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.m06-audit-head span,.m06-audit p{font-size:12px;color:var(--text-3)}
.m06-audit p{margin-top:7px;color:var(--text-2)}
.m06-denied{max-width:720px;margin:48px auto;padding:42px;text-align:center}
.m06-denied h1{margin-bottom:10px}
.m06-denied p{color:var(--text-2);margin-bottom:20px}
.m06-more-list{display:grid;gap:10px}
.m06-more-list .btn{justify-content:flex-start;width:100%}
.m06-more-hint{margin-top:14px;font-size:12px;color:var(--text-3);line-height:1.7}
.m06-reference-list{margin:12px 0 0;padding-left:20px;color:var(--text-2)}
.m06-reference-list li+li{margin-top:6px}
#containerToast,#previewToast{position:fixed;z-index:1200;top:72px;left:50%;transform:translateX(-50%);max-width:min(520px,calc(100vw - 32px));padding:11px 16px;border-radius:6px;background:#26343a;color:#fff;box-shadow:var(--shadow);font-size:13px}
#m06Dialog{width:min(860px,calc(100vw - 40px));max-height:calc(100dvh - 40px)}
#m06Dialog.m06-dialog-small{width:min(540px,calc(100vw - 40px))}
#m06DialogTitle:focus{outline:none}
.m06-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}
.m06-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.m06-field.wide{grid-column:1/-1}
.m06-field label{font-size:13px;color:var(--text-2)}
.m06-field label b{color:var(--danger);margin-right:4px}
.m06-field input,.m06-field select,.m06-field textarea{width:100%;border:1px solid var(--border-strong);border-radius:5px;background:#fff;color:var(--text);font:inherit;padding:8px 10px}
.m06-field input,.m06-field select{min-height:38px}
.m06-field textarea{resize:vertical;min-height:82px}
.m06-field input[readonly],.m06-field select:disabled{background:var(--muted);color:var(--text-2)}
.m06-field small{font-size:11px;color:var(--text-3);line-height:1.6}
.m06-field-error{min-height:18px;font-size:12px;color:var(--danger)}
.m06-field [aria-invalid="true"]{border-color:var(--danger);box-shadow:0 0 0 2px rgba(191,65,75,.10)}
.m06-form-section+.m06-form-section{margin-top:22px}
.m06-form-section h3{font-size:14px;padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.m06-error-summary{padding:12px 14px;margin-bottom:16px;border:1px solid #e7aeb2;border-radius:6px;background:var(--danger-soft);color:#8e3038;font-size:12px}
.m06-error-summary strong{display:block;margin-bottom:5px}
.m06-error-summary a{display:block;color:#8e3038;text-decoration:underline;margin-top:4px}
.m06-error-summary[hidden]{display:none}
.m06-unsaved{padding:12px 14px;margin-bottom:16px;border:1px solid #e5c38c;border-radius:7px;background:var(--warning-soft);font-size:12px;color:var(--text-2)}
.m06-unsaved strong{display:block;color:var(--warning);margin-bottom:4px}
.m06-unsaved-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.m06-demo-control{display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:10px 12px;border:1px dashed var(--border-strong);border-radius:7px;background:var(--muted);font-size:12px;color:var(--text-2)}
.m06-demo-control input{min-height:0;margin-top:2px}
.m06-dialog-foot-note{font-size:12px;color:var(--text-3);margin-right:auto}
.m06-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.m06-preview-card{padding:18px;background:#fff;border:1px solid var(--border);border-radius:10px;min-width:0}
.m06-preview-card h2{font-size:16px;margin-bottom:5px}
.m06-preview-card>p{font-size:12px;color:var(--text-3);margin-bottom:14px}
.m06-preview-card .table-wrap table{min-width:580px}
.m06-readonly-box{padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--muted);color:var(--text-2);font-size:12px}
.m06-state-message{padding:14px;border-radius:8px;border:1px solid var(--border);font-size:12px;line-height:1.7}
.m06-state-message.error{background:var(--danger-soft);border-color:#e7aeb2;color:#8e3038}
.m06-state-message.warning{background:var(--warning-soft);border-color:#e5c38c;color:#704914}
@media(max-width:1180px){.m06-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.m06-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
  .m06-preview-bar{padding:8px 12px;align-items:flex-start;flex-wrap:wrap}.m06-preview-brand{min-width:0}.m06-preview-note{display:none}.m06-preview-tools{width:100%;margin-left:0}.m06-preview-tools select{flex:1;min-width:0}
  .m06-standalone main{padding:16px 12px}.m06-page-head{flex-direction:column;gap:12px}.m06-head-actions{justify-content:flex-start}.m06-page-head h1{font-size:20px}
  .m06-filter-grid{grid-template-columns:1fr}.m06-filter-actions{grid-column:auto;width:100%}.m06-filter-actions .btn{flex:1}
  .m06-detail-grid,.m06-form-grid,.m06-preview-grid{grid-template-columns:1fr}.m06-field.wide{grid-column:auto}.m06-card-grid{grid-template-columns:1fr}
  .m06-overview{gap:12px}.m06-overview>div{width:100%;justify-content:space-between}.m06-section-head{flex-direction:column}
  .m06-pagination{align-items:flex-start;flex-direction:column}.m06-pagination .grow{display:none}.m06-pagination .btn{min-height:44px}
  #m06Dialog,#m06Dialog.m06-dialog-small{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#m06Dialog .dialog-head,#m06Dialog .dialog-body{padding:16px}#m06Dialog .dialog-foot{padding:12px 16px;flex-wrap:wrap}
  .m06-field input,.m06-field select,.m06-field textarea{min-height:44px;font-size:16px}.m06-head-actions .btn,.m06-toolbar .btn,.m06-preview-tools .btn{min-height:44px}
  .m06-dialog-foot-note{flex-basis:100%}.m06-denied{margin:20px auto;padding:26px 18px}
}
@media(max-height:540px){#m06Dialog{max-height:calc(100dvh - 16px)}#m06Dialog .dialog-head{padding-top:12px;padding-bottom:12px}#m06Dialog .dialog-foot{padding-top:9px;padding-bottom:9px}}
@media(prefers-reduced-motion:reduce){.m06-standalone *{scroll-behavior:auto!important;transition:none!important}}

/* Keep high-frequency safety and stock columns visible before optional specification. */
.m06-table{min-width:1280px}.m06-table .m06-name-cell{min-width:150px}.m06-table .m06-spec-cell{min-width:130px}.m06-table .m06-actions{min-width:195px}
