/* ==========================================================================
   /manage/ - customer control panel UI.
   Intentionally independent from the public site's design tokens. Uses Inter
   (never the tenant's display font), per project conventions.
   Mobile-first: the main navigation is a top bar that collapses to a
   hamburger panel (NOT a sidebar).
   ========================================================================== */

:root {
    --m-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --m-bg: #f4f5f7;
    --m-surface: #ffffff;
    --m-border: #e3e6ea;
    --m-text: #1a1d21;
    --m-text-muted: #5c636b;
    --m-accent: #1a1a1a;
    --m-accent-text: #ffffff;
    --m-radius: 10px;
    --m-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --m-nav-height: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.m-body {
    font-family: var(--m-font);
    background: var(--m-bg);
    color: var(--m-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.m-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP NAV ===== */
.m-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--m-surface);
    border-bottom: 1px solid var(--m-border);
    height: var(--m-nav-height);
    display: flex; align-items: center;
}
.m-nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 16px;
}
.m-nav__brand {
    font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 8px;
}
.m-nav__brand-badge {
    background: var(--m-accent); color: var(--m-accent-text);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 3px 7px; border-radius: 5px; text-transform: uppercase;
}
.m-nav__links {
    display: flex; align-items: center; gap: 4px;
}
.m-nav__link {
    font-size: 0.9rem; font-weight: 500;
    color: var(--m-text-muted);
    padding: 8px 12px; border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}
.m-nav__link:hover { background: var(--m-bg); color: var(--m-text); }
.m-nav__link.is-active { color: var(--m-text); font-weight: 600; background: var(--m-bg); }

.m-nav__right { display: flex; align-items: center; gap: 8px; }
.m-nav__user { font-size: 0.85rem; color: var(--m-text-muted); }
.m-nav__signout {
    font-size: 0.85rem; font-weight: 500;
    padding: 7px 12px; border-radius: 7px;
    border: 1px solid var(--m-border);
    transition: background 0.15s;
}
.m-nav__signout:hover { background: var(--m-bg); }

.m-nav__view-site {
    font-size: 0.85rem; font-weight: 500;
    padding: 7px 12px; border-radius: 7px;
    color: var(--m-text-muted);
    transition: color 0.15s;
}
.m-nav__view-site:hover { color: var(--m-text); }

.m-nav__hamburger {
    display: none;
    flex-direction: column; gap: 4px; padding: 10px;
}
.m-nav__hamburger span { width: 20px; height: 2px; background: var(--m-text); border-radius: 1px; }

/* ===== MOBILE NAV PANEL ===== */
.m-nav__mobile {
    display: none;
    position: fixed; top: var(--m-nav-height); left: 0; right: 0;
    background: var(--m-surface);
    border-bottom: 1px solid var(--m-border);
    z-index: 49;
    padding: 12px 20px 20px;
    flex-direction: column; gap: 2px;
    box-shadow: var(--m-shadow);
}
.m-nav__mobile.is-open { display: flex; }
.m-nav__mobile a {
    font-size: 0.95rem; font-weight: 500;
    color: var(--m-text);
    padding: 12px 8px;
    border-bottom: 1px solid var(--m-border);
}
.m-nav__mobile a:last-child { border-bottom: none; }
.m-nav__mobile .m-nav__mobile-user {
    font-size: 0.82rem; color: var(--m-text-muted);
    padding: 12px 8px 4px;
}

/* ===== PAGE LAYOUT ===== */
.m-main { padding: 32px 0 64px; }
.m-page-head { margin-bottom: 28px; }
.m-page-head__title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.m-page-head__subtitle { font-size: 0.95rem; color: var(--m-text-muted); margin-top: 4px; }

/* ===== STAT CARDS ===== */
.m-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.m-stat {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 20px;
    box-shadow: var(--m-shadow);
}
.m-stat__value { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.m-stat__label { font-size: 0.85rem; color: var(--m-text-muted); margin-top: 6px; }

/* ===== SECTION GRID (shortcut cards) ===== */
.m-section-title {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--m-text-muted);
    margin: 0 0 14px;
}
.m-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.m-card {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 20px;
    box-shadow: var(--m-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    display: block;
}
.m-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.m-card__icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--m-bg); border-radius: 8px;
    margin-bottom: 12px;
}
.m-card__icon svg { width: 20px; height: 20px; }
.m-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.m-card__desc { font-size: 0.88rem; color: var(--m-text-muted); }

