/* ==========================================================================
   Kornox product mockups (inc/mockups.php) — CRM look in HTML/CSS
   Palette and radii follow the CRM tokens; text uses the CRM system UI font.
   ========================================================================== */

.mk {
    --mk-line: rgba(60, 60, 67, 0.12);
    --mk-bg: #f7f8fa;
    --mk-t1: #111111;
    --mk-t2: #36363a;
    --mk-t3: #6b6b73;
    --mk-t4: #90909a;
    margin: 0;
    min-width: 0;
    width: 100%;
    container-type: inline-size;
    font-family: var(--kx-font-ui);
    color: var(--mk-t2);
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: left;
    user-select: none;
}

.mk b, .mk strong { color: var(--mk-t1); font-weight: 600; }
.mk small { display: block; color: var(--mk-t3); font-size: 10.5px; line-height: 1.35; }
.mk em { font-style: normal; }
.mk p { margin: 0; }
.mk-muted { color: var(--mk-t3); }

/* ---------- Window frame ---------- */
.mk-window .mk-inner {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--kx-line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(35, 38, 47, 0.14), 0 2px 6px rgba(35, 38, 47, 0.06);
}

.mk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 12px;
    background: #fbfbfc;
    border-bottom: 1px solid var(--mk-line);
}

.mk-dots { display: inline-flex; gap: 6px; flex: 1; }
.mk-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e3e8; }
.mk-dots i:nth-child(1) { background: #ff5f57; opacity: 0.75; }
.mk-dots i:nth-child(2) { background: #febc2e; opacity: 0.75; }
.mk-dots i:nth-child(3) { background: #28c840; opacity: 0.75; }
.mk-url {
    flex: 0 1 auto;
    padding: 3px 14px;
    border-radius: 6px;
    background: #f0f1f4;
    color: var(--mk-t3);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-bar-end { flex: 1; }

.mk-shell {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
}

.mk-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    background: #fbfbfc;
    border-right: 1px solid var(--mk-line);
}

.mk-rail-logo { display: inline-flex; margin-bottom: 8px; color: var(--mk-t1); }
.mk-rail-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 8px;
    color: var(--mk-t4);
}
.mk-rail-i svg { width: 15px; height: 15px; }
.mk-rail-i.is-on { background: rgba(0, 122, 255, 0.1); color: var(--kx-blue); }

.mk-main { min-width: 0; background: var(--mk-bg); }

.mk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--mk-line);
}

.mk-title { font-size: 14px; font-weight: 700 !important; white-space: nowrap; }
.mk-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }

.mk-seg {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 9999px;
    background: #f0f1f4;
    font-size: 10.5px;
    white-space: nowrap;
}
.mk-seg > * { padding: 3px 9px; border-radius: 9999px; color: var(--mk-t3); font-weight: 500; }
.mk-seg b { background: #ffffff; color: var(--mk-t1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

.mk-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--mk-line);
    background: #ffffff;
    color: var(--mk-t4);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 210px;
}
.mk-search svg { width: 12px; height: 12px; flex: none; }

.mk-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--kx-ink);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    flex: none;
}

.mk-body {
    display: grid;
    gap: 10px;
    padding: 12px;
}

/* ---------- Generic pieces ---------- */
.mk-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    padding: 10px 12px;
}

