/* 0.12 (002-З-1302): карточки и формы ботов, плашка чата с ботом, приложения, окно мини-приложения */
.w12-card { display: flex; flex-direction: column; gap: 6px; min-width: 220px; max-width: 420px; }
.w12-card-title { font-weight: 600; }
.w12-card-text { white-space: pre-wrap; }
.w12-card-fields { margin: 2px 0; display: grid; gap: 2px; }
.w12-card-fields div { display: flex; gap: 8px; }
.w12-card-fields dt { color: var(--ink-2); min-width: 88px; }
.w12-card-fields dd { margin: 0; }
.w12-card-buttons { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.w12-btn { min-height: 40px; border-radius: 10px; border: 1px solid var(--brand); color: var(--brand); background: transparent; font-weight: 600; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.w12-btn.primary { background: var(--brand); color: var(--brand-ink, #fff); }
.w12-btn.chosen { outline: 2px solid var(--brand); outline-offset: 2px; }
.w12-btn:disabled:not(.chosen) { opacity: .5; }
.w12-card-sent { font-size: 12.5px; color: var(--ink-2); }
.w12-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.w12-field input, .w12-field select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; padding: 0 10px; font: inherit; font-size: 15px; }
.w12-submit { min-height: 44px; margin-top: 4px; }
.w12-bot-notice { display: flex; gap: 8px; align-items: flex-start; margin: 8px auto 12px; max-width: 520px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.w12-apps .pad-x { padding: 0 16px; }
.w12-tabs { display: flex; gap: 4px; padding: 8px 16px; }
.w12-tabs button, .w12-chips button { border-radius: 999px; padding: 6px 14px; border: 1px solid var(--line); background: transparent; color: inherit; font-weight: 600; }
.w12-tabs button.on, .w12-chips button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink, #fff); }
.w12-search { width: 100%; box-sizing: border-box; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; padding: 0 12px; font: inherit; }
.w12-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.w12-list { display: flex; flex-direction: column; padding: 8px 0; }
.w12-app-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.w12-app-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; color: inherit; text-align: start; padding: 0; }
.w12-app-main small { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w12-app-row > .primary, .w12-app-row > .outline { flex: none; }
.w12-app-icon { border-radius: 12px; flex: none; object-fit: cover; }
.w12-app-icon.letter { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink, #fff); font-weight: 700; font-size: 15px; }
.w12-h { margin: 0; font-size: 20px; }
.w12-h3 { margin: 8px 0 0; font-size: 15px; }
.w12-perm { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.w12-switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-3); padding: 0; }
.w12-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); transition: left .15s; }
.w12-switch.on { background: var(--brand); border-color: var(--brand); }
.w12-switch.on::after { inset-inline-start: 23px; background: var(--brand-ink, #fff); }
.w12-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.w12-modal { background: var(--bg); color: inherit; border-radius: 16px; padding: 20px; width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; box-sizing: border-box; }
.w12-modal h2 { margin: 0 0 8px; font-size: 18px; }
.w12-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.w12-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.w12-check input { margin-top: 3px; width: 18px; height: 18px; }
.w12-app-window { position: fixed; inset: 0; z-index: 900; background: var(--bg); display: flex; flex-direction: column; }
@media (min-width: 900px) { .w12-app-window { inset: 24px auto 24px 50%; transform: translateX(-50%); width: 480px; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 12px 48px rgba(0,0,0,.25); overflow: hidden; } }
.w12-app-head { position: relative; display: flex; align-items: center; gap: 8px; height: 52px; padding-block: 0 0; padding-inline: 12px 8px; border-bottom: 1px solid var(--line); }
.w12-app-head .center { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w12-app-head .link { background: none; border: 0; color: var(--brand); font-weight: 600; padding: 8px 4px; }
.w12-menu { position: absolute; inset-inline-end: 8px; top: 48px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 200px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.w12-menu button { text-align: start; padding: 12px 16px; background: none; border: 0; color: inherit; }
.w12-menu button:hover { background: var(--bg-2); }
.w12-app-frame { flex: 1; border: 0; width: 100%; background: var(--bg); }
.w12-app-buttons { display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.w12-app-buttons button { flex: 1; min-height: 48px; }
.w12-share-list { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.w12-share-row { text-align: start; padding: 12px 8px; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; }
/* 0.12.1 «Мой контракт» */
.w13-contract .w13-service { padding: 10px 16px; border-top: 1px solid var(--line); }
.w13-contract .w13-service:first-of-type { border-top: 0; }
.w13-service-row { display: flex; justify-content: space-between; gap: 12px; }
.w13-service-row span:last-child { text-align: end; flex-shrink: 0; max-width: 55%; }
.w13-meter { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.w13-meter span { display: block; height: 100%; background: var(--brand); }
.w13-meter span.hot { background: #c62828; }
.w13-warn { color: #c62828; font-weight: 600; }
.w13-empty { color: var(--muted, #5b6573); }
.w13-note { font-size: 13px; margin: 8px 0 24px; }
