/* De la serviette au logiciel: a café table, a napkin sketch, and the web software it becomes. */
.sketch { position: absolute; inset: 0; }
.table { position: absolute; left: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed)); top: 76px; bottom: calc(-1 * var(--bleed)); background:
  repeating-linear-gradient(177deg, rgba(80, 45, 20, .09) 0 2px, transparent 2px 11px),
  repeating-linear-gradient(183.5deg, rgba(255, 232, 205, .07) 0 1px, transparent 1px 19px),
  radial-gradient(1416px 670px at 4531px 260px, #C9976A 0%, #AD7B4E 60%, #8E623B 100%); }
.chip-label { position: absolute; z-index: 3; padding: 5px 12px; border-radius: 30px; background: rgba(255, 255, 255, .94); box-shadow: 0 3px 10px rgba(60, 30, 10, .25); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sketch-label { left: 36px; top: 92px; }
.screen-label { left: 478px; top: 84px; }

.napkin { position: absolute; left: 36px; top: 132px; width: 400px; height: 400px; transform: rotate(-2.5deg); background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .013) 0 3px, transparent 3px 7px), #FCFBF6; box-shadow: 0 20px 36px rgba(60, 30, 10, .38), 0 2px 4px rgba(60, 30, 10, .15); }
.napkin::before { content: ''; position: absolute; inset: 14px; border: 2px dashed rgba(60, 50, 30, .07); }
.napkin-in { animation: napkin-in .45s ease-out; }
.napkin-sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
.pen path, .pen circle { fill: none; stroke: #2A4A9A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pen .thin { stroke-width: 2; }
.hand { font-family: var(--font-hand); font-weight: 500; fill: #2A4A9A; }
.stain { position: absolute; right: 18px; bottom: 30px; width: 96px; height: 92px; border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(140, 92, 40, .2), inset 0 0 18px 6px rgba(140, 92, 40, .07); transform: rotate(12deg); }
.cup { position: absolute; left: 338px; top: 528px; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 58%, #ECE8E1 59% 64%, #FFFFFF 65%); box-shadow: 0 14px 24px rgba(60, 30, 10, .38); }
.cup::before { content: ''; position: absolute; left: 26px; top: 26px; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #C9945E 0 10%, #6B3F1D 44%, #3B210E 72%); box-shadow: 0 0 0 7px #FFFFFF, 0 0 0 8px #E2DDD4, 0 6px 10px 7px rgba(60, 30, 10, .18); }
.cup::after { content: ''; position: absolute; right: -6px; top: 55px; width: 30px; height: 17px; border-radius: 9px; background: #FFFFFF; box-shadow: 0 3px 5px rgba(60, 30, 10, .25); }
.arrow-badge { position: absolute; z-index: 3; left: 420px; top: 352px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; color: var(--royal); box-shadow: 0 8px 18px rgba(60, 30, 10, .32); }
.arrow-badge .icon { width: 28px; height: 28px; stroke-width: 2.4; }

.browser { position: absolute; left: 466px; top: 112px; width: 690px; height: 540px; border-radius: 10px; background: #F7F9FD; overflow: hidden; box-shadow: 0 26px 46px rgba(50, 25, 8, .45); }
.browser-chrome { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #E9ECF2; border-bottom: 1px solid #D5DAE3; }
.browser-chrome .win-dots i { background: #C3C9D4; }
.browser-address { flex: 1; height: 24px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: #FFFFFF; color: #5B6575; font-size: 12px; }
.browser-time { height: 4px; background: #E3E8F3; }
.browser-time i { display: block; height: 100%; background: var(--blue); transition: width .2s linear; }
.browser-time i.browser-time-low { background: var(--danger); }
.browser-head { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; font-size: 13px; color: var(--ink-faint); }
.browser-head b { font-size: 15px; color: var(--navy); }
.browser-badge { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--royal); color: #FFFFFF; font-size: 13px; font-weight: 800; }

.sketch-slots, .sketch-tiles { position: absolute; inset: 0; pointer-events: none; }
.screen-slot { position: absolute; border: 2px dashed rgba(75, 133, 230, .55); border-radius: 10px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.slot-filled { border: 0; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(12, 51, 81, .06); animation: pop .35s ease-out; }
.slot-wrong { animation: shake .4s ease, wrong-dash .9s ease; }
@keyframes wrong-dash { 0%, 60% { border-color: var(--danger); } 100% { border-color: rgba(75, 133, 230, .55); } }

.receipt { position: absolute; z-index: 2; left: 44px; top: 552px; width: 170px; padding: 13px 13px 22px; background: #FFFEF8; color: #2B2B2B; font: 12.5px/1.5 var(--font-mono); transform: rotate(-3deg); filter: drop-shadow(0 10px 12px rgba(60, 30, 10, .35)); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(135deg, #FFFEF8 50%, transparent 50%) 0 0 / 12px 10px repeat-x, linear-gradient(225deg, #FFFEF8 50%, transparent 50%) 0 0 / 12px 10px repeat-x; }
.receipt hr { margin: 7px 0; border: 0; border-top: 1.5px dashed #9A968C; }
.receipt-head { text-align: center; font-weight: 700; letter-spacing: .04em; }
.receipt-sub { text-align: center; font-size: 11px; color: #555555; }
.receipt-row { display: flex; justify-content: space-between; }
.receipt-todo { color: #9A968C; }
.receipt-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }

.tray { position: absolute; left: 236px; top: 664px; width: 914px; height: 140px; padding: 12px 18px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 -6px 30px rgba(60, 30, 10, .25); }
.tray-head { display: flex; align-items: baseline; gap: 14px; }
.tray-head b { font-size: 12.5px; letter-spacing: .15em; text-transform: uppercase; }
.tray-head span { font-size: 13px; color: var(--ink-faint); }
.tile { position: absolute; z-index: 4; width: 136px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #FFFFFF; font-size: 14.5px; font-weight: 600; line-height: 1.1; pointer-events: auto; touch-action: none; }
.tile .icon { width: 20px; height: 20px; color: var(--royal); }
.tile-dragging { z-index: 30; box-shadow: 0 16px 30px rgba(40, 20, 5, .35); transform: scale(1.06); }
.tile-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75, 133, 230, .35); }
.tile-returning { transition: left .22s ease, top .22s ease; }
.sketch .stamp { left: 811px; top: 400px; }

/* Finished modules, as the software shows them */
.m-menu { margin: 0; padding: 12px; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.m-menu li { padding: 8px 10px; border-radius: 6px; color: var(--ink-soft); }
.m-menu .m-on { background: var(--royal); color: #FFFFFF; font-weight: 600; }
.m-kpi { height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.m-kpi div { display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border-radius: 8px; background: var(--mist); }
.m-kpi small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.m-kpi b { margin-top: 3px; font-size: 18px; font-variant-numeric: tabular-nums; }
.m-kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.m-chart { height: 100%; display: flex; flex-direction: column; padding: 12px; }
.m-chart small { font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.m-chart svg { flex: 1; width: 100%; margin-top: 6px; }
.m-area { fill: rgba(75, 133, 230, .18); }
.m-line { fill: none; stroke: var(--blue); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.m-table { padding: 10px 12px; font-size: 12px; }
.m-table div { display: grid; grid-template-columns: .8fr 1.6fr 1fr; padding: 6px 0; border-bottom: 1px solid var(--mist); font-variant-numeric: tabular-nums; }
.m-table .m-th { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.m-plan { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 22px repeat(3, 1fr); gap: 4px; padding: 10px; }
.m-plan span { font-size: 11px; font-weight: 700; color: var(--ink-faint); text-align: center; }
.m-plan i { border-radius: 4px; background: var(--blue); }
.m-plan i.m-alt { background: var(--sky); }
.m-pay { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px; }
.m-pay small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.m-pay b { font-size: 22px; }
.m-paybutton { margin-top: 4px; padding: 8px; border-radius: 8px; background: var(--ok); color: #FFFFFF; font-size: 13px; font-weight: 700; text-align: center; }
.m-map { position: relative; height: 100%; background: linear-gradient(120deg, transparent 46%, #FFFFFF 46% 50%, transparent 50%), linear-gradient(30deg, transparent 60%, #FFFFFF 60% 63%, transparent 63%), #DDEBD3; }
.m-map i { position: absolute; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--danger); transform: rotate(-45deg); }
.m-chat { display: flex; flex-direction: column; gap: 6px; padding: 12px; font-size: 12px; }
.m-chat p { margin: 0; max-width: 85%; padding: 7px 10px; border-radius: 10px 10px 10px 2px; background: var(--mist); }
.m-chat .m-me { align-self: flex-end; border-radius: 10px 10px 2px 10px; background: var(--royal); color: #FFFFFF; }
.m-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; font-size: 12px; color: var(--ink-faint); }
.m-form span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.m-form b { align-self: flex-end; padding: 7px 14px; border-radius: 6px; background: var(--royal); color: #FFFFFF; }
.m-gallery { height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.m-gallery i { border-radius: 6px; background: linear-gradient(160deg, #BFD9FF, #8DB4E8); }
.m-gallery i:nth-child(2n) { background: linear-gradient(160deg, #F2D8B4, #D9A86C); }
.m-sign { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; }
.m-sign svg { width: 100%; height: 40px; }
.m-sign path { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.m-sign small { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-faint); }
.m-search { padding: 12px; font-size: 12px; }
.m-search span { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-faint); }
.m-search div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m-search i { padding: 4px 10px; border-radius: 20px; background: var(--mist); color: var(--royal); font-style: normal; font-weight: 600; }
.m-alerts { margin: 0; padding: 12px; list-style: none; display: grid; gap: 6px; font-size: 12px; }
.m-alerts li { padding: 7px 10px; border-left: 3px solid var(--warn); border-radius: 4px; background: #FFF7E6; }
.m-stock { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px; font-size: 12px; }
.m-stock span { position: relative; padding: 6px 10px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.m-stock span::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill); background: rgba(75, 133, 230, .28); }
.m-export { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; text-align: center; }
.m-export b { padding: 9px; border-radius: 8px; background: var(--royal); color: #FFFFFF; font-size: 12.5px; }
.m-export small { font-size: 11px; color: var(--ink-faint); }

@keyframes napkin-in { from { opacity: 0; transform: translateX(-30px) rotate(-6deg); } to { opacity: 1; transform: rotate(-2.5deg); } }
