/* ==========================================================================
   The MacBook's screen: a 1512×982 pt macOS desktop (the 14-inch M5's default resolution)
   in dark mode, with Calico's panel. stage3d.js maps this element onto the 3D display.
   App states are classes on .mac set by app.js; every change is a transition.
   ========================================================================== */

.mac {
  --tint: 0.74;
  --e: cubic-bezier(0.3, 0.7, 0.2, 1);
  width: 1512px; height: 982px; overflow: hidden; position: absolute; left: 0; top: 0;
  border-radius: 13px 13px 0 0; background: #000; color: #fff;
  font: 500 13px/1.3 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; pointer-events: none !important; user-select: none;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: none;
}
.mac.mounted { display: block; }
.mac svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mac .wall { position: absolute; inset: 0; background: #0c1740 url("/assets/wall-dark.svg") center / cover; }

/* menu bar + notch */
.mb { position: absolute; left: 0; right: 0; top: 0; height: 33px; display: flex; align-items: center; gap: 19px; padding: 0 18px; font-size: 13.5px; font-weight: 500; background: rgba(6, 10, 30, 0.28); z-index: 5; }
.mb b { font-weight: 700; }
.mb-apple { width: 14px !important; height: 17px !important; }
.mb-grow { flex: 1; }
.mb-ic { width: 17px !important; height: 17px !important; }
.mb-batt { width: 25px; height: 12px; border-radius: 3.5px; border: 1.2px solid rgba(255,255,255,0.6); padding: 1.5px; position: relative; }
.mb-batt i { display: block; height: 100%; width: 74%; border-radius: 1.5px; background: #fff; }
.mb-cat { width: 30px; height: 23px; border-radius: 6px; display: grid; place-items: center; transition: background-color 0.25s; }
.mb-cat img { width: 19px; height: 15px; filter: invert(1); }
.mac.cat-on .mb-cat { background: rgba(255,255,255,0.28); }
.mb-clock { white-space: nowrap; }
.notch { position: absolute; left: 50%; top: 0; width: 196px; height: 33px; margin-left: -98px; border-radius: 0 0 12px 12px; background: #000; z-index: 6; }

/* ---------- browser windows ---------- */
.wins { position: absolute; inset: 0; z-index: 2; }
.bw { position: absolute; border-radius: 12px; overflow: hidden; background: #1c1d22; box-shadow: 0 28px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.09); opacity: 0; transform: translateY(26px) scale(0.97); transition: opacity 0.7s var(--e), transform 0.9s var(--e), filter 0.6s; }
.bw-canvas { left: 86px; top: 84px; width: 770px; height: 470px; transition-delay: 0s; }
.bw-genesis { left: 500px; top: 196px; width: 700px; height: 420px; transition-delay: 0.12s; }
.bw-gmail { left: 236px; top: 396px; width: 790px; height: 430px; transition-delay: 0.24s; }
.mac.wins-on .bw { opacity: 1; transform: none; }
.mac.wins-dim .bw { filter: brightness(0.55) saturate(0.7); }
.mac.wins-min .bw { opacity: 0; transform: translateY(380px) scale(0.2); transition: opacity 0.6s ease 0.2s, transform 0.8s cubic-bezier(0.5, 0, 0.75, 0.4); }
.mac.wins-min .bw-genesis { transition-delay: 0.08s, 0.08s; } .mac.wins-min .bw-gmail { transition-delay: 0.16s, 0.16s; }
.bw-bar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #2a2b31; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tl { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.tl:nth-child(2) { background: #febc2e; } .tl:nth-child(3) { background: #28c840; }
.bw-tab { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding: 5px 14px 5px 10px; border-radius: 8px; background: rgba(255,255,255,0.09); font-size: 12.5px; font-weight: 600; }
.bw-tab img { width: 16px; height: 16px; object-fit: contain; }
.bw-url { margin-left: auto; margin-right: auto; padding: 5px 48px; border-radius: 8px; background: rgba(255,255,255,0.06); font-size: 12px; color: rgba(255,255,255,0.55); }
.bw-body { position: absolute; left: 0; right: 0; top: 42px; bottom: 0; }
/* Canvas-like dashboard */
.cv { display: flex; background: #f6f7f8; color: #2d3b45; }
.cv-nav { width: 66px; background: #394b58; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 16px; }
.cv-nav img { width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: #fff; }
.cv-nav i { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.18); }
.cv-main { flex: 1; padding: 22px 26px; }
.cv-h { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: #2d3b45; }
.cv-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e4e7ea; }
.cv-row i { width: 30px; height: 30px; border-radius: 7px; background: var(--c); flex: none; }
.cv-row b { display: block; font-size: 14px; font-weight: 650; color: #2d3b45; }
.cv-row small { font-size: 12px; color: #6b7780; }
/* Genesis-like gradebook */
.gn { background: #f3f5f8; color: #22303d; }
.gn-top { display: flex; align-items: center; gap: 22px; padding: 12px 20px; background: #2b6cb3; color: #fff; font-size: 15px; font-weight: 700; }
.gn-top img { width: 28px; height: 28px; }
.gn-top span { font-weight: 500; opacity: 0.7; }
.gn-row { display: flex; align-items: center; gap: 14px; margin: 0 20px; padding: 14px 0; border-bottom: 1px solid #dde3ea; font-size: 14.5px; }
.gn-row b { width: 260px; font-weight: 650; }
.gn-row span { color: #6a7785; }
.gn-row em { margin-left: auto; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.gn-row em.low { color: #d93025; }
/* Gmail-like inbox */
.gmb { background: #fff; color: #202124; padding: 14px 18px; }
.gm-search { height: 40px; border-radius: 99px; background: #eaf1fb; display: flex; align-items: center; padding: 0 18px; font-size: 13.5px; color: #5f6368; margin-bottom: 8px; }
.gm-row { display: flex; gap: 18px; padding: 12px 6px; border-bottom: 1px solid #f1f3f4; font-size: 13.5px; color: #5f6368; }
.gm-row b { width: 130px; flex: none; font-weight: 500; color: #202124; }
.gm-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-row.u b, .gm-row.u span { font-weight: 700; color: #202124; }

/* ---------- Dock ---------- */
.dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; height: 70px; padding: 0 10px; border-radius: 24px; background: rgba(60, 62, 80, 0.38); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); z-index: 3; }
.dock { transition: transform 0.7s var(--e), opacity 0.5s; }
.mac.dock-off .dock { transform: translateX(-50%) translateY(110px); opacity: 0; }
.dk { position: relative; width: 52px; height: 52px; border-radius: 22.5%; display: grid; place-items: center; background: #fff; flex: none; }
.dk img { width: 66%; height: 66%; object-fit: contain; }
.dk img.gm { height: 52%; }
.dk b { position: absolute; right: -5px; top: -5px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #e0301e; color: #fff; font-size: 12px; font-weight: 700; transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.mac.badges .dk b { transform: scale(1); }
.mac.badges .dk-app:nth-child(4) b { transition-delay: 0.15s; } .mac.badges .dk-app:nth-child(5) b { transition-delay: 0.3s; }
.dk-finder { background: linear-gradient(90deg, #2d8cff 0 50%, #e8edf4 50% 100%); }
.dk-finder i { width: 34px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cg fill='none' stroke='%231d2a3a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M10 6v6M24 6v6M7 19c6 6 14 6 20 0'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.dk-safari { background: radial-gradient(circle, #fff 0 22%, #2f8cff 23% 64%, #e8f1ff 65%); }
.dk-safari i { width: 4px; height: 30px; border-radius: 2px; background: linear-gradient(#ff3b30 50%, #fff 50%); transform: rotate(45deg); }
.dk-cal { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1d1d1f; font-size: 24px; font-weight: 400; line-height: 1; }
.dk-cal small { font-size: 11px; font-weight: 700; color: #e0301e; margin-bottom: 1px; }
.dk-sep { width: 1px; height: 46px; background: rgba(255,255,255,0.2); }
.dk-calico { background: transparent; }
.dk-calico img { width: 100%; height: 100%; }

/* ---------- notification banners ---------- */
.banners { position: absolute; top: 46px; right: 12px; width: 362px; z-index: 8; }
.bn { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 11px; padding: 12px 14px; border-radius: 20px; background: rgba(44, 45, 52, 0.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 14px 34px rgba(0,0,0,0.45); opacity: 0; transform: translate3d(390px, 0, 0); transition: transform 0.85s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.5s, top 0.7s var(--e); }
.bn.in { opacity: 1; transform: none; }
.bn.out { opacity: 0; transform: translate3d(0, -12px, 0) scale(0.96); }
.bn .bi { width: 38px; height: 38px; border-radius: 22.5%; flex: none; display: grid; place-items: center; background: #fff; overflow: hidden; }
.bn .bi img { width: 66%; height: 66%; object-fit: contain; }
.bn .bi img.full { width: 100%; height: 100%; }
.bn .bi img.gm { height: 52%; }
.bn .bt { flex: 1; min-width: 0; }
.bn .top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); }
.bn b { display: block; margin-top: 1px; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn .rule { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 650; color: #fff; background: rgba(255,255,255,0.14); }

/* ---------- Calico's panel ---------- */
.cp { position: absolute; top: 44px; right: 12px; bottom: 12px; width: 356px; z-index: 6; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04) 42%, rgba(255,255,255,0.07)), rgba(20, 22, 34, var(--tint));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.28), 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0; transform: translate3d(46px, 0, 0); transition: opacity 0.45s ease, transform 0.75s var(--e), background-color 0.6s; }
.mac.panel-on .cp { opacity: 1; transform: none; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 12px; }
.cp-head small { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); }
.cp-head b { display: block; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.cp-head span { font-size: 12px; color: rgba(255,255,255,0.55); }
.cp-head em { font-style: normal; font-weight: 650; color: #9cc6ff; background: rgba(10,132,255,0.25); padding: 1px 7px; border-radius: 6px; margin-left: 4px; }
.cp-acts { display: flex; gap: 6px; }
.cp-acts i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); font-size: 14px; }
.cp-view { position: absolute; left: 0; right: 0; top: 92px; bottom: 66px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 16px), transparent); }
.cp-list { padding: 4px 10px 40px; transform: translate3d(0, calc(var(--scroll, 0) * -1px), 0); transition: transform 1.2s var(--e); }
.mac.autoscroll .cp-list { transition: none; animation: autoscroll 16s ease-in-out 0.6s infinite; }
@keyframes autoscroll { 0%, 6% { transform: translate3d(0, 0, 0); } 46%, 56% { transform: translate3d(0, var(--maxscroll), 0); } 96%, 100% { transform: translate3d(0, 0, 0); } }

.cc { position: relative; margin-bottom: 10px; padding: 13px 14px; border-radius: 19px; background: rgba(255,255,255,0.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.1); transition: opacity 0.7s ease, transform 0.8s var(--e); }
.mac.has-focus .cc { opacity: 0.22; }
.mac.has-focus .cc.is-focus { opacity: 1; }
.ch { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; font-weight: 650; }
.ch .sym { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 12.5px; }
.ch .sym svg.i { stroke-width: 2.4; }
.ch em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 4px; }

/* Right now */
.now-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.now-row small { display: block; font-size: 11px; font-weight: 700; color: #ff9f0a; }
.now-row b { display: block; font-size: 15px; font-weight: 650; }
.now-row span { font-size: 12px; color: rgba(255,255,255,0.55); }
.now-count { text-align: right; }
.now-count b { font-size: 31px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.now-count span { display: block; font-size: 11px; }
.now-bar { height: 5px; margin-top: 11px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.now-bar i { display: block; height: 100%; width: 56%; border-radius: inherit; background: #ff9f0a; transition: width 1s linear; }
.now-days { display: flex; gap: 4px; margin-top: 11px; }
.now-days li { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07); transition: background-color 0.5s, color 0.5s; }
.now-days li.on { color: #fff; background: #ff9f0a; }

/* Week ahead */
.wk { display: flex; justify-content: space-between; }
.wk li { width: 40px; text-align: center; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); }
.wk b { display: grid; place-items: center; width: 30px; height: 30px; margin: 3px auto 0; border-radius: 50%; font-size: 13.5px; color: #fff; transition: background-color 0.45s, transform 0.45s var(--e); }
.wk li.on b { background: #ff453a; }
.wk-list { margin-top: 9px; min-height: 52px; }
.wk-list li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 12px; animation: wkin 0.5s var(--e) both; }
.wk-list li:nth-child(2) { animation-delay: 0.06s; }
.wk-list li i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.wk-list li span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-list li em { font-style: normal; font-size: 11px; color: rgba(255,255,255,0.5); }
@keyframes wkin { from { opacity: 0; transform: translateY(6px); } }

/* Assignments */
.grp { display: flex; gap: 6px; margin: 6px 2px 4px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); }
.grp.is-today { color: #ff9f0a; }
.asg { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.ring { width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(#ffcc00 calc(var(--p) * 1%), rgba(255,255,255,0.13) 0); -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7px); mask: radial-gradient(circle, transparent 6.5px, #000 7px); }
.asg div { flex: 1; min-width: 0; }
.asg b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asg small { font-size: 11px; color: rgba(255,255,255,0.5); }
.asg time { font-size: 11px; color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* To-do */
.td-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 12.5px; }
.td-row .box { width: 19px; height: 19px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px #0a84ff; color: transparent; font-size: 11px; transition: background-color 0.35s, color 0.35s; }
.td-row .box svg.i { stroke-width: 3.2; }
.td-row span { flex: 1; transition: color 0.4s; }
.td-row small { font-size: 11px; color: rgba(255,255,255,0.5); }
.td-row.done .box { background: #0a84ff; color: #fff; }
.td-row.done span { color: rgba(255,255,255,0.4); text-decoration: line-through; }

/* Important dates, clubs */
.dt-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.dt-row div { flex: 1; }
.dt-row b { display: block; font-size: 12.5px; font-weight: 600; }
.dt-row small { font-size: 11px; color: rgba(255,255,255,0.5); }
.dt-row time { font-size: 11px; color: rgba(255,255,255,0.65); }
.kind { padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.kind.quiz { color: #ffd59a; background: rgba(255,159,10,0.25); }
.kind.test { color: #ffc0bb; background: rgba(255,69,58,0.28); }

/* School mail: rows move to their ranked places */
.ai-sorted svg.i { width: 11px; height: 11px; }
.mlist { position: relative; height: 240px; }
.ml { position: absolute; left: 0; right: 0; top: calc(var(--slot, 0) * 48px); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 2px; transition: top 0.95s var(--e), opacity 0.6s; }
.ml > i { width: 4px; height: 30px; border-radius: 99px; background: var(--c, rgba(255,255,255,0.2)); flex: none; }
.ml div { flex: 1; min-width: 0; }
.ml b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml small { font-size: 11px; color: rgba(255,255,255,0.5); }
.ml.low { opacity: 0.55; }
.chip { flex: none; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 650; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); }
.chip.red { color: #ffd0cc; background: rgba(255,69,58,0.3); }
.chip.violet { color: #e4daff; background: rgba(154,107,255,0.32); }
.chip.blue { color: #d3e6ff; background: rgba(10,132,255,0.3); }
.mail-toast { display: flex; align-items: center; gap: 7px; width: max-content; margin-top: 4px; padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 650; color: #fff1b8; background: rgba(255,204,0,0.18); opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.6s var(--e); }
.mac.mail-added .mail-toast { opacity: 1; transform: none; }

/* Grades, GPA */
.gr { padding: 5px 2px 7px; }
.gr div { display: flex; justify-content: space-between; font-size: 12px; }
.gr b { font-weight: 600; }
.gr span { color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.gr > i { display: block; height: 6px; margin-top: 6px; border-radius: 99px; width: var(--w); background: #30d158; transform-origin: 0 50%; }
.gr.low > i { background: #ff9f0a; }
.gr.low span { color: #ffb36b; }
.mac.grades-play .gr > i { animation: grbar 1.4s var(--e) both; }
.mac.grades-play .gr:nth-child(3) > i { animation-delay: 0.1s; } .mac.grades-play .gr:nth-child(4) > i { animation-delay: 0.2s; } .mac.grades-play .gr:nth-child(5) > i { animation-delay: 0.3s; }
@keyframes grbar { from { transform: scaleX(0); } }
.gpa-row { display: flex; align-items: baseline; gap: 10px; }
.gpa-row b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.gpa-row span { font-size: 12px; font-weight: 650; color: #30d158; }
.spark { display: block; width: 100%; height: 46px; margin-top: 8px; }
.spark .ar { fill: rgba(191,90,242,0.18); }
.spark .ln { fill: none; stroke: #bf5af2; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mac.grades-play .spark .ln { animation: draw 2s var(--e) 0.4s both; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* Tardies */
.tdy-row { display: flex; align-items: center; gap: 12px; }
.tdy-n b { display: block; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.tdy-n span { font-size: 11px; color: rgba(255,255,255,0.55); }
.tdy-row p { font-size: 12px; color: rgba(255,255,255,0.7); }
.tdy-meter { position: relative; height: 8px; margin: 14px 2px 22px; border-radius: 99px; background: rgba(255,255,255,0.12); }
.tdy-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 10.5%; border-radius: inherit; background: #ffcc00; transform-origin: 0 50%; }
.mac.tardy-play .tdy-fill { animation: grbar 1.4s var(--e) 0.3s both; }
.mark { position: absolute; left: var(--x); top: -4px; width: 2px; height: 16px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,0.55); }
.mark em { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.55); white-space: nowrap; }
.mark.end em { left: auto; right: 0; transform: none; }

.note { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.8); }

/* Edit mode: wobble and the minus badges */
.mac.editing .cc { animation: wob 0.32s ease-in-out infinite alternate; }
.mac.editing .cc:nth-child(even) { animation-delay: -0.16s; }
.mac.editing .cc::before { content: ""; position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: #8e8e93 linear-gradient(#fff, #fff) center / 9px 2px no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
@keyframes wob { from { rotate: -0.55deg; } to { rotate: 0.55deg; } }

/* ---------- Search or Ask ---------- */
.cp-ask { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.pill { position: relative; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 99px; background: linear-gradient(90deg, rgba(0,0,0,0.86), rgba(0,0,0,0.38)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); font-size: 14px; }
.pill .spark { width: 16px !important; height: 16px !important; color: #e3dcff; }
.pill .field { flex: 1; display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.pill .ph { color: rgba(255,255,255,0.5); }
.pill .caret { width: 2px; height: 18px; margin-left: 1px; border-radius: 2px; background: #c9b8ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill .go { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(255,255,255,0.14); transition: background-color 0.3s, color 0.3s; }
.mac.typed .pill .go { background: #fff; color: #000; }
.sheet { position: absolute; left: 0; right: 0; bottom: 56px; padding: 15px 16px 13px; border-radius: 22px; background: rgba(32, 34, 46, 0.97); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 18px 40px rgba(0,0,0,0.5); transform-origin: 50% 100%; opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 0.3s, transform 0.5s var(--e); }
.mac.ask-open .sheet { opacity: 1; transform: none; transition: opacity 0.35s, transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.04); }
.sh-title { font-size: 14px; font-weight: 700; }
.modes { display: flex; gap: 5px; margin: 10px 0 12px; }
.modes span { padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.07); transition: background-color 0.3s, color 0.3s; }
.modes span.on { color: #fff; background: rgba(255,255,255,0.2); }
.res li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 6px; border-radius: 13px; background: rgba(255,255,255,0.07); font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.6s var(--e); }
.res li.in { opacity: 1; transform: none; }
.res li .rs { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; }
.res li b { display: block; font-weight: 600; }
.res li small { font-size: 11px; color: rgba(255,255,255,0.5); }
.res li em { margin-left: auto; font-style: normal; font-size: 11px; color: rgba(255,255,255,0.7); }
.thinking { display: none; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); }
.mac.think .thinking { display: flex; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #c9b8ff; animation: dotb 1.1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: 0.15s; } .thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotb { 0%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
.answer { font-size: 13.5px; line-height: 1.5; }
.answer span { animation: letter 0.45s ease both; }
@keyframes letter { from { opacity: 0; } }
.sh-foot { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.4); }

/* ---------- Look settings ---------- */
.look { position: absolute; left: 700px; top: 300px; width: 400px; padding-bottom: 18px; border-radius: 14px; background: rgba(38, 39, 47, 0.97); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 26px 60px rgba(0,0,0,0.5); z-index: 7; opacity: 0; transform: translateY(20px) scale(0.96); transition: opacity 0.5s, transform 0.8s var(--e); }
.mac.look-on .look { opacity: 1; transform: none; }
.look-bar { position: relative; display: flex; gap: 8px; align-items: center; height: 44px; padding: 0 14px; }
.look-bar b { position: absolute; left: 0; right: 0; text-align: center; font-size: 13.5px; font-weight: 700; }
.look-row { display: flex; justify-content: space-between; align-items: center; margin: 12px 20px 0; font-size: 13.5px; font-weight: 600; }
.look-slider { position: relative; height: 6px; margin: 16px 22px 0; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,0.3), #5e5ce6); }
.look-thumb { position: absolute; top: 50%; left: calc(4% + (var(--tint) - 0.2) / 0.7 * 92%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.look-ends { display: flex; justify-content: space-between; margin: 10px 20px 0; font-size: 12px; color: rgba(255,255,255,0.5); }
.seg { display: flex; padding: 2px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.seg i { font-style: normal; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7); }
.seg i.on { background: rgba(255,255,255,0.22); color: #fff; }
@property --tint { syntax: '<number>'; inherits: true; initial-value: 0.74; }
.mac.look-on { animation: tintcycle 7s ease-in-out 1s infinite; }
@keyframes tintcycle { 0%, 100% { --tint: 0.74; } 40%, 50% { --tint: 0.22; } 85% { --tint: 0.9; } }

/* ---------- hello ---------- */
.hello { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 4; opacity: 0; transform: scale(0.92); transition: opacity 0.9s ease, transform 1.2s var(--e); }
.hello img { width: 150px; height: 150px; border-radius: 22.5%; box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.hello b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.hello span { font-size: 18px; color: rgba(255,255,255,0.7); }
.mac.hello-on .hello { opacity: 1; transform: none; }

/* ---------- cursor, glare ---------- */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 26px; z-index: 9; fill: #000; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); opacity: 0; transform: translate(var(--x0, 700px), var(--y0, 520px)); }
.mac.cursor-go .cursor { opacity: 1; transform: translate(var(--x1, 1200px), var(--y1, 8px)); transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s; }
.mac.cursor-go.cursor-out .cursor { opacity: 0; transition: opacity 0.6s 0.4s; }
.glare { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0) 46%); }
