/* interactive layer v3 — product tour + TWI calculator + dark hero */
/* =============================================================================
   Tasx Marketing — Interactive / "wow" layer (R: homepage redesign)
   Additive on top of main.css. Bold dark hero + aurora glow, glassmorphic
   floating dashboard, an interactive TWI calculator, and scroll motion.
   Accessible: all motion is gated behind prefers-reduced-motion, and reveal
   animations only hide content when JS is on (html.js), so no-JS users see
   everything. RTL-safe via logical properties.
   ============================================================================= */

/* animatable gauge fill (smooth conic-gradient transition where supported) */
@property --p {
    syntax: '<number>';
    inherits: false;
    initial-value: 50;
}

:root {
    --glow-indigo: rgba(99, 102, 241, 0.55);
    --glow-teal:   rgba(20, 184, 166, 0.45);
    --ink-900: #0B1020;   /* hero base */
    --ink-800: #0F172A;
}

/* ---- gradient text accent ------------------------------------------------ */
.grad-text {
    background: linear-gradient(100deg, #818CF8 0%, #34D3C0 60%, #5EEAD4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- scroll-reveal (only hides when JS is on) ---------------------------- */
@media (prefers-reduced-motion: no-preference) {
    html.js .reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.7s cubic-bezier(.22,.61,.36,1),
                    transform 0.7s cubic-bezier(.22,.61,.36,1);
        transition-delay: var(--reveal-delay, 0ms);
        will-change: opacity, transform;
    }
    html.js .reveal.in {
        opacity: 1;
        transform: none;
    }
}

/* =============================================================================
   DARK HERO + AURORA
   ============================================================================= */
.hero-dark {
    position: relative;
    overflow: hidden;
    padding: 116px 0 96px;
    text-align: center;
    color: #E5E9F5;
    background: var(--ink-900);
    isolation: isolate;
}
/* aurora blobs */
.hero-dark::before,
.hero-dark::after {
    content: "";
    position: absolute;
    z-index: -2;
    width: 60vw; height: 60vw;
    max-width: 760px; max-height: 760px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}
.hero-dark::before {
    top: -22%; inset-inline-start: -12%;
    background: radial-gradient(circle at center, var(--glow-indigo), transparent 70%);
    animation: auroraA 16s ease-in-out infinite alternate;
}
.hero-dark::after {
    bottom: -30%; inset-inline-end: -10%;
    background: radial-gradient(circle at center, var(--glow-teal), transparent 70%);
    animation: auroraB 19s ease-in-out infinite alternate;
}
/* faint grid + top vignette */
.hero-dark .hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 100%);
}
@keyframes auroraA { from { transform: translate(0,0) scale(1); } to { transform: translate(8%, 6%) scale(1.15); } }
@keyframes auroraB { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-7%, -5%) scale(1.2); } }

.hero-dark h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 16ch;
    margin: 18px auto 22px;
}
.hero-dark .lead {
    color: #AAB4CF;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 36px;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
    color: #C7D2FE;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(129,140,248,0.35);
    box-shadow: 0 0 24px rgba(99,102,241,0.25);
}
.hero-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34D3C0; box-shadow: 0 0 8px #34D3C0;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.7);} }