/* ===== LIST (recent pages) ===== */
.m-panel {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    overflow: hidden;
}
.m-list__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--m-border);
}
.m-list__row:last-child { border-bottom: none; }
.m-list__main { flex: 1 1 auto; min-width: 0; }
a.m-list__main { text-decoration: none; color: inherit; }
a.m-list__main:hover .m-list__title { text-decoration: underline; }
.m-list__title { font-size: 0.95rem; font-weight: 500; }
.m-list__meta { font-size: 0.82rem; color: var(--m-text-muted); }
.m-badge {
    font-size: 0.72rem; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
}
.m-badge--published { background: #e7f6ec; color: #1c7a3e; }
.m-badge--draft { background: #f1f1f1; color: #6b6b6b; }
.m-empty { padding: 24px 18px; color: var(--m-text-muted); font-size: 0.9rem; }

/* ===== LOGIN ===== */
.m-login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.m-login {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    padding: 32px;
    width: 100%; max-width: 380px;
}
.m-login__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.m-login__subtitle { font-size: 0.88rem; color: var(--m-text-muted); margin-bottom: 24px; }
.m-field { margin-bottom: 16px; }
.m-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.m-field input {
    width: 100%; font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface);
}
.m-field input:focus { outline: 2px solid var(--m-accent); outline-offset: 0; border-color: transparent; }
.m-btn {
    width: 100%;
    background: var(--m-accent); color: var(--m-accent-text);
    font-weight: 600; font-size: 0.95rem;
    padding: 11px; border-radius: 8px;
    transition: opacity 0.15s;
}
.m-btn:hover { opacity: 0.9; }
.m-btn--inline { width: auto; display: inline-block; }
.m-btn--small { width: auto; padding: 7px 14px; font-size: 0.82rem; }
.m-btn--danger { background: #ff502e; }
.m-form-error {
    background: #fdecea; color: #ff502e;
    font-size: 0.85rem;
    padding: 10px 12px; border-radius: 8px;
    margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .m-stats { grid-template-columns: repeat(2, 1fr); }
    .m-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .m-nav__links,
    .m-nav__right { display: none; }
    .m-nav__hamburger { display: flex; }
    .m-cards { grid-template-columns: 1fr; }

    .m-list__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .m-row-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .m-list__prices {
        align-self: flex-start;
    }
}
@media (max-width: 460px) {
    .m-stats { grid-template-columns: 1fr; }
}

/* Desktop: never show the mobile panel, even if JS left `is-open` on it when
   the viewport was widened past the hamburger breakpoint. */
@media (min-width: 681px) {
    .m-nav__mobile,
    .m-nav__mobile.is-open { display: none; }
}

/* ===== MESSAGES ===== */
.m-messages { margin-bottom: 20px; display: grid; gap: 8px; }
.m-message {
    font-size: 0.9rem;
    padding: 11px 14px; border-radius: 8px;
    border: 1px solid var(--m-border);
    background: var(--m-surface);
}
.m-message--success { background: #e7f6ec; border-color: #bfe6cd; color: #1c7a3e; }
.m-message--error { background: #fdecea; border-color: #f5c6c2; color: #ff502e; }

/* ===== MEDIA LIBRARY ===== */
.m-media-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.m-search-input {
    font: inherit;
    padding: 9px 12px; min-width: 240px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface);
}
.m-search-input:focus { outline: 2px solid var(--m-accent); border-color: transparent; }

.m-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.m-media-card {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.m-media-card__thumb {
    aspect-ratio: 16 / 10;
    background: var(--m-bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.m-media-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-media-card__file { font-size: 0.8rem; color: var(--m-text-muted); padding: 12px; word-break: break-all; }
.m-media-card__meta { padding: 12px; display: grid; gap: 8px; }
.m-media-card__name {
    font-size: 0.88rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-media-card__info { font-size: 0.78rem; color: var(--m-text-muted); }
.m-media-card__alt { display: grid; gap: 4px; }
.m-media-card__alt label { font-size: 0.72rem; font-weight: 600; color: var(--m-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.m-media-card__alt input {
    font: inherit; font-size: 0.85rem;
    padding: 7px 9px;
    border: 1px solid var(--m-border); border-radius: 6px;
    background: var(--m-surface);
}
.m-media-card__alt input:focus { outline: 2px solid var(--m-accent); border-color: transparent; }
.m-media-card__alt button { justify-self: start; }
.m-media-card__delete button { justify-self: start; }

/* ===== FORMS (settings) ===== */
.m-form { display: grid; gap: 20px; max-width: 720px; }
.m-form-panel { padding: 20px; }
.m-form-section { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.m-form-hint { font-size: 0.85rem; color: var(--m-text-muted); margin-bottom: 14px; }
.m-form .m-field { margin-bottom: 14px; }
.m-form .m-field:last-child { margin-bottom: 0; }
.m-form .m-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.m-form .m-field input {
    width: 100%; font: inherit;
    padding: 9px 12px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface);
}
.m-form .m-field input:focus { outline: 2px solid var(--m-accent); border-color: transparent; }
.m-form .m-field textarea {
    width: 100%; font: inherit;
    padding: 9px 12px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface);
    resize: vertical;
}
.m-field-error { color: #ff502e; font-size: 0.82rem; margin-top: 4px; }
.m-field-help { color: var(--m-text-muted); font-size: 0.82rem; margin-top: 4px; }
.m-form-actions { display: flex; justify-content: flex-start; }

/* Add-block picker (page detail) */
.m-add-block { display: flex; align-items: center; gap: 8px; }
.m-select {
    font: inherit; padding: 8px 12px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface); color: var(--m-text);
}

/* Footer column cards (menus overview) */
.m-menu-col { margin-bottom: 16px; }

/* Tabs (manage) */
.m-tabs__nav {
    display: flex; gap: 4px; margin-bottom: 20px;
    border-bottom: 2px solid var(--m-border);
    padding-bottom: 0;
}
.m-tabs__btn {
    padding: 10px 18px; font-size: 0.88rem; font-weight: 600;
    color: var(--m-text-muted); background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    cursor: pointer; transition: color 0.12s, border-color 0.12s;
}
.m-tabs__btn:hover { color: var(--m-text); }
.m-tabs__btn.is-active { color: var(--m-text); border-bottom-color: var(--m-accent); }
.m-tabs__panel { display: none; }
.m-tabs__panel.is-active { display: block; }
.m-menu-col__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 18px;
    border-bottom: 1px solid var(--m-border);
    background: var(--m-bg);
}
.m-menu-col__items { display: flex; flex-direction: column; }
.m-menu-col__items .m-empty { border-bottom: none; }

/* ===== SERVICES MANAGE UI ===== */
.m-section-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 28px 0 14px;
}
.m-section-row .m-section-title { margin: 0; }
.m-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.m-row-actions form { display: inline; }

.m-btn--ghost {
    background: transparent;
    color: var(--m-text);
    border: 1px solid var(--m-border);
}
.m-btn--ghost:hover { background: var(--m-bg); opacity: 1; }

.m-field-inline {
    display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
    margin-bottom: 14px;
}
.m-field-inline label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.88rem; font-weight: 500;
}
.m-field-inline input[type="number"] { width: 110px; padding: 8px 10px; border: 1px solid var(--m-border); border-radius: 8px; font: inherit; }

.m-checkbox-list ul { list-style: none; display: grid; gap: 6px; }
.m-checkbox-list li { font-size: 0.9rem; }
.m-checkbox-list label { display: inline-flex; gap: 6px; align-items: center; }

/* Image picker */
.m-image-field__preview {
    margin: 8px 0;
    width: 100%; max-width: 320px;
    aspect-ratio: 16 / 10;
    background: var(--m-bg);
    border: 1px solid var(--m-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.m-image-field__preview img { width: 100%; height: 100%; object-fit: cover; }
.m-image-field__empty { font-size: 0.85rem; color: var(--m-text-muted); }
.m-image-field__select {
    font: inherit; padding: 9px 12px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface); max-width: 320px; width: 100%;
}

/* Media picker grid */
.m-media-picker { margin-top: 8px; }
.m-media-picker__panel {
    margin-top: 8px;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    background: var(--m-surface);
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
}
.m-media-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}
.m-media-picker__item {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 6px; border: 2px solid transparent;
    border-radius: 6px; cursor: pointer; background: none;
    transition: border-color 0.12s, background 0.12s;
}
.m-media-picker__item:hover { background: var(--m-bg); }
.m-media-picker__item.is-selected {
    border-color: var(--m-accent);
    background: var(--m-bg);
}
.m-media-picker__thumb {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 4px; background: var(--m-bg);
}
.m-media-picker__name {
    font-size: 0.7rem; color: var(--m-text-muted);
    text-align: center; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; width: 100%;
}
.m-media-picker__item--none {
    justify-content: center; min-height: 80px;
    border: 1px dashed var(--m-border);
}
.m-media-picker__none-label {
    font-size: 0.78rem; color: var(--m-text-muted);
}

/* Steps editor */
.m-step-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 8px; margin-bottom: 8px; align-items: center;
}
.m-step-row input {
    font: inherit; padding: 8px 10px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface);
}
#add-step { margin-top: 4px; }

.m-form .m-field select {
    width: 100%; font: inherit;
    padding: 9px 12px;
    border: 1px solid var(--m-border); border-radius: 8px;
    background: var(--m-surface);
}

@media (max-width: 600px) {
    .m-step-row { grid-template-columns: 1fr; }
}

/* ===== BLOCK EDITOR ===== */
.m-list__row--link { text-decoration: none; color: inherit; transition: background 0.12s; }
.m-list__row--link:hover { background: var(--m-bg); }
.m-chevron { font-size: 1.4rem; color: var(--m-text-muted); line-height: 1; }
.m-crumb-row { font-size: 0.85rem; color: var(--m-text-muted); margin-bottom: 6px; }
.m-crumb-row a { color: var(--m-text-muted); }
.m-crumb-row a:hover { color: var(--m-text); }

.m-rows { display: grid; gap: 14px; margin-bottom: 14px; }
.m-row-card {
    border: 1px solid var(--m-border);
    border-radius: 8px;
    padding: 14px;
    background: var(--m-bg);
    display: grid;
    gap: 10px;
}
.m-row-card .m-field { margin-bottom: 0; }
.m-row-card__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.m-row-card [data-remove-row] { justify-self: start; }

/* ===== INQUIRY DETAIL ===== */
.m-page-head__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.m-inq-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-inq-status-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--m-text-muted);
}

.m-inq-section {
    margin-bottom: 20px;
}

.m-inq-section__head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--m-border);
    background: var(--m-bg);
}

