/* Peak AI · mock product screens (.ms), for window.PeakScreens (live/screens.js).
   Copied from live/live.css so the main page can show the same screens. Keep the two in step. */
.ms { --teak: #2a1a12; --yolk-dim: #fcefd2; text-align: left; }
.ms { --ink: #24190f; --ink-2: #6e6259; --line-ms: #e9e2d6; --ok: #1f6b4f; --warn: #a96a07; --bad: #c8382c;
  background: #fffdf9; color: var(--ink); border-radius: 16px; padding: 12px 14px 14px; font: 400 12.5px/1.4 var(--body);
  box-shadow: 0 0 0 1px #e6dfd3, 0 14px 30px -18px rgba(42, 26, 18, .4); font-variant-numeric: tabular-nums; }
.ms .ok { color: var(--ok); } .ms .warn { color: var(--warn); } .ms .bad { color: var(--bad); }
.ms-top { display: flex; justify-content: space-between; align-items: center; font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ms-app { display: inline-flex; align-items: center; gap: 6px; }
.ms-app svg { width: 16px; height: 16px; }
.ms-ill { font: 700 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #8a5a06; background: #fcefd2; padding: 4px 7px; border-radius: 999px; }
.ms-ill.dark { color: #8a5a06; background: var(--yolk-dim); }
.ms-title { font: 600 15px/1.25 var(--display); margin: 8px 0 10px; color: var(--teak); }
.ms-sub { color: var(--ink-2); font-size: 11.5px; margin-top: 6px; }
.ms-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.ms-acts.col { flex-direction: column; align-items: stretch; }
.ms-btn { display: inline-flex; justify-content: center; padding: 6px 11px; border-radius: 999px; font: 700 11.5px/1.1 var(--body); background: #fff; color: var(--teak); box-shadow: inset 0 0 0 1.5px #dcd2c2; }
.ms-btn.pri { background: #1f6b4f; color: #fff; box-shadow: none; }
.ms-btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.ms-pill { display: inline-block; align-self: flex-start; font: 700 10px/1 var(--body); letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: #e7f4ed; color: #1f6b4f; }
.ms-pill.warn { background: #fcefd2; color: #8a5a06; }
.ms-line { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12px; border-left: 3px solid; color: var(--ink) !important; }
.ms-line.bad { background: #fbe5e1; border-color: var(--bad); }
.ms-line.warn { background: #fcefd2; border-color: #e09a24; }
.ms-line.ok { background: #e7f4ed; border-color: var(--ok); }
.ms-card { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fcefd2; border: 1px solid #f1d9a6; }
.ms-card.bad { background: #fbe5e1; border-color: #f2c4bb; }
.ms .ms-card.warn, .ms .ms-card.bad { color: var(--ink); }
.ms-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.ms-card-h span { color: var(--ink-2); font-size: 11px; text-align: right; }

.ms-bars { position: relative; }
.ms-barrow { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 8px; padding: 5px 0; }
.ms-lbl { font-weight: 600; font-size: 12px; }
.ms-v { text-align: right; font-size: 12.5px; }
.ms-track { position: relative; height: 10px; border-radius: 5px; background: #efe9de; }
.ms-track::after { content: ""; position: absolute; left: var(--tgt); top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--teak); }
.ms-fill { display: block; height: 100%; border-radius: 5px; background: #3fae84; }
.ms-fill.warn { background: #e8a33d; } .ms-fill.bad { background: #d9503f; }
.anim .ms-fill { animation: grow 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { width: 0; } }
.ms-tgt { padding: 0 52px 0 98px; font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.ms-tgt span { position: relative; left: var(--tgt); display: inline-block; transform: translateX(-50%); }

.ms-grid4 { display: grid; grid-template-columns: 82px repeat(3, 1fr); gap: 4px; align-items: center; }
.ms-gh { font: 700 9.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 2px; }
.ms-rn { font-weight: 700; font-size: 11.5px; }
.ms-cell { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; background: #e7f4ed; color: var(--ok); line-height: 1.15; }
.ms-cell.bad { background: #fbe5e1; color: var(--bad); }
.ms-cell i { font-style: normal; font-weight: 800; flex: none; }
.ms-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ms-photos figure { margin: 0; }
.ms-photos figcaption { font-size: 10.5px; color: var(--ink-2); margin-top: 3px; }
.ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.ph-a { background: linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, .25) 49% 51%, transparent 52%), repeating-linear-gradient(180deg, #b8c3c4 0 9px, #8b989a 9px 11px), #a9b4b6; }
.ph-b { background: linear-gradient(transparent 55%, #8f9f9a 55% 62%, transparent 62%), linear-gradient(90deg, transparent 30%, #e6ecea 30% 70%, transparent 70%), repeating-linear-gradient(90deg, #d7e2df 0 13px, #c4d1cd 13px 14px), repeating-linear-gradient(0deg, #d7e2df 0 13px, #c4d1cd 13px 14px); }
.ph-c { background: radial-gradient(30% 22% at 62% 58%, #7c6a4e 0 60%, transparent 62%), linear-gradient(170deg, #50463a, #2f2a24); }
.ph-d { background: linear-gradient(90deg, transparent 47%, rgba(0, 0, 0, .25) 48% 52%, transparent 53%), linear-gradient(180deg, #c3cdcf, #8d999b); aspect-ratio: 3 / 4; }
.ph-d::after { content: "9.4"; position: absolute; left: 8px; top: 8px; font: 800 10px/1 var(--body); color: #fff; background: #c8382c; padding: 3px 4px; border-radius: 3px; }

.ms-kpis { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-bottom: 10px; }
.ms-kpis.three { grid-template-columns: repeat(3, 1fr); }
.ms-kpi { background: #f6f2ea; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.ms-kpi span { font: 700 9.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ms-kpi b { font: 600 21px/1.15 var(--display); margin-top: 2px; }
.ms-kpi em { font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.ms-kpi.spark svg { width: 100%; height: 34px; margin: 4px 0 2px; overflow: visible; }
.ms-kpi.spark polyline { fill: none; stroke: #c8382c; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ms-kpi.spark .tg { stroke: #1f6b4f; stroke-width: 1.2; stroke-dasharray: 3 3; }
.ms-list-h, .ms-list { display: grid; grid-template-columns: 1.7fr .9fr .9fr .7fr; gap: 6px; align-items: center; }
.ms-list-h { font: 700 9.5px/1.2 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--line-ms); }
.ms-list { padding: 6px 0; border-bottom: 1px solid var(--line-ms); font-size: 12px; }
.ms-list > :first-child { font-weight: 600; }
.ms-list > :not(:first-child), .ms-list-h > :not(:first-child) { text-align: right; }

.ms-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: start; }
.ms-phone { border: 5px solid var(--teak); border-radius: 18px; background: #fff; padding: 8px 8px 6px; font-size: 11px; }
.ms-phone-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 5px; border-bottom: 1px solid var(--line-ms); }
.ms-phone-h span { font-size: 10px; color: var(--ink-2); }
.ms-item { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid #f2ede4; }
.ms-item em { display: block; font-style: normal; font-size: 9.5px; color: var(--ink-2); }
.ms-item b { white-space: nowrap; }
.ms-item.locked { opacity: .55; }
.ms-item.locked em { color: var(--bad); }
.ms-item .lk { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.ms-phone-f { display: flex; justify-content: space-between; padding-top: 5px; font-weight: 700; }
.ms-approve { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; background: #f6f2ea; font-size: 11.5px; }
.ms-approve > b { font: 600 14px/1.2 var(--display); }

.ms-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-col { text-align: center; font-size: 11.5px; display: flex; flex-direction: column; gap: 3px; }
.ms-vbars { height: 86px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line-ms); margin-bottom: 4px; }
.vb { width: 20px; border-radius: 5px 5px 0 0; }
.vb.s { background: #b9dfcd; } .vb.b { background: #3fae84; } .vb.b.warn { background: #e8a33d; } .vb.b.bad { background: #d9503f; }
.anim .vb { animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
@keyframes rise { from { transform: scaleY(0); } }
.ms-gap { font-weight: 700; font-size: 11px; }
.ms-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 10.5px; color: var(--ink-2); }
.ms-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ms-legend i.s { background: #b9dfcd; } .ms-legend i.b { background: #3fae84; }

.ms-mail { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f6f2ea; margin-bottom: 4px; font-size: 12px; }
.ms-mail span { font-size: 10.5px; color: var(--ink-2); }
.ms-tr { display: grid; grid-template-columns: 1.7fr .8fr .8fr .8fr; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-ms); font-size: 11.5px; }
.ms-tr.th { font: 700 9.5px/1.2 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.ms-tr > :not(:first-child) { text-align: right; }
.ms-tr em { display: block; font-style: normal; font-size: 10px; color: var(--ink-2); }
.ms-tr > :first-child { font-weight: 600; }
.ms-tr.th > :first-child { font-weight: 700; }
.ms-tr .dim { color: var(--ink-2); }
.ms-table.cash .ms-tr { grid-template-columns: .5fr 1fr 1fr 1fr 1.1fr; }
.ms-tr.short { background: #fbe5e1; border-radius: 8px; padding-left: 6px; padding-right: 6px; border-bottom-color: transparent; }
.ms-split.inv { grid-template-columns: .82fr 1.5fr; align-items: center; }
.ms-paper { display: flex; flex-direction: column; gap: 6px; padding: 10px 9px; border-radius: 3px; background: #fbf7ee; transform: rotate(-3deg); box-shadow: 0 8px 16px rgba(42, 26, 18, .2), 0 0 0 1px #ece4d4; font-size: 9.5px; }
.ms-paper b { letter-spacing: .05em; }
.ms-paper i { display: block; height: 3px; border-radius: 2px; background: #c9c0b1; }
.ms-paper .hand { font: italic 600 11px/1.1 var(--display); color: #2b4a8a; }
.ms-paper .tot { align-self: flex-end; }
.ms-lines .ms-tr { grid-template-columns: 1.6fr .7fr .8fr; }
.ms-lines .ms-tr.chk { background: #fcefd2; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.ms-lines .ms-tr.tot { border-bottom: 0; }

.ms-queue { display: flex; gap: 6px; }
.ms-queue .q { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 10px; background: #f6f2ea; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-queue .q b { display: block; font-size: 11px; color: var(--teak); }
.ms-queue .q.on { background: #e7f4ed; box-shadow: inset 0 0 0 1.5px #3fae84; }
.ms-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: #efe6d8; }
.ms-chat .b { max-width: 90%; padding: 8px 10px; border-radius: 12px; font-size: 12px; background: #fff; }
.ms-chat .b em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-2); margin-top: 4px; }
.ms-chat .in { align-self: flex-start; border-top-left-radius: 4px; }
.ms-chat .draft { align-self: flex-end; background: #dcf5e6; border: 1.5px dashed #3fae84; border-top-right-radius: 4px; }
.ms-chat .draft .ms-pill { display: table; margin-bottom: 5px; }

.ms-chk { display: grid; gap: 4px; }
.ms-ticket { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 12px; background: #f6f2ea; }
.ms-ticket b { font: 600 14px/1.2 var(--display); }
.ms-ticket p { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.ms-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ms-steps li { border-top: 3px solid #e6dfd3; padding-top: 6px; font-size: 10.5px; color: var(--ink-2); }
.ms-steps b { display: block; font-size: 11px; color: var(--teak); }
.ms-steps .done { border-color: #3fae84; }
.ms-steps .now { border-color: #e8a33d; }

.ms-hm { display: grid; grid-template-columns: 26px repeat(var(--cols), 1fr); gap: 3px; align-items: center; }
.hm-h { font-size: 9px; color: var(--ink-2); text-align: left; }
.hm-d { font-size: 9.5px; color: var(--ink-2); font-weight: 600; }
.hm-c { height: 14px; border-radius: 3px; background-color: #f1ece3; background-image: linear-gradient(rgba(31, 107, 79, var(--v)), rgba(31, 107, 79, var(--v))); }
.ms-mix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ms-mix div { padding: 8px 10px; border-radius: 10px; background: #f6f2ea; }
.ms-mix span { display: block; font: 700 9.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.ms-mix b { font-size: 11.5px; line-height: 1.35; display: block; }


.ms-kpis.three .ms-kpi b { font-size: 18px; }
@media (max-width: 640px) {
  /* phones: these screens are the proof, so nothing drops below 11px (labels) or 12px (values and notes) */
  .ms { padding: 12px 12px 13px; font-size: 13px; }
  .ms-top { font-size: 11px; }
  .ms-gh, .ms-list-h, .ms-tr.th, .ms-kpi span, .ms-mix span, .hm-h, .hm-d, .ms-item em, .ms-item .lk, .ms-paper, .ms-ill { font-size: 11px; }
  .ms-gh, .ms-list-h, .ms-tr.th, .ms-kpi span, .ms-mix span { letter-spacing: .04em; }
  .ms-cell, .ms-photos figcaption, .ms-legend, .ms-tgt, .ms-sub, .ms-queue .q, .ms-queue .q b, .ms-card-h span, .ms-mail span,
  .ms-chat .b em, .ms-kpi em, .ms-tr em, .ms-steps li, .ms-steps b, .ms-phone-h span, .ms-gap, .ms-rn, .ms-pill, .ms-btn, .ms-phone,
  .ms-paper .hand { font-size: 12px; }
  .ms-lbl, .ms-v, .ms-list, .ms-tr, .ms-card-h, .ms-line, .ms-mail, .ms-chat .b, .ms-col, .ms-approve, .ms-ticket p, .ms-mix b { font-size: 13px; }
  .ms-barrow { grid-template-columns: 80px minmax(0, 1fr) 46px; }
  .ms-tgt { padding: 0 54px 0 88px; }
  .ms-grid4 { grid-template-columns: 70px repeat(3, minmax(0, 1fr)); }
  .ms-list-h, .ms-list { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) minmax(0, .72fr); }
  .ms-list > :not(:first-child) { white-space: nowrap; }
  .ms-split { grid-template-columns: 1fr; }
  .ms-split.inv { grid-template-columns: .8fr 1.5fr; }
}
