/* Generated by tools/xim-skingen.c from skins/skins.txt and imgs/jade/ (make skins). Do not edit. */

:root,
[data-skin="blush"] {
  color-scheme: light;
  --bg-page: #FFF7F7;
  --bg-card: #FFFFFF;
  --bg-pressed: #F7E8EB;
  --bg-input: #F8ECEE;
  --text-primary: #3F2D32;
  --text-secondary: #806A70;
  --text-link: #B94E5D;
  --accent: #B94E5D;
  --accent-pressed: #9C3F4D;
  --accent-soft: #FBE4E7;
  --on-accent: #FFFFFF;
  --tab-active: #B94E5D;
  --tab-normal: #8F7B80;
  --switch-on: #B94E5D;
  --switch-off: #EADADD;
  --danger: #D0341F;
  --unread: #D0341F;
  --online: #25A66B;
  --line: #F0DFE2;
  --chevron: #CDB9BE;
  --bubble-in: #FFFFFF;
  --bubble-in-text: #3F2D32;
  --bubble-out: #F8DADF;
  --bubble-out-text: #3F2D32;
  --cs-header-top: #B94E5D;
  --cs-header-bottom: #CC6B79;
  --entry-green: #3A9A72;
  --entry-red: #C9634F;
  --entry-blue: #4A7FC1;
  --entry-yellow: #E0A93B;
  --wallet-card: #B94E5D;
  --wallet-card-text: #FFFFFF;
  --wallet-card-num: #FFFFFF;
  --notice-warn-bg: #FFF4DE;
  --notice-warn-text: #8A5410;
  --rp-bubble: #C8553F;
  --rp-bubble-done: #F0C9C0;
  --rp-card: #B64B40;
  --rp-gold: #E8C77A;
  --amount-in: #1C8050;
  --decor-tint: #D98A95;
  --decor-mountains: 1;
  --decor-lattice: 1;
  --decor-empty: 1;
}

:root[data-theme="dark"],
[data-skin="blush"][data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #181012;
  --bg-card: #221719;
  --bg-pressed: #2E2023;
  --bg-input: #2B1E21;
  --text-primary: #F2E6E8;
  --text-secondary: #B39FA4;
  --text-link: #E8909C;
  --accent: #C45E6E;
  --accent-pressed: #A84B5A;
  --accent-soft: #3D2228;
  --on-accent: #FFFFFF;
  --tab-active: #E8909C;
  --tab-normal: #8E7A80;
  --switch-on: #C45E6E;
  --switch-off: #45343A;
  --danger: #EF6A5A;
  --unread: #D9402F;
  --online: #3FBF83;
  --line: #36272B;
  --chevron: #6E5A60;
  --bubble-in: #2A1D21;
  --bubble-in-text: #F2E6E8;
  --bubble-out: #4A2A32;
  --bubble-out-text: #F2E6E8;
  --cs-header-top: #8E3A48;
  --cs-header-bottom: #A84B5A;
  --entry-green: #3A9A72;
  --entry-red: #C9634F;
  --entry-blue: #4A7FC1;
  --entry-yellow: #E0A93B;
  --wallet-card: #7E3441;
  --wallet-card-text: #F8E8EB;
  --wallet-card-num: #FFFFFF;
  --notice-warn-bg: #3A2E1F;
  --notice-warn-text: #E8B67A;
  --rp-bubble: #C8553F;
  --rp-bubble-done: #6E4A41;
  --rp-card: #9E4238;
  --rp-gold: #E8C77A;
  --amount-in: #3FBF83;
  --decor-tint: #8C4654;
  --decor-mountains: 1;
  --decor-lattice: 1;
  --decor-empty: 1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-skin]):not([data-theme="light"]),
  [data-skin="blush"]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-page: #181012;
    --bg-card: #221719;
    --bg-pressed: #2E2023;
    --bg-input: #2B1E21;
    --text-primary: #F2E6E8;
    --text-secondary: #B39FA4;
    --text-link: #E8909C;
    --accent: #C45E6E;
    --accent-pressed: #A84B5A;
    --accent-soft: #3D2228;
    --on-accent: #FFFFFF;
    --tab-active: #E8909C;
    --tab-normal: #8E7A80;
    --switch-on: #C45E6E;
    --switch-off: #45343A;
    --danger: #EF6A5A;
    --unread: #D9402F;
    --online: #3FBF83;
    --line: #36272B;
    --chevron: #6E5A60;
    --bubble-in: #2A1D21;
    --bubble-in-text: #F2E6E8;
    --bubble-out: #4A2A32;
    --bubble-out-text: #F2E6E8;
    --cs-header-top: #8E3A48;
    --cs-header-bottom: #A84B5A;
    --entry-green: #3A9A72;
    --entry-red: #C9634F;
    --entry-blue: #4A7FC1;
    --entry-yellow: #E0A93B;
    --wallet-card: #7E3441;
    --wallet-card-text: #F8E8EB;
    --wallet-card-num: #FFFFFF;
    --notice-warn-bg: #3A2E1F;
    --notice-warn-text: #E8B67A;
    --rp-bubble: #C8553F;
    --rp-bubble-done: #6E4A41;
    --rp-card: #9E4238;
    --rp-gold: #E8C77A;
    --amount-in: #3FBF83;
    --decor-tint: #8C4654;
    --decor-mountains: 1;
    --decor-lattice: 1;
    --decor-empty: 1;
  }
}

[data-skin="jade"] {
  color-scheme: light;
  --bg-page: #F7F6F2;
  --bg-card: #FFFFFF;
  --bg-pressed: #EFEEE8;
  --bg-input: #F0EFEA;
  --text-primary: #253532;
  --text-secondary: #6B7A74;
  --text-link: #287568;
  --accent: #287568;
  --accent-pressed: #1F5E53;
  --accent-soft: #E2F0EA;
  --on-accent: #FFFFFF;
  --tab-active: #287568;
  --tab-normal: #8A9792;
  --switch-on: #287568;
  --switch-off: #DCDFDA;
  --danger: #B64B40;
  --unread: #B64B40;
  --online: #25A66B;
  --line: #E7EBE7;
  --chevron: #B8C2BD;
  --bubble-in: #FFFFFF;
  --bubble-in-text: #253532;
  --bubble-out: #CFE6DB;
  --bubble-out-text: #253532;
  --cs-header-top: #287568;
  --cs-header-bottom: #3F8F80;
  --entry-green: #3A9A72;
  --entry-red: #C9634F;
  --entry-blue: #4A7FC1;
  --entry-yellow: #E0A93B;
  --wallet-card: #E2F0EA;
  --wallet-card-text: #253532;
  --wallet-card-num: #287568;
  --notice-warn-bg: #FBF1E4;
  --notice-warn-text: #9A5B1E;
  --rp-bubble: #C8553F;
  --rp-bubble-done: #EBC2B4;
  --rp-card: #B64B40;
  --rp-gold: #E8C77A;
  --amount-in: #25A66B;
  --decor-tint: rgba(0, 0, 0, 0);
  --decor-mountains: 1;
  --decor-lattice: 1;
  --decor-empty: 1;
}

[data-skin="jade"][data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #111816;
  --bg-card: #1A2321;
  --bg-pressed: #23302D;
  --bg-input: #202B28;
  --text-primary: #E8EFEC;
  --text-secondary: #9AABA4;
  --text-link: #5FB3A1;
  --accent: #4FA593;
  --accent-pressed: #3E8A7A;
  --accent-soft: #1F3A34;
  --on-accent: #FFFFFF;
  --tab-active: #4FA593;
  --tab-normal: #7D8C86;
  --switch-on: #4FA593;
  --switch-off: #3A4744;
  --danger: #D9695D;
  --unread: #D9695D;
  --online: #3FBF83;
  --line: #2A3633;
  --chevron: #5A6864;
  --bubble-in: #1F2A28;
  --bubble-in-text: #E8EFEC;
  --bubble-out: #24453E;
  --bubble-out-text: #E8EFEC;
  --cs-header-top: #1F5E53;
  --cs-header-bottom: #2E7466;
  --entry-green: #3A9A72;
  --entry-red: #C9634F;
  --entry-blue: #4A7FC1;
  --entry-yellow: #E0A93B;
  --wallet-card: #1F3A34;
  --wallet-card-text: #E8EFEC;
  --wallet-card-num: #5FB3A1;
  --notice-warn-bg: #3A2E1F;
  --notice-warn-text: #E8B67A;
  --rp-bubble: #C8553F;
  --rp-bubble-done: #6E4A41;
  --rp-card: #9E4238;
  --rp-gold: #E8C77A;
  --amount-in: #3FBF83;
  --decor-tint: rgba(0, 0, 0, 0);
  --decor-mountains: 1;
  --decor-lattice: 1;
  --decor-empty: 1;
}

@media (prefers-color-scheme: dark) {
  [data-skin="jade"]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-page: #111816;
    --bg-card: #1A2321;
    --bg-pressed: #23302D;
    --bg-input: #202B28;
    --text-primary: #E8EFEC;
    --text-secondary: #9AABA4;
    --text-link: #5FB3A1;
    --accent: #4FA593;
    --accent-pressed: #3E8A7A;
    --accent-soft: #1F3A34;
    --on-accent: #FFFFFF;
    --tab-active: #4FA593;
    --tab-normal: #7D8C86;
    --switch-on: #4FA593;
    --switch-off: #3A4744;
    --danger: #D9695D;
    --unread: #D9695D;
    --online: #3FBF83;
    --line: #2A3633;
    --chevron: #5A6864;
    --bubble-in: #1F2A28;
    --bubble-in-text: #E8EFEC;
    --bubble-out: #24453E;
    --bubble-out-text: #E8EFEC;
    --cs-header-top: #1F5E53;
    --cs-header-bottom: #2E7466;
    --entry-green: #3A9A72;
    --entry-red: #C9634F;
    --entry-blue: #4A7FC1;
    --entry-yellow: #E0A93B;
    --wallet-card: #1F3A34;
    --wallet-card-text: #E8EFEC;
    --wallet-card-num: #5FB3A1;
    --notice-warn-bg: #3A2E1F;
    --notice-warn-text: #E8B67A;
    --rp-bubble: #C8553F;
    --rp-bubble-done: #6E4A41;
    --rp-card: #9E4238;
    --rp-gold: #E8C77A;
    --amount-in: #3FBF83;
    --decor-tint: rgba(0, 0, 0, 0);
    --decor-mountains: 1;
    --decor-lattice: 1;
    --decor-empty: 1;
  }
}

[data-skin="classic"] {
  color-scheme: light;
  --bg-page: #F5F6F8;
  --bg-card: #FFFFFF;
  --bg-pressed: #EEF0F3;
  --bg-input: #F2F3F5;
  --text-primary: #1C1C1E;
  --text-secondary: #8E8E93;
  --text-link: #2F6FED;
  --accent: #2F80ED;
  --accent-pressed: #1F6FD6;
  --accent-soft: #E8F1FD;
  --on-accent: #FFFFFF;
  --tab-active: #E53935;
  --tab-normal: #9AA0A6;
  --switch-on: #E53935;
  --switch-off: #E5E5EA;
  --danger: #E53935;
  --unread: #E53935;
  --online: #2BA24C;
  --line: #E6E8EB;
  --chevron: #C7C7CC;
  --bubble-in: #E9E9EB;
  --bubble-in-text: #1C1C1E;
  --bubble-out: #2F80ED;
  --bubble-out-text: #FFFFFF;
  --cs-header-top: #2F80ED;
  --cs-header-bottom: #5BA3F5;
  --entry-green: #3DDC97;
  --entry-red: #4C9AFF;
  --entry-blue: #A855F7;
  --entry-yellow: #F5C542;
  --wallet-card: #D9473C;
  --wallet-card-text: #FFFFFF;
  --wallet-card-num: #FFFFFF;
  --notice-warn-bg: #FFF4E5;
  --notice-warn-text: #B25E09;
  --rp-bubble: #F79C3A;
  --rp-bubble-done: #FBD3A4;
  --rp-card: #D9473C;
  --rp-gold: #F3C969;
  --amount-in: #2BA24C;
  --decor-tint: rgba(0, 0, 0, 0);
  --decor-mountains: 0;
  --decor-lattice: 0;
  --decor-empty: 0;
}

