/* App fragments: the Flutter widgets of eMeterVN rebuilt in HTML.
   Every rule here renders only inside an element marked data-ui, so it keeps the app's own
   conventions (card shadows, the JetBrains Mono odometer, the 1px divider in the login card). */

@font-face { font-family: "JetBrainsMono"; src: url("fonts/JetBrainsMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

.a-screen { width: 390px; height: 844px; position: relative; overflow: hidden; border-radius: 34px; background: var(--ground); color: var(--ink); font-family: "Lexend", sans-serif; font-size: 14px; line-height: 1.3; text-align: left; }
.a-screen *, .a-card * { letter-spacing: 0; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.a-status { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 13px; font-weight: 500; }
.a-status .sig { display: flex; gap: 6px; align-items: center; }
.a-status .bat { width: 22px; height: 11px; border-radius: 3px; background: currentColor; opacity: .85; }
.a-status .wifi { width: 14px; height: 11px; background: currentColor; clip-path: polygon(50% 100%, 0 25%, 20% 0, 80% 0, 100% 25%); opacity: .85; }
.a-pad { padding: 12px 20px 0; }
.a-shadow { box-shadow: 0 10px 30px -18px rgba(17,20,24,.12), 0 10px 30px -18px rgba(17,20,24,.12); }
.a-card { background: var(--surface); border-radius: 28px; box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }

/* home */
.a-topbar { display: flex; align-items: center; gap: 10px; }
.a-datepill { height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 99px; background: var(--surface); font-size: 14.5px; box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); white-space: nowrap; }
.a-datepill .ic { width: 18px; height: 18px; }
.a-search { flex: 1; height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-radius: 18px; background: var(--surface); color: var(--muted); font-size: 14.5px; box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }
.a-search .ic { width: 20px; height: 20px; }
.a-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }
.a-circle .ic { width: 22px; height: 22px; }
.a-greet { margin: 22px 0 0; display: block; font-size: 31px; line-height: 1.14; letter-spacing: -1px !important; }
.a-greet p { margin: 0; letter-spacing: -1px; }
.a-greet .g1 { color: var(--muted-soft); }
.a-greet b { font-weight: 500; }
.a-stats { display: flex; gap: 10px; margin-top: 18px; height: 138px; }
.a-stat { flex: none; width: 124px; height: 138px; padding: 14px; border-radius: 26px; background: var(--surface); display: flex; flex-direction: column; box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }
.a-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.a-dot .ic { width: 21px; height: 21px; }
.a-stat .lbl { margin-top: auto; font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.a-stat .val { font-size: 21px; font-weight: 500; letter-spacing: -.4px; margin-top: 2px; }
.a-seg { display: inline-flex; margin-top: 16px; padding: 5px; border-radius: 99px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }
.a-seg span { height: 42px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border-radius: 99px; color: var(--muted); font-size: 14px; border: 1px solid transparent; }
.a-seg span.on { background: var(--surface-alt); border-color: var(--line); color: var(--ink); }
.a-seg .ic { width: 18px; height: 18px; }
.a-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.a-act { min-height: 170px; padding: 18px 16px 16px; border-radius: 28px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); display: flex; flex-direction: column; }
.a-act .t { font-size: 17px; font-weight: 500; }
.a-act .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-act .mid { height: 72px; display: grid; place-items: center; color: var(--muted); }
.a-act .mid .ic { width: 28px; height: 28px; }
.a-act .f { font-size: 13.5px; line-height: 1.3; }
.a-act.dark { background: var(--ink); color: #fff; }
.a-act.dark .s { color: #B9C0C9; }
.a-act.dark .mid span { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.a-sync { margin-top: 14px; padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }
.a-sync .row { display: flex; gap: 16px; align-items: flex-start; }
.a-sync .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(37,99,235,.12); color: #2563EB; flex: none; }
.a-sync .tt { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.a-sync .tt span:first-child { flex: 1; }
.a-sync .badge { padding: 6px 10px; border-radius: 99px; background: #2563EB; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.a-sync .msg { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.a-progress { margin-top: 20px; height: 6px; border-radius: 99px; background: #E8EDF5; overflow: hidden; }
.a-progress i { display: block; height: 100%; width: 87.5%; background: #2563EB; border-radius: 99px; }
.a-metrics { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; }
.a-metrics span { display: inline-flex; align-items: center; gap: 6px; }
.a-metrics span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.a-nav { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 74px; padding: 0 10px; border-radius: 99px; background: var(--surface); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; box-shadow: 0 18px 34px -16px rgba(17,20,24,.35); color: #3B424C; }
.a-nav .on { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }

/* camera */
.a-cam { background: #000; color: #fff; }
.a-cam .feed { position: absolute; inset: 0; background-color: #000; background-repeat: no-repeat; }
.a-cam .a-status { position: relative; z-index: 2; color: #fff; }
.a-hud { position: absolute; z-index: 2; top: 48px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; }
.a-glass { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: #fff; flex: none; }
.a-hud .pill { margin: 0 auto; min-height: 44px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; border-radius: 99px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.a-hud .pill .ic { width: 18px; height: 18px; }
.a-hud .spacer { width: 58px; flex: none; }
.a-guide { position: absolute; z-index: 2; left: 50%; top: calc(42% - 70px); width: 320px; height: 140px; transform: translateX(-50%); }
.a-guide i { position: absolute; width: 24px; height: 24px; border: 0 solid #fff; }
.a-guide i:nth-child(1) { left: 0; top: 0; border-left-width: 3.5px; border-top-width: 3.5px; border-top-left-radius: 3px; }
.a-guide i:nth-child(2) { right: 0; top: 0; border-right-width: 3.5px; border-top-width: 3.5px; border-top-right-radius: 3px; }
.a-guide i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3.5px; border-bottom-width: 3.5px; border-bottom-left-radius: 3px; }
.a-guide i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3.5px; border-bottom-width: 3.5px; border-bottom-right-radius: 3px; }
.a-guide b { position: absolute; left: 20px; right: 20px; top: 50%; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 10px, transparent 10px 16px); }
.a-guide .scan { position: absolute; left: 6px; right: 6px; height: 3px; top: 10%; border-radius: 3px; background: var(--detect); opacity: .9; animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 12%; } 50% { top: 84%; } }
.a-camctl { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px 28px 36px; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.55); }
.a-ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.7); width: 70px; }
.a-shutter { width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; padding: 6px; }
.a-shutter::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }

/* recognition dialog */
.a-dim { position: absolute; inset: 0; background: rgba(0,0,0,.54); z-index: 3; }
.a-dialog { position: absolute; z-index: 4; left: 25px; top: 50%; transform: translateY(-50%); width: 340px; padding: 20px 20px 12px; border-radius: 26px; background: rgba(14,17,22,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; }
.a-dialog .tt { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.a-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; color: #9BA6B3; }
.a-step .st { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px #3A4450; display: grid; place-items: center; position: relative; }
.a-step.run { color: #fff; }
.a-step.run .st { box-shadow: none; }
.a-step.run .st::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2.5px solid var(--detect); border-right-color: transparent; animation: spin .8s linear infinite; }
.a-step.done { color: #fff; }
.a-step.done .st { box-shadow: none; background: var(--green); }
.a-step .st .ic { width: 17px; height: 17px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease-spring); }
.a-step.done .st .ic { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* review */
.a-head { display: flex; align-items: center; gap: 12px; }
.a-head .ttl { flex: 1; font-size: 20px; font-weight: 500; letter-spacing: -.4px; }
.a-head .stp { font-size: 13px; color: var(--muted); }
.a-readcard { margin-top: 16px; padding: 16px; }
.a-crop { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--crop-bg); overflow: hidden; display: flex; align-items: center; padding: 30px 10px 10px; }
.a-crop .lab { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #C8D0DA; }
.a-crop .lab .ic { width: 15px; height: 15px; }
.a-crop .img { width: 100%; aspect-ratio: var(--ar, 3.6); background-repeat: no-repeat; border-radius: 2px; }
.a-res { text-align: center; margin-top: 14px; }
.a-res .k { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
/* FittedBox: eight cells, the dot and m³ scaled down to the card width, as the app does */
.a-res .odo { --h: 40px; }
.a-meter { margin-top: 12px; padding: 18px; }
.a-meter .k { font-size: 13.5px; color: var(--muted); }
.a-meter .who { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.a-ini { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-alt); display: grid; place-items: center; font-weight: 500; flex: none; }
.a-meter .nm { font-size: 15.5px; font-weight: 500; }
.a-meter .ad { font-size: 13px; color: var(--muted); line-height: 1.35; }
.a-meter .chg { font-size: 14px; text-decoration: underline; font-weight: 500; padding: 0 8px; }
.a-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.a-lpill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; background: var(--surface-alt); color: var(--muted); font-size: 12px; }
.a-lpill .ic { width: 14px; height: 14px; }
.a-q { margin-top: 18px; font-size: 18px; font-weight: 500; line-height: 1.3; padding: 0 2px; }
.a-btns { display: grid; grid-template-columns: 2fr 3fr; gap: 10px; margin-top: 12px; }
.a-ob, .a-fb { height: 52px; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; }
.a-ob { box-shadow: inset 0 0 0 1.5px var(--line); }
.a-fb { background: var(--ink); color: #fff; }
.a-ob .ic, .a-fb .ic { width: 20px; height: 20px; }

/* odometer (MeterOdometer) */
.odo { --h: 52px; display: inline-flex; align-items: flex-end; gap: calc(var(--h) * .1); }
.odo .cell { position: relative; width: calc(var(--h) * .7); height: var(--h); border-radius: calc(var(--h) * .19); background: var(--meter-black); overflow: hidden; }
.odo .cell.red { background: var(--meter-red); }
.odo .reel { position: absolute; left: 0; right: 0; top: 0; transition: transform .9s cubic-bezier(.33, 1, .68, 1); }
.odo .reel::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0"; white-space: pre; display: block; text-align: center; line-height: var(--h); font-family: "JetBrainsMono", ui-monospace, monospace; font-weight: 700; font-size: calc(var(--h) * .58); color: #fff; }
.odo .dot::before { content: "."; } .odo .dot { font-family: "JetBrainsMono", ui-monospace, monospace; font-weight: 700; font-size: calc(var(--h) * .58); line-height: 1; color: var(--ink); }
.odo .unit { font-size: calc(var(--h) * .3); color: var(--muted); margin-left: calc(var(--h) * .04); }
.on-ink .odo .dot { color: #fff; }
.on-ink .odo .unit { color: #C8D0DA; }

/* picker sheet */
.a-sheetbg { position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 96px; background: var(--surface); border-radius: 32px 32px 0 0; display: flex; flex-direction: column; }
.a-handle { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; }
.a-sheet .hd { display: flex; align-items: center; padding: 10px 8px 4px 20px; }
.a-sheet .hd .t { flex: 1; font-size: 22px; font-weight: 500; letter-spacing: -.4px; }
.a-sheet .hd .x { width: 48px; height: 48px; display: grid; place-items: center; }
.a-loc { display: flex; align-items: center; gap: 10px; padding: 10px 20px 8px; font-size: 12px; color: var(--muted); }
.a-loc .ic { width: 20px; height: 20px; color: var(--green); }
.a-loc .rf { font-size: 14px; font-weight: 500; color: var(--ink); padding: 8px; white-space: nowrap; }
.a-list { padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.a-item { display: flex; gap: 16px; align-items: flex-start; padding: 12px 4px 12px 14px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s; }
.a-item.sel { background: var(--surface-alt); box-shadow: inset 0 0 0 1.5px var(--ink); }
.a-item .ini { width: 42px; height: 42px; border-radius: 14px; background: var(--field); display: grid; place-items: center; font-weight: 500; flex: none; font-size: 14px; }
.a-item .ini.pend { background: var(--warn-bg); }
.a-item .tx { flex: 1; min-width: 0; }
.a-item .nm { font-size: 16px; font-weight: 500; }
.a-item .sb { font-size: 14px; color: var(--muted); line-height: 1.4; }
.a-item .more { width: 40px; display: grid; place-items: center; color: var(--muted); padding-top: 8px; }
.a-addbtn { margin: auto 20px 20px; height: 48px; border-radius: 99px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; }

/* login (splash) */
.a-login { width: 440px; padding: 36px 20px 24px; border-radius: 34px; background: var(--ground); box-shadow: 0 30px 60px -20px rgba(10, 40, 90, .45); color: var(--ink); font-family: "Lexend", sans-serif; text-align: center; font-size: 14px; }
.a-login .logo { width: 96px; height: 96px; padding: 12px; margin: 0 auto; border-radius: 30px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(17,20,24,.25); }
.a-login .logo .mascot { width: 72px; height: 72px; }
.a-login .nm { margin-top: 16px; font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.a-login .tg { margin-top: 4px; color: var(--muted); }
.a-login .card { margin-top: 20px; padding: 24px 20px; border-radius: 28px; background: var(--surface); text-align: left; }
.a-login .ft { margin-top: 16px; font-size: 11px; color: rgba(0,0,0,.38); font-weight: 500; }
.a-form[hidden] { display: none; }
.a-form .ttl { text-align: center; font-weight: 800; font-size: 16px; letter-spacing: 1px; margin-bottom: 16px; }
.a-in { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 30px; background: rgba(17,20,24,.06); }
.a-in + .a-in { margin-top: 12px; }
.a-in .ic { width: 20px; height: 20px; }
.a-in input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.a-in input::placeholder { color: var(--muted); }
.a-in:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.a-rm { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: rgba(0,0,0,.54); }
.a-rm label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.a-rm input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.a-rm a { color: var(--ink); font-weight: 600; text-decoration: none; }
.a-btn { width: 100%; height: 48px; margin-top: 16px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px; cursor: pointer; transition: transform .2s var(--ease); }
.a-btn:active { transform: scale(.98); }
.a-or { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: rgba(0,0,0,.38); font-weight: 600; }
.a-or::before, .a-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.a-gbtn, .a-ebtn { width: 100%; height: 48px; margin-top: 12px; border: 0; border-radius: 99px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; }
.a-gbtn b { color: #4285F4; font-size: 18px; }
.a-reg { margin-top: 16px; text-align: center; font-size: 13px; color: rgba(0,0,0,.54); }
.a-reg a { color: var(--ink); font-weight: 600; text-decoration: none; }
.a-ebtn { height: 46px; margin-top: 20px; }
.a-ebtn .ic { width: 20px; height: 20px; }
.a-emp .back { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.a-emp .zt { margin-top: 16px; font-size: 20px; font-weight: 500; }
.a-emp .zd { margin: 6px 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.a-emp .a-in { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.a-emp .a-in:focus-within { box-shadow: inset 0 0 0 1.6px var(--ink); }
.a-emp .lnk { display: block; width: 100%; margin-top: 10px; border: 0; background: none; font-size: 14px; font-weight: 500; padding: 12px; cursor: pointer; }

/* Feature tiles: whole app components at their own proportions (nothing cropped). */
@media (min-width: 1281px) { .fx-z { zoom: 1.2; } }

.fx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 15px; white-space: nowrap; }
.fx-pill .ic { width: 20px; height: 20px; color: var(--ink); animation: spin 6s linear infinite; }

.fx-sync { margin: 0; width: min(440px, 100%); box-shadow: 0 10px 30px -18px rgba(17,20,24,.35); }
.fx-sync .a-progress .fill { width: 87.5%; animation: fill-bar 5s var(--ease) infinite; }
@keyframes fill-bar { 0% { width: 40%; } 55%, 100% { width: 87.5%; } }

.fx-edit .q { font-size: 18px; font-weight: 500; line-height: 1.3; }
.fx-edit { width: min(100%, 300px); }
.fx-edit .box { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.fx-edit .num { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; font-family: "JetBrainsMono", ui-monospace, monospace; font-weight: 700; font-size: 26px; color: var(--ink); }
.fx-edit .num::before { content: attr(data-shown); }
.fx-edit .num::after { content: ""; width: 2px; height: 28px; margin-left: 2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.fx-edit .mic { position: relative; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.fx-edit .mic .ic { width: 24px; height: 24px; }
.fx-edit .mic::after { content: ""; position: absolute; inset: -4px; border-radius: 19px; box-shadow: 0 0 0 2px #fff; opacity: 0; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { opacity: .55; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.22); } }

.fx-act { width: 220px; min-height: 170px; }
.fx-act .mid .ic { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

.fx-week { width: min(100%, 440px); }
.fx-week .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 500; }
.fx-week .bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 12px; }
.fx-week .bars i { flex: 1; max-width: 44px; margin: 0 auto; height: calc(max(var(--f), .26) * 100%); border-radius: 99px; background: #E9EDF2; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-style: normal; transform-origin: 50% 100%; }
.fx-week .bars i b { font-size: 11.5px; font-weight: 400; background: var(--surface); padding: 3px 6px; border-radius: 99px; }
.fx-week .bars i.today { background: var(--ink); }
.fx-week .bars i.today b { background: var(--ink-soft); color: #fff; }
.js .fx-week .bars i { transform: scaleY(.3); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js .board.in .fx-week .bars i { transform: none; }
.fx-week .days { display: flex; gap: 8px; margin-top: 6px; }
.fx-week .days span { flex: 1; max-width: 44px; margin: 0 auto; text-align: center; font-size: 12px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill.ed { background: var(--edit-bg); color: var(--edit-fg); }
.pill.wt { background: var(--warn-bg); color: var(--warn-fg); }

.fx-rows { display: flex; flex-direction: column; gap: 8px; width: min(100%, 560px); }
.fx-rows .rr { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(17,20,24,.35); }
.fx-rows .th { width: 62px; height: 46px; border-radius: 12px; background-color: var(--crop-bg); background-repeat: no-repeat; flex: none; }
.fx-rows .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-rows .nm { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rows .id { font-size: 12.5px; color: var(--muted); }
.fx-rows .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.fx-rows .v::before { content: attr(data-v); font-family: "JetBrainsMono", ui-monospace, monospace; font-weight: 700; font-size: 15.5px; }
.fx-rows .rr:nth-child(2) { animation: row-nudge 6s var(--ease) infinite; }
@keyframes row-nudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateX(6px); } 86% { transform: none; } }

/* Inside the iPhone frame: iOS status bar around the Dynamic Island, room for the home indicator. */
.phone .a-status { height: 54px; padding: 4px 30px 0 46px; font-size: 16px; font-weight: 600; }
.phone .a-status .sig { gap: 7px; }
.phone .a-status .sig::before { content: ""; width: 18px; height: 11px; background:
  linear-gradient(currentColor, currentColor) 0 100% / 3px 35% no-repeat,
  linear-gradient(currentColor, currentColor) 5px 100% / 3px 55% no-repeat,
  linear-gradient(currentColor, currentColor) 10px 100% / 3px 78% no-repeat,
  linear-gradient(currentColor, currentColor) 15px 100% / 3px 100% no-repeat; }
.phone .a-status .wifi { width: 16px; height: 12px; opacity: 1; clip-path: polygon(50% 100%, 0 32%, 14% 14%, 50% 0, 86% 14%, 100% 32%); border-radius: 2px; }
.phone .a-status .bat { width: 25px; height: 12px; border-radius: 4px; opacity: 1; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(17,20,24,.45); position: relative; }
.phone .a-status .bat::after { content: ""; position: absolute; left: 2.5px; top: 2.5px; bottom: 2.5px; width: 72%; border-radius: 2px; background: currentColor; }
.phone .a-cam .a-status .bat { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.phone .a-hud { top: 62px; }
.phone .a-nav { bottom: 30px; }
.phone .a-camctl { padding-bottom: 44px; }
.phone .a-sheet { top: 104px; }

/* the dialog barrier (black54) darkens the screen behind the recognition dialog */
.a-backdrop { position: absolute; inset: 0; background: var(--ground); filter: brightness(.46); }

/* Camera control bar, as CameraScreen lays it out on a landscape tablet: flash, shutter, gallery. */
.cam-bar { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 22px 26px; border-radius: 999px; background: #0B0D10; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); }
.cb-ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.cb-shutter { position: relative; width: 112px; height: 112px; padding: 8px; border-radius: 50%; border: 5px solid #fff; background: transparent; cursor: pointer; transition: transform .2s var(--ease); }
.cb-shutter::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); }
.cb-shutter:active::before { transform: scale(.82); }
@media (hover: hover) and (pointer: fine) { .cb-shutter:hover::before { transform: scale(.92); } }
.cb-shutter:disabled { cursor: progress; }
.cb-shutter:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
.cb-shutter .rip { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); opacity: 0; pointer-events: none; animation: ripple 2.8s var(--ease) infinite; }
.cb-shutter .rip + .rip { animation-delay: 1.4s; }
.cb-shutter:disabled .rip { animation: none; opacity: 0; }
.cb-hint { margin-top: -10px; font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; }
@media (max-width: 860px) {
  .cam-bar { flex-direction: row; gap: 18px; padding: 16px 26px; }
  .cb-shutter { width: 88px; height: 88px; padding: 6px; border-width: 4px; }
  .cb-hint { display: none; }
}

/* Live home screen in the CTA phone: real buttons, the day/week switch of the app */
.a-screen button { font: inherit; color: inherit; border: 0; cursor: pointer; text-align: left; }
.a-search, .a-circle { cursor: pointer; }
.a-seg button { height: 42px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border-radius: 99px; background: transparent; color: var(--muted); font-size: 14px; box-shadow: inset 0 0 0 1px transparent; transition: background-color .26s var(--ease), color .26s var(--ease), box-shadow .26s var(--ease); }
.a-seg button.on { background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.a-seg button .ic { width: 18px; height: 18px; }
.a-act { transition: transform .15s var(--ease); }
.a-act:active { transform: scale(.97); }
[data-pane]:not([hidden]) { animation: pane-in .3s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.a-weekcard { margin-top: 14px; padding: 18px; }
.a-weekcard .fx-week { width: 100%; }
.js .a-weekcard .fx-week .bars i { transform: none; animation: bar-grow .8s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes bar-grow { from { transform: scaleY(.26); } to { transform: none; } }
.a-screen [data-pane][hidden] { display: none !important; }
