/* 表情识别（RecognizeFace）— 简陋布局 */
.app > .view.view-expression:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.view-expression {
  padding: 24px 32px 20px;
  color: #e8f4ff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.expr-row--head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.expr-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
}

.expr-tip {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  color: #9cc5ff;
}

.expr-row--main {
  display: flex;
  gap: 24px;
  flex: 1;
  min-height: 0;
  margin-bottom: 16px;
}

.expr-preview-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 320px;
  max-height: 420px;
  background: rgba(0, 20, 48, 0.55);
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expr-video,
.expr-preview {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.expr-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.expr-hint {
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 16px;
  color: rgba(156, 197, 255, 0.75);
}

.expr-panel {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expr-btn {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(120, 200, 255, 0.6);
  border-radius: 6px;
  background: rgba(30, 90, 160, 0.45);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.expr-btn:hover:not(:disabled) {
  background: rgba(50, 120, 200, 0.55);
}

.expr-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.expr-btn--file {
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.expr-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #ffd966;
  min-height: 1.45em;
}

.expr-row--results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.expr-results-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.expr-results {
  flex: 1;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 4px;
  background: rgba(0, 16, 40, 0.4);
  border: 1px solid rgba(100, 160, 230, 0.25);
  border-radius: 6px;
}

.expr-results.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(156, 197, 255, 0.6);
  font-size: 15px;
}

.expr-face-card {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(20, 60, 110, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(100, 170, 255, 0.2);
}

.expr-face-card:last-child {
  margin-bottom: 0;
}

.expr-face-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #7ec8ff;
}

.expr-kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.expr-kv dt {
  margin: 0;
  color: #9cc5ff;
}

.expr-kv dd {
  margin: 0;
  color: #ffffff;
  word-break: break-all;
}

.expr-results::-webkit-scrollbar {
  width: 6px;
}

.expr-results::-webkit-scrollbar-thumb {
  background: rgba(120, 180, 255, 0.45);
  border-radius: 3px;
}