.m-inq-section__title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-inq-section__body {
    padding: 20px;
}

.m-inq-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0;
}

.m-inq-detail-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--m-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-inq-detail-item:last-child {
    border-bottom: none;
}

.m-inq-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--m-text-muted);
}

.m-inq-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--m-text);
}

.m-inq-detail-value a {
    color: #2563eb;
    text-decoration: none;
}

.m-inq-detail-value a:hover {
    text-decoration: underline;
}

.m-inq-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--m-text);
    white-space: pre-wrap;
}

.m-inq-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.m-inq-images__item {
    display: block;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    text-decoration: none;
}

.m-inq-images__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.m-inq-images__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--m-bg);
}

.m-inq-images__name {
    display: block;
    padding: 8px 10px;
    font-size: 0.78rem;
    color: var(--m-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== INQUIRY LIST ===== */
.m-inq-table-wrap {
    overflow-x: auto;
}

.m-inq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.m-inq-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--m-text-muted);
    padding: 12px 14px;
    border-bottom: 1px solid var(--m-border);
    background: var(--m-bg);
    white-space: nowrap;
}

.m-inq-table tbody tr {
    border-bottom: 1px solid var(--m-border);
    transition: background 0.12s;
}

.m-inq-table tbody tr:last-child {
    border-bottom: none;
}

