/* ===========================================================
   SOP Creator — App chrome
   =========================================================== */

* { box-sizing: border-box; }

html, body, #root {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--cream-100);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

button { font-family: inherit; }

/* -------------------------- LAYOUT -------------------------- */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 56px 1fr;
  height: 100vh;
  overflow: hidden;
}
.app__header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: rgba(243, 237, 224, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  z-index: 10;
}
.app__sidebar {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid var(--line-2);
  background: var(--cream-50);
  overflow-y: auto;
  padding: 16px 12px 24px;
}
.app__main {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: hidden;
}

/* -------------------------- HEADER -------------------------- */
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand__mark {
  height: 28px;
  width: auto;
}
.brand__divider {
  width: 1px; height: 22px; background: var(--line-2);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  color: var(--teal-500);
  letter-spacing: -0.01em;
}
.brand__product {
  font-size: 13px; font-weight: 600; color: var(--fg-1);
}
.brand__dot { color: var(--fg-3); margin: 0 2px; }

.header__actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}

/* -------------------------- BUTTONS -------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-50);
  color: var(--fg-1);
  border: 1px solid var(--line-2);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover {
  background: #fff;
  border-color: var(--line-3);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.btn--primary {
  background: var(--teal-500);
  color: var(--cream-100);
  border-color: var(--teal-500);
}
.btn--primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg-2);
}
.btn--ghost:hover {
  background: rgba(14, 74, 68, 0.06);
  color: var(--fg-1);
}
.btn--danger {
  color: var(--status-red);
}
.btn--sm {
  padding: 4px 8px; font-size: 11.5px;
  border-radius: 8px;
}
.btn--icon {
  padding: 6px;
  width: 28px; height: 28px;
  justify-content: center;
}

/* Export dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 4px;
  z-index: 50;
}
.dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-1);
  cursor: pointer;
  background: transparent; border: none;
  width: 100%; text-align: left;
}
.dropdown__item:hover {
  background: var(--cream-100);
}
.dropdown__item-sub {
  font-size: 11px; color: var(--fg-3); margin-left: auto;
}

/* -------------------------- SIDEBAR -------------------------- */
.sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 12px;
}
.sidebar__title {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3);
}
.sidebar__list {
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar__item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 60px 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: left;
  background: transparent;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.sidebar__item:hover {
  background: rgba(14, 74, 68, 0.06);
  border-color: var(--line-2);
}
.sidebar__item--active,
.sidebar__item--active:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--cream-100);
}
.sidebar__item-name {
  font-size: 13px; font-weight: 600;
  color: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.sidebar__item-input {
  font: inherit;
  font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--teal-500);
  color: var(--fg-1);
  border-radius: 6px;
  padding: 3px 7px;
  margin: -3px -7px;
  width: calc(100% + 14px);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 74, 68, 0.18);
}
.sidebar__item-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  display: flex; gap: 6px;
  white-space: nowrap;
}
.sidebar__item--active .sidebar__item-meta {
  color: rgba(243, 237, 224, 0.72);
}
.sidebar__item-actions {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 2px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.sidebar__item:hover .sidebar__item-actions,
.sidebar__item--active .sidebar__item-actions {
  opacity: 1;
}
.sidebar__item-action {
  background: transparent; border: none; cursor: pointer;
  padding: 0;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: inherit;
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.sidebar__item-action:hover {
  opacity: 1;
  background: rgba(14, 74, 68, 0.12);
}
.sidebar__item--active .sidebar__item-action:hover {
  background: rgba(255, 255, 255, 0.18);
}
.sidebar__item-action--danger:hover {
  color: var(--status-red);
}
.sidebar__item--active .sidebar__item-action--danger:hover {
  color: #ffb1b3;
}

.sidebar__footnote {
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: var(--fg-3);
  font-style: italic;
}
.sidebar__empty {
  font-size: 12px; color: var(--fg-3);
  padding: 12px 10px;
  font-style: italic;
}

/* -------------------------- EDITOR (left panel) -------------------------- */
.editor {
  border-right: 1px solid var(--line-2);
  overflow-y: auto;
  background: var(--cream-50);
  padding: 24px 28px 80px;
}
.editor__intro {
  padding: 0 0 8px;
  margin-bottom: 8px;
}
.editor__intro-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: var(--fg-1); margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.editor__intro-sub {
  font-size: 12.5px; color: var(--fg-3);
  margin: 0;
}

.editor__section {
  border-top: 1px solid var(--line-2);
  padding: 16px 0;
}
.editor__section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}
.editor__section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--teal-500);
  color: var(--cream-100);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px;
}
.editor__section-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14.5px;
  color: var(--fg-1);
  letter-spacing: -0.005em;
}
.editor__section-spacer { flex: 1; }
.editor__section-chev {
  color: var(--fg-3);
  transition: transform var(--dur-fast) var(--ease-out);
}
.editor__section--collapsed .editor__section-chev {
  transform: rotate(-90deg);
}
.editor__section-body {
  display: flex; flex-direction: column; gap: 12px;
}
.editor__section--collapsed .editor__section-body {
  display: none;
}