[data-skin="classic"][data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #121417;
  --bg-card: #1C1E22;
  --bg-pressed: #2A2D32;
  --bg-input: #25282D;
  --text-primary: #F2F2F7;
  --text-secondary: #98989F;
  --text-link: #5B8FF5;
  --accent: #2F80ED;
  --accent-pressed: #1F6FD6;
  --accent-soft: #1E2A3D;
  --on-accent: #FFFFFF;
  --tab-active: #E53935;
  --tab-normal: #8A8F96;
  --switch-on: #E53935;
  --switch-off: #3A3A3C;
  --danger: #E53935;
  --unread: #E53935;
  --online: #2BA24C;
  --line: #2C2F34;
  --chevron: #5A5A5F;
  --bubble-in: #2C2C2E;
  --bubble-in-text: #F2F2F7;
  --bubble-out: #2F80ED;
  --bubble-out-text: #FFFFFF;
  --cs-header-top: #2F80ED;
  --cs-header-bottom: #5BA3F5;
  --entry-green: #3DDC97;
  --entry-red: #4C9AFF;
  --entry-blue: #A855F7;
  --entry-yellow: #F5C542;
  --wallet-card: #D9473C;
  --wallet-card-text: #FFFFFF;
  --wallet-card-num: #FFFFFF;
  --notice-warn-bg: #3A2E1F;
  --notice-warn-text: #E8B67A;
  --rp-bubble: #F79C3A;
  --rp-bubble-done: #7A6346;
  --rp-card: #D9473C;
  --rp-gold: #F3C969;
  --amount-in: #2BA24C;
  --decor-tint: rgba(0, 0, 0, 0);
  --decor-mountains: 0;
  --decor-lattice: 0;
  --decor-empty: 0;
}

@media (prefers-color-scheme: dark) {
  [data-skin="classic"]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-page: #121417;
    --bg-card: #1C1E22;
    --bg-pressed: #2A2D32;
    --bg-input: #25282D;
    --text-primary: #F2F2F7;
    --text-secondary: #98989F;
    --text-link: #5B8FF5;
    --accent: #2F80ED;
    --accent-pressed: #1F6FD6;
    --accent-soft: #1E2A3D;
    --on-accent: #FFFFFF;
    --tab-active: #E53935;
    --tab-normal: #8A8F96;
    --switch-on: #E53935;
    --switch-off: #3A3A3C;
    --danger: #E53935;
    --unread: #E53935;
    --online: #2BA24C;
    --line: #2C2F34;
    --chevron: #5A5A5F;
    --bubble-in: #2C2C2E;
    --bubble-in-text: #F2F2F7;
    --bubble-out: #2F80ED;
    --bubble-out-text: #FFFFFF;
    --cs-header-top: #2F80ED;
    --cs-header-bottom: #5BA3F5;
    --entry-green: #3DDC97;
    --entry-red: #4C9AFF;
    --entry-blue: #A855F7;
    --entry-yellow: #F5C542;
    --wallet-card: #D9473C;
    --wallet-card-text: #FFFFFF;
    --wallet-card-num: #FFFFFF;
    --notice-warn-bg: #3A2E1F;
    --notice-warn-text: #E8B67A;
    --rp-bubble: #F79C3A;
    --rp-bubble-done: #7A6346;
    --rp-card: #D9473C;
    --rp-gold: #F3C969;
    --amount-in: #2BA24C;
    --decor-tint: rgba(0, 0, 0, 0);
    --decor-mountains: 0;
    --decor-lattice: 0;
    --decor-empty: 0;
  }
}

