/* EVA 机甲：珍珠白装甲、紫色结构与荧光绿状态。 */

html[data-theme="eva"] {
  --bg: #edf1f3;
  --surface: #f8fafb;
  --surface-2: #e2e8ec;
  --text: #17203b;
  --muted: #657086;
  --line: #8793a2;
  --accent: #6f20aa;
  --accent-soft: #e5d3f0;
  --self: #6f20aa;
  --peer: #f7f9fa;
  --danger: #d94a32;
  --eva-green: #91ef3d;
  --eva-violet: #6f20aa;
  --eva-navy: #17203b;
  color-scheme: light;
}

html[data-theme="eva"] body {
  color: var(--text);
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(78, 91, 105, .12) 47.2% 47.6%, transparent 47.8%) 0 0 / 160px 160px,
    linear-gradient(45deg, transparent 0 72%, rgba(111, 32, 170, .10) 72.2% 72.8%, transparent 73%) 0 0 / 210px 210px,
    #edf1f3;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, system-ui, sans-serif;
}

html[data-theme="eva"] .view {
  background:
    linear-gradient(120deg, transparent 0 10%, rgba(255,255,255,.82) 10.2% 88%, transparent 88.2%),
    repeating-linear-gradient(90deg, rgba(77,89,102,.05) 0 1px, transparent 1px 80px);
}