/* Field */
.field {
  display: flex; flex-direction: column; gap: 4px;
}
.field__label {
  font-size: 11px; font-weight: 600;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field__hint {
  font-size: 11.5px; color: var(--fg-3);
  margin-top: -1px;
}
.input, .textarea, .select {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--fg-1);
  width: 100%;
  line-height: 1.45;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--line-3);
  box-shadow: var(--shadow-focus);
}
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field--row > .field { gap: 4px; }

/* Inline list (roles, resources, definitions) */
.inline-list {
  display: flex; flex-direction: column; gap: 8px;
}
.inline-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 28px;
  gap: 8px;
  align-items: start;
}
.inline-row .input { font-size: 13px; padding: 7px 10px; }
.inline-row__remove {
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--fg-3);
  display: flex; align-items: center; justify-content: center;
  height: 32px;
}
.inline-row__remove:hover {
  color: var(--status-red);
  border-color: rgba(197, 53, 57, 0.4);
}

.add-row {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--teal-500);
  border: 1px dashed var(--line-3);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.add-row:hover {
  background: rgba(14, 74, 68, 0.05);
  border-color: var(--teal-500);
}

/* AI button */
.ai-bar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #FBF8F2 0%, #F3EDE0 100%);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 8px 8px 8px 12px;
  margin-top: 6px;
}
.ai-bar__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--teal-500); color: var(--cream-100);
}
.ai-bar__text {
  font-size: 11.5px;
  color: var(--fg-2);
  flex: 1;
  line-height: 1.35;
}
.ai-bar__btn {
  background: var(--teal-500);
  color: var(--cream-100);
  border: none;
  font-size: 11.5px; font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.ai-bar__btn:disabled {
  opacity: 0.6; cursor: wait;
}

/* Phase + step blocks */
.phase {
  background: rgba(14, 74, 68, 0.025);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.phase__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.phase__title {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--fg-1);
  padding: 5px 8px;
  border-radius: 6px;
}
.phase__title:hover, .phase__title:focus {
  background: #fff;
  border-color: var(--line-2);
  outline: none;
}
.step {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.step__head {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  gap: 8px;
  align-items: start;
}
.step__num-input {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--teal-500);
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 8px;
  text-align: center;
}
.step__title-input {
  font-weight: 600; font-size: 13px;
}
.step__body {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.step__substeps {
  margin-top: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--line-1);
  display: flex; flex-direction: column; gap: 6px;
}
.step__substep-row {
  display: grid; grid-template-columns: 28px 1fr 28px;
  gap: 6px; align-items: center;
}
.step__substep-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  color: var(--teal-500);
  text-align: center;
}
.step__meta {
  display: flex; gap: 8px; align-items: center;
  margin-top: 6px;
}
.step__meta-input {
  font-size: 12px;
  padding: 5px 8px;
  max-width: 130px;
}
.step__check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--fg-3);
  user-select: none;
}
.step__check input { accent-color: var(--teal-500); }
.step__img-preview {
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  max-width: 100%;
  max-height: 200px;
  display: block;
}