/* Icons (imgs/jade/icons), used as CSS masks so they take the current colour. */
:root {
  --icon-at: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M16 8v5a2.5 2.5 0 0 0 5 0v-1a9 9 0 1 0-3.6 7.2'/%3E%3C/svg%3E");
  --icon-attachment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 13 7-7a3 3 0 0 1 4 4L9 20a5 5 0 0 1-7-7L13 2M5 15l9-9'/%3E%3C/svg%3E");
  --icon-audit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='18' rx='2'/%3E%3Cpath d='M9 4V3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1M9 13l2 2 4-4'/%3E%3C/svg%3E");
  --icon-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 4-8 8 8 8'/%3E%3C/svg%3E");
  --icon-bank-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 10h19'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E");
  --icon-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14l-2-3V9a5 5 0 0 0-10 0v5ZM10 21h4M12 2v2'/%3E%3C/svg%3E");
  --icon-block: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  --icon-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='14' rx='2'/%3E%3Cpath d='M8 7V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v3M3 12a22 22 0 0 0 18 0M12 12v3'/%3E%3C/svg%3E");
  --icon-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22V3h13v19M16 12h5v10M1 22h22M7 7h1M11 7h1M7 11h1M11 11h1M7 15h1M11 15h1M8 22v-4h3'/%3E%3C/svg%3E");
  --icon-cache: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8a8 8 0 0 1 15-2l2 3M21 3v6h-6M20 16a8 8 0 0 1-15 2l-2-3M3 21v-6h6'/%3E%3C/svg%3E");
  --icon-camera-switch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l2-4h6l2 4h4v14H3Z'/%3E%3Cpath d='M8.6 12.5a3.5 3.5 0 0 1 6.3-1.6M15.4 14.5a3.5 3.5 0 0 1-6.3 1.6M15.2 8.6v2.6h-2.6M8.8 18.4v-2.6h2.6'/%3E%3C/svg%3E");
  --icon-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l2-4h6l2 4h4v14H3Z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  --icon-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='2' width='18' height='20' rx='2'/%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M7 18v-1a5 5 0 0 1 10 0v1Z'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
  --icon-chevron-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 15 7-7 7 7'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 5 14 14M19 5 5 19'/%3E%3C/svg%3E");
  --icon-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20a5 5 0 0 1-1-10 7 7 0 0 1 13-2 6 6 0 0 1 0 12Z'/%3E%3C/svg%3E");
  --icon-compass-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0 9 9 0 1 0-18 0ZM16 8l-5 3-3 5 5-3Z' fill='%23253532' fill-rule='evenodd' stroke='none'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  --icon-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m16 8-3 5-5 3 3-5Z'/%3E%3C/svg%3E");
  --icon-contacts-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3' fill='%23253532'/%3E%3Cpath d='M3 20v-3a6 6 0 0 1 12 0v3Z' fill='%23253532'/%3E%3Cpath d='M16 4a3 3 0 0 1 0 6M18 13a5 5 0 0 1 3 4v3'/%3E%3C/svg%3E");
  --icon-contacts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 20v-3a6 6 0 0 1 12 0v3M16 4a3 3 0 0 1 0 6M18 13a5 5 0 0 1 3 4v3'/%3E%3C/svg%3E");
  --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
  --icon-database: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7' ry='2.5'/%3E%3Cpath d='M5 5.5v13c0 1.38 3.13 2.5 7 2.5s7-1.12 7-2.5v-13M5 12c0 1.38 3.13 2.5 7 2.5s7-1.12 7-2.5'/%3E%3C/svg%3E");
  --icon-device: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='14' height='11' rx='1.5'/%3E%3Cpath d='M6 20h6M9 15v5'/%3E%3Crect x='17' y='8' width='5' height='12' rx='1'/%3E%3C/svg%3E");
  --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 21h16'/%3E%3C/svg%3E");
  --icon-emoji: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M7 14a5.5 5.5 0 0 0 10 0'/%3E%3Ccircle cx='8' cy='9' r='.7'/%3E%3Ccircle cx='16' cy='9' r='.7'/%3E%3C/svg%3E");
  --icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 3l16 18'/%3E%3C/svg%3E");
  --icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2h9l5 5v15H5ZM14 2v6h5M8 12h8M8 16h8'/%3E%3C/svg%3E");
  --icon-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a2 2 0 0 1 2-2h5l2 3h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E");
  --icon-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='12' rx='1'/%3E%3Cpath d='M2 9h20v4H2ZM12 9v12'/%3E%3Cpath d='M12 9C4 8 5 1 8 3c2 1 3 4 4 6Zm0 0c8-1 7-8 4-6-2 1-3 4-4 6Z'/%3E%3C/svg%3E");
  --icon-group: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3'/%3E%3Ccircle cx='4' cy='9' r='2'/%3E%3Ccircle cx='20' cy='9' r='2'/%3E%3Cpath d='M7 21v-5a5 5 0 0 1 10 0v5ZM1 21v-5a3 3 0 0 1 4-3M23 21v-5a3 3 0 0 0-4-3'/%3E%3C/svg%3E");
  --icon-hangup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 15v-2.5c0-1 .6-1.8 1.5-2.1A27 27 0 0 1 12 9c3 0 5.8.5 8.5 1.4.9.3 1.5 1.1 1.5 2.1V15a1 1 0 0 1-1.2 1l-3.6-.7a1 1 0 0 1-.8-1v-1.8a20 20 0 0 0-8.8 0v1.8a1 1 0 0 1-.8 1L3.2 16A1 1 0 0 1 2 15Z'/%3E%3C/svg%3E");
  --icon-headset: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14v-3a9 9 0 0 1 18 0v3M21 17v2a3 3 0 0 1-3 3h-4'/%3E%3Crect x='1' y='11' width='5' height='8' rx='2'/%3E%3Crect x='18' y='11' width='5' height='8' rx='2'/%3E%3C/svg%3E");
  --icon-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 1c0 2-3 2-3 4M12 17h.01'/%3E%3C/svg%3E");
  --icon-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8' cy='8' r='2'/%3E%3Cpath d='m3 17 6-6 4 4 3-3 5 5'/%3E%3C/svg%3E");
  --icon-ip-block: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9.5' cy='9.5' r='6.5'/%3E%3Cpath d='M3 9.5h13M9.5 3c-2.5 1.9-2.5 11.1 0 13M9.5 3c2.5 1.9 2.5 11.1 0 13'/%3E%3Ccircle cx='18' cy='18' r='3.6'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
  --icon-keyboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M6 9h.01M10 9h.01M14 9h.01M18 9h.01M6 12h.01M10 12h.01M14 12h.01M18 12h.01M8 15.5h8'/%3E%3C/svg%3E");
  --icon-language: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h12M8 2v3M4 5c0 6 5 10 9 12M12 5c0 6-5 10-9 12M14 22l4-12 4 12M16 18h4'/%3E%3C/svg%3E");
  --icon-location: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.5 7-12a7 7 0 0 0-14 0c0 5.5 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='12' rx='2'/%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3M12 15v3'/%3E%3C/svg%3E");
  --icon-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E");
  --icon-megaphone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 9 13-5v16L4 15ZM4 9H2v6h2M7 16l1 5h3l-2-4M20 8a7 7 0 0 1 0 8'/%3E%3C/svg%3E");
  --icon-message-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-8 8 9 9 0 0 1-3.7-.8L4 20l1.3-4.3a8 8 0 1 1 14.7-4.2Z' fill='%23253532'/%3E%3C/svg%3E");
  --icon-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-8 8 9 9 0 0 1-3.7-.8L4 20l1.3-4.3a8 8 0 1 1 14.7-4.2Z'/%3E%3C/svg%3E");
  --icon-mic-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v4M8 22h8M3 3l18 18'/%3E%3C/svg%3E");
  --icon-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v4M8 22h8'/%3E%3C/svg%3E");
  --icon-moments: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.8 20.95 12.97M15.64 9.9v10.33M15.64 14.1 6.69 19.27M12 16.2 3.05 11.03M8.36 14.1V3.77M8.36 9.9l8.95-5.17'/%3E%3C/svg%3E");
  --icon-more-vertical: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='1'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3C/svg%3E");
  --icon-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3C/svg%3E");
  --icon-mute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14l-2-3V9a5 5 0 0 0-10 0v5ZM10 21h4M12 2v2M3 3l18 18'/%3E%3C/svg%3E");
  --icon-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='17' height='18' rx='1'/%3E%3Cpath d='M4 7H1v12a2 2 0 0 0 3 2M8 7h9M8 11h9M8 15h4M15 15h2M8 18h4M15 18h2'/%3E%3C/svg%3E");
  --icon-nodes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='18' r='2.5'/%3E%3Ccircle cx='19' cy='18' r='2.5'/%3E%3Cpath d='M10.81 7.2 6.19 15.8M13.19 7.2l4.62 8.6M7.5 18h9'/%3E%3C/svg%3E");
  --icon-order: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9ZM4 7.5l8 4.5 8-4.5M12 12v9M8 5.25l8 4.5'/%3E%3C/svg%3E");
  --icon-organization: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='5' rx='1'/%3E%3Cpath d='M12 7v6M4 17v-4h16v4M12 13v4'/%3E%3Crect x='1' y='17' width='6' height='5' rx='1'/%3E%3Crect x='9' y='17' width='6' height='5' rx='1'/%3E%3Crect x='17' y='17' width='6' height='5' rx='1'/%3E%3C/svg%3E");
  --icon-palette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11a9 9 0 1 0-9 10h1a2 2 0 0 0 1-3.7 1.5 1.5 0 0 1 1-2.8h2a4 4 0 0 0 4-3.5Z'/%3E%3Ccircle cx='7' cy='10' r='.8'/%3E%3Ccircle cx='10' cy='6' r='.8'/%3E%3Ccircle cx='15' cy='6' r='.8'/%3E%3Ccircle cx='18' cy='10' r='.8'/%3E%3C/svg%3E");
  --icon-params: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3 3 6c0 7 8 15 15 15l3-3-5-4-3 2a14 14 0 0 1-5-5l2-3Z'/%3E%3C/svg%3E");
  --icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8M10 3v6l-4 5h12l-4-5V3M12 14v7'/%3E%3C/svg%3E");
  --icon-plus-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-qrcode: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M6.5 6.5h.01M17.5 6.5h.01M6.5 17.5h.01M14 14h3v3h-3ZM20.5 14v.01M14 20.5h.01M17 20.5h3.5V17'/%3E%3C/svg%3E");
  --icon-receipts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2h14v20l-3-2-4 2-4-2-3 2ZM8 7h8M8 11h8M8 15h5'/%3E%3C/svg%3E");
  --icon-redpacket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M4 7.5q8 5 16 0'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E");
  --icon-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66L20 8.5M20 3v5.5h-5.5'/%3E%3C/svg%3E");
  --icon-scan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3M3 12h18'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
  --icon-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 3 20 9-20 9 4-9ZM6 12h16'/%3E%3C/svg%3E");
  --icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 3 .7-1h4.6l.7 3 3 1 2.8-.5 2 3.5-2 2v3l2 2-2 3.5-3-.5-3 1-.5 2h-4.6l-.7-2-3-1-3 .5-2-3.5 2-2v-3l-2-2 2-3.5 3 .5 3-1Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --icon-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M8 11H6a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-2'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 4v6c0 5-6 9-9 10-3-1-9-5-9-10V6Z'/%3E%3Cpath d='M12 7v9M8 11h8'/%3E%3C/svg%3E");
  --icon-speaker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3ZM16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E");
  --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3 6 7 1-5 5 1 8-6-4-6 4 1-8-5-5 7-1Z'/%3E%3C/svg%3E");
  --icon-stats: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21h16M7 17v-6M12 17V5M17 17V9'/%3E%3C/svg%3E");
  --icon-switch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18l-5-5M21 17H3l5 5'/%3E%3C/svg%3E");
  --icon-team: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3Cpath d='M12 8v4M5.5 16v-4h13v4'/%3E%3C/svg%3E");
  --icon-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4ZM14 5v2M14 11v2M14 17v2'/%3E%3C/svg%3E");
  --icon-user-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4' fill='%23253532'/%3E%3Cpath d='M4 21v-3a8 8 0 0 1 16 0v3Z' fill='%23253532'/%3E%3C/svg%3E");
  --icon-user-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 21v-4a6 6 0 0 1 12 0v4M19 5v6M16 8h6'/%3E%3C/svg%3E");
  --icon-user-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 21v-4a6 6 0 0 1 12 0v4M16.5 8.5l5 5M21.5 8.5l-5 5'/%3E%3C/svg%3E");
  --icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-3a8 8 0 0 1 16 0v3Z'/%3E%3C/svg%3E");
  --icon-verify: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 21v-4a6 6 0 0 1 12 0v4M18 9v8M14 13h8'/%3E%3C/svg%3E");
  --icon-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='14' height='14' rx='2'/%3E%3Cpath d='m16 9 6-4v14l-6-4'/%3E%3C/svg%3E");
  --icon-voice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9v6M12 7a8 8 0 0 1 0 10M15 5a11 11 0 0 1 0 14'/%3E%3C/svg%3E");
  --icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h13v4M3 7h16a2 2 0 0 1 2 2v11H5a2 2 0 0 1-2-2ZM21 11h-6v5h6'/%3E%3Ccircle cx='17.5' cy='13.5' r='.5'/%3E%3C/svg%3E");
  --icon-workbench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253532' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

/* app.css */
/* Web client layout and components (docs/18 5, docs/09 2.2 and 3). Colours come only from the skin
   tokens in skin_gen.css; icons are masks (--icon-<name>) painted with currentColor. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, "PingFang SC", "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: calc(16px * var(--fs, 1));
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-page);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* ---- icons ---- */
.ic {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}

.ic.s20 { width: 20px; height: 20px; }
.ic.s18 { width: 18px; height: 18px; }
.ic.s14 { width: 14px; height: 14px; }
.ic.s26 { width: 26px; height: 26px; }
.ic.s28 { width: 28px; height: 28px; }

/* ---- auth pages (S01 / S02): phone column, centred and at most 420 wide on big screens ---- */
.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.auth-top {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 56px;
}

.auth-top .grow {
  flex: 1;
}

.auth-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.auth-foot {
  padding: 8px 24px 0;
}

.round-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-back .ic {
  width: 22px;
  height: 22px;
}

.text-btn {
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.brand .logo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.brand h1 {
  margin: 18px 0 0;
  font-size: calc(28px * var(--fs, 1));
  font-weight: 700;
}

.brand p {
  margin: 6px 0 0;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

.label {
  font-size: calc(15px * var(--fs, 1));
  padding: 14px 0 8px;
}

.field {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.field.filled {
  border-color: var(--bg-input);
}

.field > .ic {
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: calc(16px * var(--fs, 1));
  height: 100%;
}

.field input::placeholder {
  color: var(--text-secondary);
}

.field .eye {
  color: var(--text-secondary);
  display: flex;
}

.field-action {
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-link);
  padding: 6px 4px;
  border-radius: 6px;
  white-space: nowrap;
}

.field-action:disabled {
  color: var(--text-secondary);
}

.err {
  color: var(--danger);
  font-size: calc(13px * var(--fs, 1));
  padding-top: 6px;
}

.auth-note {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: calc(13px * var(--fs, 1));
  text-align: center;
}

.hint {
  color: var(--text-secondary);
  font-size: calc(12px * var(--fs, 1));
  padding-top: 6px;
  white-space: pre-line; /* admin text overrides may contain line breaks (docs/00 decision 68) */
}

.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha .field {
  flex: 1;
  min-width: 0; /* or the input's own width pushes the image off a phone's screen (docs/00 decision 151) */
}

.captcha-img {
  position: relative;
  width: 120px;
  height: 44px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-input);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: calc(13px * var(--fs, 1));
}

.captcha-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.captcha-img .refresh {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-img .refresh .ic {
  width: 12px;
  height: 12px;
}

.row-line {
  display: flex;
  align-items: center;
  padding-top: 18px;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-secondary);
  gap: 8px;
}

.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

.agree a,
.link {
  color: var(--text-link);
  cursor: pointer;
  text-decoration: none;
}

.check {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 3px;
  border: 1.5px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
}

.check.on {
  background: var(--accent);
  border-color: var(--accent);
}

.check .ic {
  width: 14px;
  height: 14px;
  visibility: hidden;
}

.check.on .ic {
  visibility: visible;
}

.switch {
  width: 46px;
  height: 28px;
  flex: none;
  border-radius: 14px;
  background: var(--switch-off);
  position: relative;
  transition: background 0.15s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 0.15s;
}

.switch.on {
  background: var(--switch-on);
}

.switch.on::after {
  left: 21px;
}

.primary {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: calc(16px * var(--fs, 1));
  font-weight: 500;
}

.primary:active:not(:disabled) {
  background: var(--accent-pressed);
}

.primary:disabled {
  opacity: 0.4;
}

.outline {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: calc(16px * var(--fs, 1));
  font-weight: 500;
}

.danger-btn {
  color: var(--danger);
}

.links3 {
  display: flex;
  padding-top: 16px;
}

.links3 button {
  flex: 1;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 8px 0;
  border-radius: 6px;
}

.version {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  text-align: center;
  padding: 16px 0;
}

.seg {
  display: flex;
  margin-top: 12px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-input);
}

.seg button {
  flex: 1;
  padding: 9px 0;
  border-radius: 8px;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-secondary);
}

.seg button.on {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
}

/* ---- full-page notices (S00, S00a, S00b, unsupported, other tab) ---- */
.center-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.center-page .logo {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
}

.center-page h1 {
  margin: 0;
  font-size: calc(28px * var(--fs, 1));
  font-weight: 700;
}

.center-page h2 {
  margin: 8px 0 0;
  font-size: calc(20px * var(--fs, 1));
  font-weight: 600;
}

.center-page p {
  margin: 0;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  max-width: 360px;
  white-space: pre-line;
}

.center-page .primary,
.center-page .outline {
  max-width: 320px;
  margin-top: 16px;
}

/* ---- nav bar ---- */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(44px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  background: var(--bg-card);
  flex: none;
}

.navbar.big {
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  background: var(--bg-page);
}

.navbar .title {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 0;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* docs/09 S11: friend presence line under a 1:1 chat title (docs/00 decision 90). */
.navbar.has-sub .title {
  line-height: 34px;
}

.navbar .sub {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 4px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.navbar.big .title {
  position: static;
  height: auto;
  line-height: normal;
  text-align: left;
  font-size: calc(22px * var(--fs, 1));
  font-weight: 700;
  padding-left: 8px;
  flex: 1;
}

.navbar .back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.navbar .back .ic {
  width: 20px;
  height: 20px;
}

.navbar .spacer {
  flex: 1;
}

.nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: 50%;
}

.line {
  height: 1px;
  background: var(--line);
  flex: none;
}

/* ---- main layout: phone (tabs at the bottom) / desktop (72 wide bar on the left) ---- */
.main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.tabbar {
  flex: none;
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar button {
  flex: 1;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--tab-normal);
  font-size: calc(11px * var(--fs, 1));
  position: relative;
}

.tabbar button.on {
  color: var(--tab-active);
  font-weight: 500;
}

.tabbar button span.lbl {
  padding-top: 3px;
}

.sidebar {
  display: none;
}

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--unread);
  color: var(--on-accent);
  font-size: calc(11px * var(--fs, 1));
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.badge.grey {
  background: var(--text-secondary);
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  font-size: 0;
}

.tabbar .badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
}

.pane-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: calc(14px * var(--fs, 1));
  flex-direction: column;
  gap: 16px;
}

.pane-empty .logo {
  width: 72px;
  height: 72px;
  opacity: 0.85;
}

