vocat.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. /* ==========================================================================
  2. vocat design system — ported 1:1 from the VoHive reference build.
  3. Light + dark themes, glassmorphism "ui-*" surfaces, sidebar, menu,
  4. disclaimer, skeletons and keyframes. Plain CSS imported after Tailwind.
  5. ========================================================================== */
  6. /* ---- Keyframes (top-level so they are always emitted) ---- */
  7. @keyframes loader-shimmer {
  8. 0% { transform: translate(-60%); }
  9. 100% { transform: translate(60%); }
  10. }
  11. @keyframes pulse {
  12. 0%, 100% { opacity: 0.3; transform: scale(1); }
  13. 50% { opacity: 0.6; transform: scale(1.1); }
  14. }
  15. @keyframes fade-slide-in {
  16. from { opacity: 0; transform: translateY(20px); }
  17. to { opacity: 1; transform: translateY(0); }
  18. }
  19. @keyframes fade-slide-out {
  20. from { opacity: 1; transform: translateY(0); }
  21. to { opacity: 0; transform: translateY(-20px); }
  22. }
  23. @keyframes drawer-in {
  24. from { transform: translateX(-100%); }
  25. to { transform: translateX(0); }
  26. }
  27. @keyframes vocat-logo-draw-main {
  28. 0%, 3% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  29. 41%, 72% { stroke-dashoffset: 0; fill: transparent; stroke: #1296db; opacity: 1; }
  30. 82%, 90% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 1; }
  31. 96% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 0; }
  32. 97%, 100% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  33. }
  34. @keyframes vocat-logo-draw-left {
  35. 0%, 43% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  36. 51%, 72% { stroke-dashoffset: 0; fill: transparent; stroke: #1296db; opacity: 1; }
  37. 82%, 90% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 1; }
  38. 96% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 0; }
  39. 97%, 100% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  40. }
  41. @keyframes vocat-logo-draw-middle {
  42. 0%, 53% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  43. 62%, 72% { stroke-dashoffset: 0; fill: transparent; stroke: #1296db; opacity: 1; }
  44. 82%, 90% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 1; }
  45. 96% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 0; }
  46. 97%, 100% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  47. }
  48. @keyframes vocat-logo-draw-right {
  49. 0%, 64% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  50. 72% { stroke-dashoffset: 0; fill: transparent; stroke: #1296db; opacity: 1; }
  51. 82%, 90% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 1; }
  52. 96% { stroke-dashoffset: 0; fill: #1296db; stroke: transparent; opacity: 0; }
  53. 97%, 100% { stroke-dashoffset: 10000; fill: transparent; stroke: #1296db; opacity: 1; }
  54. }
  55. /* ---- Base ---- */
  56. html {
  57. font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  58. }
  59. html, body {
  60. height: 100%;
  61. margin: 0;
  62. }
  63. body {
  64. background: #f9fafb;
  65. -webkit-font-smoothing: antialiased;
  66. text-rendering: optimizeLegibility;
  67. }
  68. html.dark body {
  69. background: #101014;
  70. }
  71. #root {
  72. font-feature-settings: "tnum" 1, "cv01" 1;
  73. }
  74. .vocat-boot-loader {
  75. position: fixed;
  76. inset: 0;
  77. z-index: 9999;
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. overflow: hidden;
  82. background: #f9fafb;
  83. }
  84. .dark .vocat-boot-loader { background: #101014; }
  85. .vocat-boot-logo {
  86. display: block;
  87. width: clamp(144px, 24vw, 240px);
  88. height: clamp(144px, 24vw, 240px);
  89. }
  90. .vocat-boot-logo path {
  91. fill: transparent;
  92. stroke: #1296db;
  93. stroke-width: 7;
  94. stroke-linecap: round;
  95. stroke-linejoin: round;
  96. stroke-dasharray: 10000;
  97. stroke-dashoffset: 10000;
  98. animation-duration: 1.9s;
  99. animation-timing-function: linear;
  100. animation-iteration-count: infinite;
  101. }
  102. .vocat-boot-logo path:nth-child(1) { animation-name: vocat-logo-draw-left; }
  103. .vocat-boot-logo path:nth-child(2) { animation-name: vocat-logo-draw-main; }
  104. .vocat-boot-logo path:nth-child(3) { animation-name: vocat-logo-draw-middle; }
  105. .vocat-boot-logo path:nth-child(4) { animation-name: vocat-logo-draw-right; }
  106. @media (prefers-reduced-motion: reduce) {
  107. .vocat-boot-logo path {
  108. animation: none;
  109. fill: #1296db;
  110. stroke: transparent;
  111. stroke-dashoffset: 0;
  112. }
  113. }
  114. ::selection {
  115. background: rgb(14 165 233 / 1);
  116. color: #fff;
  117. }
  118. /* Scrollbars */
  119. ::-webkit-scrollbar { width: 8px; height: 8px; }
  120. ::-webkit-scrollbar-track { background: transparent; }
  121. ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
  122. .dark ::-webkit-scrollbar-thumb { background: #334155; }
  123. ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
  124. .dark ::-webkit-scrollbar-thumb:hover { background: #475569; }
  125. /* ---- Design tokens ---- */
  126. :root {
  127. --el-color-primary: #0ea5e9;
  128. --el-color-primary-light-3: #38bdf8;
  129. --el-color-primary-light-5: #7dd3fc;
  130. --el-color-primary-light-7: #bae6fd;
  131. --el-color-primary-light-8: #e0f2fe;
  132. --el-color-primary-light-9: #f0f9ff;
  133. --el-color-primary-dark-2: #0284c7;
  134. --color-primary: #0ea5e9;
  135. --color-surface: #ffffff;
  136. --color-border: #e5e7eb;
  137. --ui-surface: rgba(255, 255, 255, 0.9);
  138. --ui-surface-strong: #ffffff;
  139. --ui-surface-muted: rgba(250, 250, 251, 0.9);
  140. --ui-border: rgba(17, 24, 39, 0.08);
  141. --ui-border-muted: rgba(17, 24, 39, 0.05);
  142. --ui-backdrop: blur(18px);
  143. --ui-radius-sm: 6px;
  144. --ui-radius-md: 8px;
  145. --ui-radius-lg: 10px;
  146. --ui-radius-xl: 12px;
  147. --ui-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  148. --ui-shadow-md: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  149. --ui-shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.08);
  150. --ui-btn-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  151. --ui-btn-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.11), 0 2px 5px rgba(15, 23, 42, 0.06);
  152. --ui-btn-primary-shadow: 0 1px 2px rgba(14, 165, 233, 0.2);
  153. --ui-btn-primary-shadow-hover: 0 2px 6px rgba(14, 165, 233, 0.26);
  154. }
  155. html.dark {
  156. --el-color-primary: #38bdf8;
  157. --el-color-primary-light-3: #0ea5e9;
  158. --el-color-primary-light-5: #0284c7;
  159. --el-color-primary-light-7: #075985;
  160. --el-color-primary-light-8: #0c4a6e;
  161. --el-color-primary-light-9: #082f49;
  162. --el-color-primary-dark-2: #7dd3fc;
  163. --color-primary: #38bdf8;
  164. --color-surface: #1a1a20;
  165. --color-border: rgba(255, 255, 255, 0.1);
  166. --ui-surface: rgba(255, 255, 255, 0.055);
  167. --ui-surface-strong: rgba(255, 255, 255, 0.09);
  168. --ui-surface-muted: rgba(255, 255, 255, 0.022);
  169. --ui-border: rgba(255, 255, 255, 0.1);
  170. --ui-border-muted: rgba(255, 255, 255, 0.055);
  171. --ui-btn-primary-shadow: 0 6px 16px rgba(14, 165, 233, 0.28), 0 2px 6px rgba(15, 23, 42, 0.18);
  172. --ui-btn-primary-shadow-hover: 0 8px 20px rgba(14, 165, 233, 0.32), 0 3px 8px rgba(15, 23, 42, 0.22);
  173. }
  174. /* ---- Surfaces ---- */
  175. .ui-surface {
  176. background: var(--ui-surface);
  177. border: 1px solid var(--ui-border);
  178. -webkit-backdrop-filter: var(--ui-backdrop);
  179. backdrop-filter: var(--ui-backdrop);
  180. }
  181. .ui-surface-strong {
  182. background: var(--ui-surface-strong);
  183. border: 1px solid var(--ui-border);
  184. -webkit-backdrop-filter: var(--ui-backdrop);
  185. backdrop-filter: var(--ui-backdrop);
  186. }
  187. .ui-surface-muted {
  188. background: var(--ui-surface-muted);
  189. border: 1px solid var(--ui-border-muted);
  190. -webkit-backdrop-filter: var(--ui-backdrop);
  191. backdrop-filter: var(--ui-backdrop);
  192. }
  193. .ui-glass {
  194. background: var(--ui-surface);
  195. -webkit-backdrop-filter: var(--ui-backdrop);
  196. backdrop-filter: var(--ui-backdrop);
  197. }
  198. .ui-glass-border {
  199. background: var(--ui-surface);
  200. border: 1px solid var(--ui-border);
  201. -webkit-backdrop-filter: var(--ui-backdrop);
  202. backdrop-filter: var(--ui-backdrop);
  203. }
  204. .ui-card {
  205. background: var(--ui-surface);
  206. border: 1px solid var(--ui-border);
  207. -webkit-backdrop-filter: var(--ui-backdrop);
  208. backdrop-filter: var(--ui-backdrop);
  209. border-radius: var(--ui-radius-xl);
  210. box-shadow: var(--ui-shadow-md);
  211. }
  212. .ui-card-hover {
  213. transition: transform 0.2s ease, box-shadow 0.2s ease;
  214. }
  215. .ui-card-hover:hover {
  216. transform: translateY(-1px);
  217. box-shadow: var(--ui-shadow-lg);
  218. }
  219. .ui-panel {
  220. background: var(--ui-surface);
  221. border: 1px solid var(--ui-border);
  222. -webkit-backdrop-filter: var(--ui-backdrop);
  223. backdrop-filter: var(--ui-backdrop);
  224. border-radius: var(--ui-radius-lg);
  225. box-shadow: var(--ui-shadow-sm);
  226. }
  227. .ui-panel-muted {
  228. background: var(--ui-surface-muted);
  229. border: 1px solid var(--ui-border-muted);
  230. -webkit-backdrop-filter: var(--ui-backdrop);
  231. backdrop-filter: var(--ui-backdrop);
  232. border-radius: var(--ui-radius-lg);
  233. box-shadow: var(--ui-shadow-sm);
  234. }
  235. .ui-action-btn { box-shadow: var(--ui-btn-shadow); }
  236. .ui-action-btn-primary { box-shadow: var(--ui-btn-primary-shadow); }
  237. .ui-action-btn-primary:hover,
  238. .ui-action-btn-primary:focus-visible { box-shadow: var(--ui-btn-primary-shadow-hover); }
  239. h1, h2, .ui-app-title { letter-spacing: -0.02em; }
  240. .animate-pulse-slow { animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  241. /* ---- Sidebar ---- */
  242. .sidebar-shell {
  243. font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  244. --sidebar-menu-text: #475569;
  245. --sidebar-menu-hover-bg: rgba(14, 165, 233, 0.08);
  246. --sidebar-menu-active-bg: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0.1));
  247. --sidebar-menu-active-color: #0284c7;
  248. --sidebar-menu-active-ring: rgba(14, 165, 233, 0.16);
  249. }
  250. html.dark .sidebar-shell {
  251. --sidebar-menu-text: rgba(255, 255, 255, 0.84);
  252. --sidebar-menu-hover-bg: rgba(14, 165, 233, 0.18);
  253. --sidebar-menu-active-bg: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(14, 165, 233, 0.15));
  254. --sidebar-menu-active-color: #7dd3fc;
  255. --sidebar-menu-active-ring: rgba(14, 165, 233, 0.22);
  256. }
  257. .sidebar-brand-title {
  258. font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  259. font-size: 1.62rem;
  260. font-weight: 600;
  261. letter-spacing: -0.03em;
  262. line-height: 1;
  263. display: flex;
  264. align-items: center;
  265. min-height: 1.75rem;
  266. background: #1f2430;
  267. background-clip: text;
  268. -webkit-background-clip: text;
  269. -webkit-text-fill-color: transparent;
  270. filter: none;
  271. white-space: nowrap;
  272. padding-right: 4px;
  273. }
  274. html.dark .sidebar-brand-title { background: #f3f4f6; background-clip: text; -webkit-background-clip: text; }
  275. .sidebar-brand-logo {
  276. width: 1.75rem;
  277. height: 1.75rem;
  278. flex-shrink: 0;
  279. display: block;
  280. }
  281. .sidebar-menu-label {
  282. font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  283. font-weight: 500;
  284. letter-spacing: -0.01em;
  285. }
  286. .sidebar-menu { display: flex; flex-direction: column; }
  287. .sidebar-menu .vocat-menu-item {
  288. position: relative;
  289. display: flex;
  290. align-items: center;
  291. height: 40px;
  292. min-height: 40px;
  293. margin: 2px 8px;
  294. border-radius: 10px;
  295. padding-left: 13px;
  296. padding-right: 13px;
  297. font-size: 0.94rem;
  298. font-weight: 400;
  299. letter-spacing: 0;
  300. color: var(--sidebar-menu-text);
  301. cursor: pointer;
  302. text-decoration: none;
  303. transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  304. }
  305. .sidebar-menu .vocat-menu-item .vocat-menu-icon {
  306. margin-right: 8px;
  307. font-size: 1.18rem;
  308. width: 1.18rem;
  309. height: 1.18rem;
  310. display: inline-flex;
  311. color: inherit;
  312. flex-shrink: 0;
  313. }
  314. .sidebar-menu .vocat-menu-item:hover { background: var(--sidebar-menu-hover-bg); }
  315. html.dark .sidebar-shell .sidebar-menu .vocat-menu-item:not(.is-active) { color: rgba(236, 241, 252, 0.9); }
  316. .sidebar-menu .vocat-menu-item.is-active {
  317. background: var(--sidebar-menu-active-bg);
  318. color: var(--sidebar-menu-active-color);
  319. box-shadow: inset 0 0 0 1px var(--sidebar-menu-active-ring);
  320. }
  321. .sidebar-menu.is-collapsed { align-items: center; }
  322. .sidebar-menu.is-collapsed .vocat-menu-item {
  323. width: 36px;
  324. height: 36px;
  325. min-height: 36px;
  326. margin: 3px auto;
  327. padding: 0;
  328. justify-content: center;
  329. }
  330. .sidebar-menu.is-collapsed .vocat-menu-item .vocat-menu-icon { margin: 0; }
  331. .sidebar-menu.is-collapsed .vocat-menu-item .sidebar-menu-label { display: none; }
  332. .main-inner { max-width: 100%; }
  333. @media (min-width: 768px) {
  334. .main-inner { max-width: clamp(0px, calc(100vw - 288px), 80rem); }
  335. }
  336. /* ---- Modal (glass) ---- */
  337. .glass-modal {
  338. background: rgba(255, 255, 255, 0.9);
  339. -webkit-backdrop-filter: blur(20px);
  340. backdrop-filter: blur(20px);
  341. border: 1px solid rgba(148, 163, 184, 0.25);
  342. }
  343. html.dark .glass-modal {
  344. background: rgba(30, 30, 40, 0.9);
  345. border: 1px solid rgba(255, 255, 255, 0.08);
  346. }
  347. /* ---- Disclaimer ---- */
  348. .disclaimer-overlay {
  349. min-height: 100vh;
  350. min-height: 100dvh;
  351. padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
  352. max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  353. overflow-y: auto;
  354. overscroll-behavior: contain;
  355. }
  356. .disclaimer-dialog { max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
  357. @supports (height: 100dvh) {
  358. .disclaimer-dialog {
  359. max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  360. }
  361. }
  362. .disclaimer-dialog-content { max-height: inherit; }
  363. .disclaimer-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
  364. .disclaimer-actions { flex-shrink: 0; }
  365. @media (max-width: 640px) {
  366. .disclaimer-overlay {
  367. align-items: stretch;
  368. padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
  369. max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  370. }
  371. .disclaimer-dialog {
  372. align-self: center;
  373. max-height: calc(100vh - 24px);
  374. margin-left: 0;
  375. margin-right: 0;
  376. padding: 18px;
  377. border-radius: 20px;
  378. }
  379. @supports (height: 100dvh) {
  380. .disclaimer-dialog {
  381. max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  382. }
  383. }
  384. .disclaimer-icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; }
  385. .disclaimer-icon svg { width: 24px; height: 24px; }
  386. .disclaimer-title { margin-bottom: 14px; font-size: 20px; line-height: 1.35; }
  387. .disclaimer-body { font-size: 13px; line-height: 1.6; }
  388. .disclaimer-body > div { align-items: flex-start; }
  389. .disclaimer-body > div + div { margin-top: 12px; }
  390. .disclaimer-body > div > div:first-child { width: 22px; height: 22px; margin-right: 10px; }
  391. .disclaimer-actions { margin-top: 14px; padding-top: 14px; }
  392. .disclaimer-input-wrap { margin-bottom: 12px; }
  393. .disclaimer-button-row { gap: 10px; }
  394. }
  395. @media (max-width: 420px) {
  396. .disclaimer-icon { display: none; }
  397. .disclaimer-title { margin-top: 2px; }
  398. .disclaimer-button-row { flex-direction: column-reverse; }
  399. .disclaimer-button-row > button { width: 100%; }
  400. }
  401. /* ---- SMS page ---- */
  402. .sms-page { container-type: inline-size; }
  403. .sms-main-layout { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; min-height: 0; }
  404. .sms-msg-wrapper { width: 100%; max-width: min(620px, 88%); }
  405. .sms-delete-trigger { width: 28px; height: 28px; padding: 0; }
  406. .sms-thread-row { position: relative; }
  407. .sms-thread-item-shell { transition: background-color 0.16s ease, border-color 0.16s ease; }
  408. .sms-thread-item-shell-active {
  409. background: color-mix(in srgb, var(--color-primary, #0ea5e9) 10%, transparent);
  410. position: relative; z-index: 1;
  411. }
  412. .sms-thread-item-shell-active::before {
  413. content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  414. background: color-mix(in srgb, var(--color-primary, #0ea5e9) 10%, transparent);
  415. }
  416. .sms-thread-row-active { background: transparent; }
  417. .sms-thread-delete-btn { position: absolute; right: 16px; top: 50%; transform: translate(10px, -50%); z-index: 3; }
  418. .sms-thread-meta { transition: transform 0.2s ease; }
  419. .sms-message-delete-btn { flex: 0 0 auto; }
  420. .sms-delete-visible { opacity: 1 !important; pointer-events: auto !important; }
  421. .sms-action-sheet-mask {
  422. position: fixed; inset: 0; z-index: 2200; background: rgba(15, 23, 42, 0.36);
  423. display: flex; align-items: flex-end; justify-content: center;
  424. }
  425. .sms-action-sheet {
  426. width: min(520px, 100%);
  427. background: color-mix(in srgb, var(--color-surface, #fff) 92%, transparent);
  428. border-top-left-radius: 16px; border-top-right-radius: 16px;
  429. border: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 90%, transparent);
  430. border-bottom: none;
  431. -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  432. padding: 12px; display: flex; flex-direction: column; gap: 10px;
  433. }
  434. .sms-action-sheet-title { font-size: 12px; font-weight: 700; color: #6b7280; text-align: center; letter-spacing: 0.03em; }
  435. .sms-danger-ghost-btn { color: #b91c1c; border-color: rgba(239,68,68,0.24); background: rgba(239,68,68,0.09); }
  436. .sms-danger-ghost-btn:hover { color: #991b1b; border-color: rgba(239,68,68,0.38); background: rgba(239,68,68,0.15); }
  437. @container (min-width: 980px) {
  438. .sms-main-layout { grid-template-columns: 260px 340px minmax(0, 1fr); }
  439. .sms-delete-trigger { opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.2s ease; }
  440. .group:hover .sms-delete-trigger, .group:focus-within .sms-delete-trigger { opacity: 1; pointer-events: auto; }
  441. .sms-thread-row:hover .sms-thread-meta, .sms-thread-row:focus-within .sms-thread-meta { transform: translate(-36px); }
  442. .sms-thread-row:hover .sms-thread-delete-btn, .sms-thread-row:focus-within .sms-thread-delete-btn { transform: translateY(-50%); }
  443. }
  444. @container (max-width: 979px) {
  445. .sms-msg-wrapper { max-width: 96%; }
  446. }
  447. .sms-detail-scroll::-webkit-scrollbar { width: 6px; }
  448. .sms-detail-scroll::-webkit-scrollbar-track { background: transparent; }
  449. .sms-detail-scroll::-webkit-scrollbar-thumb { background: rgba(144,147,153,0.3); border-radius: 3px; }
  450. .sms-detail-scroll::-webkit-scrollbar-thumb:hover { background: rgba(144,147,153,0.5); }
  451. .sms-detail-scroll { scrollbar-width: thin; scrollbar-color: rgba(144,147,153,0.3) transparent; }
  452. /* ---- Devices page ---- */
  453. .devices-page { container-type: inline-size; }
  454. .devices-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  455. @container (min-width: 980px) {
  456. .devices-layout { grid-template-columns: 270px minmax(0, 1fr); }
  457. }
  458. .device-list-scroll { container-type: inline-size; }
  459. .device-list-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  460. .device-list-item { min-width: 0; }
  461. @container (min-width: 700px) {
  462. .device-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  463. }
  464. .device-detail-tabs .vocat-tabs-content { overflow: visible; }
  465. .device-header-brand-icon {
  466. width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  467. display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  468. background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff;
  469. font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  470. font-size: 1.15rem; font-weight: 700; box-shadow: 0 10px 22px rgba(14, 165, 233, 0.2);
  471. }
  472. .device-header-brand-svg { width: 60%; height: 60%; fill: currentColor; }
  473. .websheet-frame-shell { height: min(680px, 78vh); }
  474. @media (max-width: 640px) {
  475. .websheet-frame-shell { height: min(620px, calc(100vh - 140px)); }
  476. }