.m-inq-table tbody tr:hover {
    background: var(--m-bg);
}

.m-inq-table__row--unread {
    background: #f0f7ff;
}

.m-inq-table__row--unread:hover {
    background: #e6f1fd !important;
}

.m-inq-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.m-inq-table__dot-cell {
    width: 24px;
    padding-right: 0;
}

.m-inq-table__name {
    font-weight: 500;
    color: var(--m-text);
    text-decoration: none;
    display: block;
}

.m-inq-table__name:hover {
    text-decoration: underline;
}

.m-inq-table__org {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--m-text-muted);
    margin-top: 1px;
}

.m-inq-table__meta {
    color: var(--m-text-muted);
    white-space: nowrap;
}

/* Mobile cards - hidden on desktop */
.m-inq-mobile-list {
    display: none;
}

.m-inq-mobile-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    transition: background 0.12s;
}

.m-inq-mobile-card:hover {
    background: var(--m-bg);
}

.m-inq-mobile-card--unread {
    background: #f0f7ff;
    border-color: #bfdbfe;
}

.m-inq-mobile-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.m-inq-mobile-card__name {
    font-size: 0.95rem;
    font-weight: 500;
}

.m-inq-mobile-card__meta {
    font-size: 0.82rem;
    color: var(--m-text-muted);
}