@media (min-width: 960px) {
  .main .tabbar {
    display: none;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    flex: none;
    background: var(--bg-card);
    border-right: 1px solid var(--line);
    padding-top: 16px;
    gap: 8px;
  }

  .sidebar .me {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .sidebar button {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tab-normal);
  }

  .sidebar button.on {
    color: var(--tab-active);
    background: var(--accent-soft);
  }

  .sidebar .badge {
    position: absolute;
    top: 6px;
    right: 4px;
  }

  .main .list-col {
    width: 320px;
    flex: none;
    border-right: 1px solid var(--line);
  }

  .main .detail-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  #app.phone-frame {
    left: 50%;
    right: auto;
    width: 480px;
    margin-left: -240px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

/* ---- avatars ---- */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(18px * var(--fs, 1));
  font-weight: 600;
  overflow: hidden;
  user-select: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.s36 {
  width: 36px;
  height: 36px;
  font-size: calc(14px * var(--fs, 1));
}

.avatar.s72 {
  width: 72px;
  height: 72px;
  font-size: calc(26px * var(--fs, 1));
}

/* ---- S10 conversation list ---- */
.convs {
  background: var(--bg-card);
}

.conv {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.conv:hover {
  background: var(--bg-pressed);
}

.conv.pin {
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--bg-card));
}

.conv.sel {
  background: var(--accent-soft);
}

.conv::after {
  content: "";
  position: absolute;
  left: 76px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.conv .av-wrap {
  position: relative;
}

.conv .av-wrap .badge {
  position: absolute;
  top: -4px;
  right: -6px;
}

.conv .mid {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
}

.conv .r1,
.conv .r2 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.conv .name {
  flex: 1;
  font-size: calc(16px * var(--fs, 1));
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv .time {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.conv .r2 {
  padding-top: 3px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.conv .sum {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv .draft,
.conv .atme {
  color: var(--danger);
  flex: none;
}

.conv .atme {
  color: var(--unread);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  color: var(--text-secondary);
  font-size: calc(14px * var(--fs, 1));
  gap: 12px;
  white-space: pre-line;
}

.empty .ic {
  width: 48px;
  height: 48px;
  color: var(--chevron);
}

.conn-bar {
  flex: none;
  padding: 8px 16px;
  font-size: calc(13px * var(--fs, 1));
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
  text-align: center;
}

/* ---- S11 chat ---- */
.chat-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: var(--bg-page);
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
}

.chat-list .more {
  cursor: pointer;
  text-align: center;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 8px 0;
}

.tsep {
  text-align: center;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 12px 0 4px;
}

.sysline {
  text-align: center;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 6px 40px;
}

.msg {
  display: flex;
  align-items: flex-start;
  padding: 6px 12px;
  gap: 8px;
}

.msg.own {
  justify-content: flex-end;
}

.msg .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: calc(100% - 88px);
}

.msg.own .col {
  align-items: flex-end;
}

.msg .row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.msg .pad {
  width: 36px;
  flex: none;
}

.bubble {
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bubble-in);
  color: var(--bubble-in-text);
  font-size: calc(16px * var(--fs, 1));
  line-height: 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

@media (min-width: 960px) {
  .bubble {
    max-width: 480px;
  }
}

.msg.own .bubble {
  background: var(--bubble-out);
  color: var(--bubble-out-text);
}

.bubble a {
  color: var(--text-link);
  text-decoration: underline;
}

.bubble.emoji {
  background: transparent !important;
  padding: 0;
  font-size: calc(40px * var(--fs, 1));
  line-height: 48px;
}

.bubble.other {
  color: var(--text-secondary);
}

/* Contact card (docs/00 decision 105, docs/09 S11). */
.bubble.card {
  width: 240px;
  max-width: 100%;
  padding: 12px;
}

.bubble.card .card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.bubble.card .card-name {
  font-size: calc(16px * var(--fs, 1));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* group card (docs/00 decision 116): name over the member count */
.bubble.card .card-col {
  min-width: 0;
}

.bubble.card .card-sub {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.bubble.card .card-label {
  font-size: calc(12px * var(--fs, 1));
  padding-top: 6px;
  color: var(--text-secondary);
}

.quote {
  font-size: calc(12px * var(--fs, 1));
  line-height: 17px;
  opacity: 0.75;
  padding: 6px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
}

.rstate {
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
  padding-top: 2px;
}

.spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--text-secondary);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fail {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--on-accent);
  font-size: calc(12px * var(--fs, 1));
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex: none;
}

/* ---- media in chat and the viewer (docs/00 decision 137). The video frame and the viewer use content colours
   (black letterbox, white marks on top of pictures), as on Android; the rest is skin tokens. ---- */
.bubble.media,
.msg.own .bubble.media {
  max-width: 100%;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  line-height: normal;
  white-space: normal;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.mc {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-secondary);
}

.mc-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  text-align: center;
}

.mc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
}

.mc-pill .spin {
  width: 12px;
  height: 12px;
  border-color: #fff;
  border-right-color: transparent;
}

.mc-video {
  background: #000;
  color: #fff;
}

.mc-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}

.mc-play::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.mc-video.mc-waiting .mc-play {
  display: none;
}

.mc-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: #fff;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mc-file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: left;
}

.mf-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mf-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: calc(15px * var(--fs, 1));
  line-height: 20px;
}

.mf-p2p {
  padding-top: 2px;
  font-size: calc(10px * var(--fs, 1));
  line-height: 12px;
  color: var(--text-secondary);
}

.mf-size {
  padding-top: 4px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
}

.mf-note {
  padding-top: 4px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--danger);
}

.mf-wait {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
}

.mf-wait .spin {
  width: 12px;
  height: 12px;
}

/* An own message going out (docs/00 decision 144). */
.mf-up {
  padding-top: 4px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
}

.send-why {
  max-width: 260px;
  color: var(--danger);
  text-align: right;
}

.send-status {
  display: flex;
  flex: none;
}

/* The video a thumbnail is taken from: on the page, as an iPhone wants it, and out of sight. */
.probe-video {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

.chat-screen {
  position: relative;
}

.drop-hint {
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: var(--bg-page);
  opacity: 0.92;
  color: var(--accent);
  font-size: calc(16px * var(--fs, 1));
  pointer-events: none;
}

.mf-right {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--accent);
}

.mf-right .ic {
  width: 36px;
  height: 36px;
}

.mf-right .spin {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: var(--accent);
  border-right-color: transparent;
}

.mf-pct {
  font-size: calc(13px * var(--fs, 1));
  line-height: 18px;
}

.mf-get {
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: calc(14px * var(--fs, 1));
  line-height: 20px;
}

.mc-voice {
  --vc-bg: var(--bubble-in);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--vc-bg);
  color: var(--bubble-in-text);
  font-size: calc(15px * var(--fs, 1));
  line-height: 24px;
}

.msg.own .mc-voice {
  --vc-bg: var(--bubble-out);
  flex-direction: row-reverse;
  color: var(--bubble-out-text);
}

.vc-btn {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
}

.vc-btn::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  border-left: 9px solid var(--vc-bg);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.mc-voice.playing .vc-btn::after {
  left: 7px;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 0;
  background: var(--vc-bg);
}

.vc-btn.spin {
  width: 18px;
  height: 18px;
  margin: 3px;
  background: none;
  border-color: currentColor;
  border-right-color: transparent;
}

.vc-btn.spin::after {
  display: none;
}

.mv {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #000;
  color: #fff;
  overscroll-behavior: contain;
}

.mv-stage {
  position: absolute;
  top: env(safe-area-inset-top);
  right: env(safe-area-inset-right);
  bottom: env(safe-area-inset-bottom);
  left: env(safe-area-inset-left);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mv-media {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mv-bar {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  right: calc(8px + env(safe-area-inset-right));
  display: flex;
  gap: 8px;
}

/* docs/00 decision 161: 正在下载… N% of a save, over every page and the viewer. */
.save-pill {
  position: fixed;
  z-index: 10000;
  top: calc(60px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: calc(14px * var(--fs, 1));
  pointer-events: none;
}

.save-pill .spin {
  width: 14px;
  height: 14px;
}

.save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.save-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--text-link, inherit);
  font-size: calc(13px * var(--fs, 1));
}

.mv-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.mv-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
}

.mv-msg {
  max-width: 420px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  font-size: calc(14px * var(--fs, 1));
  line-height: 20px;
}

.mv-action {
  min-width: 120px;
  padding: 8px 20px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: calc(14px * var(--fs, 1));
  line-height: 20px;
  pointer-events: auto;
}

.inputbar {
  flex: none;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}

.inputbox {
  display: flex;
  align-items: flex-end;
  min-height: 48px;
  border-radius: 12px;
  background: var(--bg-input);
  padding: 0 6px 0 12px;
}

.inputbox textarea {
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: calc(16px * var(--fs, 1));
  line-height: 22px;
  padding: 13px 0;
  max-height: 122px;
  min-height: 48px;
}

.inputbox textarea::placeholder {
  color: var(--text-secondary);
}

.tool {
  width: 36px;
  height: 36px;
  margin: 6px 0 6px 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tab-normal);
  flex: none;
}

.tool.send.on {
  background: var(--accent);
  color: var(--on-accent);
}

.tool.on:not(.send) {
  color: var(--accent);
}

/* docs/09 S11: tool row under the input; 「+」 in an accent round */
.toolrow {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 44px;
  margin-top: 6px;
}

.toolrow .tool {
  margin: 0;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
}

.toolrow .tool.on {
  color: var(--accent);
}

/* A wide screen: together at the left, as on the desktop client */
@media (min-width: 960px) {
  .toolrow {
    justify-content: flex-start;
    gap: 8px;
  }
}

.toolrow .tool.plus::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}

.toolrow .tool.plus {
  position: relative;
}

.toolrow .tool.plus .ic {
  position: relative;
  color: var(--on-accent);
}

/* docs/09 S11 「+」 panel: 4 equal columns over the whole width; on a wide screen a column stops at 112 and the set is centred */
.plus-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 0;
  background: var(--bg-page);
  margin: 10px -12px 0;
  padding: 12px 16px;
}

@media (min-width: 960px) {
  .plus-panel {
    grid-template-columns: repeat(4, minmax(0, 112px));
  }
}

.plus-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
}

.plus-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.plus-label {
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
}

.emoji-panel {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 220px;
  overflow-y: auto;
  background: var(--bg-page);
  margin: 10px -12px 0;
  padding: 0 8px;
}

.emoji-panel button {
  font-size: calc(26px * var(--fs, 1));
  padding: 6px;
  border-radius: 8px;
}

.emoji-panel button:hover {
  background: var(--bg-pressed);
}

.input-note {
  text-align: center;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 20px;
  white-space: pre-line;
}

/* ---- lists and cards (S14-lite, about, language) ---- */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  margin: 12px 16px 0;
  overflow: hidden;
}

.lrow {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  gap: 12px;
  text-align: left;
  font-size: calc(16px * var(--fs, 1));
  position: relative;
}

.lrow + .lrow::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.lrow.with-icon + .lrow.with-icon::before {
  left: 52px;
}

.lrow .t {
  flex: 1;
  min-width: 0;
}

.lrow .v {
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  max-width: 60%;
  text-align: right;
  overflow-wrap: anywhere;
}

.lrow .chev {
  color: var(--chevron);
  width: 18px;
  height: 18px;
}

.lrow.danger {
  color: var(--danger);
  justify-content: center;
}

.lrow.danger .t {
  flex: none;
}

.me-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}

.me-head .nick {
  font-size: calc(20px * var(--fs, 1));
  font-weight: 600;
}

.me-head .acct {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  padding-top: 4px;
}

.radio {
  color: var(--accent);
}

/* ---- legal pages ---- */
.legal {
  padding: 8px 20px 32px;
  font-size: calc(15px * var(--fs, 1));
  line-height: 1.7;
  user-select: text;
}

.legal h1 {
  font-size: calc(22px * var(--fs, 1));
}

