/* Madina's phone (a Telegram-like chat and the Mini App) and Kamola's browser window (the panel and the bot's notes). */
.phone { width: 100%; max-width: 390px; height: var(--frame-h); box-sizing: border-box; background: #0b0d12; border-radius: 40px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 24px 60px -20px rgba(28, 34, 48, .55), inset 0 0 0 2px #2a2f3b; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 4px 22px 6px; color: #fff; font: 600 13px var(--sans); }
.phone-icons { display: flex; gap: 6px; align-items: center; } .phone-icons svg { width: 17px; height: 11px; fill: #fff; }
.phone-batt { width: 23px; height: 11px; border: 1.5px solid #fff; border-radius: 3.5px; padding: 1px; box-sizing: border-box; display: inline-block; } .phone-batt i { display: block; width: 78%; height: 100%; background: #fff; border-radius: 1.5px; }
.phone-tabs { display: flex; background: #fffdf9; border-radius: 30px 30px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.ptab { flex: 1; border: 0; background: none; padding: 11px 0 10px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ptab.on { color: var(--ink); border-bottom-color: var(--green); }
.badge { display: inline-block; min-width: 17px; margin-left: 6px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 17px; }
.badge[hidden] { display: none; }
.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #e8e2d6; border-radius: 0 0 30px 30px; overflow: hidden; }
.pane[hidden] { display: none; }
.tg-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; background: linear-gradient(180deg, #e9e3d7, #dfe9df); }
.msg { max-width: 92%; align-self: flex-start; display: flex; flex-direction: column; gap: 4px; }
.msg.me { align-self: flex-end; }
.bubble { background: #fff; border-radius: 15px 15px 15px 5px; padding: 8px 12px; font-size: 14px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); overflow-wrap: anywhere; }
.msg.me .bubble { background: #d9f2e4; border-radius: 15px 15px 5px 15px; font-size: 13px; }
.msg.note .bubble { box-shadow: 0 0 0 1.5px #b9dccf, 0 1px 1px rgba(0, 0, 0, .08); }
.kb { display: flex; flex-direction: column; gap: 4px; } .kb-row { display: flex; gap: 4px; }
.kb-btn { flex: 1; border: 0; border-radius: 9px; background: rgba(28, 34, 48, .62); color: #fff; font: 600 13px var(--sans); padding: 9px 6px; cursor: pointer; position: relative; }
.kb-btn.app i { position: absolute; right: 7px; top: 4px; font-style: normal; font-size: 10px; opacity: .8; }
.kb-btn.pressing { background: var(--green); box-shadow: 0 0 0 3px rgba(15, 123, 95, .3) !important; }
.tg-input { display: flex; gap: 6px; align-items: flex-end; padding: 7px 8px 9px; background: #fffdf9; border-top: 1px solid var(--line); }
.tg-input textarea { flex: 1; border: 1px solid var(--line); border-radius: 16px; padding: 7px 12px; font: 13.5px/1.35 var(--sans); resize: none; max-height: 110px; background: #fff; color: var(--ink); min-width: 0; }
.tg-send { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--green); color: #fff; cursor: pointer; padding: 6px; }
.app-root { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win { height: var(--frame-h); box-sizing: border-box; background: #fffdf9; border-radius: 16px; border: 1px solid #cfc8b9; box-shadow: 0 24px 60px -24px rgba(28, 34, 48, .45); display: flex; flex-direction: column; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e3ddd0; border-bottom: 1px solid #cfc8b9; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c2b2; }
.win-url { margin-left: 10px; flex: 1; background: #f5f2ec; border-radius: 7px; padding: 3px 12px; font-size: 12px; color: var(--muted); }
.win-row { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.panel-root { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.notes { border-left: 1px solid var(--line); background: #f0ece3; padding: 12px; overflow-y: auto; scrollbar-width: thin; }
.notes h4 { margin: 0 0 8px; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.notes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notes li { background: #fff; border-radius: 11px 11px 11px 4px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .07); overflow-wrap: anywhere; }
.note-btn { display: block; width: 100%; margin-top: 6px; border: 0; border-radius: 7px; background: rgba(28, 34, 48, .62); color: #fff; font: 600 12px var(--sans); padding: 6px; cursor: pointer; }
@media (max-width: 1100px) { .win-row { grid-template-columns: 1fr; } .notes { display: none; } }