html[data-theme="eva"] .login-box {
  --eva-panel-fill: linear-gradient(145deg, #fff 0 66%, #dfe6ea 66.4% 100%);
  position: relative;
  border: 0;
  border-radius: 2px;
  isolation: isolate;
  background: linear-gradient(180deg, var(--eva-violet) 0 5px, #667483 5px 100%);
  box-shadow: 10px 12px 0 rgba(23,32,59,.12), inset 0 0 0 3px rgba(255,255,255,.72);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

html[data-theme="eva"] .login-box::before {
  content: "";
  position: absolute;
  inset: 5px 1px 1px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] .login-box h1,
html[data-theme="eva"] .bar h2,
html[data-theme="eva"] .profile-card h3 {
  color: var(--eva-navy);
  letter-spacing: .035em;
  text-transform: uppercase;
}

html[data-theme="eva"] .bar {
  position: relative;
  min-height: 76px;
  border-block-end: 4px solid var(--eva-violet);
  background:
    linear-gradient(135deg, transparent 0 17px, rgba(255,255,255,.96) 18px 72%, #d7dfe4 72.4%),
    #f6f8f9;
  box-shadow: 0 5px 0 rgba(23,32,59,.14);
}

html[data-theme="eva"] .bar::after {
  content: "SYNC // ONLINE";
  position: absolute;
  inset-block-end: 5px;
  inset-inline-end: 12px;
  color: #768194;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  pointer-events: none;
}

html[data-theme="eva"] .bar .back-button,
html[data-theme="eva"] .header-language,
html[data-theme="eva"] .bar-actions button {
  position: relative;
  border: 0;
  border-radius: 2px;
  isolation: isolate;
  background: #647180;
  box-shadow: inset 0 0 0 2px #fff;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

html[data-theme="eva"] .bar .back-button::after,
html[data-theme="eva"] .header-language::after,
html[data-theme="eva"] .bar-actions button::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: rgba(248,250,251,.96);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] .bar .back-button { color: var(--eva-green); }
html[data-theme="eva"] .header-language-flag,
html[data-theme="eva"] .language-menu-flag { border-radius: 0; border-color: #617080; }

html[data-theme="eva"] .chat-peer-avatar {
  border: 2px solid var(--eva-green);
  border-radius: 3px;
  background: var(--eva-navy);
  box-shadow: 0 0 0 2px #52606f, 3px 3px 0 var(--eva-violet);
}

html[data-theme="eva"] .chat-peer-avatar > img {
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 1px;
  clip-path: polygon(0 5px, 5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
}

html[data-theme="eva"] .chat-unread-avatar {
  border-color: var(--eva-violet);
  box-shadow: 0 0 0 1px var(--eva-green);
}

html[data-theme="eva"] #view-chat > .bar #peer-name {
  font-size: 18px;
  font-weight: 700;
}

html[data-theme="eva"] input,
html[data-theme="eva"] textarea,
html[data-theme="eva"] select {
  border: 1px solid #778392;
  border-radius: 2px;
  color: var(--eva-navy);
  background: rgba(250,252,253,.94);
  box-shadow: inset 3px 0 0 var(--eva-violet);
}

html[data-theme="eva"] button.primary,
html[data-theme="eva"] .send {
  --eva-panel-fill: linear-gradient(145deg, #8e35c8, #6f20aa 58%, #4b116f);
  position: relative;
  border: 0;
  border-radius: 2px;
  color: #fff;
  isolation: isolate;
  background: #47136e;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.20), 3px 3px 0 rgba(23,32,59,.18);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

html[data-theme="eva"] button.primary::before,
html[data-theme="eva"] .send::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] button.ghost {
  border-color: #778392;
  border-radius: 2px;
  color: var(--eva-navy);
  background: rgba(245,248,250,.88);
}

html[data-theme="eva"] button:focus-visible,
html[data-theme="eva"] input:focus,
html[data-theme="eva"] textarea:focus,
html[data-theme="eva"] select:focus {
  outline: 2px solid var(--eva-green);
  outline-offset: 2px;
}

html[data-theme="eva"] .account-bar,
html[data-theme="eva"] .friend-form,
html[data-theme="eva"] .relation-section,
html[data-theme="eva"] .install-card {
  border-block-end: 1px solid #7c8897;
  background: rgba(238,243,246,.94);
}

html[data-theme="eva"] .partner-item {
  --eva-panel-fill: linear-gradient(105deg, #fbfcfd 0 78%, #dce3e7 78.4%);
  position: relative;
  margin-block-end: 7px;
  border: 0;
  border-radius: 1px;
  isolation: isolate;
  background: linear-gradient(90deg, var(--eva-violet) 0 5px, #7d8996 5px 100%);
  box-shadow: 3px 3px 0 rgba(23,32,59,.12);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

html[data-theme="eva"] .partner-item::before {
  content: "";
  position: absolute;
  inset: 1px 1px 1px 5px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  pointer-events: none;
}

html[data-theme="eva"] .partner-main { color: var(--eva-navy); background: transparent; }
html[data-theme="eva"] .partner-main:hover { background: rgba(145,239,61,.12); }
html[data-theme="eva"] .partner-avatar,
html[data-theme="eva"] .avatar { border: 2px solid var(--eva-green); border-radius: 3px; box-shadow: 3px 3px 0 var(--eva-violet); }
html[data-theme="eva"] .partner-unread-dot { background: var(--eva-green); box-shadow: 0 0 0 3px rgba(145,239,61,.25); }

html[data-theme="eva"] .partner-remark-action,
html[data-theme="eva"] .partner-delete {
  border-radius: 0;
  color: #fff;
  background: repeating-linear-gradient(135deg, #d94a32 0 10px, #17203b 10px 18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}

html[data-theme="eva"] .partner-item.action-open .partner-remark-action,
html[data-theme="eva"] .partner-item.action-open .partner-delete {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html[data-theme="eva"] .msgs {
  position: relative;
  gap: 16px;
  padding-block: 24px;
  overflow-x: hidden;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22480%22%20height%3D%22780%22%20viewBox%3D%220%200%20480%20780%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22m%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ecf0f2%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dce3e7%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22grain%22%20width%3D%224%22%20height%3D%224%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Ccircle%20cx%3D%221%22%20cy%3D%222%22%20r%3D%22.35%22%20fill%3D%22%23788495%22%20opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23m)%22%20d%3D%22M0%200H480V780H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23grain)%22%20d%3D%22M0%200H480V780H0Z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238d99a6%22%20stroke-width%3D%22.8%22%3E%3Cpath%20d%3D%22M0%2032H116L145%2061V200L118%20227H0M480%2066H398L358%20106V360L390%20392H480M0%20370H66L107%20411V590L145%20628V780M480%20491H404L358%20537V694L320%20732V780M145%2061H274L314%2021V0M107%20590H233L276%20633H358%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.9%22%3E%3Cpath%20d%3D%22M0%2034H115L143%2062V199L117%20225H0M480%2068H399L360%20107V359L391%20390H480M2%20372H65L105%20412V591L143%20629V780%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23dce2e7%22%20stroke%3D%22%2373808e%22%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2218%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2218%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22208%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22208%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22465%22%20cy%3D%2246%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22465%22%20cy%3D%2246%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22376%22%20cy%3D%22375%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22376%22%20cy%3D%22375%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%22421%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%22421%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%22745%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%22745%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22338%22%20cy%3D%22716%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22338%22%20cy%3D%22716%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%237a8595%22%20font-family%3D%22monospace%22%20font-size%3D%228%22%20letter-spacing%3D%221%22%3E%3Ctext%20x%3D%22405%22%20y%3D%22136%22%20font-size%3D%2236%22%20opacity%3D%22.6%22%3E01%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22300%22%3EPEOPLE%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22312%22%3EBETTER%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22324%22%3ETOMORROW%3C%2Ftext%3E%3Ctext%20x%3D%22403%22%20y%3D%22610%22%3ESTAY%3C%2Ftext%3E%3Ctext%20x%3D%22390%22%20y%3D%22622%22%3EIN%20SYNC%3C%2Ftext%3E%3Ctext%20x%3D%2220%22%20y%3D%22764%22%3EUNIT%2001%20%E2%94%80%E2%94%80%E2%94%80%3C%2Ftext%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23768191%22%3E%3Crect%20x%3D%22438%22%20y%3D%22424%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22600%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22431%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22607%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22438%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22614%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22445%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22621%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22452%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22628%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22459%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22635%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22466%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22642%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M395%20145H412L395%20162H378ZM414%20145H427L410%20162H397Z%22%20fill%3D%22%2385909e%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M22%20236H28V252L22%20258Z%22%20fill%3D%22%238dd345%22%2F%3E%3C%2Fsvg%3E") center top / 480px 780px repeat;
}
html[data-theme="eva"] .msgs::before,
html[data-theme="eva"] .msgs::after { content: none; }

html[data-theme="eva"] .bubble {
  position: relative;
  padding: 10px 11px 10px;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
  color: var(--eva-navy);
  overflow: visible;
}
html[data-theme="eva"] .bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 20px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x2%3D%22.7%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23f1f5f6%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23e7ecef%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d9e1e5%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%201H147L159%2013V147L147%20159H13L1%20147V13Z%22%20fill%3D%22url(%23p)%22%20stroke%3D%22%2359287e%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%205H145L155%2015V145L145%20155H15L5%20145V15Z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M17%208H143L152%2017V143L143%20152H17L8%20143V17Z%22%20fill%3D%22none%22%20stroke%3D%22%23abb7c1%22%20stroke-opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M5%20146L15%20156H145L156%20145%22%20fill%3D%22none%22%20stroke%3D%22%23a6afb9%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 24 fill / 20px / 0 stretch;
  filter: drop-shadow(2px 4px 3px #23304730);
  z-index: -1;
  pointer-events: none;
}
html[data-theme="eva"] .bubble::after { content: none; }
html[data-theme="eva"] .row.self .bubble { color: #fff; }
html[data-theme="eva"] .row.self .bubble::before {
  border-image-source: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x2%3D%22.7%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%238052aa%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%2362408e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2351307e%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%201H147L159%2013V147L147%20159H13L1%20147V13Z%22%20fill%3D%22url(%23p)%22%20stroke%3D%22%2364318c%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%205H145L155%2015V145L145%20155H15L5%20145V15Z%22%20fill%3D%22none%22%20stroke%3D%22%23b584d6%22%20stroke-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M17%208H143L152%2017V143L143%20152H17L8%20143V17Z%22%20fill%3D%22none%22%20stroke%3D%22%2343245f%22%20stroke-opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M5%20146L15%20156H145L156%20145%22%20fill%3D%22none%22%20stroke%3D%22%2332174e%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2015L15%205H24L5%2024Z%22%20fill%3D%22%23abef3e%22%2F%3E%3Cpath%20d%3D%22M139%20154H149L155%20148V139%22%20fill%3D%22none%22%20stroke%3D%22%239f68c8%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E");
}
html[data-theme="eva"] .row.self .bubble::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 34px;
  left: -6px;
  top: calc(50% - 17px);
  background: linear-gradient(90deg, #586273 0 2px, #a4ec42 2px 4px, #624084 4px);
  clip-path: polygon(100% 0, 100% 100%, 0 80%, 0 20%);
  z-index: -2;
  pointer-events: none;
}

html[data-theme="eva"] .row.peer .bubble.has-peer-avatar {
  margin-inline-start: 14px;
  padding-inline-start: 18px;
}

html[data-theme="eva"] .message-peer-avatar-button {
  left: -14px;
  top: -12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 2px solid #f8fafb;
  background: #f8fafb;
  box-shadow: 0 0 0 2px var(--eva-violet), 3px 3px 0 rgba(23,32,59,.18);
}

html[data-theme="eva"] .message-time {
  top: -1px;
  right: 11px;
  z-index: 3;
  padding: 0;
  background: transparent;
  color: #5c667a;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: .04em;
}

html[data-theme="eva"] .bubble .translated { font-size: 16px; line-height: 1.5; }
html[data-theme="eva"] .bubble .origin { border-color: currentColor; border-top-style: solid; font-size: 14px; line-height: 1.45; }
html[data-theme="eva"] .row.self .bubble .origin,
html[data-theme="eva"] .row.self .bubble .translated { color: #fff; }
html[data-theme="eva"] .row.self .message-time { background: transparent; color: #5c667a; }

html[data-theme="eva"] .quote-reference {
  border: 1px solid #7e8998;
  border-inline-start: 4px solid var(--eva-green);
  border-radius: 0;
  background: rgba(255,255,255,.64);
}

html[data-theme="eva"] .quoted-message-table { border: 1px solid currentColor; border-radius: 0; background: rgba(255,255,255,.82); }
html[data-theme="eva"] .row.self .quoted-message-table { color: var(--eva-navy); }
html[data-theme="eva"] .actions { gap: 7px; margin-top: 4px; }
html[data-theme="eva"] .actions button { border: 1px solid #aab4bf; border-radius: 2px; background: rgba(243,247,249,.92); color: var(--eva-navy); box-shadow: inset 0 -2px 0 rgba(93,107,121,.10); }

html[data-theme="eva"] .bubble .translation-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--eva-navy);
  border-left: 5px solid var(--eva-violet);
  border-radius: 2px;
  background: var(--eva-green);
  color: var(--eva-navy);
  box-shadow: inset 0 0 0 1px #e8ffd4, 2px 2px 0 rgba(23,32,59,.35);
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-shadow: none;
  opacity: 1;
}
html[data-theme="eva"] .bubble .translation-retry::before {
  content: "↻";
  font-size: 15px;
  line-height: 1;
}
html[data-theme="eva"] .bubble .translation-retry:disabled { opacity: .72; }

html[data-theme="eva"] .composer {
  position: relative;
  border-block-start: 4px solid var(--eva-violet);
  background: linear-gradient(120deg, #f7f9fa 0 72%, #dbe2e6 72.4%);
  box-shadow: 0 -5px 0 rgba(23,32,59,.12);
}

html[data-theme="eva"] .composer::before {
  content: "";
  position: absolute;
  inset: -4px 14px auto auto;
  width: 104px;
  height: 7px;
  background: repeating-linear-gradient(135deg, #ef6b30 0 9px, #17203b 9px 16px);
  pointer-events: none;
}

html[data-theme="eva"] .inputrow {
  --eva-panel-fill: rgba(250,252,253,.97);
  position: relative;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: linear-gradient(90deg, var(--eva-violet) 0 4px, #6e7988 4px 100%);
  clip-path: polygon(0 9px, 9px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

html[data-theme="eva"] .inputrow::before {
  content: "";
  position: absolute;
  inset: 1px 1px 1px 4px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 6px, 6px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] .inputrow textarea { border: 0; box-shadow: none; background: transparent; }
html[data-theme="eva"] .inputrow .composer-toggle {
  border: 1px solid #51606e;
  background: var(--eva-navy);
  color: var(--eva-green);
  box-shadow: inset 0 0 0 2px #2e3a4e;
}
html[data-theme="eva"] button.send { color: var(--eva-green); }
html[data-theme="eva"] .toolrow > button {
  --eva-panel-fill: #f5f8f9;
  position: relative;
  border: 0;
  border-radius: 2px;
  color: var(--eva-navy);
  isolation: isolate;
  background: #788493;
  box-shadow: inset 0 -3px 0 #d6dee3;
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

html[data-theme="eva"] .toolrow > button::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] .toolrow > button:hover { --eva-panel-fill: #f1f8e9; color: var(--eva-violet); box-shadow: inset 0 -3px 0 var(--eva-green); }

html[data-theme="eva"] .profile-card {
  --eva-panel-fill: linear-gradient(145deg, #fbfcfd 0 76%, #dce3e7 76.4%);
  position: relative;
  border: 0;
  border-radius: 1px;
  isolation: isolate;
  background: linear-gradient(180deg, var(--eva-violet) 0 5px, #788493 5px 100%);
  box-shadow: 6px 7px 0 rgba(23,32,59,.12);
  clip-path: polygon(0 15px, 15px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

html[data-theme="eva"] .profile-card::before {
  content: "";
  position: absolute;
  inset: 5px 1px 1px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] #notification-center { background: rgba(23,32,59,.42); }
html[data-theme="eva"] .sheet-box {
  --eva-panel-fill: #f5f8f9;
  position: relative;
  border: 0;
  border-radius: 1px;
  isolation: isolate;
  background: linear-gradient(180deg, var(--eva-violet) 0 5px, #657281 5px 100%);
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}


html[data-theme="eva"] .sheet-box::before {
  content: "";
  position: absolute;
  inset: 5px 1px 1px;
  z-index: -1;
  background: var(--eva-panel-fill);
  clip-path: polygon(0 11px, 11px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  pointer-events: none;
}

html[data-theme="eva"] .language-menu,
html[data-theme="eva"] .emoji-picker,
html[data-theme="eva"] .composer-menu { border: 1px solid #687584; border-radius: 2px; background: #f5f8f9; box-shadow: 6px 7px 0 rgba(23,32,59,.16); }
html[data-theme="eva"] .language-menu button.active { color: var(--eva-violet); background: rgba(145,239,61,.18); }
html[data-theme="eva"] .file-card { border: 1px solid #788493; border-inline-start: 5px solid var(--eva-green); border-radius: 1px; background: #f8fafb; }
html[data-theme="eva"] .chat-video { border: 2px solid var(--eva-violet); border-radius: 1px; background: #17203b; }
html[data-theme="eva"] .jump-latest { border: 1px solid #47136e; color: #fff; background: var(--eva-violet); box-shadow: 0 0 0 3px rgba(145,239,61,.50); }
html[data-theme="eva"] .read-receipt {
  left: -61px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid var(--eva-violet);
  border-radius: 0;
  background: rgba(248,250,251,.96);
  box-shadow: 2px 2px 0 rgba(23,32,59,.16), inset 0 0 0 2px rgba(255,255,255,.72);
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
html[data-theme="eva"] .read-receipt.is-read { color: var(--eva-violet); }
html[data-theme="eva"] .read-receipt.is-unread { color: var(--eva-navy); }
html[data-theme="eva"] .read-receipt-label { color: var(--eva-violet); font-size: 8px; letter-spacing: .05em; }
html[data-theme="eva"] .receipt-envelope-letter,
html[data-theme="eva"] .receipt-envelope-pocket { fill: #f8fafb; }
html[data-theme="eva"] * { scrollbar-color: var(--eva-violet) #dce3e7; }

@media (max-width: 640px) {
  html[data-theme="eva"] .bar::after { display: none; }
  html[data-theme="eva"] .msgs::after { font-size: 52px; }
  html[data-theme="eva"] .bubble { max-width: min(88%, 620px); }
}

/* v173: shared vector controls and integrated quote material. */
html[data-theme="eva"] .quoted-message-table,
html[data-theme="eva"] .row.self .quoted-message-table {
  border: 0; background: transparent; color: inherit;
}
html[data-theme="eva"] .quote-reference {
  padding: 0 0 6px; margin: 0 0 6px;
  border: 0; border-bottom: 1px solid #9da9b5;
  background: transparent; box-shadow: none;
}
html[data-theme="eva"] .row.self .quote-reference { border-bottom-color: #c2a7d675; }
html[data-theme="eva"] .row.self .quote-reference b { color: #b5f34c; font-size: 16px; }
html[data-theme="eva"] .row.self .quote-reference span { color: #decaed; font-size: 14px; white-space: normal; }
html[data-theme="eva"] .bubble .origin { border-color: #94a0ae70; margin-top: 6px; padding-top: 6px; }
html[data-theme="eva"] .row.self .bubble .origin { color: #f2eafa; border-color: #c2a7d675; }
html[data-theme="eva"] .row.self .bubble .translated { color: #fff; font-weight: 400; }
html[data-theme="eva"] .bar {
  background: linear-gradient(115deg,#f3f6f7,#dce3e8);
  border-bottom-width: 3px; padding-block: 12px 17px;
}
html[data-theme="eva"] .bar::after {
  display: block; content: "TERMINAL // HUMAN LINK";
  inset: auto auto 3px 15px; font-size: 7px; letter-spacing: .12em;
}
html[data-theme="eva"] .bar .back-button,
html[data-theme="eva"] .bar .header-language,
html[data-theme="eva"] .bar-actions button,
html[data-theme="eva"] .toolrow > button {
  border: 12px solid transparent; border-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x2%3D%22.7%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23f1f5f6%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23e7ecef%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d9e1e5%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%201H147L159%2013V147L147%20159H13L1%20147V13Z%22%20fill%3D%22url(%23p)%22%20stroke%3D%22%23727e8b%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%205H145L155%2015V145L145%20155H15L5%20145V15Z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M17%208H143L152%2017V143L143%20152H17L8%20143V17Z%22%20fill%3D%22none%22%20stroke%3D%22%23abb7c1%22%20stroke-opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M5%20146L15%20156H145L156%20145%22%20fill%3D%22none%22%20stroke%3D%22%23a6afb9%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 24 fill / 12px / 0 stretch;
  background: transparent; clip-path: none; box-shadow: none; border-radius: 0;
}
html[data-theme="eva"] .bar .back-button::after,
html[data-theme="eva"] .header-language::after,
html[data-theme="eva"] .bar-actions button::after,
html[data-theme="eva"] .toolrow > button::after { content: none; }
html[data-theme="eva"] .bar .back-button { width: 43px; height: 46px; padding: 0; color: #91da36; }
html[data-theme="eva"] .bar .header-language { min-height: 46px; padding: 0 2px; gap: 5px; }
html[data-theme="eva"] .chat-peer-avatar {
  border: 0; background: #243442; border-radius: 0; width: 40px; height: 40px;
  box-shadow: none; isolation: isolate;
}
html[data-theme="eva"] .chat-peer-avatar::before {
  content: ""; position: absolute; inset: -4px; z-index: -2;
  background: linear-gradient(135deg,#526775 0 30%,#3fb2a0 30% 55%,#a2ee40 55% 78%,#445363 78%);
  clip-path: polygon(0 7px,7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px));
}
html[data-theme="eva"] .chat-peer-avatar::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #243442;
  clip-path: polygon(0 5px,5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px));
}
html[data-theme="eva"] .chat-peer-avatar > img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
html[data-theme="eva"] .composer {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22480%22%20height%3D%22780%22%20viewBox%3D%220%200%20480%20780%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22m%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ecf0f2%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dce3e7%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22grain%22%20width%3D%224%22%20height%3D%224%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Ccircle%20cx%3D%221%22%20cy%3D%222%22%20r%3D%22.35%22%20fill%3D%22%23788495%22%20opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23m)%22%20d%3D%22M0%200H480V780H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23grain)%22%20d%3D%22M0%200H480V780H0Z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238d99a6%22%20stroke-width%3D%22.8%22%3E%3Cpath%20d%3D%22M0%2032H116L145%2061V200L118%20227H0M480%2066H398L358%20106V360L390%20392H480M0%20370H66L107%20411V590L145%20628V780M480%20491H404L358%20537V694L320%20732V780M145%2061H274L314%2021V0M107%20590H233L276%20633H358%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.9%22%3E%3Cpath%20d%3D%22M0%2034H115L143%2062V199L117%20225H0M480%2068H399L360%20107V359L391%20390H480M2%20372H65L105%20412V591L143%20629V780%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23dce2e7%22%20stroke%3D%22%2373808e%22%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2218%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2218%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22208%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22208%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22465%22%20cy%3D%2246%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22465%22%20cy%3D%2246%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22376%22%20cy%3D%22375%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22376%22%20cy%3D%22375%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%22421%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%22421%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%22745%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%22745%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22338%22%20cy%3D%22716%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22338%22%20cy%3D%22716%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%237a8595%22%20font-family%3D%22monospace%22%20font-size%3D%228%22%20letter-spacing%3D%221%22%3E%3Ctext%20x%3D%22405%22%20y%3D%22136%22%20font-size%3D%2236%22%20opacity%3D%22.6%22%3E01%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22300%22%3EPEOPLE%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22312%22%3EBETTER%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22324%22%3ETOMORROW%3C%2Ftext%3E%3Ctext%20x%3D%22403%22%20y%3D%22610%22%3ESTAY%3C%2Ftext%3E%3Ctext%20x%3D%22390%22%20y%3D%22622%22%3EIN%20SYNC%3C%2Ftext%3E%3Ctext%20x%3D%2220%22%20y%3D%22764%22%3EUNIT%2001%20%E2%94%80%E2%94%80%E2%94%80%3C%2Ftext%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23768191%22%3E%3Crect%20x%3D%22438%22%20y%3D%22424%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22600%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22431%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22607%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22438%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22614%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22445%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22621%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22452%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22628%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22459%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22635%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22466%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22642%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M395%20145H412L395%20162H378ZM414%20145H427L410%20162H397Z%22%20fill%3D%22%2385909e%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M22%20236H28V252L22%20258Z%22%20fill%3D%22%238dd345%22%2F%3E%3C%2Fsvg%3E") center bottom / 480px 780px;
  padding: 10px 12px max(7px,env(safe-area-inset-bottom));
}
html[data-theme="eva"] .inputrow {
  gap: 9px; background: transparent; clip-path: none; isolation: auto;
  align-items: stretch;
}
html[data-theme="eva"] .inputrow::before { content: none; }
html[data-theme="eva"] .inputrow textarea {
  min-width: 0; border: 12px solid transparent; border-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x2%3D%22.7%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23f1f5f6%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23e7ecef%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d9e1e5%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%201H147L159%2013V147L147%20159H13L1%20147V13Z%22%20fill%3D%22url(%23p)%22%20stroke%3D%22%2359287e%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%205H145L155%2015V145L145%20155H15L5%20145V15Z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M17%208H143L152%2017V143L143%20152H17L8%20143V17Z%22%20fill%3D%22none%22%20stroke%3D%22%23abb7c1%22%20stroke-opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M5%20146L15%20156H145L156%20145%22%20fill%3D%22none%22%20stroke%3D%22%23a6afb9%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 24 fill / 12px / 0 stretch;
  padding: 4px 2px; background: transparent; min-height: 48px; line-height: 22px;
}
html[data-theme="eva"] .inputrow .composer-toggle,
html[data-theme="eva"] .inputrow .send {
  width: 47px; height: auto; min-height: 48px;
  border: 12px solid transparent; border-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x2%3D%22.7%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%238052aa%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%2362408e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2351307e%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M13%201H147L159%2013V147L147%20159H13L1%20147V13Z%22%20fill%3D%22url(%23p)%22%20stroke%3D%22%2364318c%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%205H145L155%2015V145L145%20155H15L5%20145V15Z%22%20fill%3D%22none%22%20stroke%3D%22%23b584d6%22%20stroke-opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M17%208H143L152%2017V143L143%20152H17L8%20143V17Z%22%20fill%3D%22none%22%20stroke%3D%22%2343245f%22%20stroke-opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M5%20146L15%20156H145L156%20145%22%20fill%3D%22none%22%20stroke%3D%22%2332174e%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2015L15%205H24L5%2024Z%22%20fill%3D%22%23abef3e%22%2F%3E%3Cpath%20d%3D%22M139%20154H149L155%20148V139%22%20fill%3D%22none%22%20stroke%3D%22%239f68c8%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 24 fill / 12px / 0 stretch;
  padding: 0; background: transparent; clip-path: none; box-shadow: none;
}
html[data-theme="eva"] .inputrow .composer-toggle {
  border-image-source: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Cpath%20d%3D%22M12%201H148L159%2012V148L148%20159H12L1%20148V12Z%22%20fill%3D%22%23283344%22%20stroke%3D%22%236f7d8c%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M15%206H145L154%2015V145L145%20154H15L6%20145V15Z%22%20fill%3D%22none%22%20stroke%3D%22%23bec7cc%22%2F%3E%3C%2Fsvg%3E");
}
html[data-theme="eva"] .inputrow .send::before { content: none; }
html[data-theme="eva"] .toolrow { gap: 8px; margin-top: 9px; }
html[data-theme="eva"] .toolrow > button { width: 40px; height: 40px; padding: 0; }
html[data-theme="eva"] #view-list { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22480%22%20height%3D%22780%22%20viewBox%3D%220%200%20480%20780%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22m%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ecf0f2%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dce3e7%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22grain%22%20width%3D%224%22%20height%3D%224%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Ccircle%20cx%3D%221%22%20cy%3D%222%22%20r%3D%22.35%22%20fill%3D%22%23788495%22%20opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23m)%22%20d%3D%22M0%200H480V780H0Z%22%2F%3E%3Cpath%20fill%3D%22url(%23grain)%22%20d%3D%22M0%200H480V780H0Z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238d99a6%22%20stroke-width%3D%22.8%22%3E%3Cpath%20d%3D%22M0%2032H116L145%2061V200L118%20227H0M480%2066H398L358%20106V360L390%20392H480M0%20370H66L107%20411V590L145%20628V780M480%20491H404L358%20537V694L320%20732V780M145%2061H274L314%2021V0M107%20590H233L276%20633H358%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.9%22%3E%3Cpath%20d%3D%22M0%2034H115L143%2062V199L117%20225H0M480%2068H399L360%20107V359L391%20390H480M2%20372H65L105%20412V591L143%20629V780%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23dce2e7%22%20stroke%3D%22%2373808e%22%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2218%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2218%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22208%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22208%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22465%22%20cy%3D%2246%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22465%22%20cy%3D%2246%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22376%22%20cy%3D%22375%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22376%22%20cy%3D%22375%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%22421%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%22421%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%22745%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%22745%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3Ccircle%20cx%3D%22338%22%20cy%3D%22716%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22338%22%20cy%3D%22716%22%20r%3D%221.2%22%20fill%3D%22%23657380%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%237a8595%22%20font-family%3D%22monospace%22%20font-size%3D%228%22%20letter-spacing%3D%221%22%3E%3Ctext%20x%3D%22405%22%20y%3D%22136%22%20font-size%3D%2236%22%20opacity%3D%22.6%22%3E01%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22300%22%3EPEOPLE%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22312%22%3EBETTER%3C%2Ftext%3E%3Ctext%20x%3D%2218%22%20y%3D%22324%22%3ETOMORROW%3C%2Ftext%3E%3Ctext%20x%3D%22403%22%20y%3D%22610%22%3ESTAY%3C%2Ftext%3E%3Ctext%20x%3D%22390%22%20y%3D%22622%22%3EIN%20SYNC%3C%2Ftext%3E%3Ctext%20x%3D%2220%22%20y%3D%22764%22%3EUNIT%2001%20%E2%94%80%E2%94%80%E2%94%80%3C%2Ftext%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23768191%22%3E%3Crect%20x%3D%22438%22%20y%3D%22424%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22600%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22431%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22607%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22438%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22614%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22445%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22621%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22452%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22628%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22459%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22635%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22438%22%20y%3D%22466%22%20width%3D%2217%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2218%22%20y%3D%22642%22%20width%3D%2215%22%20height%3D%222.5%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M395%20145H412L395%20162H378ZM414%20145H427L410%20162H397Z%22%20fill%3D%22%2385909e%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M22%20236H28V252L22%20258Z%22%20fill%3D%22%238dd345%22%2F%3E%3C%2Fsvg%3E") center top / 480px 780px; }
html[data-theme="eva"] #view-list > .bar { border-bottom: 4px solid #6f20aa; }
html[data-theme="eva"] #view-list .account-bar,
html[data-theme="eva"] #view-list .friend-form { margin: 12px; border: 1px solid #9aa6b3; border-left: 3px solid #6f20aa; background: #edf1f3e8; box-shadow: inset 0 0 0 2px #fff8; }
html[data-theme="eva"] #partner-list { padding: 10px 14px 24px; }
html[data-theme="eva"] .partner-item { margin-bottom: 12px; box-shadow: 2px 3px 4px #24334424; }
html[data-theme="eva"] .partner-main { min-height: 82px; }
html[data-theme="eva"] .partner-item .partner-avatar {
  border: 2px solid #526471; border-radius: 4px;
  box-shadow: 0 0 0 1px #e8edf0,2px 2px 0 #8dde43;
}
html[data-theme="eva"] .partner-avatar > img { border-radius: 2px; }
html[data-theme="eva"] .partner-unread-dot { background: #e54d58; box-shadow: 0 0 0 2px #f5f8fa; }
html[data-theme="eva"] .read-receipt {
  left: -47px; width: 36px; height: 42px;
  background: transparent; border: 0; box-shadow: none; clip-path: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
html[data-theme="eva"] .receipt-envelope { display: none; }
html[data-theme="eva"] .read-receipt::before {
  content: ""; display: block; flex: none; width: 29px; height: 25px;
  clip-path: polygon(0 25%,25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%);
  background: linear-gradient(135deg,transparent 43%,#a2adbb 44% 47%,#354157 48% 53%,#a2adbb 54% 57%,transparent 58%),linear-gradient(#354157,#192738);
  box-shadow: inset 0 0 0 2px #80919b;
}
html[data-theme="eva"] .read-receipt.is-read::before {
  background: radial-gradient(ellipse at center,#e4ffac 0 8%,#a7ef49 10% 18%,transparent 20%),linear-gradient(135deg,transparent 35%,#8bdc42 36% 40%,#3c6550 41% 59%,#8bdc42 60% 64%,transparent 65%),linear-gradient(#2d4050,#172638);
  box-shadow: inset 0 0 0 2px #81988e;
  filter: drop-shadow(0 0 3px #91ef3d66);
}
html[data-theme="eva"] .read-receipt-label { color: #4a315f; font-size: 8px; line-height: 10px; font-weight: 600; }
html[data-theme="eva"] .read-receipt.is-unread::after { content: attr(aria-label); color: #526070; font-size: 8px; line-height: 10px; }

/* Approved C: compact three-segment sync rail, with localized state labels. */
html[data-theme="eva"] .read-receipt::before {
  width: 34px; height: 19px;
  clip-path: polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
  background: linear-gradient(#627086,#627086) 6px 5px / 6px 9px no-repeat,
    linear-gradient(#627086,#627086) 14px 5px / 6px 9px no-repeat,
    linear-gradient(#627086,#627086) 22px 5px / 6px 9px no-repeat, #212b41;
  box-shadow: inset 0 0 0 1px #8390a2; filter: none;
}
html[data-theme="eva"] .read-receipt.is-read::before {
  background: linear-gradient(#b8ff52,#a1ee3e) 6px 5px / 6px 9px no-repeat,
    linear-gradient(#a1ee3e,#83c438) 14px 5px / 6px 9px no-repeat,
    linear-gradient(#6f9d38,#557b32) 22px 5px / 6px 9px no-repeat, #212b41;
  box-shadow: inset 0 0 0 1px #8390a2; filter: none;
}

/* Approved C: pale armor panels, violet structure and lime rails. */
html[data-theme="eva"] #view-list {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  background: linear-gradient(107deg,transparent 31%,#cdd6dc66 31.2% 31.5%,transparent 31.7%), #eef2f3;
}
html[data-theme="eva"] #view-list > .bar {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  padding: 20px 18px 26px; gap: 12px; background: #fafbfb;
  border: 0; border-bottom: 5px solid #7419a2; box-shadow: none;
}
html[data-theme="eva"] #view-list > .bar::after {
  content: "UNIT 01 // HUMAN LINK"; inset: auto 18px 4px auto;
  color: #667185; font: 8px/10px "Arial Narrow",monospace; letter-spacing: .12em;
}
html[data-theme="eva"] #view-list > .bar::before {
  content: ""; position: absolute; bottom: -5px; right: 18px;
  width: 76px; height: 5px; background: #a1ef3c; pointer-events: none;
}
html[data-theme="eva"] #view-list > .bar h2 { font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; }
html[data-theme="eva"] #view-list .bar-actions {
  position: fixed; z-index: 20; inset: auto 0 0; margin: 0;
  min-height: 76px; padding: 10px 12px max(10px,env(safe-area-inset-bottom));
  display: flex; flex-wrap: nowrap; justify-content: space-around; gap: 5px;
  background: #202a41; border-top: 5px solid #7419a2;
}
html[data-theme="eva"] #view-list .bar-actions::before {
  content: ""; position: absolute; right: 5%; top: -5px; width: 85px; height: 5px;
  background: repeating-linear-gradient(135deg,#ff6b2a 0 9px,#172238 9px 18px);
}
html[data-theme="eva"] #view-list .bar-actions button {
  flex: 1; min-width: 0; min-height: 48px; height: auto; padding: 5px 2px;
  border: 1px solid #75829b; border-image: none; border-radius: 0;
  background: #151e33; color: #cdd7e4; font-size: 11px; white-space: normal;
}
html[data-theme="eva"] #view-list .bar-actions #account-btn { color: #b3f34a; border-color: #9250b4; }
html[data-theme="eva"] #view-list .bar-actions button::before {
  display: block; margin-bottom: 4px; font: 22px/22px sans-serif;
}
html[data-theme="eva"] #account-btn::before { content: "◎"; }
html[data-theme="eva"] #bell-btn::before { content: "◫"; }
html[data-theme="eva"] #export-btn::before { content: "↓"; }
html[data-theme="eva"] #logout-btn::before { content: "⇥"; }
html[data-theme="eva"] #admin-btn::before { content: "⚙"; }
html[data-theme="eva"] #view-list .account-bar,
html[data-theme="eva"] #view-list .friend-form {
  margin: 10px 16px 0; padding: 9px 12px; background: #fafbfb;
  border: 1px solid #acb5c0; border-left: 5px solid #7419a2; box-shadow: none;
}
html[data-theme="eva"] #view-list .friend-form { border-left-color: #a1eb3f; }
html[data-theme="eva"] #view-list .friend-msg:empty { display: none; }
html[data-theme="eva"] #partner-list { padding: 18px 16px; }
html[data-theme="eva"] #partner-list::before {
  content: "ACTIVE CHANNELS"; display: block; margin: 0 0 14px 3px;
  font: 700 9px/12px "Arial Narrow",monospace; letter-spacing: .18em; color: #637185;
}
html[data-theme="eva"] #partner-list .partner-item {
  margin-bottom: 13px; border: 0; border-radius: 0; box-shadow: none;
  background: #6c788b;
  clip-path: polygon(0 0,84% 0,calc(84% + 10px) 10px,100% 10px,100% calc(100% - 12px),calc(100% - 12px) 100%,10px 100%,0 calc(100% - 10px));
}
html[data-theme="eva"] #partner-list .partner-item::before { content: none; }
html[data-theme="eva"] #partner-list .partner-main {
  min-height: 92px; margin: 1px; width: calc(100% - 2px); padding: 16px 14px;
  border-left: 6px solid #7419a2; background: #fafbfb; gap: 15px;
}
html[data-theme="eva"] #partner-list .partner-item:has(.has-unread) .partner-main { border-left-color: #a1eb3f; }
html[data-theme="eva"] #partner-list .partner-item::after {
  content: ""; position: absolute; top: 0; right: 10%; width: 20px; height: 6px;
  background: #7419a2; pointer-events: none;
}
html[data-theme="eva"] #partner-list .partner-avatar {
  width: 46px; height: 46px; border: 3px double #a3ee44; border-radius: 2px;
  box-shadow: 0 0 0 1px #7419a2; color: #fff;
}
html[data-theme="eva"] #partner-list .partner-meta { gap: 9px; }
html[data-theme="eva"] #partner-list .partner-heading b { font-weight: 800; letter-spacing: .03em; }
html[data-theme="eva"] #view-list > .hint {
  color: #647184; font-size: 10px; margin: 0 18px 14px;
}
@media (max-width: 640px) {
  html[data-theme="eva"] #view-list > .bar { padding: calc(env(safe-area-inset-top) + 8px) 12px 16px; gap: 8px; }
  html[data-theme="eva"] #view-list .account-bar,
  html[data-theme="eva"] #view-list .friend-form { margin: 6px 12px 0; padding: 6px 9px; }
  html[data-theme="eva"] #partner-list { padding: 10px 12px; }
  html[data-theme="eva"] #partner-list::before { margin-bottom: 8px; }
  html[data-theme="eva"] #partner-list .partner-item { margin-bottom: 7px; }
  html[data-theme="eva"] #partner-list .partner-main { min-height: 72px; padding: 10px 12px; gap: 12px; }
  html[data-theme="eva"] #partner-list .partner-meta { gap: 4px; }
  html[data-theme="eva"] .composer { padding: 5px 8px clamp(0px,env(safe-area-inset-bottom),8px); }
  html[data-theme="eva"] .toolrow { margin-top: 3px; gap: 6px; }
  html[data-theme="eva"] .toolrow > button { position: relative; border-width: 6px; border-image-width: 8px; }
  html[data-theme="eva"] .toolrow > button svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: block; margin: 0; }
  html[data-theme="eva"] .msgs,
  html[data-theme="eva"] #view-list,
  html[data-theme="eva"] .composer { background-size: 100% auto; }
  html[data-theme="eva"] .row { max-width: 84%; }
  html[data-theme="eva"] .row.self { max-width: calc(100% - 50px); }
  html[data-theme="eva"] .bubble { max-width: 100%; }
  html[data-theme="eva"] .row.peer .bubble.has-peer-avatar { padding-inline-start: 18px; }
}