.legal h2 {
  font-size: calc(17px * var(--fs, 1));
  margin-top: 24px;
}

/* ---- toast, dialog, menu ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100% - 64px);
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.88);
  color: #fff;
  font-size: calc(14px * var(--fs, 1));
  text-align: center;
  z-index: 100;
  pointer-events: none;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.dialog {
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.dialog .body {
  padding: 20px 20px 12px;
}

.dialog h3 {
  margin: 0;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
  text-align: center;
}

.dialog p {
  margin: 10px 0 0;
  font-size: calc(14px * var(--fs, 1));
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.dialog .btns {
  display: flex;
  border-top: 1px solid var(--line);
  height: 48px;
}

.dialog .btns button {
  flex: 1;
  font-size: calc(16px * var(--fs, 1));
}

.dialog .btns button + button {
  border-left: 1px solid var(--line);
}

.dialog .btns .cancel {
  color: var(--text-secondary);
}

.dialog .btns .ok {
  color: var(--accent);
  font-weight: 500;
}

.dialog .btns .ok.danger {
  color: var(--danger);
}

.menu {
  position: fixed;
  z-index: 60;
  min-width: 160px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  padding: 4px 0;
}

.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-size: calc(16px * var(--fs, 1));
  text-align: left;
  white-space: nowrap;
}

.menu button:hover {
  background: var(--bg-pressed);
}

.menu button.danger {
  color: var(--danger);
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 59;
}

/* S11 已读详情 (docs/00 decision 96): readers with read times, then members who have not read */
.dialog.rd-sheet {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  max-height: min(600px, calc(100vh - 48px));
}

.rd-head {
  position: relative;
  padding: 14px 48px;
  border-bottom: 1px solid var(--line);
}

.rd-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.rd-list {
  overflow-y: auto;
  padding-bottom: 8px;
}

.rd-sec {
  padding: 12px 16px 6px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.rd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  min-height: 52px;
}

.rd-name {
  flex: 1;
  min-width: 0;
  font-size: calc(15px * var(--fs, 1));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-time {
  flex: none;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.rd-more {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.banner {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: calc(13px * var(--fs, 1));
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
}

.banner .grow {
  flex: 1;
}

/* The message list's card that asks for notifications (82-push.js); its close button is home.css's .a2hs-x. */
.push-card {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  font-size: calc(13px * var(--fs, 1));
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
}

.push-card .grow {
  flex: 1;
}

.push-go {
  flex: none;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 48px;
  text-align: center;
}

.waiting .spin {
  width: 32px;
  height: 32px;
  border-width: 3px;
  border-color: var(--accent);
  border-right-color: transparent;
}

.hidden {
  display: none !important;
}

.sp40 {
  width: 40px;
  height: 40px;
}

.gap28 {
  height: 28px;
}

.gap8 {
  height: 8px;
}

.card-bg {
  background: var(--bg-card);
}

/* docs/00 decision 110: 「群主」 / 「管理员」 tag after a member's name in a group chat (a filled tag, not text). */
.role-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: calc(10px * var(--fs, 1));
  line-height: 14px;
  font-weight: 500;
  color: var(--on-accent);
  background: var(--text-link);
  vertical-align: 1px;
}

.role-tag.owner {
  background: var(--accent);
}

/* ---- S50 客服工作台 / S50a 客服会话 (docs/00 decision 126, 75-csagent.js) ---- */
.lrow .badge {
  flex: none;
}

.csa-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  padding: 5px 10px;
  border-radius: 14px;
  background: var(--bg-input);
  font-size: calc(13px * var(--fs, 1));
}

.csa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--text-secondary);
}

.csa-dot.st1 {
  background: var(--online);
}

.csa-dot.st2 {
  background: var(--entry-yellow);
}

