:root {
  --uic-primary: #b57a51;
  --uic-white: #ffffff;
  --uic-dark: #1f2329;
  --uic-border: rgba(0,0,0,0.08);
}

.uic-root {
  position: fixed;
  z-index: 99999;
  bottom: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.4;
  color: var(--uic-dark);
}

.uic-root.uic-right { right: 20px; }
.uic-root.uic-left { left: 20px; }

.uic-fab {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: var(--uic-primary);
  color: var(--uic-white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}

.uic-fab img { width: 24px; height: 24px; }
.uic-fab .uic-emoji { font-size: 22px; }

.uic-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }

.uic-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(360px, 90vw);
  max-height: min(70vh, 620px);
  background: var(--uic-white);
  border: 1px solid var(--uic-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  display: none;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.uic-root.uic-left .uic-popup { left: 0; right: auto; }

.uic-root[data-glass="1"] .uic-popup {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.6);
}

.uic-root[data-small="1"] { font-size: 12.5px; }

.uic-header {
  padding: 12px 14px;
  background: var(--uic-primary);
  color: var(--uic-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uic-title {
  font-weight: 600;
}

.uic-close {
  background: transparent; border: none; color: var(--uic-white); font-size: 18px;
  opacity: .9; cursor: pointer;
}

.uic-body {
  padding: 12px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,1));
}

.uic-step { display: none; }
.uic-step.active { display: block; }

.uic-step h3 {
  margin: 6px 0 10px; font-size: 14px; font-weight: 700;
}

.uic-list {
  display: grid;
  gap: 8px;
}

.uic-chip {
  border: 1px solid var(--uic-border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color .15s ease, background .15s ease;
}

.uic-chip:hover, .uic-chip.selected {
  border-color: var(--uic-primary);
  background: rgba(181,122,81,.06);
}

.uic-footer {
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--uic-border);
  background: rgba(255,255,255,0.9);
}

.uic-footer button {
  flex: 1 1 auto;
  padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--uic-border);
  cursor: pointer;
  background: #fff;
  color: #000;
}

.uic-next, .uic-submit {
  background: var(--uic-primary);
  color: #000;
  border-color: var(--uic-primary);
}

.uic-prev:disabled { opacity: .5; cursor: not-allowed; }

.uic-field {
  display: grid; gap: 6px; margin: 10px 0;
}

.uic-input, .uic-file {
  width: 100%;
  border: 1px solid var(--uic-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.uic-hint { font-size: 12px; opacity: .8; }

.uic-success, .uic-error {
  border-radius: 10px; padding: 10px 12px; margin: 8px 0;
}

.uic-success { background: #e9f7ef; border: 1px solid #d3f0de; color: #1e7e34; }
.uic-error { background: #fdecea; border: 1px solid #f5c6cb; color: #842029; }
