.atec-fv {
  display: flex;
  flex: 1 1 220px;
  min-height: 200px;
  min-width: 0;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}
.atec-fv.is-empty-hide { display: none !important; }
.atec-fv-in-scroll {
  flex: 0 0 auto;
  height: min(42vh, 380px);
  min-height: 260px;
}
.atec-fv.has-file .atec-fv-list { display: flex; }
.atec-fv-list {
  display: none;
  width: 176px;
  flex: 0 0 176px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 8px;
  gap: 6px;
  flex-direction: column;
}
.atec-fv.has-list .atec-fv-list { display: flex; }
.atec-fv-pages {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 8px 10px;
}
.atec-fv-pages button {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  text-align: left;
  cursor: pointer;
}
.atec-fv-pages button:hover { background: #e6f6ee; }
.atec-fv-pages button.is-on {
  background: #163a72;
  color: #fff;
  border-color: #163a72;
}
.atec-fv-item {
  appearance: none;
  border: 1px solid #dbe7ef;
  background: #f8fafc;
  text-align: left;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #163a72;
  line-height: 1.3;
}
.atec-fv-item:hover { background: #e6f6ee; }
.atec-fv-item.is-on {
  background: #163a72;
  color: #fff;
  border-color: #163a72;
}
.atec-fv-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atec-fv-item small {
  display: block;
  font-weight: 600;
  opacity: .75;
  margin-top: 2px;
}
.atec-fv-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.atec-fv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(22, 58, 114, .88);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.atec-fv-nav:disabled { opacity: .35; cursor: default; }
.atec-fv-prev { left: 10px; }
.atec-fv-next { right: 10px; }
.atec-fv-surface {
  max-width: calc(100% - 108px);
  max-height: calc(100% - 56px);
  display: none;
}
.atec-fv-surface.is-on { display: block; }
.atec-fv-img {
  max-width: 100%;
  max-height: calc(100% - 56px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
.atec-fv-video {
  max-width: 100%;
  max-height: calc(100% - 56px);
  background: #0f172a;
  border-radius: 8px;
}
.atec-fv-canvas {
  max-width: 100%;
  max-height: calc(100% - 56px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
.atec-fv-html {
  width: min(920px, calc(100% - 108px));
  height: calc(100% - 56px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
}
.atec-fv-html table { border-collapse: collapse; width: 100%; font-size: 12px; }
.atec-fv-html td, .atec-fv-html th { border: 1px solid #cbd5e1; padding: 4px 6px; }
.atec-fv-note {
  max-width: 420px;
  text-align: center;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 24px;
}
.atec-fv-empty {
  max-width: 42rem;
  padding: 0 2rem;
}
.atec-fv-pager {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #163a72;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  z-index: 3;
  white-space: nowrap;
}
.atec-fv.has-file .atec-fv-pager { display: inline-flex; }
.atec-fv-zoom {
  appearance: none;
  border: 0;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(22, 58, 114, .1);
  color: #163a72;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.atec-fv-zoom:hover { background: rgba(22, 58, 114, .18); }
.atec-fv-close-zoom {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  appearance: none;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #163a72;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.atec-fv.is-zoomed .atec-fv-close-zoom { display: inline-flex; align-items: center; justify-content: center; }
.atec-fv-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(186, 230, 253, .42);
  backdrop-filter: blur(6px);
}
.atec-fv-backdrop.is-on { display: block; }
.atec-fv.is-zoomed {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 96vw);
  height: min(86vh, 820px);
  min-height: min(86vh, 820px);
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 187, 214, .45);
  box-shadow: 0 24px 64px rgba(80, 140, 200, .22);
  background:
    radial-gradient(circle at 16% 8%, rgba(186, 230, 253, .75), transparent 46%),
    linear-gradient(165deg, #f7fcff 0%, #e0f2fe 52%, #ecfeff 100%);
}
.atec-fv-del {
  appearance: none;
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.atec-fv-del:hover { background: #991b1b; }
.atec-chat-scroll {
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
}
.atec-chat-scroll::-webkit-scrollbar { width: 10px; }
.atec-chat-scroll::-webkit-scrollbar-track { background: #e2e8f0; }
.atec-chat-scroll::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 8px;
}
.atec-chat-scroll::-webkit-scrollbar-thumb:hover { background: #163a72; }
