/* Временная форма владельца. Без встроенных стилей и внешних ресурсов; до активации селекторы не используются.
   Цвета и шрифты — токены site.css, светлая и тёмная тема переключаются там же по prefers-color-scheme. */
.auri-fb {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column-reverse; /* Кнопка остаётся внизу, окно и сообщения растут вверх. */
  align-items: flex-start;
  gap: 8px;
  max-width: calc(100vw - 32px);
  color: var(--s-text);
  font: 14px/1.5 var(--font-sans);
}
.auri-fb [hidden] { display: none !important; }
.auri-fb-controls { display: flex; }
.auri-fb button {
  cursor: pointer;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--s-border-strong);
  border-radius: 8px;
  color: var(--s-text);
  background: var(--s-raised);
  font: inherit;
}
.auri-fb button:hover:not(:disabled) { border-color: var(--s-accent); }
.auri-fb button:disabled { cursor: wait; opacity: .6; }
.auri-fb .auri-fb-launch {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--s-shadow-menu);
}
.auri-fb .auri-fb-primary { border-color: var(--s-accent); color: var(--s-accent-text); background: var(--s-accent); }
.auri-fb .auri-fb-primary:hover:not(:disabled) { border-color: var(--s-accent-hover); background: var(--s-accent-hover); }
.auri-fb .auri-fb-link { border-color: transparent; background: transparent; color: var(--s-link); }
.auri-fb button:focus-visible, .auri-fb input:focus-visible, .auri-fb textarea:focus-visible,
.auri-fb select:focus-visible, .auri-fb-file:focus-within, .auri-fb-chip:focus-within {
  outline: 2px solid var(--s-focus);
  outline-offset: 2px;
}
.auri-fb-status:not(:empty), .auri-fb-panel {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--s-border-strong);
  border-radius: 12px;
  background: var(--s-raised);
  box-shadow: var(--s-shadow-menu);
}
.auri-fb-status:empty { display: none; }
.auri-fb-panel {
  box-sizing: border-box;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
}
.auri-fb-panel h2 { margin: 0; color: var(--s-text-strong); font: bold 18px/1.4 var(--font-sans); }
.auri-fb-lead { margin: 2px 0 10px; color: var(--s-text-muted); }
.auri-fb-placebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--s-sunken);
}
.auri-fb-place { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.auri-fb-placebar button { flex: none; min-height: 32px; font-size: 13px; }
.auri-fb fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.auri-fb label { display: block; margin-bottom: 12px; color: var(--s-text-strong); }
.auri-fb-caption { display: block; margin-bottom: 4px; color: var(--s-text-strong); }
.auri-fb-kinds { margin-bottom: 12px; }
.auri-fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.auri-fb label.auri-fb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--s-border-strong);
  border-radius: 999px;
  color: var(--s-text);
  cursor: pointer;
}
.auri-fb-chip:has(input:checked) { border-color: var(--s-accent); color: var(--s-accent-subtle-text); background: var(--s-accent-subtle); }
.auri-fb .auri-fb-chip input { width: auto; margin: 0; }
.auri-fb-hint { display: block; margin-top: 4px; color: var(--s-text-subtle); font-size: 12px; font-weight: normal; }
.auri-fb textarea, .auri-fb select, .auri-fb input[type="text"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid var(--s-border-strong);
  border-radius: 6px;
  color: var(--s-text);
  background: var(--s-raised);
  font: inherit;
}
.auri-fb textarea { resize: vertical; }
.auri-fb-drop {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px dashed var(--s-border-strong);
  border-radius: 8px;
}
.auri-fb-over { border-color: var(--s-accent); background: var(--s-accent-subtle); }
.auri-fb label.auri-fb-file {
  position: relative;
  justify-self: start;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--s-border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.auri-fb .auri-fb-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.auri-fb-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.auri-fb-previews:empty { display: none; }
.auri-fb-thumb { display: grid; gap: 4px; justify-items: start; }
.auri-fb-thumb img {
  display: block;
  width: 100px;
  height: 75px;
  object-fit: contain;
  border: 1px solid var(--s-border);
  border-radius: 6px;
  background: var(--s-sunken);
}
.auri-fb-thumb button { min-height: 28px; padding: 2px 8px; font-size: 12px; }
.auri-fb-message { margin: 0 0 8px; color: var(--s-text-strong); overflow-wrap: anywhere; }
.auri-fb-message:empty { display: none; }
.auri-fb form > button { margin: 0 6px 6px 0; }
.auri-fb-target { outline: 3px solid var(--s-focus) !important; outline-offset: 2px !important; }
.auri-fb-picking, .auri-fb-picking * { cursor: crosshair !important; }
.auri-fb-picking .auri-fb, .auri-fb-picking .auri-fb * { cursor: auto !important; }
/* BUG-46: широкая форма, поля и вложения объединены; окно остаётся немодальным. */
.auri-fb-panel { width: 820px; }
.auri-fb-header, .auri-fb-title, .auri-fb-toolbar { display: flex; align-items: center; gap: 8px; }
.auri-fb-header h2, .auri-fb-title label { flex: 1; min-width: 0; }
.auri-fb-title { align-items: flex-end; margin-bottom: 12px; }
.auri-fb-title label { margin: 0; }
.auri-fb-toolbar { flex-wrap: wrap; margin: 8px 0; }
.auri-fb-description { border: 1px solid var(--s-border); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.auri-fb-description textarea { min-height: clamp(180px, 30dvh, 360px); }
.auri-fb-description .auri-fb-drop { border: 0; border-top: 1px solid var(--s-border); border-radius: 0; margin-bottom: 0; }
.auri-fb-controls { gap: 8px; }
.auri-fb-controls button:not(.auri-fb-launch) { border-color: var(--s-accent); }