@media (max-width: 680px) {
    .m-inq-table-wrap {
        display: none;
    }
    .m-inq-mobile-list {
        display: block;
    }
}

.m-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 6px;
    vertical-align: middle;
}

.m-badge--alert {
    background: #fee2e2;
    color: #dc2626;
}

.m-badge--new {
    background: #dbeafe;
    color: #1d4ed8;
}

.m-badge--in_progress {
    background: #fef3c7;
    color: #92400e;
}

.m-badge--quoted {
    background: #e7f6ec;
    color: #1c7a3e;
}

.m-badge--closed {
    background: #f1f1f1;
    color: #6b6b6b;
}

.m-filter {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.m-filter__item {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
    color: var(--m-text-muted);
    border: 1px solid var(--m-border);
    transition: background 0.12s, color 0.12s;
}

.m-filter__item:hover {
    background: var(--m-bg);
    color: var(--m-text);
}

.m-filter__item.is-active {
    background: var(--m-accent);
    color: var(--m-accent-text);
    border-color: var(--m-accent);
}

/* Highlight card (dashboard) */
.m-card--highlight {
    border-color: #2563eb;
    background: #f8faff;
}

/* ===== PRICE CALCULATOR (service form) ===== */
.m-price-calc {
    margin: 14px 0;
    padding: 14px 16px;
    background: var(--m-bg);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
}
.m-price-calc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}
.m-price-calc__row + .m-price-calc__row {
    border-top: 1px solid var(--m-border);
}
.m-price-calc__label {
    font-size: 0.85rem;
    color: var(--m-text-muted);
}
.m-price-calc__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--m-text);
}
.m-price-calc__value--rot {
    color: #16a34a;
}

/* ===== RANGE SLIDER (block editor) ===== */
.m-range-field {
    display: flex;
    align-items: center;
    gap: 12px;
}
.m-range-field__input {
    flex: 1;
    height: 6px;
    appearance: none;
    background: var(--m-border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.m-range-field__input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--m-accent);
    cursor: pointer;
}
.m-range-field__value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 2.5em;
    color: var(--m-text);
}

/* ===== SERVICE LIST ENHANCEMENTS ===== */
.m-list__thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--m-bg);
    flex-shrink: 0;
}
.m-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.m-list__main {
    flex: 1;
    min-width: 0;
}
.m-list__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    text-align: right;
}
.m-list__price {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--m-text-muted);
    white-space: nowrap;
}
.m-list__price--missing {
    color: #e11d48;
    font-style: italic;
}
