/* Tài khoản dùng chung plugin và web app (0.10.0, chủ đề 5, 10, 11, 12): màn chọn username, Cài đặt, cắt ảnh,
   khung Chia sẻ, màn bị đăng xuất. Màu lấy theo biến của trang (hub.css / xuong.css), có màu dự phòng.
   Viết cho Chromium cũ của SketchUp 2021: không dùng flex gap, :has, aspect-ratio. Bản giống hệt ở ui/ và xuong/. */
.tk-over { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.tk-full { background: var(--bg, #fff); align-items: flex-start; overflow: auto; }
.tk-card { width: 100%; max-width: 440px; max-height: 100%; overflow: auto; background: var(--surface, #fff); color: var(--ink, #0F172A); border: 1px solid var(--line, #E2E8F0); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14); padding: 20px; }
.tk-full .tk-card { margin: 24px auto; box-shadow: none; border: 1px solid var(--line, #E2E8F0); }
.tk-card h2 { margin: 0 0 6px; font-size: 19px; }
.tk-card .tk-lead { margin: 0 0 14px; color: var(--muted, #5B6B7F); font-size: 13px; }
.tk-acc { display: flex; align-items: center; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line, #E2E8F0); border-radius: 10px; }
.tk-acc > div { min-width: 0; margin-left: 10px; }
.tk-acc b, .tk-acc span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-acc span { color: var(--muted, #5B6B7F); font-size: 12px; }
.tk-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #3d6a8f center / cover no-repeat; color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; }
.tk-av.lg { width: 84px; height: 84px; font-size: 32px; }
.tk-av.sm { width: 30px; height: 30px; font-size: 12px; }
.tk-in { display: flex; align-items: center; border: 1.5px solid var(--pill, #CBD5E1); border-radius: 999px; padding: 0 14px; background: var(--surface, #fff); }
.tk-in.ok { border-color: #0369A1; } .tk-in.bad { border-color: #DC2626; }
.tk-in span { color: var(--muted, #5B6B7F); font-weight: 600; }
.tk-in input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 6px; font-size: 15px; background: none; color: inherit; }
.tk-hint { display: flex; justify-content: space-between; margin: 6px 2px 0; font-size: 12px; color: var(--muted, #5B6B7F); }
.tk-st { min-height: 18px; margin: 6px 2px 0; font-size: 13px; }
.tk-st.ok { color: #0369A1; } .tk-st.bad { color: #DC2626; } .tk-st.wait { color: var(--muted, #5B6B7F); }
.tk-sug { margin: 6px 0 0; font-size: 12.5px; color: var(--muted, #5B6B7F); }
/* Chủ đề 24 (0.10.2): username không bắt buộc. Nút Để sau trong khung đặt username; thẻ gợi ý ở Cài đặt, Tin nhắn. */
.tk-later { margin-top: 8px; border-color: transparent; color: var(--muted, #5B6B7F); }
.tk-uhint { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border: 1px solid #BAE6FD; border-radius: 10px; background: #E0F2FE; }
.tk-uhint .tk-uh-t { flex: 1 1 180px; min-width: 0; margin-right: 8px; }
.tk-uhint .tk-uh-t b { display: block; font-size: 13px; color: var(--accent, #1A9BE6); }
.tk-uhint .tk-uh-t span { display: block; font-size: 12px; color: var(--muted, #5B6B7F); }
.tk-uhint .tk-uh-b { flex: none; margin: 4px 0; }
.tk-uhint .tk-uh-b .tk-btn { padding: 5px 12px; font-size: 12.5px; margin-left: 6px; }
.tk-sug button { margin: 4px 6px 0 0; }
.tk-warn { display: flex; align-items: center; margin: 12px 0; padding: 8px 12px; border-radius: 10px; background: #FFF7ED; color: #C2410C; font-size: 12.5px; }
.tk-warn .qi { flex: none; width: 16px; height: 16px; margin-right: 8px; }
.tk-btn { display: inline-block; padding: 7px 16px; border: 1px solid var(--pill, #CBD5E1); border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #0F172A); font-size: 13px; font-weight: 500; cursor: pointer; }
.tk-btn:hover { background: var(--surface-2, #F8FAFC); }
.tk-btn.pri:hover { background: #1084C9; border-color: #1084C9; }
.tk-btn.pri { background: var(--accent, #1A9BE6); border-color: var(--accent, #1A9BE6); color: var(--accent-ink, #fff); font-weight: 600; }
.tk-btn.danger { color: #DC2626; }
.tk-btn.block { display: block; width: 100%; padding: 10px; font-size: 14px; }
.tk-btn[disabled] { opacity: .45; cursor: default; }
/* 0.10.1: nút Sao chép link luôn nằm dưới cùng khung Chia sẻ */
.tk-foot { position: sticky; bottom: 0; margin-top: 10px; padding: 10px 0 2px; background: var(--surface, #fff); border-top: 1px solid var(--line, #E2E8F0); }
.tk-foot .tk-btn .qi { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.tk-foot .tk-note { margin: 6px 0 0; font-size: 11.5px; text-align: center; }
.tk-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 14px; }
.tk-row > * { margin-left: 8px; }
.tk-sec { padding: 14px 0; border-bottom: 1px solid var(--line, #E2E8F0); }
.tk-sec:last-child { border-bottom: 0; }
.tk-sec h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted, #5B6B7F); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tk-sec p { margin: 6px 0 0; font-size: 12px; color: var(--muted, #5B6B7F); }
.tk-line { display: flex; align-items: center; }
.tk-line > input, .tk-line > select { flex: 1; min-width: 0; height: 36px; padding: 0 14px; border: 1px solid var(--pill, #CBD5E1); border-radius: 999px; background: var(--surface, #fff); color: inherit; font-size: 14px; font-family: inherit; }
.tk-line > * + * { margin-left: 8px; }
.tk-err { color: #DC2626 !important; }
.tk-head { display: flex; align-items: center; margin: -4px 0 10px; }
.tk-head b { flex: 1; font-size: 16px; }
.tk-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 18px; color: var(--ink, #0F172A); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.tk-head button:hover { background: var(--surface-2, #F8FAFC); }
.tk-head button .qi { width: 20px; height: 20px; }
.tk-head button:first-child { margin-right: 6px; }
.tk-avrow { display: flex; align-items: center; }
.tk-avrow .tk-av { margin-right: 14px; }
.tk-avrow > div > * { margin: 0 6px 6px 0; }
.tk-person { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line, #E2E8F0); }
.tk-person:last-child { border-bottom: 0; }
.tk-person > div { flex: 1; min-width: 0; margin: 0 10px; }
.tk-person b, .tk-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-person small { color: var(--muted, #5B6B7F); font-size: 12px; }
.tk-sent { display: inline-flex; align-items: center; color: var(--accent, #1A9BE6); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tk-sent .qi { width: 16px; height: 16px; margin-right: 4px; }
.tk-list { max-height: 340px; overflow: auto; }
.tk-crop { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 10px; background: #111; touch-action: none; cursor: grab; }
.tk-crop canvas { display: block; }
.tk-crop i { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); pointer-events: none; }
.tk-zoom { display: block; width: 100%; margin: 12px 0 4px; }
.tk-toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translateX(-50%); max-width: 90%; padding: 9px 16px; border-radius: 999px; background: #0F172A; color: #fff; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.tk-kick { text-align: center; }
.tk-kick .tk-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; background: var(--surface-2, #F8FAFC); color: var(--ink, #0F172A); }
.tk-kick .tk-ic .qi { width: 30px; height: 30px; }