/* -------------------------- PREVIEW (right panel) -------------------------- */
.preview {
  overflow-y: auto;
  background: var(--cream-100);
  padding: 32px 36px 80px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14, 74, 68, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
}
.preview__inner {
  max-width: 794px;
  margin: 0 auto;
}
.preview__bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fg-3);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.preview__bar-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--status-green);
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}

/* -------------------------- DOC TITLE BAR -------------------------- */
.doc-title-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 auto 14px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  font-size: 12px;
  color: var(--fg-3);
}
.doc-title-bar__title {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--teal-500);
  letter-spacing: -0.005em;
  cursor: text;
  padding: 0 2px;
  border-radius: 4px;
  max-width: 380px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-title-bar__title:hover {
  background: rgba(14, 74, 68, 0.08);
}
.doc-title-bar__title svg {
  opacity: 0.5;
  flex-shrink: 0;
}
.doc-title-bar__title:hover svg {
  opacity: 1;
}
.doc-title-bar__input {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--fg-1);
  letter-spacing: -0.005em;
  background: #fff;
  border: 1px solid var(--teal-500);
  border-radius: 6px;
  padding: 3px 8px;
  outline: none;
  min-width: 280px;
  box-shadow: 0 0 0 3px rgba(14, 74, 68, 0.18);
}
.doc-title-bar__sep { opacity: 0.4; }
.doc-title-bar__meta { font-family: var(--font-mono); }

/* -------------------------- TOAST -------------------------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--teal-500);
  color: var(--cream-100);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: flex; align-items: center; gap: 8px;
  animation: toast-in 200ms var(--ease-out);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* -------------------------- SCROLLBARS -------------------------- */
.app__sidebar::-webkit-scrollbar,
.editor::-webkit-scrollbar,
.preview::-webkit-scrollbar { width: 10px; }
.app__sidebar::-webkit-scrollbar-thumb,
.editor::-webkit-scrollbar-thumb,
.preview::-webkit-scrollbar-thumb {
  background: rgba(14, 74, 68, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.app__sidebar::-webkit-scrollbar-thumb:hover,
.editor::-webkit-scrollbar-thumb:hover,
.preview::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 74, 68, 0.32);
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* -------------------------- MIC BUTTON -------------------------- */
.mic-btn-wrap {
  position: relative;
  display: inline-flex;
}
.mic-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--teal-500);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.mic-btn:hover {
  background: var(--cream-50);
  border-color: var(--teal-500);
}
.mic-btn--recording {
  background: var(--status-red);
  border-color: var(--status-red);
  color: var(--cream-50);
  animation: mic-shake 1.4s infinite;
}
.mic-btn--recording:hover {
  background: #b32a2e;
  border-color: #b32a2e;
}
.mic-btn__pulse {
  position: absolute; inset: -4px;
  border-radius: 999px;
  background: var(--status-red);
  opacity: 0.35;
  animation: mic-pulse 1.4s infinite var(--ease-out);
  pointer-events: none;
}
.mic-btn__err {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--status-red);
  color: var(--cream-50);
  font-size: 11px; font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