.hero-dark .hero-ctas { gap: 14px; }
.hero-dark .btn-primary {
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    box-shadow: 0 8px 30px rgba(79,70,229,0.5);
    position: relative; overflow: hidden;
}
.hero-dark .btn-primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    transform: translateX(-120%);
}
.hero-dark .btn-primary:hover::after { animation: shine 0.9s ease; }
@keyframes shine { to { transform: translateX(120%); } }
.hero-dark .btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}
.hero-dark .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.hero-dark .hero-meta { color: #6B7693; margin-top: 30px; }
.hero-dark .hero-meta strong { color: #AAB4CF; }

/* ---- glassmorphic floating dashboard frame ------------------------------- */
.hero-stage {
    margin: 56px auto 0;
    max-width: 1000px;
    perspective: 1400px;
}
.hero-glass {
    position: relative;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 40px 90px -30px rgba(2,6,23,0.85),
                0 0 60px -20px rgba(99,102,241,0.4),
                inset 0 1px 0 rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    transition: transform 0.25s ease;
    animation: floaty 7s ease-in-out infinite;
}
.hero-glass > .hero-screen {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px -10px rgba(2,6,23,0.6);
    transform: translateZ(28px);
}
.hero-glass .live-badge {
    position: absolute; top: -12px; inset-inline-end: 22px;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    background: #0F172A; color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 6px 18px rgba(2,6,23,0.5);
    transform: translateZ(60px);
}
.hero-glass .live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background:#34D3C0; box-shadow:0 0 8px #34D3C0; animation: pulse 2s infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* =============================================================================
   INTERACTIVE TWI CALCULATOR
   ============================================================================= */
.twi-calc {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 960px; margin: 0 auto;
}
@media (max-width: 820px) { .twi-calc { grid-template-columns: 1fr; } }

.twi-controls { padding: 36px 34px; }
.twi-controls .twi-row { margin-bottom: 18px; }
.twi-controls .twi-row:last-child { margin-bottom: 0; }
.twi-label {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.twi-label .name { font-weight: 700; color: var(--text-heading); font-size: 0.98rem; }
.twi-label .name small { display:block; font-weight: 500; color: var(--text-muted); font-size: 0.78rem; }
.twi-chip {
    min-width: 34px; text-align: center;
    font-weight: 800; font-size: 1rem;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    border-radius: 8px; padding: 4px 10px;
}
.twi-chip.is-effort { color: #92400E; background: #FEF3C7; }

/* range slider */
.twi-range { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary) var(--fill,50%), var(--bg-soft) var(--fill,50%), var(--bg-soft) 100%); }
.twi-range.is-effort { background: linear-gradient(90deg, var(--amber) 0%, var(--amber) var(--fill,50%), var(--bg-soft) var(--fill,50%), var(--bg-soft) 100%); }
.twi-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-primary); box-shadow: 0 2px 8px rgba(15,23,42,0.25); transition: transform 0.1s; }
.twi-range.is-effort::-webkit-slider-thumb { border-color: var(--amber); }
.twi-range::-webkit-slider-thumb:active { transform: scale(1.18); }
.twi-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background:#fff; border: 2px solid var(--brand-primary); box-shadow: 0 2px 8px rgba(15,23,42,0.25); }
.twi-range.is-effort::-moz-range-thumb { border-color: var(--amber); }
.twi-range:focus-visible { box-shadow: 0 0 0 4px rgba(99,102,241,0.25); }

.twi-formula {
    margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--border);
    font-size: 0.95rem; color: var(--text-body);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.twi-formula b { color: var(--text-heading); }
.twi-formula .op { color: var(--text-muted); }

