:root {
  color-scheme: dark;
  font: 16px/1.26 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #fafafa;
  --card: #252527;
  --button: #3a3a3d;
  --purple: #7862df;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #97caff; outline-offset: 3px; }
button:active { filter: brightness(1.23); }
[hidden] { display: none !important; }
.phone { position: relative; max-width: 430px; margin: auto; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; background: #000; }
.statusbar { position: absolute; z-index: 3; inset: 0 0 auto; padding: max(16px, env(safe-area-inset-top)) 9% 0 10.5%; display: flex; justify-content: space-between; font-weight: 650; font-size: 18px; letter-spacing: -.5px; pointer-events: none; }
.statusbar > span { display: flex; align-items: center; gap: 4px; }
.statusbar svg { height: 15px; fill: currentColor; }
.indicators svg { height: 16px; }
.contact { position: absolute; z-index: 2; inset: 0 0 auto; height: calc(164px + env(safe-area-inset-top)); padding: max(64px, calc(env(safe-area-inset-top) + 35px)) 4% 0; display: flex; align-items: flex-start; justify-content: space-between; background: linear-gradient(#000e 3%, #000c 51%, #0008 79%, transparent); pointer-events: none; }
.glass { background: linear-gradient(130deg,#39393bbf,#19191bdc); border: 1px solid #ffffff24; box-shadow: inset 0 1px 2px #ffffff13, 0 2px 6px #0005; backdrop-filter: blur(12px); border-radius: 30px; }
.back, .camera { display: grid; place-content: center; height: 44px; }
.back { width: 70px; display: flex; align-items: center; gap: 8px; }
.back i { width: 14px; height: 14px; border-left: 3px solid; border-bottom: 3px solid; border-radius: 2px; transform: rotate(45deg); }
.back b { font-size: 13px; background: white; color: #171717; width: 19px; line-height: 19px; text-align: center; border-radius: 50%; }
.camera { width: 44px; }
.camera svg, .composer svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.camera svg { width: 27px; }
.people { position: absolute; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; }
.portrait { position: relative; border-radius: 50%; width: 60px; height: 60px; background: #242323; }
.avatar, .small-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 600; color: #fff; }
.avatar { background: linear-gradient(150deg,#f3bf80,#ac704c 50%,#865c55); }
.portrait .avatar { position: absolute; width: 36px; height: 36px; top: 5px; left: 5px; font-size: 19px; }
.small-avatar { position: absolute; width: 23px; height: 23px; bottom: 4px; right: 6px; background: linear-gradient(#77708b,#443b57); font-size: 10px; border: 1px solid #262329; }
h1 { margin: -4px 0 0; padding: 5px 12px; font-size: 17px; letter-spacing: -.4px; }
h1 span { color: #aaa; }
.conversation { overflow-y: auto; scrollbar-width: none; flex: 1; overscroll-behavior: contain; scroll-padding: 158px 0 20px; }
.conversation::-webkit-scrollbar { display: none; }
#messages { padding: calc(162px + env(safe-area-inset-top)) 0 5px; }
.row { display: grid; grid-template-columns: 10% minmax(0,1fr); align-items: end; gap: 2%; margin: 0 16.4% 5px 4%; }
.sender { width: 100%; aspect-ratio: 1; font-size: 15px; position: relative; top: 5px; }
.bubble { background: var(--card); border-radius: 21px; padding: .92rem .95rem 1rem; position: relative; min-width: 0; }
.bubble::before { content: ""; position: absolute; bottom: -3px; left: 3px; width: 16px; height: 13px; background: var(--card); clip-path: path("M0 13 Q7 9 2 0 H17 Q11 9 0 13"); }
.grouped .sender { visibility: hidden; }
.grouped .bubble::before { display: none; }
.row:not(.grouped) + .row { margin-top: 9px; }
.request-info { display: grid; grid-template-columns: 22% minmax(0,1fr); gap: 4%; align-items: start; }
.app-icon { width: 100%; height: auto; display: block; }
h2,p { margin: 0; }
.request-info h2 { font-size: 1rem; line-height: 1.2; letter-spacing: -.32px; font-weight: 600; }
.request-info p { margin-top: 3px; color: #e6e6e9; font-size: .94rem; line-height: 1.23; letter-spacing: -.13px; }
.options, .approve { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-radius: 10px; padding: 6px 12px; min-height: 2rem; text-align: left; }
.options { background: var(--button); margin-top: 9px; }
.options i { height: 8px; width: 8px; border-bottom: 1.6px solid #98989f; border-right: 1.6px solid #98989f; transform: translateY(-2px) rotate(45deg); }
.options[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.approve { min-height: 44px; margin-top: 4px; color: #a4ceff; background: var(--button); }
.purchase .bubble { padding: .8rem; }
.purchase .request-info { grid-template-columns: 26% minmax(0,1fr); gap: 4%; }
.denied { margin-top: 12px; padding-top: 9px; border-top: 1px solid #ffffff0f; font-size: .93rem; }
.denied b { display: inline-grid; place-content: center; vertical-align: 2px; height: 10px; width: 10px; border-radius: 50%; color: #481818; background: #ff595c; font-size: 10px; }
.denied small { display: block; color: #aaa9b0; font-size: .79rem; }
footer { display: flex; align-items: center; gap: 12px; padding: 10px 7% max(14px, env(safe-area-inset-bottom)); background: #000; }
.plus, .composer { border: 1px solid #393939; background: #191919; box-shadow: inset 0 1px 1px #ffffff0d; }
.plus { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; font-size: 30px; font-weight: 300; }
.composer { flex: 1; min-height: 40px; border-radius: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 16px; color: #77777c; font-size: 17px; }
.composer svg { width: 17px; }
dialog { width: min(100%, 410px); padding: 0; border: 0; border-radius: 28px; background: #242426; color: white; box-shadow: 0 24px 80px #000a; max-height: 92dvh; }
dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.sheet { padding: 9px 24px max(24px,env(safe-area-inset-bottom)); text-align: center; }
.grab { width: 36px; height: 5px; border-radius: 4px; margin: 0 auto 17px; background: #58585d; }
.sheet-app { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sheet-app img { width: 25px; }
.die-area { height: 130px; display: grid; place-items: center; }
.die { width: 78px; height: 78px; display: grid; grid-template: repeat(3,1fr)/repeat(3,1fr); align-items: center; justify-items: center; padding: 12px; border-radius: 17px; background: linear-gradient(145deg,#fff,#e9e7f0); box-shadow: 2px 5px 0 #b5afc3,5px 11px 16px #0007; transform: rotate(-8deg); }
.die i { visibility: hidden; width: 11px; height: 11px; border-radius: 50%; background: #292338; box-shadow: inset 0 1px 2px #0009; }
.die .pip { visibility: visible; }
.die.rolling { animation: tumble .36s infinite alternate ease-in-out; }
@keyframes tumble { from { transform: translateY(4px) rotate(-23deg) rotateY(-16deg); } to { transform: translateY(-9px) rotate(25deg) rotateX(23deg); } }
.sheet h2 { font-size: 24px; letter-spacing: -.7px; }
.sheet p { margin: 8px auto 0; color: #c9c8ce; max-width: 32ch; line-height: 1.4; }
#timer { color: #bfb3ff; font-variant-numeric: tabular-nums; font-size: 14px; }
#done { margin-top: 23px; width: 100%; min-height: 46px; border: 0; border-radius: 13px; background: #6951cc; color: #fff; font-weight: 600; }
@media (max-width: 480px) { dialog { margin: auto auto 0; border-radius: 25px 25px 0 0; width: 100%; max-width: none; } }
@media (max-width: 430px) { :root { font-size: clamp(14px, 3.72vw, 16px); } }
@media (max-width: 365px) { .row { margin-right: 8%; } .bubble { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .die.rolling { animation: none; } }