@keyframes mic-pulse {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes mic-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* -------------------------- MODE TOGGLE -------------------------- */
.mode-toggle {
  display: inline-flex;
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
}
.mode-toggle__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.mode-toggle__btn--active {
  background: var(--teal-500);
  color: var(--cream-100);
}
.mode-toggle__btn:hover:not(.mode-toggle__btn--active) {
  color: var(--fg-1);
}

/* -------------------------- SIMPLE EDITOR -------------------------- */
.simple-editor {
  overflow-y: auto;
  background: var(--cream-50);
  padding: 32px 28px 80px;
  border-right: 1px solid var(--line-2);
}
.simple-editor__inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 22px;
}
.simple-editor__head {
  text-align: left;
}
.simple-editor__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--teal-500);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.simple-editor__sub {
  font-size: 13.5px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

.simple-input {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.simple-input:focus-within {
  border-color: var(--line-3);
  box-shadow: var(--shadow-focus);
}
.simple-input__ta {
  width: 100%;
  min-height: 140px;
  border: none;
  background: transparent;
  resize: vertical;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-1);
  outline: none;
  padding: 0;
}
.simple-input__ta::placeholder {
  color: var(--fg-3);
}
.simple-input__interim {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14, 74, 68, 0.06);
  color: var(--teal-500);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-style: italic;
  border: 1px dashed var(--line-3);
}
.simple-input__toolbar {
  /* flex-wrap permite que los botones bajen a una segunda línea cuando el
     toolbar tiene 4 items (mic + adjuntar + refinar + generar), en vez de
     desbordar el contenedor padre. */
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line-1);
}
.simple-input__hint {
  font-size: 11.5px;
  color: var(--fg-3);
  /* Si hay poco espacio, el hint queda en su propia línea y deja a los
     botones la fila — más prolijo que truncar. */
  flex: 1 1 auto;
  min-width: 0;
}
.simple-input__err {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--status-red);
}

.simple-examples {
  display: flex; flex-direction: column; gap: 8px;
}
.simple-examples__label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3);
}
.simple-examples__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.simple-example-chip {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px; font-weight: 600;
  color: var(--teal-500);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: inherit;
}
.simple-example-chip:hover {
  background: var(--teal-500);
  color: var(--cream-100);
  border-color: var(--teal-500);
}

.simple-tips {
  background: var(--cream-100);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 14px 16px;
}
.simple-tips__title {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0 0 8px;
}
.simple-tips__list {
  margin: 0; padding: 0 0 0 18px;
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.55;
}
.simple-tips__list li { margin-bottom: 5px; }
.simple-tips__list li::marker { color: var(--teal-500); }
.simple-tips__list strong { color: var(--teal-500); }

.simple-status {
  display: flex; align-items: center; gap: 8px;
  background: rgba(14, 74, 68, 0.05);
  border: 1px solid var(--line-1);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--fg-2);
  width: fit-content;
}
.simple-status strong { color: var(--fg-1); font-weight: 700; }

/* -------------------------- INLINE MIC IN ADVANCED MODE -------------------------- */
.textarea-with-mic {
  position: relative;
}
.textarea-with-mic .mic-btn-wrap {
  position: absolute;
  right: 8px;
  bottom: 8px;
}
.textarea-with-mic .textarea {
  padding-right: 48px;
}
.row { display: flex; align-items: center; gap: 8px; }
.flex-1 { flex: 1; }
.muted { color: var(--fg-3); }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(243, 237, 224, 0.4);
  border-top-color: var(--cream-100);
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ HISTORY PANEL (drawer derecho) ============ */
.hp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 35, 0.45);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: hpFade 160ms ease-out;
}
@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }

