/* Procurement workspace; inherits the shared light/dark palette. */
.mc-root{--mc-radius:17px;min-width:0;color:var(--ink)}
.mc-root *, .mc-dialog *{box-sizing:border-box}
.mc-root svg,.mc-dialog svg,.mc-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}
.mc-root button,.mc-dialog button{font:inherit}
.mc-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.mc-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:var(--green)}
.mc-intro h2{font-size:clamp(25px,2.8vw,35px);letter-spacing:-1.2px;line-height:1.15;margin:10px 0}
.mc-intro p,.mc-section-heading p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.mc-button,.button.mc-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 12px;white-space:nowrap;font-size:12px}
.mc-button svg{width:17px;height:17px}
.mc-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--soft);width:max-content;max-width:100%;margin-bottom:24px;overflow-x:auto;scrollbar-width:none}
.mc-tabs::-webkit-scrollbar{display:none}
.mc-tabs .mc-button{border:1px solid transparent;background:transparent;color:var(--muted);font-weight:650}
.mc-tabs .mc-button.is-active{background:var(--panel);border-color:var(--line);color:var(--ink);box-shadow:0 2px 5px #00000006}
.mc-tabs span{font-size:10px;padding:2px 6px;background:var(--field-2);border-radius:6px;color:var(--muted);font-variant-numeric:tabular-nums}
.mc-content{min-width:0}
.mc-price-freshness{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:16px 22px;border:1px solid var(--line);background:var(--panel);border-radius:15px;padding:20px;margin-bottom:20px}
.mc-price-update-main{display:flex;gap:12px;min-width:0}
.mc-freshness-icon{display:grid;place-items:center;width:38px;height:38px;background:var(--blue-soft);color:var(--steel);border-radius:11px;flex-shrink:0}
.mc-price-freshness span:not(.mc-badge):not(.mc-freshness-icon){display:block;font-size:10px;color:var(--muted)}
.mc-price-freshness strong{display:block;font-size:13px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.mc-price-freshness small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}
.mc-price-update-actions{text-align:right;max-width:215px}
.mc-source-statuses{display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1;padding-top:11px;border-top:1px solid var(--line)}
.mc-product-price strong em{font-style:normal;font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted)}
.mc-price-trend{font-weight:650;line-height:1.6}
.mc-price-trend.mc-change-up,.mc-change-up{color:var(--rust);background:var(--warning-soft)}
.mc-price-trend.mc-change-down,.mc-change-down{color:var(--green);background:var(--accent-soft)}
.mc-change-basis{color:var(--muted);background:var(--field-2)}
.mc-product-price .mc-price-trend{display:inline-block;padding:3px 5px;border-radius:5px;margin-top:7px}
.mc-history-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
.mc-history-title h3{font-size:15px;margin:0}
.mc-price-changes{list-style:none;padding:0;margin:12px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.mc-price-changes li{padding:15px;border-bottom:1px solid var(--line)}
.mc-price-changes li:last-child{border:0}
.mc-change-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}
.mc-change-heading time{font-size:11px;color:var(--muted)}
.mc-change-prices{display:flex;gap:16px;align-items:center}
.mc-change-prices strong{font-size:17px;line-height:1.5}
.mc-change-prices small{display:block;font-size:10px;color:var(--muted);line-height:1.6}
.mc-change-prices>b{color:var(--muted);font-size:18px}
.mc-change-prices>small{margin-left:auto;text-align:right}
.mc-history-empty{background:var(--soft);padding:17px;border-radius:10px;font-size:12px;line-height:1.7}
.mc-history-baseline{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px;line-height:1.7;padding:12px 0;color:var(--muted)}
.mc-history-baseline strong{color:var(--ink)}
.mc-history-baseline time{margin-left:auto}
.mc-quantity-dialog{width:min(510px,calc(100vw - 32px))}
.mc-quantity-price{display:flex;flex-direction:column;gap:5px;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:17px;margin:20px 0}
.mc-quantity-price strong{font-size:24px;letter-spacing:-.4px}
.mc-quantity-price span,.mc-quantity-existing{font-size:11px;color:var(--muted);line-height:1.7}
.mc-quantity-field input{font-size:24px!important;font-weight:650;min-height:54px!important}
.mc-quantity-existing{background:var(--blue-soft);color:var(--steel);border-radius:9px;padding:12px}
.mc-quantity-subtotal{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 15px;padding:18px 0;margin:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.mc-quantity-subtotal>span{font-size:12px;color:var(--muted)}
.mc-quantity-subtotal>strong{font-size:25px}
.mc-quantity-subtotal>small{width:100%;font-size:10px;color:var(--muted)}
.mc-quantity-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.mc-quantity-actions .primary{min-width:160px}
[data-mc-quantity-error]{color:var(--danger)}
.mc-family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.button.mc-family{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--mc-radius);padding:19px 16px;background:var(--panel);white-space:normal;text-align:left;min-width:0}
.button.mc-family:hover,.button.mc-family.is-active{border-color:var(--steel);background:var(--blue-soft)}
.mc-family-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:var(--steel);background:var(--blue-soft);flex-shrink:0}
.mc-family-cs .mc-family-icon,.mc-product-symbol.mc-family-cs{color:var(--ink);background:var(--field-2)}
.mc-family-pvc .mc-family-icon,.mc-product-symbol.mc-family-pvc{color:var(--green);background:var(--accent-soft)}
.mc-family-copper .mc-family-icon,.mc-product-symbol.mc-family-copper{color:var(--rust);background:var(--warning-soft)}
.mc-family-icon svg{width:26px;height:26px}
.mc-family strong{display:block;font-size:19px;letter-spacing:-.3px}
.mc-family small{display:block;font-size:10px;font-weight:500;color:var(--muted);margin-top:3px}
.mc-family b{margin-left:auto;align-self:flex-start;font-size:11px;font-weight:600;color:var(--muted)}
.mc-specialties{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px}
.mc-specialties>span,.mc-specialties>small{font-size:10px;color:var(--muted)}
.mc-specialties>span{font-weight:650;margin-right:3px}
.mc-specialties>small{flex-basis:100%;line-height:1.5}
.button.mc-specialty{min-height:40px;white-space:normal;text-align:left;border-color:var(--line);background:var(--panel);color:var(--ink);border-radius:12px}
.button.mc-specialty.is-active{border-color:var(--steel);background:var(--blue-soft)}
.mc-specialty b{font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums;padding:2px 6px;background:var(--soft);color:var(--muted);border-radius:6px}
.mc-catalog-panel{border:1px solid var(--line);border-radius:var(--mc-radius);background:var(--panel);overflow:hidden}
.mc-filter-top{display:flex;gap:12px;padding:22px 22px 12px;align-items:center}
.mc-search{flex:1;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;background:var(--field);padding:0 14px;min-width:0;color:var(--muted)}
.mc-search input{border:0!important;background:transparent!important;box-shadow:none!important;outline:0;min-width:0;width:100%;font-size:12px;min-height:43px;padding:8px 0;color:var(--ink)}
.mc-search:focus-within{border-color:var(--steel);outline:2px solid var(--blue-soft)}
.mc-filters{display:grid;grid-template-columns:1fr 1.1fr 1.3fr 1fr;gap:12px;padding:0 22px 22px}
.mc-root label,.mc-dialog label{display:flex;flex-direction:column;gap:7px;min-width:0}
.mc-root label>span,.mc-dialog label>span{font-size:10px;color:var(--muted);font-weight:650}
.mc-root input:not([type=checkbox]),.mc-root select,.mc-root textarea,.mc-dialog input,.mc-dialog select{width:100%;border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:8px;min-height:39px;font:inherit;font-size:12px;padding:9px 10px;min-width:0}
.mc-root input:focus,.mc-root select:focus,.mc-root textarea:focus,.mc-dialog input:focus{outline:2px solid var(--blue-soft);border-color:var(--steel)}
.mc-root textarea{resize:vertical;line-height:1.7}
.mc-search{flex-direction:row!important}
.mc-result-heading{padding:15px 22px;background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}
.mc-result-heading>div{display:flex;align-items:center;gap:12px}
.mc-result-heading strong{font-size:11px}
.mc-result-heading span{font-size:10px;color:var(--muted)}
.mc-product{display:grid;grid-template-columns:minmax(240px,1fr) 148px 128px auto;gap:14px;padding:18px 22px;align-items:center;border-bottom:1px solid var(--line);transition:background .15s ease;min-width:0}
.mc-product:last-child{border-bottom:0}
.mc-product:hover{background:var(--soft)}
.mc-product-heading{display:flex;align-items:center;gap:15px;min-width:0}
.mc-photo-button{appearance:none;border:0;padding:0;background:none;border-radius:12px;flex-shrink:0;cursor:pointer}
.mc-photo-button:focus-visible,.mc-product-title:focus-visible{outline:2px solid var(--steel);outline-offset:4px}
.mc-photo{position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--muted);flex-shrink:0}
.mc-product-photo{width:80px;height:80px}
.mc-photo.has-photo{background:#fff}
.mc-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;padding:7px;opacity:0}
.mc-photo.is-loaded img{opacity:1}
.mc-photo-fallback{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;padding:6px;text-align:center;line-height:1.4}
.mc-photo-fallback>span{font-size:8px;max-width:70px}
.mc-photo.has-photo .mc-photo-fallback{color:#87909c}
.mc-photo.has-photo .mc-photo-fallback>span{visibility:hidden}
.mc-photo.is-loaded .mc-photo-fallback{visibility:hidden}
.mc-detail-photo{width:100%;height:240px;margin:0 0 20px}
.mc-detail-photo:not(.has-photo){height:120px}
.mc-detail-photo img{padding:18px}
.mc-detail-photo .mc-photo-fallback>svg{width:36px;height:36px}
.mc-detail-photo .mc-photo-fallback>span{font-size:11px;max-width:none}
.mc-product-title{appearance:none;border:0;padding:0;color:inherit;background:none;text-align:left;min-width:0}
.mc-product-title strong{display:block;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.mc-product-title span,.mc-product-title small{display:block;color:var(--muted);font-size:10px;line-height:1.8}
.mc-product-title small{margin-top:2px;overflow-wrap:anywhere}
.mc-product-price strong{display:block;font-size:17px;font-weight:750;letter-spacing:-.4px}
.mc-product-price span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.mc-product-price small{display:block;font-size:9px;line-height:1.6;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.mc-product-status{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.mc-badge{display:inline-flex;align-items:center;font-size:9px;line-height:1.55;font-weight:650;padding:4px 7px;border-radius:6px;white-space:normal}
.mc-good,.mc-status-received{background:var(--accent-soft);color:var(--green)}
.mc-warn,.mc-status-draft{background:var(--warning-soft);color:var(--amber)}
.mc-muted,.mc-status-cancelled{background:var(--field-2);color:var(--muted)}
.mc-status-ordered{background:var(--blue-soft);color:var(--steel)}
.mc-product-actions{display:flex;gap:6px;align-items:center}
.mc-product-actions .button{min-height:33px;padding:7px 9px;font-size:10px}
.mc-product-actions .mc-add{background:var(--accent-soft);color:var(--green);border-color:transparent;min-width:34px}
.mc-pagination{padding:16px 22px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);gap:12px}
.mc-pagination>span{font-size:11px;color:var(--muted)}
.mc-pagination>div{display:flex;gap:7px}
.mc-small,.mc-footnote{font-size:10px;color:var(--muted);line-height:1.8}
.mc-footnote{margin:14px 0 0}
.mc-notice{padding:13px 16px;margin-bottom:16px;border-radius:10px;font-size:12px;line-height:1.7;display:flex;justify-content:space-between;align-items:center;gap:12px}
.mc-error{background:var(--danger-soft);color:var(--danger)}
.mc-success{background:var(--accent-soft);color:var(--green)}
.mc-empty{text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:52px 20px;gap:10px;background:var(--panel);border-radius:var(--mc-radius);min-height:180px}
.mc-empty>svg{width:34px;height:34px;color:var(--steel);margin-bottom:4px}
.mc-empty strong{font-size:16px;font-weight:650}
.mc-empty p{max-width:400px;color:var(--muted);font-size:12px;line-height:1.7;margin:0 0 6px}
.mc-spinner{width:26px;height:26px;border:2px solid var(--line);border-top-color:var(--steel);border-radius:50%;animation:mc-spin 1s linear infinite}
@keyframes mc-spin{to{transform:rotate(360deg)}}
.mc-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:26px}
.mc-stat-grid article{padding:23px;background:var(--panel);border:1px solid var(--line);border-radius:var(--mc-radius)}
.mc-stat-grid article>span{color:var(--muted);display:block;font-size:11px;margin-bottom:12px}
.mc-stat-grid strong{font-size:28px;letter-spacing:-1px}
.mc-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.mc-section-heading h3{font-size:19px;letter-spacing:-.4px;margin:0 0 7px}
.mc-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mc-source{border:1px solid var(--line);border-radius:var(--mc-radius);padding:24px;background:var(--panel);min-width:0}
.mc-source-title{display:flex;align-items:center;gap:14px}
.mc-source-icon,.mc-order-icon{display:grid;place-items:center;background:var(--blue-soft);color:var(--steel);width:42px;height:44px;border-radius:12px;flex-shrink:0}
.mc-source h3{font-size:15px;margin:0 0 7px}
.mc-source dl{margin:24px 0 20px}
.mc-source dl>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:10px 0}
.mc-source dt,.mc-source dd{font-size:10px;line-height:1.6;margin:0}
.mc-source dt{color:var(--muted)}
.mc-source dd{text-align:right;font-weight:600;overflow-wrap:anywhere}
.mc-source-error{font-size:11px;color:var(--amber);line-height:1.7;overflow-wrap:anywhere}
.mc-explainer{display:flex;align-items:flex-start;gap:15px;border:1px solid var(--line);background:var(--soft);border-radius:13px;padding:20px;margin-top:22px}
.mc-explainer>svg{color:var(--steel)}
.mc-explainer strong{font-size:12px}
.mc-explainer p{font-size:11px;line-height:1.8;margin:7px 0 0;color:var(--muted)}
.mc-order-filters{display:grid;grid-template-columns:minmax(150px,1.7fr) minmax(130px,1fr);gap:12px;margin-bottom:20px;max-width:580px}
.mc-orders-list{display:flex;flex-direction:column;gap:10px}
.mc-order-card{width:100%;display:flex;align-items:center;text-align:left;gap:18px;border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:19px;color:var(--ink)}
.mc-order-card:hover{border-color:var(--steel);background:var(--soft)}
.mc-order-label{display:flex;flex-direction:column;flex:1;gap:6px;min-width:0}
.mc-order-label strong{font-size:13px;overflow-wrap:anywhere}
.mc-order-label span,.mc-order-label small{font-size:10px;color:var(--muted)}
.mc-order-total{font-weight:750;font-size:15px;text-align:right}
.mc-order-total small{display:block;font-size:9px;color:var(--amber);font-weight:500;margin-top:5px}
.mc-draft-fields{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:13px;margin-bottom:20px}
.mc-draft-lines{display:flex;flex-direction:column;gap:13px}
.mc-draft-line{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.mc-line-heading{display:flex;justify-content:space-between;gap:18px;margin-bottom:20px;align-items:flex-start}
.mc-line-heading strong{display:block;font-size:13px;line-height:1.6}
.mc-line-heading small{display:block;margin:3px 0 8px;font-size:10px;color:var(--muted)}
.mc-line-heading .mc-badge{margin-right:4px}
.mc-line-heading .button{min-height:28px;padding:5px}
.mc-line-fields{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;gap:18px}
.mc-line-total{padding:9px 0;text-align:right}
.mc-line-total span{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}
.mc-line-total strong{font-size:17px}
.mc-line-notes{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:17px}
.mc-order-notes{margin-top:20px}
.mc-draft-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;border:1px solid var(--line);border-radius:15px;background:var(--panel);margin-top:20px}
.mc-draft-footer span{font-size:11px;color:var(--muted)}
.mc-draft-footer strong{display:block;font-size:30px;letter-spacing:-.6px;margin:8px 0 5px}
.mc-draft-footer small{display:block;font-size:10px;color:var(--muted);line-height:1.7}
.mc-draft-footer>div:last-child{text-align:right}
.mc-draft-footer p{font-size:10px;color:var(--muted);margin:0 0 9px}
.mc-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:20px;width:min(660px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:0;max-height:calc(100dvh - 40px);box-shadow:var(--strong-shadow);overflow:auto}
.mc-dialog-wide{width:min(920px,calc(100vw - 32px))}
.mc-dialog::backdrop{background:rgba(8,18,30,.65);backdrop-filter:blur(5px)}
.mc-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:1}
.mc-dialog-header h2{font-size:19px;letter-spacing:-.4px;margin:5px 0 0}
.mc-dialog-body{padding:25px}
.mc-detail-title{font-size:19px;line-height:1.5;margin:0 0 18px}
.mc-detail-price{padding:18px 20px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin-bottom:22px;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.mc-detail-price>strong{font-size:28px;letter-spacing:-.7px}
.mc-detail-price>span{font-size:11px;color:var(--muted)}
.mc-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 22px;margin:0}
.mc-detail-grid>div{min-width:0}
.mc-detail-grid dt{font-size:10px;color:var(--muted);margin-bottom:6px}
.mc-detail-grid dd{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:0}
.mc-detail-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:24px 0}
.mc-detail-actions label{width:105px;margin-left:auto}
.mc-history-heading{font-size:14px;margin:25px 0 12px}
.mc-history{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.mc-history table{width:100%;border-collapse:collapse}
.mc-history th,.mc-history td{font-size:11px;text-align:left;padding:11px 13px;border-bottom:1px solid var(--line)}
.mc-history th{background:var(--soft);color:var(--muted);position:sticky;top:0}
.mc-history th:last-child,.mc-history td:last-child{text-align:right}
.mc-order-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:var(--soft);padding:20px;border:1px solid var(--line);border-radius:12px;margin:20px 0}
.mc-order-summary span,.mc-order-summary small{display:block;font-size:10px;color:var(--muted);line-height:1.8}
.mc-order-summary strong{display:block;font-size:20px;margin:8px 0 4px;overflow-wrap:anywhere}
.mc-order-detail-lines article{display:grid;grid-template-columns:minmax(100px,1fr) minmax(90px,auto) minmax(80px,auto);gap:18px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}
.mc-order-detail-lines article strong{display:block;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.mc-order-detail-lines article span,.mc-order-detail-lines article small{display:block;font-size:10px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.mc-order-detail-lines article>div:not(:first-child),.mc-order-detail-lines article>strong{text-align:right}
.mc-order-note{font-size:12px;line-height:1.8;white-space:pre-wrap}
.mc-order-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
@media(min-width:1100px) and (max-width:1330px){.mc-product{grid-template-columns:minmax(210px,1fr) 120px 110px auto;gap:10px;padding:17px}.mc-product-heading{gap:12px}.mc-product-photo{width:72px;height:72px}.mc-product-actions .mc-history-button{font-size:9px;padding:7px}.mc-family-grid{gap:9px}.button.mc-family{gap:9px;padding:16px 12px}.mc-family-icon{width:34px;height:38px}}
@media(max-width:1099px){.mc-product{grid-template-columns:minmax(0,1fr) 145px;gap:10px 13px}.mc-product-status{grid-column:1;flex-direction:row;flex-wrap:wrap}.mc-product-actions{grid-column:2;grid-row:2;justify-content:flex-end}.mc-product-price{text-align:right}.mc-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-draft-fields{grid-template-columns:1fr 1fr}.mc-draft-fields>label:last-child{grid-column:1/-1}.mc-family b{align-self:center}}
@media(max-width:650px){.mc-intro{align-items:flex-start;margin-bottom:18px;gap:10px}.mc-intro h2{font-size:25px;letter-spacing:-.7px}.mc-intro p{font-size:11px}.mc-intro>.button{font-size:0;width:36px;min-width:36px;min-height:36px;padding:8px}.mc-intro>.button svg{width:18px;height:18px}.mc-eyebrow{font-size:9px;letter-spacing:1.3px}.mc-tabs{width:100%;margin-bottom:18px;gap:3px}.mc-tabs .button{padding:8px 10px;min-height:35px;font-size:10px}.mc-family-grid{gap:9px;margin-bottom:16px}.button.mc-family{padding:13px 11px;gap:9px;border-radius:12px}.mc-family-icon{height:35px;width:32px;border-radius:9px}.mc-family-icon svg{width:23px;height:23px}.mc-family strong{font-size:17px}.mc-family small{font-size:9px}.mc-family b{font-size:10px}.mc-filter-top{padding:14px 13px 10px;gap:6px}.mc-filter-top>.button{font-size:9px;padding:7px;min-height:34px}.mc-search{padding:0 9px;gap:7px}.mc-search svg{width:16px;height:16px}.mc-search input{font-size:11px;min-height:39px}.mc-filters{grid-template-columns:1fr 1fr;gap:9px;padding:0 13px 15px}.mc-root label>span,.mc-dialog label>span{font-size:10px}.mc-root input:not([type=checkbox]),.mc-root select,.mc-root textarea,.mc-dialog input,.mc-dialog select{font-size:13px}.mc-result-heading{padding:13px;align-items:flex-start;gap:8px}.mc-result-heading>div{display:block}.mc-result-heading>div>span{display:block;margin-top:4px}.mc-result-heading>.mc-small{max-width:95px;text-align:right;line-height:1.5;font-size:9px}.mc-product{grid-template-columns:minmax(0,1fr) 108px;gap:9px 11px;padding:16px 13px}.mc-product-heading{grid-column:1/-1;gap:13px}.mc-product-photo{width:72px;height:72px}.mc-product-photo img{padding:5px}.mc-product-title strong{font-size:12px;line-height:1.6}.mc-product-title span,.mc-product-title small{font-size:9px}.mc-product-price{grid-column:1;grid-row:2;align-self:center;padding-top:1px;text-align:left}.mc-product-price strong{font-size:15px;letter-spacing:-.2px}.mc-product-price small{font-size:8px}.mc-product-price span{font-size:9px;line-height:1.6}.mc-product-status{grid-column:1/-1;grid-row:3}.mc-product-actions{grid-column:2;grid-row:2}.mc-product-actions .button{font-size:10px}.mc-badge{font-size:8px;padding:4px 6px}.mc-pagination{padding:13px}.mc-pagination .button{font-size:10px;min-height:34px;padding:7px 10px}.mc-footnote{font-size:9px;line-height:1.8}.mc-notice{font-size:11px;align-items:flex-start;gap:8px}.mc-notice .button{font-size:9px;min-height:30px;padding:6px}.mc-stat-grid{gap:10px;margin-bottom:22px}.mc-stat-grid article{padding:18px 14px;border-radius:12px}.mc-stat-grid article>span{font-size:10px;line-height:1.6;margin-bottom:8px}.mc-stat-grid strong{font-size:25px}.mc-section-heading{align-items:flex-start}.mc-section-heading h3{font-size:17px}.mc-section-heading p{font-size:11px}.mc-section-heading>.button{font-size:10px;padding:7px 10px}.mc-source-grid{grid-template-columns:1fr}.mc-source{padding:19px}.mc-order-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:17px}.mc-order-icon,.mc-order-card>span:last-child{display:none}.mc-order-label{grid-column:1/-1}.mc-order-card .mc-badge{justify-self:start}.mc-order-total{font-size:14px}.mc-order-filters{grid-template-columns:1fr 1fr;gap:10px}.mc-draft-fields{grid-template-columns:1fr}.mc-draft-fields>label:last-child{grid-column:auto}.mc-draft-line{padding:16px 13px}.mc-line-heading{gap:10px;margin-bottom:16px}.mc-line-fields{grid-template-columns:1fr 1fr;gap:10px}.mc-line-total{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:3px 0}.mc-line-total span{margin:0}.mc-line-total strong{font-size:16px}.mc-line-notes{grid-template-columns:1fr;gap:12px;margin-top:14px}.mc-draft-footer{padding:19px;display:block}.mc-draft-footer>div:last-child{margin-top:18px;text-align:left}.mc-draft-footer .button{width:100%}.mc-draft-footer strong{font-size:27px}.mc-dialog,.mc-dialog-wide{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 22px);border-radius:16px}.mc-dialog-header{padding:17px}.mc-dialog-header h2{font-size:17px}.mc-dialog-body{padding:18px}.mc-detail-title{font-size:17px}.mc-detail-price{padding:15px}.mc-detail-price>strong{font-size:25px}.mc-detail-grid{gap:16px}.mc-detail-grid dd{font-size:11px}.mc-detail-actions{gap:9px}.mc-detail-actions>.button{font-size:10px}.mc-detail-actions label{width:85px}.mc-detail-actions .primary{flex:1}.mc-order-summary{padding:16px;gap:13px}.mc-order-summary strong{font-size:17px}.mc-order-detail-lines article{grid-template-columns:1fr auto;gap:9px 12px}.mc-order-detail-lines article>div:first-child{grid-column:1/-1}.mc-order-detail-lines article>div:nth-child(2){text-align:left}.mc-order-actions .button{flex:1;font-size:10px}.mc-history td,.mc-history th{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mc-spinner{animation:none}.mc-root *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:1099px){.mc-price-freshness{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.mc-price-update-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;max-width:none;text-align:right;gap:15px}}
@media(max-width:650px){.mc-price-freshness{grid-template-columns:1fr;padding:15px;gap:15px}.mc-price-change-date{padding-left:50px}.mc-price-freshness strong{font-size:12px}.mc-price-update-actions .button{font-size:10px;min-height:34px}.mc-price-update-actions small{font-size:9px;max-width:140px;margin:0}.mc-product-actions{flex-wrap:wrap;align-content:center;justify-content:flex-end}.mc-product-actions .mc-history-button{font-size:9px;padding:7px 5px}.mc-product-actions .mc-history-button svg{display:none}.mc-history-title{align-items:flex-start}.mc-change-prices{gap:10px}.mc-change-prices strong{font-size:15px}.mc-change-prices>small{max-width:60px}.mc-history-baseline time{width:100%;margin:0}.mc-quantity-actions .primary{min-width:0;flex:1}.mc-quantity-price strong{font-size:22px}.mc-quantity-subtotal>strong{font-size:22px}}

.mc-source-diagnostic{font-size:11px;color:var(--muted);margin:0 0 14px;overflow-wrap:anywhere}
.mc-source-diagnostic summary{cursor:pointer;padding:5px 0}
.mc-source-diagnostic p{line-height:1.7;margin:6px 0}

/* Account-backed McMaster list and connection controls. */
.mc-mcmaster{border:1px solid var(--line);border-radius:var(--mc-radius);padding:25px;background:var(--panel);min-width:0}
.mc-mcmaster-heading,.mc-mcmaster-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.mc-mcmaster-heading h3{font-size:27px;letter-spacing:-.7px;margin:7px 0}
.mc-mcmaster-heading p,.mc-mcmaster-list-heading p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}
.mc-mcmaster-heading>.mc-badge{font-size:11px;flex-shrink:0;padding:7px 10px}
.mc-mcmaster-connection{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--soft);border:1px solid var(--line);border-radius:13px;padding:20px;margin:22px 0}
.mc-mcmaster-connection>div:first-child{min-width:0}
.mc-mcmaster-connection strong{font-size:13px;line-height:1.7}
.mc-mcmaster-connection p{font-size:11px;line-height:1.8;margin:6px 0;color:var(--muted)}
.mc-mcmaster-connection small{display:block;font-size:10px;line-height:1.7;color:var(--muted)}
.mc-mcmaster-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0;justify-content:flex-end}
.mc-mcmaster-connection .mc-mcmaster-actions{max-width:215px}
.mc-mcmaster-import{padding:0 0 23px;border-bottom:1px solid var(--line)}
.mc-mcmaster-import>div{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:10px}
.mc-mcmaster-import p{margin:0}
.mc-mcmaster-import textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;min-height:85px}
.mc-mcmaster-list-heading{margin:24px 0 16px}
.mc-mcmaster-list-heading h4{font-size:16px;margin:0 0 6px}
.mc-mcmaster-list-heading h4 span{font-size:11px;font-weight:600;color:var(--muted);background:var(--field-2);border-radius:6px;margin-left:5px;padding:3px 7px}
.mc-mcmaster-search{margin-bottom:15px}
.mc-mcmaster-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.mc-mcmaster-part{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,245px) auto;align-items:start;gap:22px;padding:20px;border-bottom:1px solid var(--line)}
.mc-mcmaster-part:last-child{border-bottom:0}
.mc-mcmaster-part-info{min-width:0}
.mc-mcmaster-number{display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;font-weight:700;color:var(--steel);text-decoration:none;overflow-wrap:anywhere}
.mc-mcmaster-number svg{width:14px;height:14px}
.mc-mcmaster-part-info>strong{display:block;font-size:12px;line-height:1.7;margin:7px 0;overflow-wrap:anywhere}
.mc-mcmaster-part-info>small,.mc-mcmaster-part-price>small{display:block;font-size:10px;line-height:1.7;margin-top:8px;color:var(--muted)}
.mc-mcmaster-part-price>strong{display:block;font-size:18px;line-height:1.6}
.mc-mcmaster-part-price>span{display:block;font-size:10px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.mc-mcmaster-part-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.mc-mcmaster-part-actions .button{font-size:10px;min-height:35px;padding:7px 9px}
.mc-mcmaster-tiers{font-size:10px;line-height:1.7;margin-top:12px;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mc-mcmaster-tiers summary{font-weight:650;cursor:pointer;padding:9px 10px;background:var(--soft)}
.mc-mcmaster-tiers table{width:100%;border-collapse:collapse;text-align:left}
.mc-mcmaster-tiers th,.mc-mcmaster-tiers td{padding:8px;font-size:10px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.mc-mcmaster-tiers th{color:var(--muted);font-weight:600}
.mc-mcmaster-empty{background:var(--soft)}
.mc-mcmaster-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
.mc-mcmaster-cert{grid-column:1/-1}
.mc-mcmaster-cert input[type=file]{font-size:11px}
.mc-dialog .mc-mcmaster-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;margin:20px 0}
.mc-mcmaster-toggle input{width:17px;height:17px;min-height:17px;padding:0}
.mc-mcmaster-toggle span{font-size:12px!important;color:var(--ink)!important}
[data-mc-mcmaster-config-error]:not(:empty){padding:12px;border-radius:8px}
@media(max-width:1000px){.mc-mcmaster-part{grid-template-columns:minmax(0,1fr) minmax(140px,230px)}.mc-mcmaster-part-actions{grid-column:1/-1;justify-content:flex-start}.mc-mcmaster-connection{align-items:flex-start}.mc-mcmaster-list-heading{align-items:flex-start}.mc-mcmaster-list-heading .mc-mcmaster-actions{max-width:210px}}
@media(max-width:650px){.mc-mcmaster{padding:17px 13px}.mc-mcmaster-heading{align-items:flex-start;gap:10px}.mc-mcmaster-heading h3{font-size:23px}.mc-mcmaster-heading>.mc-badge{font-size:9px;max-width:100px}.mc-mcmaster-connection{display:block;padding:15px}.mc-mcmaster-connection .mc-mcmaster-actions{max-width:none;justify-content:flex-start;margin-top:15px}.mc-mcmaster-actions .button{font-size:10px;white-space:normal}.mc-mcmaster-import>div{align-items:flex-start;gap:12px}.mc-mcmaster-import>div>.button{flex-shrink:0;font-size:10px}.mc-mcmaster-list-heading{display:block}.mc-mcmaster-list-heading .mc-mcmaster-actions{justify-content:flex-start;max-width:none;margin-top:13px}.mc-mcmaster-part{grid-template-columns:1fr;padding:15px;gap:13px}.mc-mcmaster-part-price>strong{font-size:19px}.mc-mcmaster-part-price>small{margin-top:4px}.mc-mcmaster-part-actions{grid-column:1;justify-content:flex-start}.mc-mcmaster-part-actions .button{min-height:40px;min-width:40px}.mc-mcmaster-config-grid{grid-template-columns:1fr}.mc-mcmaster-cert{grid-column:1}.mc-mcmaster-toggle span{font-size:11px!important}.mc-intro>.actions{flex-wrap:wrap;justify-content:flex-end}.mc-intro>.actions>.button{font-size:10px;white-space:normal}.mc-intro>div:first-child{min-width:0}}

/* Keep full catalog totals inside their cards on narrow phones. */
@media(max-width:380px){
  .button.mc-family{display:grid;grid-template-columns:32px minmax(0,1fr);gap:6px 8px}
  .mc-family .mc-family-icon{grid-row:1/3}
  .mc-family b{grid-column:2;margin-left:0;justify-self:start;align-self:auto}
}
