.jm-core-dashboard{--jm-core-primary:#702044;--jm-core-purple:#8955b5;--jm-core-ink:#27212a;--jm-core-muted:#77717b;--jm-core-line:#e9e3eb;max-width:1180px;margin:28px auto 48px;padding:0 16px;color:var(--jm-core-ink);font-size:15px;line-height:1.55}
.jm-core-dashboard *{box-sizing:border-box}
.jm-core-dashboard-header{padding:28px 30px;margin-bottom:22px;border-radius:18px;background:linear-gradient(120deg,#702044,#8955b5);color:#fff}
.jm-core-dashboard-header>span{font-size:11px;letter-spacing:.15em;font-weight:800;opacity:.82}
.jm-core-dashboard-header h1{margin:8px 0 4px;color:#fff;font-size:clamp(25px,4vw,36px);line-height:1.15}
.jm-core-dashboard-header p{margin:0;color:rgba(255,255,255,.88)}
.jm-core-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.jm-core-panel{padding:23px;border:1px solid var(--jm-core-line);border-radius:15px;background:#fff;box-shadow:0 5px 20px rgba(47,26,48,.045)}
.jm-core-panel h2,.jm-core-panel h3{margin:0 0 12px;color:var(--jm-core-ink)}
.jm-core-panel p:last-child{margin-bottom:0}
.jm-core-form p{margin:0 0 15px}
.jm-core-form label{display:block;margin-bottom:6px;font-size:13px;font-weight:700}
.jm-core-form input[type=text],.jm-core-form input[type=email],.jm-core-form input[type=password],.jm-core-form input[type=tel],.jm-core-form textarea{display:block;width:100%;min-height:43px;padding:10px 12px;border:1px solid #dcd5df;border-radius:9px;background:#fff;color:var(--jm-core-ink);font:inherit}
.jm-core-form textarea{min-height:115px;resize:vertical}
.jm-core-form small{display:block;margin-top:5px;color:var(--jm-core-muted);font-size:12px}
.jm-core-button,.jm-core-dashboard .button-primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 17px;border:0;border-radius:9px;background:var(--jm-core-primary);color:#fff!important;font-weight:750;text-decoration:none;cursor:pointer}
.jm-core-button:hover{background:#541632;color:#fff}
.jm-core-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.jm-core-muted{color:var(--jm-core-muted);font-size:13px}
.jm-core-notice,.jm-core-status-banner{margin:0 0 18px;padding:14px 17px;border-radius:11px;border:1px solid var(--jm-core-line);background:#faf8fb}
.jm-core-notice.is-success{border-color:#b8e3ca;background:#f0fbf4;color:#17683b}
.jm-core-notice.is-error{border-color:#f1c4c4;background:#fff5f5;color:#9b2424}
.jm-core-status-banner.is-pending{border-color:#f2d7a1;background:#fff9ed;color:#79500c}
.jm-core-status-banner.is-inactive{border-color:#e6b8b8;background:#fff4f4;color:#8a2525}
.jm-core-status-banner p{margin:5px 0 0}
.jm-core-dashboard-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:22px;align-items:start}
.jm-core-sidebar{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid var(--jm-core-line);border-radius:14px;background:#fff}
.jm-core-sidebar a{display:block;padding:11px 13px;border-radius:9px;color:var(--jm-core-ink);font-weight:650;text-decoration:none}
.jm-core-sidebar a:hover,.jm-core-sidebar a.is-active{background:#f6edf3;color:var(--jm-core-primary)}
.jm-core-dashboard-content{min-width:0}
.jm-core-dashboard-content>h2{margin:3px 0 16px}
.jm-core-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.jm-core-stat-card{display:flex;flex-direction:column;gap:7px;padding:17px;border:1px solid var(--jm-core-line);border-radius:13px;background:#fff}
.jm-core-stat-card span{color:var(--jm-core-muted);font-size:12px;font-weight:650}
.jm-core-stat-card strong{color:var(--jm-core-primary);font-size:28px;line-height:1.1}
.jm-core-dashboard-content>.jm-core-panel{margin-bottom:16px}
.jm-core-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 15px}
.jm-core-section-heading h2{margin:0 0 3px;font-size:23px}
.jm-core-section-heading p{margin:0;color:var(--jm-core-muted);font-size:13px}
.jm-core-count{padding:6px 10px;border-radius:20px;background:#f6edf3;color:var(--jm-core-primary);font-size:12px;font-weight:750;white-space:nowrap}
.jm-core-product-list{overflow:hidden;border:1px solid var(--jm-core-line);border-radius:13px;background:#fff}
.jm-core-product-row{display:flex;align-items:center;gap:14px;padding:13px 15px;border-bottom:1px solid var(--jm-core-line)}
.jm-core-product-row:last-child{border-bottom:0}
.jm-core-product-thumb{display:grid;place-items:center;flex:0 0 62px;width:62px;height:62px;overflow:hidden;border-radius:9px;background:#f5f1f6;color:var(--jm-core-muted);font-size:11px}
.jm-core-product-thumb img{width:100%;height:100%;object-fit:cover}
.jm-core-product-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.jm-core-product-info strong{overflow:hidden;color:var(--jm-core-ink);text-overflow:ellipsis;white-space:nowrap}
.jm-core-product-info small{color:var(--jm-core-muted);font-size:12px}
.jm-core-product-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.jm-core-product-actions a{font-size:12px;font-weight:700;color:var(--jm-core-primary);text-decoration:none}
.jm-core-status{display:inline-block;padding:4px 8px;border-radius:20px;background:#f1edf3;color:#62586a;font-size:11px;font-weight:750;white-space:nowrap}
.jm-core-status.is-publish,.jm-core-status.is-active,.jm-core-status.is-verified{background:#eaf8ef;color:#17683b}
.jm-core-status.is-pending{background:#fff4dc;color:#80540b}
.jm-core-status.is-draft,.jm-core-status.is-private,.jm-core-status.is-unverified{background:#f0edf2;color:#655d69}
.jm-core-empty{padding:38px 20px;border:1px dashed #d9cddd;border-radius:13px;background:#fcfafc;text-align:center}
.jm-core-empty p{margin:8px 0;color:var(--jm-core-muted)}
.jm-core-empty span{font-size:12px;color:var(--jm-core-purple)}
.jm-core-pagination{margin:18px 0}
.jm-core-pagination ul{display:flex;gap:6px;justify-content:center;list-style:none;margin:0;padding:0}
.jm-core-pagination a,.jm-core-pagination span{display:inline-block;padding:7px 11px;border:1px solid var(--jm-core-line);border-radius:7px;text-decoration:none}
.jm-core-pagination .current{background:var(--jm-core-primary);color:#fff}
.jm-core-account-list{display:grid;grid-template-columns:150px minmax(0,1fr);gap:9px;margin:15px 0 22px}
.jm-core-account-list dt{color:var(--jm-core-muted);font-weight:650}
.jm-core-account-list dd{margin:0;overflow-wrap:anywhere}
.jm-core-dashboard .login-username label,.jm-core-dashboard .login-password label{display:block;margin-bottom:6px;font-weight:700}
.jm-core-dashboard .login-username input,.jm-core-dashboard .login-password input{width:100%;min-height:43px;padding:10px 12px;border:1px solid #dcd5df;border-radius:9px}
.jm-core-dashboard .login-remember{font-size:13px}
.jm-core-dashboard .login-submit{margin-top:12px}
.jm-core-dashboard .login-submit input{min-height:42px;padding:9px 16px;border:0;border-radius:9px;background:var(--jm-core-primary);color:#fff;font-weight:750;cursor:pointer}
.jm-admin-inline-form{display:inline-block;margin:2px 4px 2px 0}
@media(max-width:800px){.jm-core-dashboard-layout{grid-template-columns:1fr}.jm-core-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jm-core-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.jm-core-dashboard{margin:16px auto 30px;padding:0 10px}.jm-core-dashboard-header{padding:22px 20px;border-radius:13px}.jm-core-auth-grid{grid-template-columns:1fr}.jm-core-panel{padding:18px}.jm-core-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.jm-core-sidebar a{padding:10px;font-size:13px}.jm-core-product-row{align-items:flex-start;gap:10px;padding:11px}.jm-core-product-thumb{flex-basis:52px;width:52px;height:52px}.jm-core-product-actions{align-items:flex-end;flex-direction:column;gap:5px}.jm-core-product-actions a{display:none}.jm-core-section-heading{align-items:flex-start;flex-direction:column}.jm-core-account-list{grid-template-columns:105px minmax(0,1fr)}}

/* BUILD-03: frontend product management */
.jm-core-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jm-core-product-actions{justify-content:flex-end}
.jm-core-product-actions form{display:inline-flex;margin:0}
.jm-core-link-button{padding:0;border:0;background:transparent;color:#9b354d;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.jm-core-link-button:hover{text-decoration:underline}
.jm-core-button.is-secondary{background:#f1edf3;color:#4f4352!important}
.jm-core-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.jm-core-form select{display:block;width:100%;min-height:112px;padding:9px 11px;border:1px solid #dcd5df;border-radius:9px;background:#fff;color:var(--jm-core-ink);font:inherit}
.jm-core-form input[type=file]{display:block;width:100%;padding:13px;border:1px dashed #cfc2d4;border-radius:10px;background:#fcfafc;color:var(--jm-core-ink);font:inherit}
.jm-core-field-block{margin:5px 0 18px;padding:15px;border:1px solid var(--jm-core-line);border-radius:11px;background:#fcfafc}
.jm-core-field-block>label{display:block;margin-bottom:9px;font-weight:750}
.jm-core-field-block small{display:block;margin-top:7px;color:var(--jm-core-muted);font-size:12px}
.jm-core-gallery-current{margin:12px 0 20px}
.jm-core-gallery-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:10px}
.jm-core-gallery-grid label{display:block;padding:7px;border:1px solid var(--jm-core-line);border-radius:10px;background:#fff}
.jm-core-gallery-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}
.jm-core-gallery-grid span{display:block;margin-top:6px;font-size:11px;color:var(--jm-core-muted)}
.jm-core-gallery-grid input{vertical-align:middle}
.jm-core-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.jm-core-inline-warning{display:block;padding:10px 12px;border-radius:8px;background:#fff8e8;color:#80540b;font-size:13px}
.jm-core-product-editor .jm-core-section-heading{align-items:flex-start}
.jm-core-product-editor .jm-core-section-heading>a{white-space:nowrap}
@media(max-width:800px){.jm-core-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.jm-core-form-grid{grid-template-columns:1fr}}
@media(max-width:600px){.jm-core-heading-actions{width:100%;justify-content:space-between}.jm-core-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.jm-core-form-actions{flex-direction:column}.jm-core-form-actions .jm-core-button{width:100%}.jm-core-product-actions{align-items:flex-end;flex-direction:row;justify-content:flex-end;gap:8px}.jm-core-product-actions a{display:inline!important}.jm-core-product-actions form{display:inline-flex}}