/* readout panel */
.twi-readout {
    padding: 36px 30px;
    background: radial-gradient(120% 120% at 50% 0%, #111A33 0%, #0B1020 70%);
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.twi-gauge {
    --p: 50;
    --gcol: #6366F1;
    width: 190px; height: 190px; border-radius: 50%;
    display: grid; place-items: center;
    background:
        radial-gradient(closest-side, #0B1020 0 70%, transparent 71% 100%),
        conic-gradient(var(--gcol) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
    transition: background 0.5s ease, --p 0.5s ease;
    box-shadow: 0 0 50px -8px var(--gcol);
}
.twi-gauge-inner .score { font-size: 3.1rem; font-weight: 800; line-height: 1; }
.twi-gauge-inner .score-cap { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #93A0BF; margin-top: 4px; }
.twi-verdict {
    margin-top: 22px;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 18px; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    transition: color .3s, background .3s, border-color .3s;
}
.twi-verdict .swatch { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.twi-readout .twi-hint { color: #6B7693; font-size: 0.82rem; margin-top: 18px; max-width: 240px; }

/* =============================================================================
   ANIMATED STATS + CARD GLOW
   ============================================================================= */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.stat-card::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.stat-card.in::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat-card .stat-number { color: var(--brand-primary); font-size: 2.6rem; font-weight: 800; line-height: 1; }

/* generic card hover glow upgrade (homepage diff cards) */
.card.glow { position: relative; }
.card.glow:hover {
    border-color: transparent;
    box-shadow: 0 18px 40px -18px rgba(99,102,241,0.45), 0 0 0 1px rgba(99,102,241,0.25);
}
.card.glow .card-icon {
    background: linear-gradient(135deg, var(--brand-primary-soft), #E0FBF6);
    font-size: 24px;
}

/* =============================================================================
   PARALLAX TILT (JS sets --rx/--ry on .hero-glass)
   ============================================================================= */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
    html.js .hero-glass.tilt {
        animation: none;
        transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
    }
}

/* =============================================================================
   REDUCED MOTION — kill all of it
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    .hero-dark::before, .hero-dark::after,
    .hero-glass, .hero-eyebrow .dot, .live-badge .dot { animation: none !important; }
    .twi-gauge { transition: none !important; }
}

/* =============================================================================
   RTL
   ============================================================================= */
[dir="rtl"] .grad-text { background: linear-gradient(260deg, #818CF8 0%, #34D3C0 60%, #5EEAD4 100%); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"] .twi-formula { direction: ltr; } /* the (I × U) / E formula stays LTR */

/* =============================================================================
   PRODUCT TOUR — tabbed view showcase + shared mock-UI kit
   ============================================================================= */
.tour-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    max-width: 940px; margin: 0 auto 28px;
}
.tour-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-body); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.tour-tab .ic { font-size: 1rem; line-height: 1; }
.tour-tab:hover { border-color: var(--brand-primary); color: var(--text-heading); transform: translateY(-1px); }
.tour-tab[aria-selected="true"] {
    background: linear-gradient(180deg, #6366F1, #4F46E5); color: #fff;
    border-color: transparent; box-shadow: 0 8px 20px -8px rgba(79,70,229,0.55);
}
.tour-tab:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

.tour-stage { max-width: 1000px; margin: 0 auto; }
.mock-window { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #F1F5F9; border-bottom: 1px solid var(--border); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar .dots .r { background: #FB7185; } .mock-bar .dots .y { background: #FBBF24; } .mock-bar .dots .g { background: #34D399; }
.mock-bar .addr { flex: 1; text-align: center; font-size: 0.76rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; max-width: 360px; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { background: var(--bg); min-height: 392px; }
.mock-panel { display: none; padding: 18px; }
.mock-panel.active { display: block; }
@media (prefers-reduced-motion: no-preference) { html.js .mock-panel.active { animation: tourIn .45s ease; } }
@keyframes tourIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- shared mock atoms --------------------------------------------------- */
.mk-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.mk-h .t { font-weight: 700; color: var(--text-heading); font-size: 0.95rem; }
.mk-h .t small { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.72rem; }
.mk-pill { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-primary); color: #fff; }
.mk-chip { font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--text-body); }
.mk-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.c-crit { background: #EF4444; } .c-high { background: #F97316; } .c-med { background: #F59E0B; } .c-low { background: #3B82F6; } .c-ok { background: #10B981; } .c-mut { background: #94A3B8; }

/* board */
.mk-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk-col { background: var(--bg-soft); border-radius: 10px; padding: 10px; }
.mk-col .hd { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 700; color: var(--text-body); margin-bottom: 9px; text-transform: uppercase; letter-spacing: 0.03em; }
.mk-col .hd .n { background: var(--surface); color: var(--text-muted); border-radius: 999px; padding: 1px 7px; font-size: 0.68rem; }
.mk-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 9px; box-shadow: var(--shadow-sm); }
.mk-card:last-child { margin-bottom: 0; }
.mk-card .tt { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.mk-prog { height: 5px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-bottom: 8px; }
.mk-prog > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); }
.mk-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-tag { font-size: 0.62rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--bg-soft); color: var(--text-body); }
.mk-tag.twi { border-left: 3px solid var(--green, #10B981); color: var(--text-heading); }

/* kpis + charts (dashboard) */
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mk-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.mk-kpi .v { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); line-height: 1; }
.mk-kpi .v.up { color: var(--brand-primary); } .mk-kpi .v.warn { color: #EF4444; }
.mk-kpi .l { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }
.mk-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.mk-panelbox { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mk-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.mk-bars > i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #818CF8, #6366F1); opacity: 0.9; }
.mk-bars > i:nth-child(even) { background: linear-gradient(180deg, #34D3C0, #14B8A6); }
.mk-donut { width: 120px; height: 120px; border-radius: 50%; margin: 6px auto; background: conic-gradient(#6366F1 0 55%, #14B8A6 55% 78%, #F59E0B 78% 92%, #E2E8F0 92% 100%); -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 59%); mask: radial-gradient(closest-side, transparent 58%, #000 59%); }

/* table */
.mk-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 0.74rem; }
.mk-table th { text-align: left; background: var(--bg-soft); color: var(--text-body); font-weight: 700; padding: 8px 10px; }
.mk-table td { padding: 8px 10px; border-top: 1px solid var(--border); color: var(--text-body); }
.mk-table .nm { color: var(--text-heading); font-weight: 600; }
.mk-st { font-size: 0.66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mk-st.todo { background: #EEF2FF; color: #4338CA; } .mk-st.prog { background: #FEF3C7; color: #92400E; } .mk-st.done { background: #D1FAE5; color: #065F46; }
.mk-av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #6366F1, #14B8A6); color: #fff; font-size: 0.6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* gantt */
.mk-gantt { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px 12px; }
.mk-gantt .wk { display: grid; grid-template-columns: 120px repeat(8, 1fr); font-size: 0.6rem; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border); }
.mk-grow { display: grid; grid-template-columns: 120px 1fr; align-items: center; padding: 7px 0; gap: 8px; }
.mk-grow .lab { font-size: 0.72rem; color: var(--text-heading); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-gtrack { position: relative; height: 12px; }
.mk-gbar { position: absolute; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #6366F1, #818CF8); }
.mk-gbar.teal { background: linear-gradient(90deg, #14B8A6, #34D3C0); } .mk-gbar.amber { background: linear-gradient(90deg, #F59E0B, #FBBF24); }

/* capacity heatmap */
.mk-heat { display: grid; grid-template-columns: 110px repeat(10, 1fr); gap: 4px; }
.mk-heat .hd { font-size: 0.6rem; color: var(--text-muted); text-align: center; align-self: center; }
.mk-heat .who { font-size: 0.72rem; color: var(--text-heading); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mk-cell { height: 22px; border-radius: 5px; }
.h0 { background: #94A3B8; } .h1 { background: #3B82F6; } .h2 { background: #10B981; } .h3 { background: #F59E0B; } .h4 { background: #F97316; } .h5 { background: #EF4444; }
.mk-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: 0.62rem; }
.mk-legend span { padding: 2px 7px; border-radius: 5px; color: #fff; font-weight: 700; }

/* reports */
.mk-report { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.mk-report .rh { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--brand-primary); padding-bottom: 12px; margin-bottom: 14px; }
.mk-report .rh .logo { font-weight: 800; color: #2563EB; font-size: 1.05rem; }
.mk-report .rh .logo b { color: var(--brand-accent); }
.mk-lines > i { display: block; height: 8px; border-radius: 4px; background: var(--bg-soft); margin-bottom: 8px; }
.mk-lines > i:nth-child(1) { width: 90%; } .mk-lines > i:nth-child(2) { width: 75%; } .mk-lines > i:nth-child(3) { width: 82%; }

/* risk matrix + list */
.mk-risk { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; }
.mk-matrix { display: grid; grid-template-columns: 26px repeat(5, 1fr); grid-auto-rows: 30px; gap: 4px; align-items: center; }
.mk-matrix .ax { font-size: 0.58rem; color: var(--text-muted); text-align: center; }
.mk-mc { border-radius: 5px; height: 100%; opacity: 0.85; }
.mk-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 0.76rem; }
.mk-list-item:last-child { border-bottom: none; }
.mk-list-item .nm { flex: 1; color: var(--text-heading); font-weight: 600; }
.mk-sev { font-size: 0.64rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.s-crit { background: #EF4444; } .s-high { background: #F97316; } .s-med { background: #F59E0B; } .s-low { background: #3B82F6; }

/* my tasks (list + mini calendar) */
.mk-mt { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.mk-cal { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.mk-cal .cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mk-cal .d { aspect-ratio: 1; border-radius: 5px; background: var(--bg-soft); font-size: 0.6rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.mk-cal .d.has { background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 700; }
.mk-cal .d.today { background: var(--brand-primary); color: #fff; font-weight: 700; }

@media (max-width: 760px) {
    .mk-board, .mk-two, .mk-risk, .mk-mt { grid-template-columns: 1fr; }
    .mk-kpis { grid-template-columns: repeat(2, 1fr); }
    .mock-body { min-height: 0; }
}

/* RTL: keep the browser-chrome dots on the start side, mirror grids naturally */
[dir="rtl"] .mock-bar .addr { direction: ltr; }
