/* additions for the working app on top of the prototype's base.css */
body.tg #root { max-width: 520px; margin: 0 auto; }
.bar .wm { font-weight: 800; letter-spacing: -.03em; font-size: 20px; }
.bar .wm i { font-style: normal; color: var(--acc); }
.modesw { display: flex; background: var(--bg2); border-radius: 10px; padding: 2px; flex: none; }
.modesw button { border: 0; background: none; font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 8px; color: var(--hint); }
.modesw button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* stories */
.storyrow { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.storyrow::-webkit-scrollbar { display: none; }
.sring { flex: none; width: 70px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text); font-size: 11.5px; }
.sring .ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--acc), var(--btn), var(--acc)); }
.sring .ring > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg2); object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px; box-sizing: border-box; }
.sring span.nm { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sviewer { position: absolute; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
.sviewer .prog { display: flex; gap: 4px; padding: 10px 10px 0; }
.sviewer .prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.sviewer .prog i b { display: block; height: 100%; width: 0; background: #fff; }
.sviewer .prog i.done b { width: 100%; }
.sviewer .prog i.cur b { animation: sprog 5s linear forwards; }
@keyframes sprog { to { width: 100%; } }
.sviewer .shead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #fff; font-weight: 700; }
.sviewer .simg { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sviewer .simg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sviewer .scap { color: #fff; text-align: center; padding: 14px 16px 26px; font-size: 16px; }
.sviewer .tapl, .sviewer .tapr { position: absolute; top: 70px; bottom: 70px; width: 40%; border: 0; background: none; }
.sviewer .tapl { left: 0; } .sviewer .tapr { right: 0; }

/* photos */
.carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px 10px; padding: 0 12px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: none; width: 86%; height: 210px; object-fit: cover; border-radius: var(--r); scroll-snap-align: center; }
.carousel img:only-child { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg2); border: 0; padding: 0; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .ph .del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; }
.gallery .add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--link); font-size: 12px; font-weight: 700; border: 1.5px dashed var(--sep); cursor: pointer; }
.pview img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; }
.avatar-img { border-radius: 50%; object-fit: cover; flex: none; display: block; }

/* booking */
.daypick { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.daypick::-webkit-scrollbar { display: none; }
.daypick button { flex: none; width: 54px; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 12px; padding: 7px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); font-size: 11.5px; }
.daypick button b { font-size: 17px; }
.daypick button.on { background: var(--btn); color: var(--btn-text); }
.daypick button.none { opacity: .4; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button { border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 10px; padding: 11px 0; font-weight: 700; font-size: 15px; color: var(--text); }
.slots button.on { background: var(--btn); color: var(--btn-text); }

/* rating */
.starpick { display: flex; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.starpick button { border: 0; background: none; font-size: 40px; color: var(--sep); padding: 0 2px; line-height: 1; }
.starpick button.on { color: var(--orange); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.reasons button { border: 1.5px solid var(--sep); background: var(--card); color: var(--text); border-radius: 20px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; }
.reasons button.on { border-color: var(--red); background: var(--red-soft); color: var(--red); }

/* misc */
.stack { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.txt { padding: 6px 12px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg2); border-radius: 10px; padding: 8px 10px; font-size: 13px; word-break: break-all; }
.schedrow { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.schedrow:last-child { border-bottom: 0; }
.schedrow .times { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.schedrow select { padding: 6px; border-radius: 8px; border: 1px solid var(--sep); background: var(--card); color: var(--text); font-size: 13px; }
.status-done { color: var(--green); } .status-noshow { color: var(--red); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--sep); border-top-color: var(--btn); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
