/* The James OS iPhone app, drawn in HTML: an iPhone frame, the iOS status bar and four screens.
   Sizes are set for a 290px-wide phone; scale it with `zoom` where it is used. */
.iphone { position: relative; width: 290px; padding: 10px; border-radius: 54px; background: #0c0d0f; flex: none;
  box-shadow: 0 0 0 1.6px #c9ccd0, 0 0 0 3px #8e9398, 0 0 0 4.2px #dfe2e5, 0 60px 100px -50px rgba(24, 16, 8, .7), 0 30px 50px -36px rgba(24, 16, 8, .55); }
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3.5px; border-radius: 2px; background: linear-gradient(90deg, #8e9398, #cfd2d5); }
.iphone::before { left: -7.5px; top: 112px; height: 58px; box-shadow: 0 -38px 0 -14px #a4a8ac, 0 72px 0 0 #a4a8ac; }
.iphone::after { right: -7.5px; top: 150px; height: 84px; }
.iphone-screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 44px; overflow: hidden; background: #F7F5F1; isolation: isolate;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #1c1c1e; font-size: 13px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
.iphone-screen > .slot { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.iphone-screen > .slot:not(.on) { opacity: 0; transform: translateY(10px); pointer-events: none; }
.app-screen { position: absolute; inset: 0; }
.ios-status { position: relative; z-index: 6; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 32px; }
.ios-time { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.ios-island { position: absolute; left: 50%; top: 10px; width: 96px; height: 29px; margin-left: -48px; border-radius: 20px; background: #000; }
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-icons svg { fill: currentColor; height: 11px; width: auto; }
.ios-icons .ios-bat { height: 12px; }
.ios-home { position: absolute; z-index: 9; left: 50%; bottom: 7px; width: 118px; height: 4.5px; margin-left: -59px; border-radius: 3px; background: #121212; }
/* the Today screen */
.app-top { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 18px 4px; }
.app-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.app-bat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7075; }
.app-bat i { width: 14px; height: 8px; border-radius: 2px; border: 1px solid #9aa0a5; background: linear-gradient(90deg, #34c759 82%, transparent 82%); }
.app-scroll { padding: 2px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.app-day { font-size: 12.5px; font-weight: 600; color: #3a3d40; margin: 8px 4px 2px; }
.tcard { background: #fff; border-radius: 16px; padding: 11px 12px 10px; border: 1px solid rgba(0, 0, 0, .055); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .08); }
.tcard header { display: flex; align-items: center; gap: 8px; }
.tcard header > img, .tcard .tapp { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; flex: none; }
.tcard .tapp { display: grid; place-items: center; background: #000; }
.tcard .tapp img { width: 70%; height: 70%; }
.tcard header .brand-icon { box-shadow: none; border-radius: 5px; }
.tcard b { flex: 1; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.tcard em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.tcard em.ok { background: #E3F3E8; color: #24804A; }
.tcard em.wait { background: #FBE5E1; color: #B02A21; }
.tcard p { margin: 6px 0 5px; font-size: 12.5px; color: #55595d; }
.tcard footer { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #9a9ea3; }
.tcard .tchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 6px; background: #F1F2F3; color: #6b7075; }
.tcard .tchip i { width: 5px; height: 5px; border-radius: 50%; background: #34c759; }
.tcard.faint { opacity: .4; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.app-rec { position: absolute; z-index: 7; left: 50%; bottom: 96px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .04); }
.app-rec > i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(226, 63, 47, .16); animation: appPulse 1.4s ease-in-out infinite; }
.app-rec-wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.app-rec-wave b { width: 2.5px; height: 100%; border-radius: 2px; background: #1c1c1e; animation: appWave 1s ease-in-out infinite; }
.app-rec-wave b:nth-child(2) { animation-delay: -.2s; } .app-rec-wave b:nth-child(3) { animation-delay: -.4s; } .app-rec-wave b:nth-child(4) { animation-delay: -.6s; } .app-rec-wave b:nth-child(5) { animation-delay: -.8s; }
@keyframes appWave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes appPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.ios-tabs { position: absolute; z-index: 7; left: 12px; right: 12px; bottom: 22px; height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 6px;
  border-radius: 30px; background: rgba(250, 250, 250, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .05); }
.ios-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 22px; font-size: 9.5px; font-weight: 500; color: #3a3d40; }
.ios-tabs span.on { background: #ECEAE6; color: #111; }
.ios-tabs svg { width: 20px; height: 20px; }
/* list content fades out under the floating tab bar, as on iOS */
.app-tasks::before { content: ""; position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(rgba(247, 245, 241, 0), #F7F5F1 58%); pointer-events: none; }
/* the approval sheet */
.app-dim::after { content: ""; position: absolute; inset: 0; z-index: 8; background: rgba(20, 18, 16, .3); }
.app-sheet { position: absolute; z-index: 9; left: 7px; right: 7px; bottom: 7px; padding: 8px 18px 18px; border-radius: 34px; background: #fff; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .3); }
.app-sheet .grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: #d6d6d6; margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7075; font-weight: 500; }
.sheet-head .brand-icon { width: 24px; height: 24px; border-radius: 6px; box-shadow: none; }
.app-sheet h5 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; margin: 10px 0 12px; }
.sheet-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #eee; font-size: 12.5px; }
.sheet-rows div span:first-child { color: #8a8e92; }
.sheet-btns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 12px; }
.sheet-btns span { display: grid; place-items: center; height: 44px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.sheet-btns .no { background: #F1F0EE; }
.sheet-btns .yes { background: #1C1F22; color: #fff; }
/* the chat */
.chat-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 4px 14px 10px; border-bottom: 1px solid rgba(0, 0, 0, .06); background: rgba(247, 245, 241, .92); }
.chat-back { width: 10px; height: 17px; color: #1c1c1e; margin-right: 2px; }
.chat-top .brand-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
.chat-top b { display: block; font-size: 15px; font-weight: 600; }
.chat-top div span { display: block; font-size: 11px; color: #34a853; }
.chat-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px 0; }
.chat-date { align-self: center; font-size: 10.5px; color: #9a9ea3; font-weight: 500; margin: 2px 0 4px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.32; }
.msg small { display: block; font-size: 10px; opacity: .62; margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: #1C1F22; color: #fff; border-bottom-right-radius: 6px; }
.msg.james { align-self: flex-start; background: #ECE9E3; border-bottom-left-radius: 6px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a8e92; animation: appPulse 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
.msg-card { align-self: flex-start; width: 80%; display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .07); }
.msg-card img { width: 22px; height: 22px; }
.msg-card b { display: block; font-size: 12.5px; font-weight: 600; }
.msg-card span { display: block; font-size: 11px; color: #8a8e92; }
.msg-card em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #E3F3E8; color: #24804A; }
.chat-input { position: absolute; z-index: 7; left: 10px; right: 10px; bottom: 24px; display: flex; align-items: center; gap: 7px; }
.ci-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E9E6E1; color: #4a4d50; font-size: 20px; font-weight: 300; flex: none; }
.ci-field { flex: 1; height: 36px; line-height: 34px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; color: #a0a4a8; font-size: 14px; }
.ci-mic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-2); color: #fff; flex: none; }
.ci-mic svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .app-rec > i, .app-rec-wave b, .msg.typing i { animation: none; } }
/* the Agents screen: which agent the watch's button talks to */
.ag-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 15px; background: #fff; border: 1px solid rgba(0, 0, 0, .055); }
.ag-row.on { border-color: rgba(210, 56, 43, .35); box-shadow: 0 6px 16px -10px rgba(180, 40, 30, .5); }
.ag-row > img, .ag-plus { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; }
.ag-row > img:not(.brand-icon) { padding: 5px; background: #F4F2EE; }
.ag-row .brand-icon { box-shadow: none; }
.ag-plus { display: grid; place-items: center; background: #F1EFEB; color: #6b7075; font-size: 18px; }
.ag-row b { display: block; font-size: 13px; font-weight: 600; }
.ag-row div span { display: block; font-size: 10.5px; color: #8a8e92; }
.ag-row em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.ag-on { background: #FBE5E1; color: #B02A21; }
.ag-link { background: #F1F0EE; color: #3a3d40; }
.ag-row.add { border-style: dashed; background: transparent; }
.app-agents .app-scroll { gap: 6px; }