.csa-segs {
  flex: none;
  display: flex;
  background: var(--bg-card);
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.csa-segs button {
  flex: 1;
  min-width: 0;
  padding: 12px 2px 10px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 2px solid transparent;
}

.csa-segs button.on {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.csa-row .r1 {
  gap: 6px;
}

.csa-row .sum {
  display: block;
  padding-top: 3px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.csa-guest {
  flex: none;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg-input);
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
}

.csa-right {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 8px;
}

.csa-right .time {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.csa-small {
  min-height: 28px;
  padding: 4px 14px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--bg-card);
  color: var(--accent);
  font-size: calc(13px * var(--fs, 1));
  font-weight: 500;
}

.csa-small.fill {
  background: var(--accent);
  color: var(--on-accent);
}

.chat-list-more {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.outline.sm {
  width: auto;
  height: 32px;
  padding: 0 14px;
  font-size: calc(14px * var(--fs, 1));
  flex: none;
}

.csa-preview {
  flex: none;
  padding: 6px 0;
  text-align: center;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  background: var(--bg-input);
}

.csa-img {
  display: block;
  min-width: 48px;
  min-height: 48px;
  max-width: 160px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: calc(15px * var(--fs, 1));
}

.csa-img img {
  display: block;
  max-width: 160px;
  max-height: 240px;
}

.csa-img .spin {
  margin: 14px;
}

.csa-log {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--accent);
  font-size: calc(12px * var(--fs, 1));
}

.csa-note-row {
  display: flex;
  justify-content: center;
  padding: 6px 32px;
}

.csa-note {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
  font-size: calc(12px * var(--fs, 1));
  text-align: center;
  overflow-wrap: anywhere;
}

.csa-take {
  flex: none;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

.dialog.csa-sheet {
  max-width: 400px;
}

.csa-info-list {
  padding-top: 10px;
}

.csa-info {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  font-size: calc(14px * var(--fs, 1));
}

.csa-info .k {
  flex: none;
  width: 88px;
  color: var(--text-secondary);
}

.csa-info .v {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.csa-peers {
  max-height: 280px;
  overflow-y: auto;
  padding-top: 10px;
}

.csa-peer {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: left;
}

.csa-peer.on {
  background: var(--accent-soft);
}

.csa-peer.off {
  opacity: 0.4;
}

.csa-peer .n {
  flex: 1;
  min-width: 0;
  font-size: calc(15px * var(--fs, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csa-peer .v {
  flex: none;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.csa-note-in {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-input);
  resize: none;
  outline: 0;
  font-size: calc(14px * var(--fs, 1));
}

.csa-act {
  padding: 0 20px 16px;
}

.empty.small {
  padding: 16px;
}

/* chat.css */
/* S10 swipe, S11 quote / selection / @ / voice, the forward picker, S11a, S17, S19 (docs/00 decision 153). */

/* ---- S10: left swipe shows 置顶 and 删除 under the row (docs/09 S10) ---- */
.conv-swipe {
  position: relative;
  overflow: hidden;
}

.conv-swipe .conv {
  touch-action: pan-y;
  transition: transform 0.15s;
}

.conv-swipe.dragging .conv {
  transition: none;
}

.conv-acts {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.conv-swipe.open .conv-acts {
  display: flex;
}

.conv-act {
  width: 76px;
  font-size: calc(15px * var(--fs, 1));
  color: var(--on-accent);
}

.conv-act.pin {
  background: var(--text-secondary);
}

.conv-act.del {
  background: var(--danger);
}

/* ---- S11: the quoted line above the input (docs/09 S11) ---- */
.quote-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: calc(13px * var(--fs, 1));
  line-height: 18px;
}

.qb-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qb-x {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -4px;
  color: var(--text-secondary);
}

/* ---- to a message: the moment it is marked ---- */
.chat-list > .flash {
  animation: msg-flash 1.6s ease-out;
}

@keyframes msg-flash {
  0%,
  30% {
    background: var(--accent-soft);
  }
  100% {
    background: transparent;
  }
}

/* ---- S11 @ (docs/09 S11): a half sheet on a phone, a list over the input on a wide screen ---- */
.mention {
  color: var(--text-link);
}

.chat-list.dark-own .msg.own .mention,
.chat-list.dark-own .msg.own .bubble a {
  color: inherit;
  text-decoration: underline;
}

.inputbar {
  position: relative;
}

.scrim.at-scrim {
  align-items: flex-end;
  padding: 0;
}

.dialog.at-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 60vh;
  height: 60dvh;
  border-radius: 14px 14px 0 0;
}

.at-q {
  flex: none;
  padding: 8px 16px 0;
}

.at-q .field {
  margin: 0;
}

.at-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 env(safe-area-inset-bottom);
}

.at-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  text-align: left;
}

.at-row:hover,
.at-row.on {
  background: var(--bg-pressed);
}

.at-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(16px * var(--fs, 1));
  color: var(--text-primary);
}

.at-all {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: calc(20px * var(--fs, 1));
  font-weight: 700;
}

.at-pop {
  position: absolute;
  left: 12px;
  bottom: calc(100% - 4px);
  z-index: 5;
  width: 320px;
  max-width: calc(100% - 24px);
  max-height: 276px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.at-pop .at-row {
  padding: 6px 14px;
  gap: 10px;
}

.at-pop .at-name {
  font-size: calc(14px * var(--fs, 1));
}

.at-pop .avatar {
  width: 28px;
  height: 28px;
  font-size: calc(12px * var(--fs, 1));
}

.at-pop .at-all {
  width: 28px;
  height: 28px;
  font-size: calc(15px * var(--fs, 1));
}

.at-title {
  padding: 10px 14px 6px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.at-none {
  padding: 8px 14px 12px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

/* ---- S11b 按住说话 (docs/09 S11b): the card over the page while recording ---- */
.toolrow .tool.mic {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.voice-ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 220px;
  min-height: 200px;
  padding: 20px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  text-align: center;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.vo-card.cancel {
  background: var(--danger);
}

.vo-mic {
  width: 64px;
  height: 64px;
}

.vo-time {
  font-size: calc(16px * var(--fs, 1));
  font-variant-numeric: tabular-nums;
}

.vo-hint {
  font-size: calc(14px * var(--fs, 1));
  line-height: 20px;
}

.vo-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.vo-btn {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font-size: calc(14px * var(--fs, 1));
}

.vo-btn.send {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ---- S11 多选 (docs/09 S11) ---- */
.msg.selecting {
  cursor: pointer;
}

.sel-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 8px 0 0;
  border: 1.5px solid var(--chevron);
  border-radius: 50%;
  color: transparent;
}

.msg.own .sel-check {
  margin-right: auto;
}

.sel-check.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.sel-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 8px 0 16px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}

.sb-count {
  flex: 1;
  min-width: 0;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

.sb-btn {
  padding: 10px 12px;
  font-size: calc(16px * var(--fs, 1));
  color: var(--accent);
}

.sb-btn.danger {
  color: var(--danger);
}

.sb-btn.off {
  color: var(--text-secondary);
}

/* ---- S11a 聊天信息 (docs/09 S11a) ---- */
.ci-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.ci-name {
  flex: 1;
  min-width: 0;
  font-size: calc(17px * var(--fs, 1));
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-head .chev {
  color: var(--chevron);
}

/* ---- S17 搜索 (docs/09 S17) ---- */
.s-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
  background: var(--bg-card);
}

.s-bar .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.s-cancel {
  flex: none;
  color: var(--text-link);
  font-size: calc(16px * var(--fs, 1));
}

.s-seg {
  flex: none;
  margin: 8px 12px;
}

.s-seg button {
  font-size: calc(14px * var(--fs, 1));
  padding: 7px 0;
}

.s-list {
  padding-bottom: env(safe-area-inset-bottom);
}

.s-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.s-head .nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-head .tm {
  flex: none;
}

/* ---- S19 收藏 (docs/09 S19) ---- */
.fav-star {
  color: var(--entry-yellow);
}

.fav-row {
  align-items: center;
}

.fav-thumb {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--accent);
}

.fav-thumb.video {
  background: #000;
}

.fav-thumb.has .ic {
  display: none;
}

.fav-thumb.video .ic {
  position: absolute;
  color: #fff;
}

.fav-thumb.video.has .ic {
  display: block;
}

.fav-thumb .mc-img {
  position: absolute;
  inset: 0;
}

.fav-sum {
  font-size: calc(15px * var(--fs, 1));
  line-height: 20px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.fav-del {
  flex: none;
  padding: 6px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--danger);
}

.fav-meta {
  padding: 12px 16px 8px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.fav-text {
  margin: 0 16px;
  font-size: calc(16px * var(--fs, 1));
  line-height: 24px;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.fav-text a {
  color: var(--text-link);
  text-decoration: underline;
}

.fav-media {
  margin: 0 16px;
}

.fav-page .bubble.fwd {
  margin: 0 16px;
}

/* the picture across the page, whole, in a box of the height docs/09 S19 gives */
.fav-media.big .mc {
  width: 100% !important;
  height: 320px !important;
}

.fav-media.big .mc-video {
  height: 240px !important;
}

.fav-media.big .mc-img {
  object-fit: contain;
}

@media (min-width: 960px) {
  .fav-media.big .mc,
  .fav-media.big .mc-video {
    height: 360px !important;
  }
}

/* ---- a chat record (type 9) and its page (docs/09 S11) ---- */
.msg .bubble.fwd,
.msg.own .bubble.fwd {
  width: 240px;
  max-width: 100%;
  padding: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--line);
}

.fwd-title {
  font-size: calc(15px * var(--fs, 1));
  line-height: 20px;
  font-weight: 500;
}

.fwd-line {
  margin-top: 4px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-row {
  padding: 10px 16px;
}

.fd-row + .fd-row {
  border-top: 1px solid var(--line);
}

.fd-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: calc(12px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
}

.fd-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-time {
  flex: none;
}

.fd-text {
  margin-top: 4px;
  font-size: calc(15px * var(--fs, 1));
  line-height: 21px;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

/* 「+」 → 名片 */
.dialog.fp-card-sheet {
  flex: none;
}

/* ---- the forward picker: a page on a phone, a card on a wide screen (docs/09 S11 转发选择页) ---- */
.scrim.fp-scrim {
  padding: 0;
}

.dialog.fp-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
}

@media (min-width: 960px) {
  .dialog.fp-sheet {
    max-width: 420px;
    height: min(640px, calc(100vh - 48px));
    border-radius: 12px;
  }
}

.fp-head {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 52px;
  padding: env(safe-area-inset-top) 12px 0 44px;
  border-bottom: 1px solid var(--line);
}

.fp-head h3 {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
  pointer-events: none;
}

.fp-head .rd-close {
  left: 8px;
  right: auto;
  top: calc(8px + env(safe-area-inset-top));
}

.fp-head .text-btn {
  position: relative;
  color: var(--accent);
  font-size: calc(15px * var(--fs, 1));
}

.fp-head .text-btn:disabled {
  color: var(--text-secondary);
}

.fp-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.fp-prog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
}

.fp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}

.fp-line {
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-primary);
}

/* contacts.css */
/* S12 通讯录, S12b / S12c 标签, S20 - S23, S32 and the contact card sheet (docs/00 decision 142, 65-contacts.js). */

.tap {
  cursor: pointer;
  -webkit-user-select: none; /* a long press opens a menu, it does not select the name (as .conv) */
  user-select: none;
}

/* a contact card bubble is not a page card: no page margins */
.bubble.card {
  margin: 0;
}

.avatar.s40 {
  width: 40px;
  height: 40px;
  font-size: calc(16px * var(--fs, 1));
}

.avatar.s52 {
  width: 52px;
  height: 52px;
  font-size: calc(20px * var(--fs, 1));
}

.avatar.s64 {
  width: 64px;
  height: 64px;
  font-size: calc(24px * var(--fs, 1));
}

/* ---- S12: list, entry tiles, letter groups, A-Z index ---- */
.clist-wrap {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}

.clist {
  position: relative; /* offsetTop of the letter headers */
  padding-bottom: 16px;
  scrollbar-width: none; /* the A-Z index sits where a scroll bar would be */
}

.clist::-webkit-scrollbar {
  display: none;
}

.clist .card {
  margin: 4px 28px 0 16px;
}

.tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
}

.tile .ic {
  width: 22px;
  height: 22px;
}

.tile.green {
  background: var(--entry-green);
}

.tile.red {
  background: var(--entry-red);
}

.tile.blue {
  background: var(--entry-blue);
}

.tile.yellow {
  background: var(--entry-yellow);
}

.lrow.tile-row {
  padding: 10px 16px;
}

.lrow.tile-row + .lrow.tile-row::before {
  left: 68px;
}

.lrow.sel {
  background: var(--accent-soft);
}

.clist button.lrow:hover,
.cpage button.lrow:hover {
  background: var(--bg-pressed);
}

.lrow.sel:hover {
  background: var(--accent-soft) !important;
}

.lrow.red {
  color: var(--danger);
}

.chead {
  height: 28px;
  line-height: 28px;
  padding-left: 32px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.cgroup {
  margin: 0 28px 0 16px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.crow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
}

.crow + .crow::before {
  content: "";
  position: absolute;
  left: 68px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.crow:hover {
  background: var(--bg-pressed);
}

.crow.sel {
  background: var(--accent-soft);
}

.crow .n {
  flex: 1;
  min-width: 0;
  font-size: calc(16px * var(--fs, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* docs/00 decision 114: green dot at the avatar's bottom right, ringed in the row colour */
.av-wrap {
  position: relative;
  flex: none;
}

.av-wrap.online::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online);
  border: 2px solid var(--bg-card);
}

.az {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4px;
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.az button {
  flex: 0 1 16px;
  min-height: 0;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: calc(10px * var(--fs, 1));
  line-height: 16px;
  color: var(--text-secondary);
  pointer-events: auto;
}

.az button.on {
  background: var(--accent);
  color: var(--on-accent);
}

.az button .ic {
  width: 10px;
  height: 10px;
}

/* ---- pages: full width on phones, a centred column in the right column of wide screens ---- */
.cpage {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.cpage.form,
.form-in {
  padding-left: 16px;
  padding-right: 16px;
}

.cpage.form {
  padding-top: 8px;
}

.form-to {
  padding-top: 8px;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 500;
  overflow-wrap: anywhere;
}

.flist {
  margin-top: 8px;
  background: var(--bg-card);
}

.req {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.req + .req::before {
  content: "";
  position: absolute;
  left: 68px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.req.tap:hover {
  background: var(--bg-pressed);
}

.req .mid,
.af-res .mid,
.up-head .mid {
  flex: 1;
  min-width: 0;
}

.req .nm {
  font-size: calc(16px * var(--fs, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.req .ms {
  padding-top: 2px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.req .tm {
  padding-top: 2px;
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
}

.req-st {
  flex: none;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.pill {
  flex: none;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 16px;
  border: 1px solid var(--accent);
  background: var(--bg-card);
  color: var(--accent);
  font-size: calc(14px * var(--fs, 1));
  font-weight: 500;
  white-space: nowrap;
}

.pill.fill {
  background: var(--accent);
  color: var(--on-accent);
}

.pill.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.pill:disabled {
  opacity: 0.5;
}

.req .pill + .pill {
  margin-left: -4px;
}

/* S20 */
.af-q {
  padding: 12px 16px 0;
}

.af-res {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.af-res .nm {
  font-size: calc(17px * var(--fs, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-res .sub {
  padding-top: 2px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.af-note {
  flex: none;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

.af-hint {
  padding: 0 16px 12px;
}

.ta {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  resize: none;
  outline: 0;
  font-size: calc(16px * var(--fs, 1));
  line-height: 22px;
}

.ta::placeholder {
  color: var(--text-secondary);
}

.ta-count {
  padding-top: 4px;
  text-align: right;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

/* S23 */
.up-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.up-head .nm {
  font-size: calc(18px * var(--fs, 1));
  font-weight: 600;
  overflow-wrap: anywhere;
}

.up-head .sub {
  padding-top: 2px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.up-btns {
  padding: 20px 16px 8px;
}

.up-btns .hint {
  margin: 0 0 12px;
  padding: 0;
  font-size: calc(13px * var(--fs, 1));
  text-align: center;
}

/* dialogs of these pages */
.dialog .field {
  margin-top: 14px;
}

.dialog .err {
  text-align: center;
}

.dialog .btns .ok:disabled {
  opacity: 0.4;
}

.dialog.tp-sheet {
  max-width: 360px;
}

.tp-list {
  max-height: min(320px, calc(100vh - 240px));
  overflow-y: auto;
  padding-top: 8px;
}

.tp-none {
  padding: 12px 0;
  font-size: calc(14px * var(--fs, 1));
}

.tp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: calc(16px * var(--fs, 1));
}

.tp-row .n {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tp-new {
  padding: 8px 0 0;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 500;
  color: var(--accent);
}

.check.round {
  border-radius: 50%;
}

/* contact card sheet (docs/00 decision 116) */
.dialog.ccard {
  position: relative;
  max-width: 340px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ccard-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ccard-head .nm {
  max-width: 100%;
  font-size: calc(18px * var(--fs, 1));
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}

.ccard-act {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 20px;
  min-height: 48px;
}

.ccard-act .hint {
  padding: 0;
  font-size: calc(14px * var(--fs, 1));
  text-align: center;
}

.ccard-view {
  margin-top: 14px;
  padding: 6px;
  font-size: calc(14px * var(--fs, 1));
}

/* the 「新建」 text button in a nav bar */
.nav-text {
  color: var(--accent);
}

/* picker and form bottom bar */
.pk-bar {
  flex: none;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

@media (min-width: 960px) {
  .pk-bar .primary {
    display: block;
    max-width: 568px;
    margin: 0 auto;
  }
}

.sec-t {
  padding: 16px 20px 8px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

.cpage .sec-t + .card {
  margin-top: 0;
}

/* 投诉: screenshots */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 16px;
}

.cp-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--bg-card);
  overflow: hidden;
}

.cp-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-add {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.cp-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.cp-prog {
  padding-bottom: 8px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

/* ---- 我 and 设置 (docs/09 S14-S16) ---- */
.me-head.tap {
  cursor: pointer;
}

.me-head .grow {
  flex: 1;
  min-width: 0;
}

.me-head .chev {
  color: var(--chevron);
  width: 18px;
  height: 18px;
}

.lrow.center {
  justify-content: center;
  color: var(--text-secondary);
}

.lrow.center .t {
  flex: none;
}

.lrow .ic.radio {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.lrow .v.mono {
  font-family: ui-monospace, Consolas, monospace;
}

.lrow .verified {
  font-size: calc(12px * var(--fs, 1));
  color: var(--amount-in);
}

.row-icon {
  display: flex;
  color: var(--text-secondary);
  padding: 4px;
}

.set-title {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 16px 32px 0;
}

.set-note {
  margin: 0;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  padding: 10px 32px;
}

.set-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  border: 0;
}

.set-area {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  border: 0;
  resize: none;
}

.set-count {
  text-align: right;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  padding-top: 6px;
}

.cpage.form.gap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-list {
  margin-top: 8px;
}

.choice-list .lrow {
  padding-left: 0;
  padding-right: 0;
  min-height: 44px;
}

.choice-list .lrow::before {
  display: none;
}

.skin-chip {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: none;
  background: linear-gradient(135deg, var(--accent) 50%, var(--bg-page) 50%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dnd-on {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.dnd-times label {
  display: block;
  padding-top: 12px;
  font-size: calc(14px * var(--fs, 1));
}

.notice-warn {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  font-size: calc(14px * var(--fs, 1));
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
}

.dev-row .dev-name {
  overflow-wrap: anywhere;
}

.dev-row .dev-seen {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  padding-top: 4px;
}

.dev-kick {
  color: var(--danger);
  font-size: calc(15px * var(--fs, 1));
  padding: 8px;
  flex: none;
}

.dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unread);
  flex: none;
}

.acct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  position: relative;
}

.acct-row.tap {
  cursor: pointer;
}

.acct-row .mid {
  flex: 1;
  min-width: 0;
}

.acct-row .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-row .sub {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  padding-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-row .ic.radio {
  color: var(--accent);
}

.qr-card {
  margin: 16px auto 0;
  width: calc(100% - 32px);
  max-width: 340px;
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.qr-head .nm {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.qr-head .sub {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.qr-canvas {
  width: 260px;
  height: 260px;
  max-width: 100%;
}

.qr-note {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  text-align: center;
}

.qr-off {
  color: var(--danger);
  padding-bottom: 6px;
}

.qr-save {
  margin: 16px auto;
  width: calc(100% - 32px);
  max-width: 340px;
}

.qr-save .outline {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.qr-save .outline:disabled {
  opacity: 0.5;
}

.lrow.wipe {
  color: var(--danger);
}

/* groups (77-group.js) */
.gm-head {
  display: flex;
  align-items: center;
  padding: 14px 8px 4px 16px;
}

.gm-count {
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-primary);
}

.gm-online {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
}

.gm-head .spacer {
  flex: 1;
}

.gm-search {
  display: flex;
  padding: 8px;
  color: var(--text-secondary);
}

.gm-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 0;
  padding: 6px 8px 14px;
}

.gm-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gm-cell.still {
  cursor: default;
}

.gm-av {
  position: relative;
  display: block;
}

.gm-mark {
  position: absolute;
  top: -4px;
  right: -8px;
  padding: 0 3px;
  border-radius: 4px;
  font-size: calc(9px * var(--fs, 1));
  color: var(--on-accent);
  background: var(--text-secondary);
  white-space: nowrap;
}

.gm-mark.owner {
  background: var(--accent);
}

.gm-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-secondary);
}

.gm-name {
  max-width: 100%;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-muted {
  font-size: calc(13px * var(--fs, 1));
  color: var(--danger);
}

.gm-search-box {
  padding: 8px 16px;
}

.gk-ban {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-primary);
}

.pick-foot {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card);
}

.pick-foot.hidden {
  display: none;
}

.ann-text {
  padding: 0;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.card > .ann-text {
  padding: 16px;
}

.ann-pop-name {
  margin-top: 4px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  text-align: center;
}

.ann-pop-text {
  margin-top: 12px;
  max-height: 360px;
  overflow-y: auto;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pin-bar {
  display: flex;
  align-items: center;
  flex: none;
  height: 44px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.pin-bar.hidden {
  display: none;
}

.pb-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 4px 0 16px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-primary);
}

.pb-ic {
  display: flex;
  color: var(--accent);
}

.pb-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: calc(14px * var(--fs, 1));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-chev {
  display: flex;
  color: var(--chevron);
  transform: rotate(90deg);
}

.pin-bar.open .pb-chev {
  transform: rotate(-90deg);
}

.pb-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  background: none;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
}

.pin-anchor {
  position: relative;
  flex: none;
  height: 0;
  z-index: 5;
}

.pin-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
}

.pin-card.hidden {
  display: none;
}

.pc-box {
  display: flex;
  flex-direction: column;
  max-height: 60vh;
  background: var(--bg-card);
}

.pc-inner {
  overflow-y: auto;
  padding: 12px 16px 4px;
}

.pc-fold {
  flex: none;
  height: 44px;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--accent);
  cursor: pointer;
  font-size: calc(14px * var(--fs, 1));
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.pin-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-pressed);
  cursor: pointer;
}

.pin-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin-cell.add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-secondary);
}

.pin-wrap {
  position: relative;
}

.pin-del {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  padding: 3px;
  border: 0;
  border-radius: 0 6px 0 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.pin-by {
  margin-top: 6px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.pin-read {
  padding: 16px;
}

.pin-note {
  padding: 10px 16px;
  margin: 0;
  font-size: calc(12px * var(--fs, 1));
}

.pin-edit {
  padding: 16px;
}

.qr-save.two {
  display: flex;
  gap: 12px;
}

.gf-up {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
}

.gf-more {
  display: flex;
  padding: 6px;
  background: none;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
}

.gc-count {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

/* home.css */
/* The bar that says how to add the page to the home screen (83-home.js). */
.a2hs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 56px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  font-size: calc(13px * var(--fs, 1));
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
}

.a2hs .grow {
  flex: 1;
}

.a2hs-x {
  flex: none;
  display: flex;
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* moments.css */
/* S13 探索, S40 朋友圈, S03 在线客服 (docs/09; docs/00 decision 160). Classes are ex-, mo- and cs3- so nothing here reaches other pages. */

.mo-dim {
  opacity: 0.45;
}

/* S13 */
.ex-page {
  padding: 4px 0 16px;
}

.ex-sec {
  padding: 14px 20px 8px;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 600;
  color: var(--text-primary);
}

.ex-card {
  margin-top: 10px;
}

.ex-sec + .ex-card {
  margin-top: 0;
}

.ex-card.decor {
  background: var(--accent-soft);
}

.ex-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  text-align: left;
}

.ex-row + .ex-row {
  border-top: 1px solid var(--line);
}

.ex-row.featured {
  min-height: 92px;
}

.ex-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ex-t {
  font-size: calc(16px * var(--fs, 1));
  color: var(--text-primary);
}

.ex-row.featured .ex-t {
  font-size: calc(18px * var(--fs, 1));
  font-weight: 600;
}

.ex-s {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-row.featured .ex-s {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ex-ic {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
}

.ex-ic.big {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.ex-ic.round,
.ex-ic.logo {
  border-radius: 50%;
}

.ex-ic.accent {
  background: var(--accent);
}

.ex-ic.red {
  background: var(--entry-red);
}

.ex-ic.blue {
  background: var(--entry-blue);
}

.ex-ic.grey {
  background: var(--tab-normal);
}

.ex-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* S10 row */
.mo-note {
  cursor: pointer;
}

/* S40 */
.mo-page {
  background: var(--bg-card);
}

.mo-cover {
  position: relative;
  height: 180px;
  margin-bottom: 32px;
  background: var(--accent-soft);
}

.mo-cover.tap {
  cursor: pointer;
}

.mo-cover-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mo-cover-who {
  position: absolute;
  right: 16px;
  bottom: -20px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.mo-cover-name {
  padding-bottom: 24px;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
  color: var(--text-primary);
}

.mo-cover.has .mo-cover-name {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mo-cover-av .avatar {
  border-radius: 8px;
}

.mo-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.mo-av {
  flex: none;
  align-self: flex-start;
}

.mo-av .avatar {
  border-radius: 6px;
}

.mo-col {
  flex: 1;
  min-width: 0;
}

.mo-name {
  font-size: calc(16px * var(--fs, 1));
  font-weight: 500;
  color: var(--text-link);
  text-align: left;
}

.mo-text {
  margin-top: 4px;
  font-size: calc(15px * var(--fs, 1));
  line-height: 1.47;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mo-grid {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  width: fit-content;
}

.mo-grid.c1 {
  grid-template-columns: 200px;
}

.mo-grid.c2 {
  grid-template-columns: repeat(2, 86px);
}

.mo-grid.c3 {
  grid-template-columns: repeat(3, 86px);
}

.mo-pic {
  display: block;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-pressed);
}

.mo-pic.one {
  width: 200px;
  height: 200px;
}

.mo-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mo-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 240px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  color: #fff;
}

.mo-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mo-video .ic {
  position: relative;
}

.ic.s40 {
  width: 40px;
  height: 40px;
}

.mo-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.mo-time {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.mo-del {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-link);
}

.mo-act {
  display: flex;
  padding: 2px;
  color: var(--text-secondary);
}

.mo-act.liked {
  color: var(--unread);
}

.mo-act.off {
  opacity: 0.4;
}

.mo-heart {
  width: 22px;
  height: 22px;
  display: block;
}

.mo-heart.small {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.mo-social {
  margin-top: 8px;
  padding: 8px;
  border-radius: 4px;
  background: var(--bg-page);
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-primary);
}

.mo-likes {
  color: var(--text-link);
}

.mo-comment {
  padding-top: 4px;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mo-link {
  color: var(--text-link);
}

/* the publish page */
.mo-edit {
  padding: 16px;
}

.mo-edit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mo-edit-cell {
  position: relative;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.mo-edit-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mo-edit-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}

.mo-who {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
}

.mo-who-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-primary);
}

.set-note.danger {
  color: var(--danger);
}

/* 朋友圈通知 */
.mo-note-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
}

.mo-note-row + .mo-note-row {
  border-top: 1px solid var(--line);
}

.mo-note-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: calc(15px * var(--fs, 1));
}

.mo-liked {
  color: var(--unread);
}

.mo-note-text {
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mo-note-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-pressed);
}

.mo-note-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the viewer: several pictures */
.mv-at {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  left: 16px;
  color: #fff;
  font-size: calc(14px * var(--fs, 1));
}

.mv-btn.mv-prev,
.mv-btn.mv-next {
  position: absolute;
  top: 50%;
  margin-top: -22px;
}

.mv-btn.mv-prev {
  left: 12px;
  transform: rotate(180deg);
}

.mv-btn.mv-next {
  right: 12px;
}

/* S03 */
.cs3-guest {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.cs3-band {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 12px;
  background: linear-gradient(var(--cs-header-top, var(--accent)), var(--cs-header-bottom, var(--accent)));
  color: var(--on-accent, #fff);
}

.cs3-logo {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  background: var(--on-accent, #fff);
  overflow: hidden;
}

.cs3-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.cs3-who {
  flex: 1;
  min-width: 0;
  font-size: calc(17px * var(--fs, 1));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs3-more {
  display: flex;
  padding: 4px;
  color: inherit;
}

.cs3-sys {
  text-align: center;
  padding: 8px 24px;
}

.cs3-sys span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.cs3-col {
  max-width: min(300px, 75vw);
}

.cs3-meta {
  padding: 0 0 4px;
  font-size: calc(12px * var(--fs, 1));
  white-space: nowrap;
}

.msg.own .cs3-meta {
  text-align: right;
}

.cs3-bubble {
  position: relative;
}

.msg:not(.own) .cs3-bubble:has(.cs3-copy) {
  padding-right: 28px;
}

.cs3-copy {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  color: var(--text-secondary);
}

.cs3-av {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs3-av img {
  width: 100%;
  height: 100%;
  display: block;
}

.cs3-av.ai {
  background: var(--accent);
  color: #fff;
}

.cs3-foot {
  flex: none;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg-card);
}

.cs3-human {
  margin-bottom: 8px;
}

.cs3-logline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cs3-logtxt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cs3-logt {
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-primary);
}

.cs3-logd {
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.cs3-input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: calc(15px * var(--fs, 1));
  resize: none;
}

.cs3-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cs3-send {
  padding: 8px 22px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--on-accent, #fff);
  font-size: calc(15px * var(--fs, 1));
}

.cs3-send:disabled {
  opacity: 0.4;
}

.mo-foot .grow,
.cs3-tools .grow {
  flex: 1;
}

/* wallet.css */
/* docs/09 S43-S49, S02b, S02c, S14b (docs/00 decision 159). */

.pts-sym {
  color: var(--accent);
  font-size: 0.8em;
}

.lrow-sub {
  display: block;
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
}

.rp-cell .plus-card {
  color: var(--rp-card);
}

.lrow .v.amount {
  color: var(--accent);
}

.lrow .v.bad {
  color: var(--danger);
}

/* S43 */
.wallet-card {
  margin: 12px 16px;
  padding: 20px;
  border-radius: 12px;
  background: var(--wallet-card);
  color: var(--wallet-card-text);
  font-size: calc(14px * var(--fs, 1));
}

.wc-num {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: calc(38px * var(--fs, 1));
  font-weight: 700;
  color: var(--wallet-card-num);
  overflow-wrap: anywhere;
}

.wc-num .pts-sym {
  color: var(--wallet-card-num);
}

.w-frozen {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--notice-warn-bg);
  color: var(--notice-warn-text);
}

.wf-t {
  font-size: calc(15px * var(--fs, 1));
  font-weight: 600;
}

.wf-d {
  margin-top: 2px;
  font-size: calc(12px * var(--fs, 1));
}

/* S44, S43b, S47, S49 lines */
.w-list {
  background: var(--bg-card);
}

.w-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.w-row.flat {
  padding: 0;
  border-bottom: none;
}

.w-col {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.w-row .grow,
.w-col .grow {
  flex: 1;
  min-width: 0;
}

.wr-t {
  font-size: calc(16px * var(--fs, 1));
  overflow-wrap: anywhere;
}

.wr-s {
  margin-top: 2px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.wr-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  max-width: 50%;
  text-align: right;
}

.wr-amt {
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
}

.wr-amt.in {
  color: var(--amount-in);
}

.wr-m {
  font-size: calc(15px * var(--fs, 1));
}

.wn-ic,
.wn-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.wn-big {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  color: var(--on-accent);
}

.wallet-note .pts-sym {
  color: inherit;
}

.wn-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--danger);
  vertical-align: middle;
}

/* S48b, S48 */
.pin-scrim {
  align-items: flex-end;
  padding: 0;
}

.pin-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  background: var(--bg-card);
  text-align: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.pin-head {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-x {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
}

.pin-title {
  font-size: calc(17px * var(--fs, 1));
  font-weight: 600;
}

.pin-sub {
  margin-bottom: 18px;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-secondary);
}

.pin-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pin-boxes.shake {
  animation: pin-shake 0.27s;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(14px); }
  40% { transform: translateX(-14px); }
  60% { transform: translateX(10px); }
  80% { transform: translateX(-5px); }
}

.pin-box {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
}

.pin-box.cur {
  border-color: var(--text-secondary);
}

.pin-box.on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--text-primary);
}

.pin-err {
  min-height: 36px;
  padding: 10px 24px 0;
  font-size: calc(13px * var(--fs, 1));
  color: var(--danger);
  text-align: center;
}

.pin-forgot {
  margin-bottom: 10px;
  padding: 0 16px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--bg-page);
}

.pin-key {
  height: 48px;
  border-radius: 8px;
  background: var(--bg-card);
  font-size: calc(24px * var(--fs, 1));
  font-weight: 500;
  color: var(--text-primary);
}

.pin-key.none {
  background: transparent;
}

.pad-del {
  font-size: calc(22px * var(--fs, 1));
}

.pin-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 16px;
}

.pin-page .field {
  width: 100%;
  max-width: 360px;
}

.pin-ask {
  margin-bottom: 24px;
  font-size: calc(17px * var(--fs, 1));
  text-align: center;
}

.pin-next {
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
}

.pin-forgot-link {
  margin-top: 8px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-link);
}

.pin-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pin-page-pad .pin-pad {
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

/* S45 */
.rp-send-body {
  padding-top: 12px;
}

.rp-seg {
  margin: 0 16px 12px;
}

.rp-seg button.on {
  background: var(--rp-card);
  color: var(--on-accent);
}

.rp-row {
  cursor: text;
}

.rp-hint {
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
}

.rp-num {
  width: 120px;
  flex-shrink: 0;
  text-align: right;
  font-size: calc(16px * var(--fs, 1));
  background: transparent;
  color: var(--text-primary);
  caret-color: var(--rp-card);
}

.rp-row .pts-sym {
  margin-right: -10px;
}

.rp-greet {
  flex: 1;
  min-width: 0;
  font-size: calc(16px * var(--fs, 1));
  background: transparent;
  color: var(--text-primary);
  caret-color: var(--rp-card);
}

.rp-total {
  margin-top: 36px;
  text-align: center;
  font-size: calc(44px * var(--fs, 1));
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rp-problem {
  min-height: 28px;
  padding: 6px 16px 0;
  text-align: center;
  font-size: calc(13px * var(--fs, 1));
  color: var(--danger);
}

.rp-btn {
  padding: 12px 40px;
}

.rp-send {
  background: var(--rp-card);
}

.rp-members {
  max-height: 340px;
  margin-top: 8px;
  overflow-y: auto;
}

.rp-member-sheet {
  width: 320px;
  max-width: calc(100vw - 32px);
}

/* S45a */
.bubble.rp-bubble {
  width: 220px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
}

.rp-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--rp-bubble);
  color: var(--on-accent);
}

.rp-bubble.done .rp-top {
  background: var(--rp-bubble-done);
}

.rp-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 27px;
  height: 34px;
  border-radius: 4px;
  background: var(--rp-card);
}

.rp-seal {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rp-gold);
}

.rp-col {
  flex: 1;
  min-width: 0;
}

.rp-text {
  overflow: hidden;
  font-size: calc(15px * var(--fs, 1));
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rp-st {
  margin-top: 2px;
  font-size: calc(12px * var(--fs, 1));
}

.rp-brand {
  padding: 4px 12px;
  overflow: hidden;
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rp-word {
  color: var(--rp-card);
}

/* S45b */
.rpo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  max-width: calc(100vw - 32px);
  height: 450px;
  max-height: calc(100vh - 32px);
  padding: 44px 16px 16px;
  border-radius: 12px;
  background: var(--rp-card);
  color: var(--rp-gold);
}

.rpo-x {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--rp-gold);
}

.rpo-from {
  margin-top: 12px;
  font-size: calc(16px * var(--fs, 1));
}

.rpo-say {
  margin-top: 24px;
  padding: 0 8px;
  font-size: calc(20px * var(--fs, 1));
  font-weight: 500;
  text-align: center;
  overflow-wrap: anywhere;
}

.rpo-foot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpo-open {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--rp-gold);
  color: var(--rp-card);
  font-size: calc(38px * var(--fs, 1));
  font-weight: 700;
}

.rpo-open.spin {
  animation: rp-spin 0.6s linear infinite;
}

@keyframes rp-spin {
  to { transform: rotate(360deg); }
}

.rpo-link {
  padding: 12px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--rp-gold);
}

/* S45c */
.rpd-bar {
  background: var(--rp-card);
  color: var(--on-accent);
}

.rpd-bar .title {
  color: var(--on-accent);
}

.navbar.rpd-bar .back {
  background: rgba(255, 255, 255, 0.18);
  color: var(--on-accent);
}

.rp-num,
.rp-greet,
.rd-input,
.kyc-input {
  border: 0;
  outline: 0;
}

.rpd-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px 24px;
  margin-bottom: 12px;
  background: var(--rp-card);
  color: var(--on-accent);
  text-align: center;
}

.rpd-from {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(17px * var(--fs, 1));
  font-weight: 500;
}

.rpd-say {
  margin-top: 8px;
  font-size: calc(14px * var(--fs, 1));
  opacity: 0.85;
  overflow-wrap: anywhere;
}

.rpd-to {
  margin-top: 6px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--rp-gold);
}

.rpd-mine {
  margin-top: 18px;
  font-size: calc(44px * var(--fs, 1));
  font-weight: 700;
  color: var(--rp-gold);
  overflow-wrap: anywhere;
}

.rpd-dep {
  padding: 6px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--rp-gold);
}

.rpd-line {
  padding: 12px 16px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

.rpd-wait {
  padding: 12px 16px;
  text-align: center;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
}

/* docs/00 168 item 6: the detail could not be read */
.rpd-fail {
  padding: 24px 16px;
}

.rpd-row .wr-t {
  font-size: calc(15px * var(--fs, 1));
}

.rpd-best {
  margin-top: 2px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--notice-warn-text);
}

/* S46 */
.rdm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: calc(15px * var(--fs, 1));
}

.rdm-head .grow {
  flex: 1;
}

.rd-star {
  color: var(--entry-yellow);
}

.rd-avail {
  font-size: calc(20px * var(--fs, 1));
  font-weight: 700;
  color: var(--accent);
}

.rd-card {
  padding: 14px 16px;
}

.rd-label {
  font-size: calc(15px * var(--fs, 1));
}

.rd-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rd-input {
  flex: 1;
  min-width: 0;
  font-size: calc(22px * var(--fs, 1));
  font-weight: 600;
  background: transparent;
  color: var(--text-primary);
  caret-color: var(--accent);
}

.rd-input::placeholder {
  font-size: calc(18px * var(--fs, 1));
  font-weight: 400;
}

.rd-all {
  padding: 4px 6px;
  font-size: calc(15px * var(--fs, 1));
  color: var(--text-link);
}

.rd-all:disabled {
  color: var(--text-secondary);
}

.rd-line {
  padding-top: 8px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.rd-line.bad {
  color: var(--danger);
}

.rd-btn {
  padding: 24px 16px 12px;
}

/* S47 */
.ord-st {
  flex-shrink: 0;
  font-size: calc(14px * var(--fs, 1));
  color: var(--danger);
}

.ord-st.st1 {
  color: var(--text-link);
}

.ord-st.st2 {
  color: var(--accent);
}

.ord-st.st3 {
  color: var(--text-secondary);
}

.ord-reason {
  margin-top: 10px;
  font-size: calc(13px * var(--fs, 1));
  overflow-wrap: anywhere;
}

.ord-cancel {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  font-size: calc(15px * var(--fs, 1));
  color: var(--danger);
}

/* S49 */
.team-sum {
  display: flex;
  padding: 18px 0;
}

.team-stat {
  flex: 1;
  text-align: center;
}

.ts-n {
  font-size: calc(20px * var(--fs, 1));
  font-weight: 700;
}

.ts-l {
  margin-top: 4px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-secondary);
}

.team-chips {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
}

.team-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--bg-card);
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-secondary);
  white-space: nowrap;
}

.team-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 16px 8px 8px;
  gap: 0;
  background: var(--bg-card);
}

.team-row .grow {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
}

.team-row .wr-r {
  margin-left: 12px;
}

.team-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.team-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
}

.team-arrow.open .ic {
  transform: rotate(90deg);
}

.team-name {
  display: flex;
  align-items: center;
  font-size: calc(16px * var(--fs, 1));
}

.team-name .nm {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-tag {
  flex-shrink: 0;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-pressed);
  font-size: calc(10px * var(--fs, 1));
  color: var(--text-secondary);
}

.team-more {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  background: var(--bg-card);
  text-align: left;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-link);
}

/* S02b, S02c, S14b */
.kyc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 24px;
}

.kyc-card .primary,
.kyc-card .outline {
  width: 100%;
}

.kyc-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.kyc-title {
  font-size: calc(20px * var(--fs, 1));
  font-weight: 600;
  text-align: center;
}

.kyc-desc {
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  text-align: center;
}

.kyc-reason {
  font-size: calc(14px * var(--fs, 1));
  color: var(--danger);
  text-align: center;
  overflow-wrap: anywhere;
}

.bank-why .kyc-reason {
  margin-top: 4px;
  text-align: left;
}

.kyc-done {
  font-size: calc(14px * var(--fs, 1));
  font-weight: 500;
  color: var(--amount-in);
  text-align: center;
}

.kyc-l {
  flex-shrink: 0;
  width: 96px;
}

.kyc-input {
  flex: 1;
  min-width: 0;
  font-size: calc(16px * var(--fs, 1));
  background: transparent;
  color: var(--text-primary);
}

.kyc-side {
  display: flex;
  align-items: center;
}

.kyc-thumb {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.kyc-send {
  padding: 24px 16px 0;
}

.kyc-send .kyc-desc {
  margin-top: 8px;
}

.kyc-line {
  min-height: 20px;
  padding: 12px 16px 24px;
  font-size: calc(14px * var(--fs, 1));
  color: var(--text-secondary);
  text-align: center;
}

.kyc-line.bad {
  color: var(--danger);
}

.kyc-line.good {
  font-weight: 500;
  color: var(--amount-in);
}

.msg .bubble.rp-bubble,
.msg.own .bubble.rp-bubble {
  background: var(--bg-card);
  color: var(--text-secondary);
}