.mk-card-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.mk-cols { display: grid; gap: 10px; min-width: 0; }
.mk-cols--dash  { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mk-cols--inbox { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); }
.mk-cols--sched { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.mk-cols--ai    { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.mk-stack { display: grid; gap: 10px; min-width: 0; align-content: start; }

.mk-chip {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    border-radius: 6px;
    background: #f0f1f4;
    color: var(--mk-t2);
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}
.mk-chip--blue { background: rgba(0, 122, 255, 0.1); color: #0062cc; }
.mk-chip--red  { background: rgba(201, 52, 38, 0.1); color: #c93426; }

.mk-pill {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 9999px;
    background: #f0f1f4;
    color: var(--mk-t3);
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}
.mk-pill--b { background: rgba(0, 122, 255, 0.1); color: #0062cc; }
.mk-pill--g { background: rgba(52, 199, 89, 0.14); color: #167931; }
.mk-pill--o { background: rgba(255, 159, 10, 0.16); color: #995a00; }

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid var(--mk-line);
    background: #ffffff;
    color: var(--mk-t1);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}
.mk-btn--blue  { background: var(--kx-blue); border-color: var(--kx-blue); color: #ffffff; }
.mk-btn--green { background: #34c759; border-color: #34c759; color: #ffffff; }

.mk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mk-t4); flex: none; }
.mk-dot--b { background: var(--kx-blue); }
.mk-dot--g { background: #34c759; }
.mk-dot--o { background: #ff9f0a; }

.mk-link { color: var(--kx-blue); font-weight: 600; font-size: 10.5px; }

.mk-ava {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    font-style: normal;
    flex: none;
}
.mk-ava--b { background: #3b82f6; }
.mk-ava--g { background: #22a35a; }
.mk-ava--o { background: #f08c1a; }
.mk-ava--v { background: #7c5ce6; }

/* Channel glyphs */
.mk-ch {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    flex: none;
    background: #f0f1f4 center / 12px no-repeat;
}
.mk-ch--call { background-color: rgba(52, 199, 89, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23167931' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E"); }
.mk-ch--sms  { background-color: rgba(0, 122, 255, 0.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230062cc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-6 4V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.mk-ch--mail { background-color: rgba(255, 159, 10, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23995a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm-2 2 9 6 9-6'/%3E%3C/svg%3E"); }

/* Waveform */
.mk-wave { display: flex; align-items: center; gap: 2px; height: 18px; margin: 4px 0; }
.mk-wave i { width: 3px; border-radius: 2px; background: rgba(0, 122, 255, 0.35); height: 40%; }
.mk-wave i:nth-child(3n)   { height: 85%; background: var(--kx-blue); }
.mk-wave i:nth-child(4n+1) { height: 60%; }
.mk-wave i:nth-child(5n+2) { height: 100%; background: var(--kx-blue); }
.mk-wave--wide { height: 28px; gap: 3px; }
.mk-wave--wide i { flex: 1; }

.mk-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2);
    flex: none;
}

/* ---------- Dashboard ---------- */
.mk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mk-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-kpi {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
}
.mk-kpi span { color: var(--mk-t3); font-size: 10.5px; }
.mk-kpi strong { font-size: 18px; font-weight: 700 !important; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mk-kpi em { color: var(--mk-t4); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-kpi em.mk-up { color: #167931; }

.mk-lanes, .mk-sched { display: grid; gap: 8px; }
.mk-lane { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; }
.mk-lane-name { display: inline-flex; align-items: center; gap: 6px; color: var(--mk-t1); font-weight: 500; font-size: 10.5px; white-space: nowrap; }
.mk-lane-track { position: relative; height: 30px; border-radius: 8px; background: #f4f5f8; }
.mk-grid { background-image: linear-gradient(90deg, rgba(60, 60, 67, 0.08) 1px, transparent 1px); background-size: 16.66% 100%; }
.mk-job {
    position: absolute;
    top: 4px;
    bottom: 4px;
    display: flex;
    align-items: center;
    padding: 0 7px;
    border-radius: 6px;
    background: rgba(0, 122, 255, 0.12);
    border-left: 3px solid var(--kx-blue);
    color: #0b4fa3 !important;
    font-size: 9.5px;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-job--done { background: rgba(52, 199, 89, 0.14); border-left-color: #34c759; color: #167931 !important; }
.mk-job--live { background: var(--kx-blue); border-left-color: #0062cc; color: #ffffff !important; }
.mk-job--over { top: auto; bottom: -10px; height: 16px; background: rgba(255, 159, 10, 0.18); border-left-color: #ff9f0a; color: #995a00 !important; }
.mk-sched .mk-lane-track { height: 34px; }
.mk-lanes .mk-lane { grid-template-columns: 72px minmax(0, 1fr); }
.mk-hours { display: grid; grid-template-columns: 84px repeat(6, minmax(0, 1fr)); gap: 0 8px; color: var(--mk-t4); font-size: 9.5px; }
.mk-hours span + span { padding-left: 2px; }

.mk-call { display: flex; flex-direction: column; gap: 4px; }
.mk-call-top { display: flex; align-items: center; gap: 7px; }
.mk-call-top .mk-chip { margin-left: auto; }
.mk-call-name { font-size: 14px; }
.mk-call-btns { display: flex; gap: 6px; margin-top: 6px; }

.mk-list { display: grid; gap: 7px; }
.mk-row { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--mk-t2); white-space: nowrap; overflow: hidden; }
.mk-row em { margin-left: auto; color: var(--mk-t4); font-size: 9.5px; }

/* ---------- Inbox ---------- */
.mk-convos { display: grid; gap: 2px; padding: 6px; }
.mk-convo { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 8px; min-width: 0; }
.mk-convo span { min-width: 0; }
.mk-convo b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-convo small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-convo.is-on { background: rgba(0, 122, 255, 0.08); }
.mk-thread { display: grid; gap: 10px; align-content: start; }
.mk-callbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(52, 199, 89, 0.08);
    border: 1px solid rgba(52, 199, 89, 0.22);
}
.mk-callbar > span:nth-child(2) { min-width: 0; flex: 1; }
.mk-callbar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tl { display: grid; gap: 10px; }
.mk-tl-i { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.mk-tl-i b { font-size: 11px; }
.mk-bubble {
    display: inline-block;
    margin-top: 3px !important;
    padding: 6px 9px;
    border-radius: 10px 10px 10px 3px;
    background: rgba(0, 122, 255, 0.1);
    color: #0b3f80;
    font-size: 10.5px;
}

/* ---------- Tables ---------- */
.mk-table { padding: 4px 0; }
.mk-tr {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr 0.9fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid var(--mk-line);
    font-size: 10.5px;
}
.mk-tr > span { min-width: 0; }
.mk-tr small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tr b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-th { border-top: 0; color: var(--mk-t4); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-tr.is-open { background: rgba(0, 122, 255, 0.04); }
.mk-tr.is-muted { opacity: 0.55; }
.mk-sub { display: grid; gap: 4px; padding: 2px 12px 10px 28px; background: rgba(0, 122, 255, 0.04); }
.mk-sub-r { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--mk-t2); }
.mk-sub-r .mk-ch { width: 18px; height: 18px; background-size: 10px; }
.mk-sub-r em { margin-left: auto; color: var(--mk-t4); font-size: 9.5px; }
.mk-table--mkt .mk-tr { grid-template-columns: 2fr 0.7fr 0.7fr 1fr; }

/* ---------- Queue ---------- */
.mk-queue { display: grid; gap: 8px; align-content: start; }
.mk-qi { display: grid; gap: 3px; padding: 8px; border-radius: 10px; background: #f7f8fa; border: 1px dashed rgba(60, 60, 67, 0.2); }
.mk-qi .mk-btn { justify-self: start; margin-top: 4px; }

/* ---------- Documents (estimate) ---------- */
.mk-doc { display: grid; gap: 0; padding: 12px 14px; }
.mk-doc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.mk-doc-h b { font-size: 13px; }
.mk-li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px 72px;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid var(--mk-line);
    font-size: 11px;
    color: var(--mk-t1);
}
.mk-li > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mk-li--h { color: var(--mk-t4); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-li--muted { color: var(--mk-t3); }
.mk-total { display: flex; justify-content: space-between; padding: 6px 0 0; color: var(--mk-t3); font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-total--big { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--mk-line); color: var(--mk-t1); font-size: 13px; }
.mk-total--big b { font-size: 15px; }
.mk-doc-btns { display: flex; justify-content: flex-end; gap: 6px; padding-top: 12px; }

/* ---------- Marketing sync ---------- */
.mk-sync { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-sync-i {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--mk-line);
    font-size: 10px;
    white-space: nowrap;
}

/* ---------- AI summary ---------- */
.mk-player { display: grid; gap: 6px; }
.mk-player-h { display: flex; align-items: center; gap: 10px; }
.mk-player-h > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kx-blue);
    color: #ffffff;
    flex: none;
}
.mk-play svg { width: 13px; height: 13px; }
.mk-spark { color: var(--kx-blue); }
.mk-sum { display: grid; gap: 6px; margin: 0; padding-left: 16px; font-size: 11px; color: var(--mk-t1); }
.mk-quote p { color: var(--mk-t1); font-size: 12px; font-style: italic; line-height: 1.45; margin-bottom: 6px; }

/* ---------- Chat (MCP) ---------- */
.mk-window--chat .mk-chat-wrap { padding: 14px; background: #fbfaf8; }
.mk-chat { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.mk-chat-u {
    justify-self: end;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 14px 14px 4px 14px;
    background: #ece9e3;
    color: var(--mk-t1);
    font-size: 12px;
}
.mk-chat-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: start;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--mk-line);
    background: #ffffff;
    font-family: var(--kx-font-mono);
    font-size: 10.5px;
    color: var(--mk-t2);
}
.mk-chat-tool small { display: inline; font-family: var(--kx-font-ui); }
.mk-chat-a { display: grid; gap: 4px; font-size: 12px; color: var(--mk-t1); }
.mk-chat-a .mk-li { grid-template-columns: minmax(0, 1fr) auto; font-size: 11px; }
.mk-chat-a p:first-child { margin-bottom: 4px; }
.mk-chat-a p:last-child { margin-top: 6px; font-size: 11px; }
.mk-chat-input {
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--mk-line);
    background: #ffffff;
    color: var(--mk-t4);
    font-size: 11px;
}

/* ---------- Phone stage ---------- */
.mk-phone-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.mk-phone {
    position: relative;
    width: 250px;
    flex: none;
    padding: 9px;
    border-radius: 38px;
    background: #1d1f25;
    box-shadow: 0 26px 60px rgba(35, 38, 47, 0.22);
}

.mk-phone-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 74px;
    height: 20px;
    margin-left: -37px;
    border-radius: 12px;
    background: #1d1f25;
    z-index: 2;
}

.mk-phone-screen {
    min-height: 470px;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    padding-top: 38px;
}

.mk-phone-aside { width: 230px; flex: none; }
.mk-offer-card { display: grid; gap: 8px; padding: 14px; box-shadow: 0 14px 34px rgba(35, 38, 47, 0.1); }
.mk-offer-card b { font-size: 12.5px; }
.mk-offer-row { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--mk-line); font-size: 11px; color: var(--mk-t1); }
.mk-offer-row em { margin-left: auto; color: var(--mk-t3); font-size: 10px; }

/* Technician app: push notification + Offers screen */
.mk-push {
    display: flex;
    gap: 8px;
    margin: 0 8px 10px;
    padding: 9px 10px;
    border-radius: 16px;
    background: rgba(242, 243, 247, 0.96);
    box-shadow: 0 6px 18px rgba(35, 38, 47, 0.12);
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--mk-t2);
}
.mk-push-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--mk-line); background: #ffffff; color: #111111; }
.mk-push-text { display: grid; gap: 1px; min-width: 0; }
.mk-push-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mk-push-top b { font-size: 9px; letter-spacing: 0.04em; color: var(--mk-t3); font-weight: 600; }
.mk-push-top small { font-size: 9px; }
.mk-push-text > b { font-size: 11.5px; }
.mk-app-head { display: flex; align-items: center; gap: 8px; padding: 2px 14px 8px; border-bottom: 1px solid var(--mk-line); }
.mk-app-head b { font-size: 15px; }
.mk-app-body { display: grid; gap: 8px; padding: 10px; background: var(--mk-bg); min-height: 262px; align-content: start; }
.mk-app-offer { display: grid; gap: 2px; padding: 11px 12px 12px; border-radius: 14px; border: 1px solid var(--mk-line); background: #ffffff; font-size: 11px; color: var(--mk-t2); }
.mk-app-time { font-size: 14px; font-weight: 600; color: var(--mk-t1); }
.mk-app-loc { margin-top: 6px; color: var(--mk-t1); }
.mk-app-appl { display: grid; gap: 1px; margin-top: 6px; padding: 7px 9px; border-radius: 10px; background: var(--mk-bg); }
.mk-app-appl b { font-size: 11.5px; }
.mk-app-num { margin-top: 4px; }
.mk-app-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.mk-app-btn { padding: 7px 0; border-radius: 9999px; border: 1px solid var(--mk-line); background: #ffffff; color: var(--mk-t1); font-size: 11.5px; font-weight: 600; text-align: center; }
.mk-app-btn.is-main { border-color: var(--kx-blue); background: var(--kx-blue); color: #ffffff; }
.mk-app-note { justify-self: center; text-align: center; }
.mk-app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 6px 12px; border-top: 1px solid var(--mk-line); font-size: 10px; text-align: center; color: var(--mk-t4); }
.mk-app-tabs b { color: var(--kx-blue); font-weight: 600; }

/* Public link / portal */
.mk-pub-head { padding: 8px 16px 12px; border-bottom: 1px solid var(--mk-line); }
.mk-pub-head b { display: block; font-size: 13px; }
.mk-pub-body { display: grid; gap: 0; padding: 12px 16px 16px; }
.mk-pub-body .mk-li { grid-template-columns: minmax(0, 1fr) auto; }
.mk-paid {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(52, 199, 89, 0.12);
    color: #167931;
    font-size: 11px;
    font-weight: 600;
}
.mk-paid svg { width: 13px; height: 13px; }
.mk-pay-btn { margin-top: 14px; padding: 10px; border-radius: 10px; background: var(--kx-ink); color: #ffffff; font-size: 12px; font-weight: 600; text-align: center; }
.mk-pay-alt { margin-top: 6px; padding: 9px; border-radius: 10px; border: 1px solid var(--mk-line); font-size: 11px; font-weight: 600; text-align: center; color: var(--mk-t1); }
.mk-pub-note { margin-top: 10px; text-align: center; }
.mk-portal-card { display: grid; gap: 3px; margin-bottom: 10px; padding: 12px; border-radius: 12px; background: rgba(0, 122, 255, 0.08); }
.mk-portal-card b { font-size: 13px; }
.mk-portal-card span { font-size: 10.5px; color: #0b4fa3; }
.mk-portal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--mk-line); }
.mk-portal-row b { display: block; font-size: 11.5px; }

/* ---------- Container-width adaptations ---------- */
@container (max-width: 620px) {
    .mk-search { display: none; }
    .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mk-cols--dash .mk-list { display: none; }
}

@container (max-width: 520px) {
    .mk-inner { font-size: 11px; }
    .mk-shell { grid-template-columns: 36px minmax(0, 1fr); }
    .mk-rail-i { width: 26px; height: 24px; }
    .mk-rail-i:nth-child(n+8) { display: none; }
    .mk-seg { display: none; }
    .mk-cols--dash,
    .mk-cols--inbox,
    .mk-cols--sched,
    .mk-cols--ai { grid-template-columns: minmax(0, 1fr); }
    .mk-cols--dash .mk-stack .mk-call { display: none; }
    .mk-convos { display: none; }
    .mk-queue { display: none; }
    .mk-quote { display: none; }
    .mk-kpis--3 .mk-kpi:last-child { display: none; }
    .mk-kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-tr { grid-template-columns: 1.4fr 1.3fr 0.9fr; }
    .mk-tr > span:nth-child(3) { display: none; }
    .mk-table--mkt .mk-tr { grid-template-columns: 2fr 0.7fr 1fr; }
    .mk-lane, .mk-hours { grid-template-columns: 64px minmax(0, 1fr); }
    .mk-hours { grid-template-columns: 64px repeat(6, minmax(0, 1fr)); }
    .mk-lane-name { font-size: 9.5px; }
    .mk-lane-name .mk-ava { display: none; }
    .mk-sync-i:nth-child(3) { display: none; }
    .mk-job--over { display: none; }
}

@container (max-width: 560px) {
    .mk-phone-aside { display: none; }
}

@container (max-width: 300px) {
    .mk-phone { width: 230px; }
}