.hp-drawer {
  background: var(--bg-1, #fff);
  width: min(560px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.18);
  animation: hpSlide 180ms ease-out;
}
@keyframes hpSlide { from { transform: translateX(20px); opacity: 0.5; } to { transform: translateX(0); opacity: 1; } }

.hp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 10px;
  border-bottom: 1px solid var(--line-1, #e5e9e8);
}
.hp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1, #1c2c2a);
}
.hp-close {
  background: transparent;
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 6px;
  width: 30px; height: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2, #5d6f6c);
}
.hp-close:hover { background: var(--bg-2, #f5f7f6); }

.hp-sub {
  padding: 8px 22px 14px;
  font-size: 12.5px;
  color: var(--fg-3, #7a8a87);
  border-bottom: 1px solid var(--line-1, #e5e9e8);
}

.hp-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fg-3, #7a8a87);
  text-align: center;
  padding: 40px 20px;
}
.hp-empty-sub {
  font-size: 12px;
  max-width: 320px;
  margin: 0;
}

.hp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.hp-item {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-1, #e5e9e8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-item:hover { background: var(--bg-2, #f7faf9); }

.hp-item-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hp-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fg-3, #7a8a87);
}
.hp-item-when { font-family: var(--font-mono, monospace); }
.hp-item-sep { opacity: 0.5; }
.hp-item-label {
  font-style: italic;
}
.hp-item-badge {
  margin-left: auto;
  background: var(--teal-500, #0E4A44);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.hp-item-doc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: var(--fg-1, #1c2c2a);
}
.hp-item-meta-sm {
  font-size: 11px;
  color: var(--fg-3, #7a8a87);
}

.hp-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.hp-footer {
  border-top: 1px solid var(--line-1, #e5e9e8);
  padding: 12px 22px;
  display: flex;
  justify-content: flex-end;
}

/* No imprimir el drawer si está abierto cuando se da Ctrl+P */
@media print {
  .hp-backdrop, .hp-drawer { display: none !important; }
}

/* ============ AGENT MODE ============ */
.agent-mode {
  flex: 1;
  display: flex;
  overflow-y: auto;
  background: var(--bg-1, #fff);
}
.agent-mode__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agent-mode__head { margin-bottom: 4px; }
.agent-mode__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--fg-1, #1c2c2a);
}
.agent-mode__sub {
  margin: 0;
  font-size: 13px;
  color: var(--fg-3, #7a8a87);
  line-height: 1.5;
}

/* ----- Plan progress ----- */
.agent-plan {
  background: var(--bg-2, #f6f8f7);
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 10px;
  padding: 12px 14px;
}
.agent-plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2, #5d6f6c);
  margin-bottom: 8px;
}
.agent-plan-title { letter-spacing: 0.02em; }
.agent-plan-counter {
  margin-left: auto;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--fg-3, #7a8a87);
  background: rgba(0,0,0,0.04);
  padding: 2px 7px;
  border-radius: 8px;
}
.agent-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-plan-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--fg-1, #1c2c2a);
  padding: 3px 0;
}
.agent-plan-item--completed { color: var(--fg-3, #7a8a87); }
.agent-plan-item--completed .agent-plan-text { text-decoration: line-through; }
.agent-plan-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}
.agent-plan-spinner {
  width: 11px;
  height: 11px;
  border: 2px solid var(--teal-500, #0E4A44);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.agent-plan-empty {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--line-2, #c8d2d0);
  border-radius: 50%;
}
.agent-plan-item--completed .agent-plan-bullet {
  color: var(--teal-500, #0E4A44);
}

/* ----- Stream activity log ----- */
.agent-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}
.agent-activity {
  background: var(--bg-2, #f6f8f7);
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agent-activity-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3, #7a8a87);
  margin-bottom: 4px;
}
.agent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
  line-height: 1.4;
}
.agent-row-icon, .agent-row-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--teal-500, #0E4A44);
}
.agent-row-dot::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-3, #7a8a87);
}
.agent-row-content {
  flex: 1;
  color: var(--fg-1, #1c2c2a);
}
.agent-row-verb { font-weight: 500; }
.agent-row-summary {
  color: var(--fg-3, #7a8a87);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}
.agent-row--text .agent-row-content {
  color: var(--fg-2, #5d6f6c);
  font-style: italic;
}
.agent-row--tool.agent-row--pending .agent-row-verb {
  color: var(--fg-2, #5d6f6c);
}
.agent-row--err {
  color: #b54a4a;
}
.agent-row--err .agent-row-icon { color: #b54a4a; }
.agent-row--done {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-1, #e5e9e8);
}
.agent-row--done .agent-row-icon { color: var(--teal-500, #0E4A44); }
.agent-row--thinking {
  color: var(--fg-3, #7a8a87);
  font-style: italic;
}
.agent-row-spinner {
  width: 11px;
  height: 11px;
  border: 2px solid var(--teal-500, #0E4A44);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* ----- Input ----- */
.agent-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-2, #f6f8f7);
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 10px;
  padding: 12px;
}
.agent-input__ta {
  width: 100%;
  resize: vertical;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-1, #1c2c2a);
  outline: none;
  min-height: 64px;
}
.agent-input__ta:disabled { opacity: 0.55; }
.agent-input__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-input__err {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #b54a4a;
}

/* ----- Tips ----- */
.agent-tips {
  background: var(--bg-2, #f6f8f7);
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 10px;
  padding: 12px 16px;
}
.agent-tips__title {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3, #7a8a87);
  font-weight: 600;
  margin: 0 0 8px;
}
.agent-tips__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--fg-2, #5d6f6c);
  line-height: 1.45;
}

/* ============ AGENT PROVIDER TOGGLE ============ */
.agent-mode__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.agent-provider-toggle {
  display: inline-flex;
  background: var(--bg-2, #f6f8f7);
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 8px;
  padding: 2px;
  gap: 1px;
}
.agent-provider-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fg-2, #5d6f6c);
  transition: background 100ms;
}
.agent-provider-btn:hover:not(:disabled):not(.agent-provider-btn--active) {
  background: rgba(0,0,0,0.04);
}
.agent-provider-btn--active {
  background: var(--bg-1, #fff);
  color: var(--fg-1, #1c2c2a);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.agent-provider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============ PROVIDER TOGGLE (global header) ============ */
.provider-toggle {
  display: inline-flex;
  background: var(--bg-2, #f6f8f7);
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 8px;
  padding: 2px;
  gap: 1px;
  margin-left: 10px;
}
.provider-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fg-2, #5d6f6c);
  transition: background 100ms;
}
.provider-toggle__btn:hover:not(:disabled):not(.provider-toggle__btn--active) {
  background: rgba(0,0,0,0.04);
}
.provider-toggle__btn--active {
  background: var(--bg-1, #fff);
  color: var(--fg-1, #1c2c2a);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.provider-toggle__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* -------------------------- AI ACTIVITY (Simple / Avanzado) -------------------------- */
/* Panel flotante abajo-izquierda con feedback en vivo del shim. No interfiere
   con el toast (centrado) ni con el botón Exportar (header). */
.ai-activity {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  min-width: 280px;
  max-width: 420px;
  background: var(--bg-1, #fff);
  border: 1px solid var(--border-1, rgba(14, 74, 68, 0.12));
  border-left: 3px solid var(--teal-500, #0E4A44);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,0.08));
  font-size: 12.5px;
  color: var(--fg-1, #1c2c2a);
  animation: ai-activity-in 180ms var(--ease-out, ease-out);
}
.ai-activity--done { border-left-color: var(--teal-500, #0E4A44); }
.ai-activity--error { border-left-color: #b54a4a; }

.ai-activity__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-activity__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--teal-500, #0E4A44);
}
.ai-activity--error .ai-activity__icon { color: #b54a4a; }

.ai-activity__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(14, 74, 68, 0.18);
  border-top-color: var(--teal-500, #0E4A44);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.ai-activity__title {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ai-activity__meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 11px;
  color: var(--fg-3, #6c7e7c);
}
.ai-activity__provider {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-2, #38504c);
}
.ai-activity__sep { opacity: 0.4; }

.ai-activity__stream {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(14, 74, 68, 0.05);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 11px;
  color: var(--fg-2, #38504c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-activity__err {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(181, 74, 74, 0.08);
  color: #8a3a3a;
  font-size: 11.5px;
  line-height: 1.4;
}

@keyframes ai-activity-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   MODAL — subir a Google Drive (mismo lenguaje visual que HistoryPanel)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 35, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-backdrop-in 160ms ease-out;
}
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--bg-1, #fff);
  border-radius: 14px;
  width: min(500px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(10, 30, 35, 0.25), 0 4px 12px rgba(10, 30, 35, 0.08);
  animation: modal-card-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-1, #e5e9e8);
}
.modal-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-size: 15px; font-weight: 700;
  color: var(--fg-1, #1c2c2a); letter-spacing: -0.005em;
}
.modal-close {
  background: transparent;
  border: 1px solid var(--line-1, #e5e9e8);
  border-radius: 6px;
  width: 28px; height: 28px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2, #5d6f6c);
  transition: background 120ms, color 120ms;
}
.modal-close:hover { background: var(--bg-2, #f5f7f6); color: var(--fg-1, #1c2c2a); }

.modal-body { padding: 18px 20px 6px; overflow-y: auto; }
.modal-help {
  margin: 0 0 14px; font-size: 13px;
  color: var(--fg-2, #5d6f6c); line-height: 1.5;
}
.modal-help strong { color: var(--fg-1, #1c2c2a); font-weight: 600; }

.modal-label {
  display: block; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-3, #7a8a87); margin-bottom: 6px;
}
.modal-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-2, #d4dad8); border-radius: 8px;
  background: var(--bg-1, #fff); color: var(--fg-1, #1c2c2a);
  font-size: 13px;
  font-family: var(--font-mono, ui-monospace, 'SF Mono', Menlo, monospace);
  outline: none; box-sizing: border-box;
  transition: border-color 120ms, box-shadow 120ms;
}
.modal-input:focus {
  border-color: var(--teal-500, #0E4A44);
  box-shadow: 0 0 0 3px rgba(14, 74, 68, 0.16);
}
.modal-input:disabled { background: var(--bg-2, #f5f7f6); color: var(--fg-3, #7a8a87); }

.modal-hint {
  margin: 8px 0 4px; font-size: 11.5px;
  color: var(--fg-3, #7a8a87); line-height: 1.5;
}
.modal-hint code {
  font-family: var(--font-mono, ui-monospace, 'SF Mono', Menlo, monospace);
  font-size: 11px;
  background: var(--bg-2, #f5f7f6);
  padding: 1px 5px; border-radius: 4px;
  color: var(--fg-2, #5d6f6c);
  border: 1px solid var(--line-1, #e5e9e8);
}

.modal-error {
  margin-top: 12px; padding: 9px 11px; border-radius: 8px;
  background: rgba(181, 74, 74, 0.08);
  border: 1px solid rgba(181, 74, 74, 0.25);
  color: #7a2e2e; font-size: 12.5px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 7px;
}

.modal-footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line-1, #e5e9e8);
  background: var(--bg-2, #f5f7f6);
}

.modal-spinner {
  display: inline-block; width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid currentColor; border-top-color: transparent;
  animation: modal-spin 0.7s linear infinite;
  margin-right: 4px;
}
@keyframes modal-spin { to { transform: rotate(360deg); } }

.modal-success {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 14px 16px; border-radius: 10px;
  background: rgba(60, 140, 100, 0.06);
  border: 1px solid rgba(60, 140, 100, 0.22);
}
.modal-success-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(60, 140, 100, 0.18); color: #2a6e4f;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-success-body { flex: 1; min-width: 0; }
.modal-success-title {
  font-size: 14px; font-weight: 700; color: #1f5a3f; margin-bottom: 2px;
}
.modal-success-name {
  font-size: 12.5px; color: var(--fg-2, #5d6f6c);
  margin-bottom: 8px; word-break: break-word;
}
.modal-success-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--teal-500, #0E4A44);
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms;
}
.modal-success-link:hover { border-bottom-color: currentColor; }

/* ===================================================================
   ADJUNTAR IMÁGENES (SimpleEditor + Editor)
   =================================================================== */
.simple-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 4px 4px;
}
.simple-images__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-1, #e5e9e8);
  background: var(--bg-2, #f5f7f6);
  box-shadow: 0 1px 2px rgba(10, 30, 35, 0.06);
}
.simple-images__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.simple-images__remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(10, 30, 35, 0.78);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 100ms;
}
.simple-images__remove:hover {
  background: rgba(10, 30, 35, 0.95);
}
.simple-images__remove:disabled { opacity: 0.5; cursor: not-allowed; }

.simple-input__attach {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  padding: 7px 11px;
  border-radius: 8px;
}
.simple-input__attach-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--teal-500, #0E4A44);
  color: var(--cream-100, #f3ede0);
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

