/* The "what it is" moments: devices (cover), system, roles, dashboard, form, announcement, Ask HR.
   Loaded by every page after core.css. Same palette and rules: ink marks, one orange emphasis. */

/* typing dots that show, then give way to the answer */
@keyframes typing-once { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-3px); opacity: 1; } }
.a-typing { opacity: 0; }
.is-on .a-typing { animation: typing-once 0.6s linear both; animation-delay: calc(var(--t0, 0s) + var(--d, 0s)); }
html:not(.js) .a-typing { display: none; }

/* ---------------------------------------------------------------- cover: laptop + phone */
.m-devices { position: relative; width: 340px; height: 262px; }
.m-laptop { position: absolute; left: 0; top: 6px; width: 300px; }
.m-laptop__screen { height: 188px; padding: 7px; border-radius: 9px 9px 0 0; background: #1d1c1a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.m-laptop__base { height: 10px; margin: 0 -14px; border-radius: 0 0 8px 8px; background: linear-gradient(#2c2a27, #1a1917); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8); }
.mdb { height: 100%; border-radius: 3px; overflow: hidden; background: var(--paper); color: var(--text); display: flex; flex-direction: column; }
.mdb__bar { display: flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; background: var(--ink); color: var(--on-dark); font-size: 7.5px; font-weight: 700; }
.mdb__bar img { width: 9px; height: auto; }
.mdb__bar em { margin-left: auto; font-style: normal; color: var(--on-dark-muted); font-weight: 500; }
.mdb__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 6px 0; }
.mdb__kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 4px 5px; }
.mdb__kpis small { display: block; font-size: 5.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdb__kpis b { display: block; font-size: 13px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.mdb__row { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4px; padding: 4px 6px 6px; min-height: 0; }
.mdb__card { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 4px 5px; display: flex; flex-direction: column; min-height: 0; }
.mdb__card small { font-size: 5.5px; font-weight: 700; color: var(--muted); }
.mdb__bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding-top: 5px; }
.mdb__bars i { flex: 1; height: 100%; background: var(--ink); transform-origin: bottom; transform: scaleY(var(--p)); border-radius: 1px 1px 0 0; }
.mdb__bars i:last-child { background: var(--accent); }
.mdb__dist { display: flex; height: 9px; margin-top: 7px; border-radius: 1px; overflow: hidden; }
.mdb__avg { margin-top: auto; font-size: 9px !important; color: var(--text) !important; font-weight: 800 !important; }
.m-mini { position: absolute; right: 0; bottom: 0; width: 118px; padding: 4px; border-radius: 20px; background: #1d1c1a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 40px -18px rgba(0, 0, 0, 0.85); }
.m-mini__screen { height: 214px; border-radius: 16px; overflow: hidden; background: var(--paper); color: var(--text); display: flex; flex-direction: column; }
.m-mini__bar { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 4px 9px 0; background: var(--ink); color: var(--on-dark); font-size: 7px; font-weight: 700; }
.m-mini__bar img { width: 10px; height: auto; }
.m-mini__body { flex: 1; padding: 8px 8px 0; }
.m-mini__hi { font-size: 11px; font-weight: 800; }
.m-mini__card { margin-top: 6px; padding: 7px; border-radius: 4px; background: var(--ink); color: var(--on-dark); display: grid; gap: 3px; }
.m-mini__card b { font-size: 8px; line-height: 1.35; }
.m-mini__card span { font-size: 7px; color: var(--accent); font-weight: 800; }
.m-mini__news { margin-top: 6px; padding: 6px 7px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.m-mini__news span { justify-self: start; font-size: 6.5px; font-weight: 800; color: var(--danger); border: 1px solid rgba(180, 35, 24, 0.4); border-radius: 2px; padding: 0 3px; }
.m-mini__news i { display: block; height: 4px; border-radius: 2px; background: rgba(13, 13, 13, 0.16); }
.m-mini__news i.s { width: 62%; }
.m-mini__nav { display: flex; justify-content: space-around; gap: 2px; padding: 5px 4px 8px; border-top: 1px solid var(--line); background: var(--surface); font-size: 5.5px; font-weight: 700; color: var(--muted); }

/* rating bands: a warm-ink ramp (no tinted accent washes) */
.b0 { background: var(--ink); } .b1 { background: rgba(13, 13, 13, 0.72); } .b2 { background: rgba(13, 13, 13, 0.42); } .b3 { background: rgba(13, 13, 13, 0.22); } .b4 { background: var(--danger); }

/* ---------------------------------------------------------------- one system, three groups */
.m-system { position: relative; width: 340px; display: grid; gap: 10px; text-align: left; }
.m-sys__core { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-panel); }
.m-sys__core img { width: 22px; height: auto; }
.m-sys__core b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.m-sys__core span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.m-sys__list { position: relative; display: grid; gap: 8px; padding-left: 22px; }
.m-sys__list::before { content: ""; position: absolute; left: 9px; top: -10px; bottom: 26px; width: 2px; background: var(--cv-line); }
.m-sys__item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 11px 12px; border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-panel); }
.m-sys__item::before { content: ""; position: absolute; left: -14px; top: 22px; width: 14px; height: 2px; background: var(--cv-line); }
.m-sys__ic { width: 34px; height: 34px; border-radius: 6px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.m-sys__t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.m-sys__t b { font-size: 14px; font-weight: 800; }
.m-sys__t span { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.m-sys__d { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text); }
.m-sys__sign { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.m-sys__sign .i { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- who sees what */
.m-roles { padding: 13px 14px 12px; }
.m-roles__head b { display: block; font-size: 15px; font-weight: 800; }
.m-roles__head span { display: block; font-size: 12px; color: var(--muted); }
.m-roles__tbl { width: 100%; margin-top: 10px; border-collapse: collapse; }
.m-roles__tbl th, .m-roles__tbl td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.m-roles__tbl thead th { font-size: 10.5px; font-weight: 800; color: var(--muted); text-align: center; }
.m-roles__tbl tbody th { text-align: left; font-size: 13px; font-weight: 700; white-space: nowrap; padding-right: 8px; }
.m-roles__tbl td { text-align: center; width: 34px; }
.m-roles__tbl td i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); vertical-align: middle; }
.m-roles__tbl td i.on { background: var(--ink); border-color: var(--ink); }
.m-roles__tbl tr:last-child td i.on { background: var(--accent); border-color: var(--accent); }
.m-roles__key { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin-top: 10px; }
.m-roles__key div { display: flex; gap: 6px; font-size: 11px; line-height: 1.35; }
.m-roles__key dt { font-weight: 800; min-width: 34px; }
.m-roles__key dd { margin: 0; color: var(--muted); }
.m-roles__note { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; gap: 6px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.m-roles__note .i { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* ---------------------------------------------------------------- the performance dashboard */
.m-dash__bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 14px; background: var(--ink); color: var(--on-dark); font-size: 12px; font-weight: 700; }
.m-dash__bar span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.m-dash__bar img { width: 14px; height: auto; }
.m-dash__bar span:last-child { color: var(--on-dark-muted); font-weight: 500; }
.m-dash__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.m-dash__kpis div { background: var(--surface); padding: 9px 14px 10px; }
.m-dash__kpis small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.m-dash__kpis b { display: block; margin-top: 1px; font-size: 24px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.m-dash__kpis span { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.m-dash__sec { padding: 10px 14px 4px; }
.m-dash__k { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.m-dash__rows { margin-top: 6px; display: grid; gap: 4px; }
.m-dash__rows li { display: grid; grid-template-columns: 102px 1fr 34px; gap: 9px; align-items: center; font-size: 12px; }
.m-dash__t { position: relative; height: 7px; background: rgba(13, 13, 13, 0.08); overflow: hidden; }
.m-dash__t i { position: absolute; inset: 0; background: var(--ink); }
.m-dash__rows b { text-align: right; font-weight: 800; }
.m-dash__rows .is-low span:first-child, .m-dash__rows .is-low b { color: var(--accent-ink); font-weight: 800; }
.m-dash__rows .is-low .m-dash__t i { background: var(--accent); }
.m-dash__dist { display: flex; height: 10px; margin-top: 7px; overflow: hidden; border-radius: 1px; }
.m-dash__legend { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.m-dash__legend li { display: inline-flex; align-items: center; gap: 4px; }
.m-dash__legend li > i { width: 8px; height: 8px; border-radius: 1px; }
.m-dash__legend b { color: var(--text); font-weight: 800; }
.m-dash__flag { margin: 8px 14px 12px; padding: 8px 10px; display: flex; gap: 7px; border: 1px solid rgba(154, 91, 0, 0.35); border-radius: 4px; font-size: 11.5px; line-height: 1.4; color: var(--text); }
.m-dash__flag .i { flex: none; width: 14px; height: 14px; color: #9a5b00; margin-top: 1px; }

/* ---------------------------------------------------------------- their own form */
.m-form__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.m-form__head b { display: block; font-size: 13.5px; font-weight: 800; }
.m-form__head .m-formcode { white-space: nowrap; font-size: 9px; padding: 3px 4px; }
.m-form__head small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.m-form__tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.m-form__tbl th, .m-form__tbl td { padding: 4.5px 14px 4.5px 0; border-bottom: 1px solid var(--line); }
.m-form__tbl th:first-child { padding-left: 14px; }
.m-form__tbl thead th { font-size: 10.5px; font-weight: 800; color: var(--muted); text-align: left; }
.m-form__tbl thead th:not(:first-child), .m-form__tbl td { text-align: center; width: 54px; }
.m-form__tbl tbody th { font-weight: 600; text-align: left; }
.m-form__tbl td { font-weight: 800; }
.m-form__tbl td.is-diff { color: var(--accent-ink); }
.m-form__total { padding: 10px 14px 4px; }
.m-form__total p { display: flex; align-items: baseline; gap: 8px; }
.m-form__total p span { font-size: 12px; font-weight: 700; color: var(--muted); }
.m-form__total b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.m-form__total em { font-style: normal; font-size: 13px; font-weight: 800; }
.m-form__total small { margin-left: auto; font-size: 11px; color: var(--muted); }
.m-form__scale { position: relative; display: flex; justify-content: space-between; margin-top: 8px; padding-top: 9px; border-top: 3px solid var(--line-strong); font-size: 10px; font-weight: 700; color: var(--muted); }
.m-form__scale i { position: absolute; top: -8px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.m-form__route { margin: 8px 14px 12px; padding-top: 9px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; font-size: 11.5px; color: var(--muted); }
.m-form__route .i { width: 12px; height: 12px; color: var(--faint); }
.m-form__route b { color: var(--accent-ink); }

/* ---------------------------------------------------------------- an announcement */
.m-notice { position: relative; width: 340px; height: 430px; text-align: left; }
.m-compose { position: absolute; left: 0; top: 0; width: 186px; padding: 11px 12px 12px; }
.m-compose__head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.m-compose__head span { margin-left: auto; font-size: 10px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 1px 5px; }
.m-compose__t { margin-top: 8px; font-size: 14px; font-weight: 800; line-height: 1.3; }
.m-compose__opts { margin-top: 8px; display: grid; gap: 4px; }
.m-compose__opts li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.m-compose__opts .i { width: 13px; height: 13px; color: var(--ok); stroke-width: 2.4; }
.m-compose__send { display: flex; align-items: center; justify-content: center; height: 30px; margin-top: 10px; border-radius: 2px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.m-nphone { position: absolute; right: 0; top: 46px; width: 168px; padding: 5px; border-radius: 26px; background: #1d1c1a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 28px 50px -24px rgba(0, 0, 0, 0.85); }
.m-nphone__screen { height: 262px; border-radius: 21px; overflow: hidden; background: var(--paper); color: var(--text); }
.m-nphone__bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 5px 12px 0; background: var(--ink); color: var(--on-dark); font-size: 9px; font-weight: 700; }
.m-nphone__body { display: grid; gap: 7px; padding: 10px 10px 0; }
.m-nphone__tag { justify-self: start; font-size: 9px; font-weight: 800; color: var(--danger); border: 1px solid rgba(180, 35, 24, 0.45); border-radius: 2px; padding: 1px 5px; }
.m-nphone__t { font-size: 12.5px; font-weight: 800; line-height: 1.4; }
.m-nphone__p { font-size: 10.5px; line-height: 1.55; }
.m-nphone__listen { display: flex; align-items: center; justify-content: center; gap: 5px; height: 26px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 10.5px; font-weight: 800; }
.m-nphone__listen .i { width: 12px; height: 12px; }
.m-nphone__ok, .m-nphone__done { grid-area: auto; display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: 2px; font-size: 11px; font-weight: 800; }
.m-nphone__ok { position: relative; background: var(--ink); color: var(--on-dark); }
.m-nphone__done { margin-top: -37px; position: relative; background: var(--ok); color: #fff; }
.m-nphone__done .i { width: 12px; height: 12px; stroke-width: 2.6; }
.m-nphone .m-tapring { left: 50%; }
.m-track { position: absolute; left: 0; bottom: 0; width: 230px; padding: 11px 12px 10px; }
.m-track__k { font-size: 11px; font-weight: 800; color: var(--muted); }
.m-track__n { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--muted); }
.m-track__n b { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.m-track__n span { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--text); }
.m-track ul { margin-top: 6px; display: grid; gap: 4px; }
.m-track li { display: grid; grid-template-columns: 84px 1fr 30px; gap: 7px; align-items: center; font-size: 11px; }
.m-track__t { position: relative; height: 6px; background: rgba(13, 13, 13, 0.08); overflow: hidden; }
.m-track__t i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.m-track li b { text-align: right; font-weight: 800; }
.m-track .is-low span:first-child, .m-track .is-low b { color: var(--accent-ink); }
.m-track .is-low .m-track__t i { background: var(--accent); }

/* ---------------------------------------------------------------- Ask HR */
.m-ask__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--ink); color: var(--on-dark); }
.m-ask__bar img { width: 14px; height: auto; }
.m-ask__bar b { font-size: 13.5px; }
.m-ask__bar span { margin-left: auto; font-size: 11px; color: var(--on-dark-muted); font-weight: 600; }
.m-ask__body { display: grid; gap: 10px; padding: 12px 12px 4px; background: var(--paper); }
.m-ask__q { justify-self: end; max-width: 78%; padding: 9px 12px; border-radius: 14px 14px 3px 14px; background: var(--ink); color: var(--on-dark); }
.m-ask__q p { font-size: 14px; font-weight: 600; }
.m-ask__q small { display: block; margin-top: 2px; font-size: 11px; color: var(--on-dark-muted); }
.m-ask__slot { position: relative; }
.m-ask__typing { position: absolute; left: 0; top: 0; display: flex; gap: 4px; padding: 11px 13px; border-radius: 14px 14px 14px 3px; background: var(--surface); border: 1px solid var(--line); }
.m-ask__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 0.9s ease-in-out infinite; }
.m-ask__typing i:nth-child(2) { animation-delay: -0.6s; } .m-ask__typing i:nth-child(3) { animation-delay: -0.3s; }
.m-ask__a { max-width: 92%; padding: 10px 12px 11px; border-radius: 14px 14px 14px 3px; background: var(--surface); border: 1px solid var(--line); }
.m-ask__a .m-tag { margin-bottom: 6px; }
.m-ask__a p { font-size: 13px; line-height: 1.65; }
.m-ask__a small { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.m-ask__foot { padding: 8px 14px 12px; background: var(--paper); font-size: 11px; line-height: 1.4; color: var(--muted); }
