.manager-hero {
  background: linear-gradient(135deg, #ffffff, #f4f7ff);
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(35, 55, 120, .08);
}
.manager-pill {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .1);
  color: #0d47a1;
  font-size: .85rem;
  font-weight: 700;
}
.manager-status {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: .55rem .8rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  background: #fff;
  font-size: .9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
}
.status-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  display: inline-block;
}
.status-muted { background: #adb5bd; }
.status-run { background: #0d6efd; box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15); }
.status-ok { background: #198754; box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .15); }
.status-error { background: #dc3545; box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .15); }
.manager-card { border-radius: 20px; }
.manager-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 240px);
  gap: .65rem;
}
.conversation-list {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.empty-state {
  padding: 1.25rem;
  border-style: dashed;
}
.conversation-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.conversation-row:last-child { border-bottom: 0; }
.conversation-row:hover { background: #f8faff; }
.conversation-title {
  font-weight: 700;
  line-height: 1.25;
}
.conversation-sub {
  color: #6c757d;
  font-size: .82rem;
  margin-top: .15rem;
}
.native-badge {
  color: #6c757d;
  font-size: .8rem;
  white-space: nowrap;
}
.log-box {
  min-height: 240px;
  max-height: 460px;
  overflow: auto;
  padding: 1rem;
  border-radius: 16px;
  background: #101828;
  color: #d6e4ff;
  white-space: pre-wrap;
}
.rto-modal[hidden] { display: none; }
.rto-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.rto-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.rto-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.delete-preview {
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
}
.delete-preview-item {
  padding: .7rem .85rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.delete-preview-item:last-child { border-bottom: 0; }
@media (max-width: 767px) {
  .manager-toolbar { grid-template-columns: 1fr; }
  .conversation-row { grid-template-columns: auto 1fr; }
  .native-badge { grid-column: 2; }
}

.work-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 18px;
  background: #f7faff;
  box-shadow: 0 12px 32px rgba(13, 110, 253, .08);
}
.work-panel[hidden] { display: none; }
.work-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: .18rem solid rgba(13, 110, 253, .18);
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: rto-spin 850ms linear infinite;
}
.work-count {
  min-width: 3rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
@keyframes rto-spin { to { transform: rotate(360deg); } }


/* v17 colorful UI */
.manager-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(13, 110, 253, .18), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(111, 66, 193, .16), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef5ff 54%, #f8f1ff);
}
.conversation-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  position: relative;
}
.conversation-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
  z-index: 1;
}
.conversation-row.is-selected {
  color: #10233f;
  box-shadow: inset 5px 0 0 var(--row-color), 0 12px 30px rgba(15, 23, 42, .10);
  background: linear-gradient(90deg, var(--row-soft), #fff 72%);
}
.conversation-row.is-selected .conversation-title { color: #0f172a; }
.conversation-row.is-selected .conversation-sub { color: #22577a; font-weight: 700; }
.conversation-main {
  min-width: 0;
  display: block;
}
.conversation-sub {
  display: block;
  color: #6c757d;
  font-size: .82rem;
  margin-top: .15rem;
}
.conversation-number {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--row-soft);
  color: var(--row-color);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62);
}
.conversation-state {
  justify-self: end;
  min-width: 3.4rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: transparent;
  color: var(--row-color);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}
.conversation-row.is-selected .conversation-state {
  background: var(--row-color);
  color: #fff;
}
.color-0 { --row-color: #0d6efd; --row-soft: rgba(13, 110, 253, .13); }
.color-1 { --row-color: #6f42c1; --row-soft: rgba(111, 66, 193, .13); }
.color-2 { --row-color: #198754; --row-soft: rgba(25, 135, 84, .13); }
.color-3 { --row-color: #fd7e14; --row-soft: rgba(253, 126, 20, .15); }
.color-4 { --row-color: #0dcaf0; --row-soft: rgba(13, 202, 240, .16); }
.color-5 { --row-color: #d63384; --row-soft: rgba(214, 51, 132, .13); }
.color-6 { --row-color: #20c997; --row-soft: rgba(32, 201, 151, .15); }
.color-7 { --row-color: #6610f2; --row-soft: rgba(102, 16, 242, .13); }
.work-panel {
  background:
    radial-gradient(circle at 0% 50%, rgba(13, 110, 253, .16), transparent 36%),
    linear-gradient(135deg, #f8fbff, #f7f1ff);
}
.work-spinner {
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(13, 110, 253, .18);
  display: inline-grid;
  place-items: center;
  animation: rto-spin 1100ms linear infinite;
}
.work-panel.is-working .work-spinner {
  animation: rto-spin 1100ms linear infinite;
}
.work-panel.is-working .work-spinner img {
  animation: none;
}
@keyframes rto-spin-working {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(245deg) scale(1.035); }
  75% { transform: rotate(330deg) scale(1.01); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes rto-icon-working {
  0% { transform: rotate(0deg); }
  55% { transform: rotate(210deg); }
  100% { transform: rotate(360deg); }
}
.work-spinner img {
  width: 2.55rem;
  height: 2.55rem;
  display: block;
}
.work-count {
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
}
@media (max-width: 767px) {
  .conversation-row { grid-template-columns: auto 1fr; }
  .conversation-state { grid-column: 2; justify-self: start; }
}

/* v19: explicit multi-selection */
.conversation-row.is-selected {
  transform: translateX(2px);
  box-shadow: inset 6px 0 0 rgba(13, 110, 253, .85), 0 6px 18px rgba(13, 110, 253, .14);
}
.conversation-row.is-selected .conversation-title { color: #052c65; }
.conversation-row.is-selected .conversation-state {
  background: rgba(13, 110, 253, .12);
  color: #084298;
  border: 1px solid rgba(13, 110, 253, .22);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}

/* v20: tools column and pinned state */
.manager-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.tools-column {
  position: sticky;
  top: 1rem;
}
.tools-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(13, 110, 253, .12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(111, 66, 193, .12), transparent 32%),
    #fff;
}
.list-card {
  min-width: 0;
}
.conversation-row {
  grid-template-columns: auto 1fr auto auto;
}
.conversation-row.is-pinned {
  background: linear-gradient(90deg, rgba(255, 193, 7, .16), #fff 46%);
}
.conversation-row.is-pinned .conversation-number {
  background: rgba(255, 193, 7, .22);
  color: #8a5a00;
}
.conversation-pin {
  justify-self: end;
  min-width: 4.8rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  color: #8a5a00;
  background: rgba(255, 193, 7, .18);
  font-size: .76rem;
  font-weight: 900;
  text-align: center;
}
.conversation-pin:empty {
  display: none;
}
@media (max-width: 991px) {
  .manager-shell { grid-template-columns: 1fr; }
  .tools-column { position: static; }
}
@media (max-width: 767px) {
  .conversation-row { grid-template-columns: auto 1fr; }
  .conversation-pin { grid-column: 2; justify-self: start; }
}

/* v21 list rendering fix */
.conversation-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  min-width: 8.2rem;
}
.conversation-pin {
  min-width: 0;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, .18);
  color: #8a5a00;
  font-size: .76rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.conversation-pin:empty { display: none; }
@media (max-width: 767px) {
  .conversation-badges { grid-column: 2; justify-content: flex-start; }
}

/* v21 list rendering fix */
.conversation-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  min-width: 8.2rem;
}
.conversation-pin {
  min-width: 0;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, .18);
  color: #8a5a00;
  font-size: .76rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.conversation-pin:empty { display: none; }
@media (max-width: 767px) {
  .conversation-badges { grid-column: 2; justify-content: flex-start; }
}


/* v24 : travail en cours en modale */
.work-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}
.work-panel[hidden] { display: none; }
.work-modal-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(13, 110, 253, .12), transparent 32%), #fff;
  box-shadow: 0 28px 78px rgba(0, 0, 0, .32);
}
.work-modal-card .work-spinner {
  width: 4.6rem;
  height: 4.6rem;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 110, 253, .22);
  display: inline-grid;
  place-items: center;
  animation: rto-spin 1100ms linear infinite;
}
.work-modal-card .work-spinner img {
  width: 3.35rem;
  height: 3.35rem;
  display: block;
}
.work-modal-card .work-copy strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
}
.work-modal-card .work-count {
  min-width: 3.2rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  color: #fff;
  font-weight: 800;
  text-align: center;
}


/* v27: compact pin icon */
.conversation-badges { min-width: 2.2rem; }
.conversation-pin {
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 193, 7, .18);
  color: #8a5a00;
  font-size: 1rem;
  line-height: 1;
}
.conversation-pin:empty { display: none; }
.conversation-row.is-pinned .conversation-title::after {
  content: "";
}
.work-modal-card .work-copy p { margin-bottom: 0; }

/* v28: visual clarification, delete protection and full-screen list */
.list-card {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.list-card > .card-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.list-card .conversation-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.conversation-row,
.conversation-row.is-selected,
.conversation-row.is-pinned {
  background: #fff;
  color: inherit;
  transform: none;
  box-shadow: none;
}
.conversation-row:hover,
.conversation-row.is-selected:hover,
.conversation-row.is-pinned:hover {
  background: #f8faff;
  transform: none;
  box-shadow: none;
}
.conversation-row.is-selected .conversation-title,
.conversation-row.is-pinned .conversation-title {
  color: #0f172a;
}
.conversation-row.is-selected .conversation-sub {
  color: #6c757d;
  font-weight: 400;
}
.conversation-row.is-pinned .conversation-number,
.conversation-number {
  background: #f1f5f9;
  color: #0d6efd;
}
.conversation-state {
  min-width: 3.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: #0d6efd;
}
.conversation-row.is-selected .conversation-state {
  background: rgba(13, 110, 253, .10);
  color: #084298;
  border: 1px solid rgba(13, 110, 253, .24);
  border-radius: 999px;
}
.conversation-badges {
  min-width: 5.8rem;
}
.conversation-pin {
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 193, 7, .18);
  color: #8a5a00;
  font-size: 1rem;
  line-height: 1;
}
.conversation-pin:empty { display: none; }
.delete-preview-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.delete-preview-item span {
  color: #6c757d;
  font-size: .82rem;
  white-space: nowrap;
}
.delete-preview-item.is-protected {
  background: rgba(220, 53, 69, .06);
}
.delete-preview-item.is-protected span {
  color: #b02a37;
  font-weight: 700;
}
@media (max-width: 991px) {
  .list-card { max-height: none; }
  .list-card .conversation-list { max-height: 70vh; }
}


/* v29: simple blue selection, no Batch/Target label, local groups */
.conversation-row.is-selected,
.conversation-row.is-selected:hover {
  background: #eaf3ff;
  border-left-color: #0d6efd;
}
.conversation-row.is-pinned,
.conversation-row.is-pinned:hover {
  background: #fff;
}
.conversation-row.is-selected.is-pinned,
.conversation-row.is-selected.is-pinned:hover {
  background: #eaf3ff;
}
.conversation-badges {
  min-width: 2rem;
  justify-content: end;
  gap: .35rem;
}
.conversation-state { display: none !important; }
.conversation-group {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .08);
  color: #084298;
  font-size: .75rem;
  font-weight: 700;
}
.conversation-group:empty { display: none; }
.storage-tools {
  border-top: 1px solid rgba(13, 110, 253, .12);
  padding-top: 1rem;
}
.tools-card .btn {
  text-align: left;
}
.btn-warning {
  --bs-btn-color: #084298;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #0d6efd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0d6efd;
  --bs-btn-hover-border-color: #0d6efd;
}
@media (min-width: 992px) {
  .list-card { max-height: calc(100vh - 1rem); }
}


/* v30: softer modal, isolated localStorage, direct wording */
.storage-modal .rto-modal-backdrop {
  background:
    radial-gradient(circle at 18% 22%, rgba(13, 110, 253, .30), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(111, 66, 193, .22), transparent 30%),
    rgba(15, 23, 42, .56);
  backdrop-filter: blur(5px);
}
.storage-modal-panel {
  width: min(760px, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .98));
  box-shadow: 0 30px 90px rgba(15, 23, 42, .34);
}
.storage-modal-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.45rem 1.55rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(13, 110, 253, .20), transparent 38%),
    linear-gradient(135deg, #ffffff, #eef6ff);
  border-bottom: 1px solid rgba(13, 110, 253, .10);
}
.storage-modal-icon {
  width: 3.35rem;
  height: 3.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  background: #0d6efd;
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 14px 32px rgba(13, 110, 253, .30);
}
.storage-kicker {
  color: #0d6efd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.storage-modal-copy {
  padding: 1.35rem 1.55rem .75rem;
  color: #475569;
  font-size: .98rem;
  line-height: 1.55;
}
.storage-existing-card {
  display: grid;
  gap: .2rem;
  margin: 0 1.55rem 1rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 18px;
  background: rgba(13, 110, 253, .06);
  color: #24435f;
}
.storage-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
  padding: 1rem 1.55rem 1.45rem;
}
.storage-modal-actions .btn {
  border-radius: 999px;
  padding-inline: 1rem;
}
@media (max-width: 575px) {
  .storage-modal-head { align-items: flex-start; }
  .storage-modal-actions { justify-content: stretch; }
  .storage-modal-actions .btn { width: 100%; }
}

/* v31: Actions counter, reactivatable storage, clear protected deletion */
.tools-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.tool-count-meta {
  color: #0d6efd;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}
#renameBox[hidden] {
  display: none !important;
}
.storage-access {
  padding: .9rem;
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: 16px;
  background: rgba(13, 110, 253, .045);
}
#btnDeleteModal[hidden],
#btnRename[hidden] {
  display: none !important;
}

.conversation-row {
  position: relative;
}
.conversation-row.is-rename-dirty .conversation-title {
  text-decoration: none !important;
}
.conversation-op-badge {
  position: absolute;
  right: 4.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  display: none;
  padding: .22rem .52rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}
.conversation-row.is-op-pending .conversation-op-badge {
  display: inline-flex;
  align-items: center;
}
.conversation-row.is-op-rename .conversation-op-badge {
  color: #146c43;
  background: rgba(209, 231, 221, .96);
  border: 1px solid rgba(25, 135, 84, .2);
}
.conversation-row.is-op-delete .conversation-op-badge {
  color: #842029;
  background: rgba(248, 215, 218, .96);
  border: 1px solid rgba(220, 53, 69, .2);
}

.conversation-row.is-op-pin .conversation-op-badge,
.conversation-row.is-op-unpin .conversation-op-badge {
  color: #084298;
  background: rgba(207, 226, 255, .96);
  border: 1px solid rgba(13, 110, 253, .22);
}
#btnRename.btn-success,
#btnRename.btn-success:hover,
#btnRename.btn-success:focus,
#btnRename.btn-success:focus-visible {
  color: #fff !important;
  background: #198754 !important;
  background-color: #198754 !important;
  border-color: #198754 !important;
  box-shadow: 0 0 0 .18rem rgba(25, 135, 84, .16) !important;
}
#btnRename.btn-success:hover {
  background: #157347 !important;
  background-color: #157347 !important;
  border-color: #146c43 !important;
}

#btnDeleteModal.btn-outline-danger {
  --bs-btn-color: #b02a37;
  --bs-btn-border-color: rgba(176, 42, 55, .45);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b02a37;
  --bs-btn-hover-border-color: #b02a37;
}


/* v32: colored local groups and safer storage */
.conversation-group {
  border: 1px solid transparent;
}
.conversation-list.is-grouped {
  gap: .35rem;
}
.conversation-group-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .7rem 0 .25rem;
  padding: .4rem .65rem;
  border-left: 4px solid #0d6efd;
  border-radius: 12px;
  background: rgba(248, 250, 252, .96);
  color: #334155;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  position: relative;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.conversation-group-header:hover,
.conversation-group-header:focus-visible {
  background: rgba(239, 246, 255, .98);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.conversation-group-header:focus-visible {
  outline: 2px solid rgba(13, 110, 253, .35);
  outline-offset: 2px;
}
.conversation-group-header:hover .group-header-action,
.conversation-group-header:focus-visible .group-header-action {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  visibility: visible;
}
.group-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  flex: 0 0 auto;
}
.group-header-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-header-action {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  color: #0d6efd;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  padding: .38rem .55rem;
  pointer-events: none;
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%) translateX(.35rem);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  visibility: hidden;
  white-space: nowrap;
}
#btnStorageClear:not([hidden]) {
  display: inline-block;
}
#groupRenameInput::placeholder,
#groupInput::placeholder {
  color: #94a3b8;
}

/* v34: conditional rename and exact single pin action */

/* v37: polished demo intro */
.demo-intro {
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 12%, rgba(13, 110, 253, .10), transparent 30%),
    #fff;
}
.demo-note {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 18px;
  background: rgba(13, 110, 253, .055);
  color: #334155;
}
.demo-note strong {
  color: #0d6efd;
}
#demoIntro[hidden] {
  display: none !important;
}


/* v38: product hero, demo mode, tool mode */
.hero-animated {
  position: relative;
  overflow: hidden;
  color: #10233f;
  background:
    radial-gradient(circle at 16% 18%, rgba(13, 110, 253, .24), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(111, 66, 193, .22), transparent 34%),
    radial-gradient(circle at 70% 88%, rgba(32, 201, 151, .14), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef6ff 55%, #f7f0ff);
}
.hero-animated::before,
.hero-animated::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .10);
  filter: blur(2px);
  animation: rto-float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-animated::before { right: -4rem; top: -5rem; }
.hero-animated::after { left: 48%; bottom: -8rem; animation-delay: -3s; background: rgba(111, 66, 193, .10); }
.fw-black { font-weight: 900; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: #24435f;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}
.hero-orb-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .12);
  backdrop-filter: blur(6px);
}
.hero-logo-spin {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 110, 253, .25);
  animation: rto-breathe 2.8s ease-in-out infinite;
}
.hero-logo-spin img {
  width: 5rem;
  height: 5rem;
  animation: rto-spin 9s linear infinite;
}
.rto-background-working .hero-logo-spin,
.rto-queue-working .hero-logo-spin {
  animation: rto-breathe 1.55s ease-in-out infinite;
}
.rto-background-working .hero-logo-spin img,
.rto-queue-working .hero-logo-spin img,
.rto-queue-working .sdk-brand > img {
  animation: rto-spin-working 2400ms cubic-bezier(.42, 0, .2, 1) infinite;
}
.demo-steps {
  display: grid;
  gap: .65rem;
}
.demo-steps div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .7rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}
.demo-steps strong {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
}
.demo-note-warm {
  background: rgba(255, 193, 7, .10);
  border-color: rgba(255, 193, 7, .22);
}
#toolShell[hidden] { display: none !important; }
@keyframes rto-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1rem, -.8rem, 0) scale(1.05); }
}
@keyframes rto-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-.35rem) scale(1.03); }
}

/* v51-v52: row-level Conversation action; pin remains the far-right marker */
.conversation-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
}
.conversation-open {
  width: auto;
  min-width: 8.6rem;
  height: 2.35rem;
  padding: 0 .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid rgba(13, 110, 253, .22);
  border-radius: 999px;
  background: #ffffff;
  color: #0d6efd;
  opacity: 0;
  transform: translateX(.35rem);
  box-shadow: 0 .35rem .9rem rgba(13, 110, 253, .12);
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.conversation-row:hover .conversation-open,
.conversation-row:focus-within .conversation-open {
  opacity: 1;
  transform: translateX(0);
}
.conversation-open:hover {
  background: rgba(13, 110, 253, .1);
  box-shadow: 0 .45rem 1.1rem rgba(13, 110, 253, .18);
}
.conversation-open-icon {
  line-height: 1;
}
.conversation-open-text {
  display: inline-block;
}
.conversation-pin {
  justify-self: end;
  min-width: 1.7rem;
  text-align: center;
}
@media (max-width: 767px) {
  .conversation-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  }
  .conversation-open {
    opacity: 1;
    transform: none;
  }
}
.conversation-pin { grid-column: auto !important; }

/* v52: clean hover action, clearer groups switch, visible pinned state */
.storage-tools {
  border-top: 0 !important;
  padding-top: 0 !important;
}
.group-switch {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 1rem;
  background: rgba(13, 110, 253, .05);
  font-size: .98rem;
  font-weight: 700;
}
.group-switch .form-check-input {
  width: 3rem;
  height: 1.55rem;
  margin: 0;
  flex: 0 0 auto;
}
.group-switch .form-check-label {
  margin: 0;
  line-height: 1.2;
}
.conversation-row.is-pinned,
.conversation-row.is-pinned:hover {
  background: #eef6ff !important;
}
.conversation-row.is-selected,
.conversation-row.is-selected:hover {
  background: #dcecff !important;
}
.conversation-row.is-selected.is-pinned,
.conversation-row.is-selected.is-pinned:hover {
  background: #d8eaff !important;
}
.conversation-open {
  min-width: 10.4rem !important;
  height: 2.65rem !important;
  padding: 0 1.15rem !important;
  font-size: .98rem !important;
}
.conversation-row .conversation-open {
  opacity: 0 !important;
  transform: translateX(.45rem) !important;
  pointer-events: none;
}
.conversation-row:hover .conversation-open {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto;
}
.conversation-row:not(:hover) .conversation-open {
  opacity: 0 !important;
  transform: translateX(.45rem) !important;
  pointer-events: none;
}
@media (max-width: 767px) {
  .conversation-row .conversation-open {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
}

/* v64: polished demonstration storytelling */
.demo-intro .h3 {
  color: #14213d;
}

.demo-note-blue {
  background: linear-gradient(135deg, rgba(13, 110, 253, .10), rgba(13, 202, 240, .08));
  border-color: rgba(13, 110, 253, .20);
}

.demo-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.demo-showcase-card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(13, 110, 253, .12);
  border-radius: 1.35rem;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(20, 33, 61, .08);
}

.demo-showcase-card.featured {
  background: linear-gradient(135deg, rgba(232, 242, 255, .92), rgba(245, 239, 255, .86));
  border-color: rgba(13, 110, 253, .22);
}

.demo-showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .65rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .10);
  color: #0d6efd;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.demo-showcase-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .8rem;
}

.demo-showcase-card p {
  margin: .9rem 0 0;
  color: #5c667a;
  font-size: .92rem;
}

.mock-gemini-list,
.mock-manager-card {
  display: grid;
  gap: .5rem;
  padding: .75rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, .96);
  border: 1px solid rgba(20, 33, 61, .08);
}

.mock-gemini-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.35rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #fff;
  color: #243047;
  font-size: .9rem;
  box-shadow: 0 6px 18px rgba(20, 33, 61, .06);
}

.mock-gemini-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-gemini-row.pinned {
  background: rgba(224, 238, 255, .98);
}

.mock-gemini-row.group-green::before,
.mock-gemini-row.group-purple::before,
.mock-gemini-row.group-cyan::before {
  content: "";
  position: absolute;
  left: -.42rem;
  top: 50%;
  width: .72rem;
  height: 1.38rem;
  border-radius: 999px 0 0 999px;
  transform: translateY(-50%);
}

.mock-gemini-row.group-green::before { background: #198754; }
.mock-gemini-row.group-purple::before { background: #6610f2; }
.mock-gemini-row.group-cyan::before { background: #0dcaf0; }

.mock-manager-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .7rem;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 33, 61, .05);
}

.group-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 999px;
  display: inline-block;
}
.group-dot.green { background: #198754; }
.group-dot.purple { background: #6610f2; }
.group-dot.cyan { background: #0dcaf0; }

#btnShowPresentation {
  margin-top: .35rem;
}

@media (max-width: 991px) {
  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* v65: richer demonstration storytelling */
.demo-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.demo-story-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(247, 251, 255, .9));
  border: 1px solid rgba(13, 110, 253, .12);
  box-shadow: 0 16px 38px rgba(20, 33, 61, .075);
}

.demo-story-card::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  top: -2.4rem;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, .08);
}

.demo-story-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(13, 110, 253, .10);
  font-size: 1.35rem;
  margin-bottom: .8rem;
}

.demo-story-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 850;
  color: #14213d;
  margin-bottom: .55rem;
}

.demo-story-card p {
  position: relative;
  z-index: 1;
  color: #5c667a;
  font-size: .91rem;
  margin: 0;
}

.mock-manager-card.detailed div {
  grid-template-columns: 1fr auto auto;
  display: grid;
}

.mock-manager-card.detailed span:not(.group-dot) {
  color: #6b7280;
  font-size: .82rem;
}

.demo-capability-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, .10), rgba(102, 16, 242, .08));
  border: 1px solid rgba(13, 110, 253, .16);
}

.demo-capability-copy {
  padding: .5rem;
}

.demo-capability-copy h3 {
  font-size: 1.25rem;
  font-weight: 850;
  color: #14213d;
  margin-bottom: .55rem;
}

.demo-capability-copy p {
  color: #4b5565;
  margin: 0;
}

.demo-capability-list {
  display: grid;
  gap: .55rem;
}

.demo-capability-list span {
  display: block;
  padding: .65rem .75rem;
  border-radius: .95rem;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 22px rgba(20, 33, 61, .055);
  font-weight: 750;
  color: #243047;
}

@media (max-width: 1199px) {
  .demo-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .demo-capability-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .demo-story-grid {
    grid-template-columns: 1fr;
  }
}


/* v67: prevent demo illustration overflow and keep the three cards clean */
.demo-showcase-grid,
.demo-showcase-card,
.mock-gemini-list,
.mock-manager-card,
.mock-gemini-row,
.mock-manager-card div {
  min-width: 0;
}

.demo-showcase-card {
  overflow: hidden;
}

.mock-gemini-list,
.mock-manager-card {
  overflow: hidden;
  max-width: 100%;
}

.mock-gemini-row {
  width: 100%;
  max-width: 100%;
  gap: .65rem;
  padding: .45rem .62rem;
}

.mock-gemini-row span {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.mock-gemini-row em {
  flex: 0 0 auto;
  margin-left: .45rem;
  font-style: normal;
}

.mock-gemini-row.group-green::before,
.mock-gemini-row.group-purple::before,
.mock-gemini-row.group-cyan::before {
  left: -.28rem;
  width: .58rem;
  height: 1.22rem;
}

.mock-manager-card div strong,
.mock-manager-card div span {
  min-width: 0;
}

@media (max-width: 1240px) {
  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }
}


/* v68: full-width conversation text, normal title weight, overlay row action */
.conversation-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  column-gap: .95rem !important;
  align-items: center !important;
  position: relative !important;
}
.conversation-main {
  min-width: 0 !important;
  width: 100% !important;
  display: block !important;
  padding-right: .5rem !important;
}
.conversation-title,
.conversation-row.is-selected .conversation-title,
.conversation-row.is-pinned .conversation-title {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  color: #0f172a !important;
  font-weight: 400 !important;
  line-height: 1.32 !important;
}
.conversation-badges {
  grid-column: auto !important;
  justify-self: end !important;
  min-width: 2.4rem !important;
  z-index: 3 !important;
}
.conversation-pin {
  justify-self: end !important;
  z-index: 4 !important;
}
.conversation-open {
  position: absolute !important;
  top: 50% !important;
  right: 3.35rem !important;
  z-index: 6 !important;
  min-width: 10.4rem !important;
  transform: translate(.45rem, -50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(5px) !important;
}
.conversation-row:hover .conversation-open,
.conversation-row:focus-within .conversation-open {
  opacity: 1 !important;
  transform: translate(0, -50%) !important;
  pointer-events: auto !important;
}
.conversation-row:not(:hover):not(:focus-within) .conversation-open {
  opacity: 0 !important;
  transform: translate(.45rem, -50%) !important;
  pointer-events: none !important;
}
@media (max-width: 767px) {
  .conversation-row {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }
  .conversation-open {
    position: static !important;
    grid-column: 2 / -1 !important;
    justify-self: start !important;
    margin-top: .55rem !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* Faithful Gemini-style demo cards and attractive action buttons */
.demo-action-row {
  align-items: center;
}
.rto-hero-action {
  position: relative;
  overflow: hidden;
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: .82rem 1.25rem !important;
  box-shadow: 0 16px 34px rgba(13, 110, 253, .18);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.rto-hero-action::after,
.rto-return-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.34) 44%, transparent 58%);
  transform: translateX(-125%);
  animation: rtoButtonSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
.rto-hero-action:hover,
.rto-return-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(13, 110, 253, .25);
  filter: saturate(1.08);
}
.rto-hero-action-soft {
  background: rgba(255,255,255,.86) !important;
}
.rto-hero-action-download {
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(13, 110, 253, .20) !important;
}
@keyframes rtoButtonSheen {
  0%, 54% { transform: translateX(-125%); }
  72%, 100% { transform: translateX(125%); }
}
.presentation-return {
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 110, 253, .16);
}
.rto-return-action {
  position: relative;
  overflow: hidden;
  border-radius: 1rem !important;
  font-weight: 800 !important;
  padding: .75rem .9rem !important;
  background: linear-gradient(135deg, rgba(232, 242, 255, .98), rgba(246, 240, 255, .94)) !important;
  box-shadow: 0 14px 30px rgba(13, 110, 253, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.demo-showcase-grid {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}
.gemini-faithful-card .demo-showcase-kicker {
  background: rgba(232, 240, 254, .95);
  color: #1a73e8;
  letter-spacing: .055em;
}
.gemini-faithful-card h3 {
  font-weight: 750;
  color: #202124;
}
.mock-gemini-sidebar {
  display: grid;
  gap: .35rem;
  padding: 1rem .75rem .8rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, .14);
  box-shadow: inset 0 0 0 1px rgba(60,64,67,.03), 0 12px 30px rgba(60,64,67,.08);
  overflow: hidden;
}
.mock-gemini-section-title {
  color: #5f6368;
  font-size: .92rem;
  padding: 0 .55rem .25rem;
}
.mock-gemini-item {
  position: relative;
  min-height: 2.65rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .42rem .62rem .42rem .74rem;
  border-radius: 999px;
  background: transparent;
  color: #202124;
  font-size: .94rem;
  line-height: 1.25;
}
.mock-gemini-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-gemini-pin {
  justify-self: end;
  opacity: .9;
  filter: saturate(.9);
}
.mock-gemini-item.mock-pinned {
  background: rgba(224, 238, 255, .98);
}
.mock-gemini-item.mock-group-green::before,
.mock-gemini-item.mock-group-purple::before,
.mock-gemini-item.mock-group-cyan::before {
  content: "";
  position: absolute;
  left: -.55rem;
  top: 50%;
  width: 1rem;
  height: 2.35rem;
  border-radius: 999px 0 0 999px;
  transform: translateY(-50%);
}
.mock-gemini-item.mock-group-green::before { background: #198754; }
.mock-gemini-item.mock-group-purple::before { background: #6610f2; }
.mock-gemini-item.mock-group-cyan::before { background: #0dcaf0; }
.mock-gemini-sidebar.augmented .mock-gemini-item:not(.mock-pinned) {
  background: #fff;
}
.mock-gemini-sidebar.groups-only .mock-gemini-item.mock-pinned {
  background: rgba(224, 238, 255, .98);
}
.mock-manager-card,
.mock-gemini-list {
  display: none;
}
#btnShowPresentation {
  margin-top: 0;
}
@media (max-width: 1199px) {
  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575px) {
  .rto-hero-action {
    width: 100%;
    text-align: center;
  }
  .mock-gemini-item {
    font-size: .88rem;
  }
}

/* Faithful Gemini sidebar illustrations and final master-list layout guard */
.faithful-sidebar-grid {
  align-items: stretch;
}
.gemini-faithful-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.gemini-faithful-card .demo-showcase-kicker {
  width: fit-content;
}
.mock-gemini-sidebar.mock-gemini-narrow {
  width: min(100%, 332px);
  max-width: 332px;
  margin: .25rem auto .15rem;
  padding: 1rem .5rem .9rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, .16);
  box-shadow: 0 .75rem 1.8rem rgba(60, 64, 67, .08);
  overflow: hidden;
}
.mock-gemini-section-title {
  font-size: .94rem !important;
  color: #5f6368 !important;
  padding: 0 .7rem .45rem !important;
  line-height: 1.2;
}
.mock-gemini-item {
  min-height: 2.42rem !important;
  grid-template-columns: minmax(0, 1fr) 1.35rem !important;
  gap: .35rem !important;
  padding: .36rem .62rem .36rem .72rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: .88rem !important;
  line-height: 1.2 !important;
}
.mock-gemini-title {
  font-weight: 400 !important;
  color: #202124 !important;
}
.mock-gemini-pin {
  font-size: .92rem !important;
  justify-self: end !important;
  color: #3c4043 !important;
}
.mock-gemini-item.mock-pinned {
  background: rgba(224, 238, 255, .98) !important;
  border-radius: 0 !important;
}
.mock-gemini-item.mock-group-green::before,
.mock-gemini-item.mock-group-purple::before,
.mock-gemini-item.mock-group-cyan::before {
  left: -.48rem !important;
  width: .9rem !important;
  height: 2.35rem !important;
  border-radius: 999px 0 0 999px !important;
}
.mock-gemini-item.mock-group-green::before { background: #198754 !important; }
.mock-gemini-item.mock-group-purple::before { background: #6610f2 !important; }
.mock-gemini-item.mock-group-cyan::before { background: #0dcaf0 !important; }
.mock-gemini-sidebar.augmented .mock-gemini-item:not(.mock-pinned) {
  background: transparent !important;
}
.demo-showcase-card p {
  margin-top: auto;
}
.conversation-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  position: relative !important;
}
.conversation-main {
  min-width: 0 !important;
  width: 100% !important;
  padding-right: .25rem !important;
}
.conversation-title,
.conversation-row.is-selected .conversation-title,
.conversation-row.is-pinned .conversation-title,
.conversation-row:hover .conversation-title {
  font-weight: 400 !important;
  max-width: none !important;
  width: 100% !important;
}
.conversation-open {
  position: absolute !important;
  right: 3.35rem !important;
  top: 50% !important;
  transform: translate(.45rem, -50%) !important;
  z-index: 8 !important;
}
.conversation-row:hover .conversation-open,
.conversation-row:focus-within .conversation-open {
  transform: translate(0, -50%) !important;
}
.conversation-pin {
  justify-self: end !important;
  z-index: 5 !important;
}
@media (min-width: 1200px) {
  .demo-showcase-grid.faithful-sidebar-grid {
    grid-template-columns: repeat(3, minmax(270px, 1fr)) !important;
  }
}
@media (max-width: 575px) {
  .mock-gemini-sidebar.mock-gemini-narrow {
    width: 100%;
    max-width: 100%;
  }
}

/* English mockup images and safe hover contrast fixes */
.mockup-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22rem;
  margin: 0 0 1rem;
  padding: .75rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(248, 250, 255, .98), rgba(255, 255, 255, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.mockup-image-frame img {
  display: block;
  width: 100%;
  max-height: 32rem;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}
.mockup-image-frame-wide img {
  max-height: 30rem;
}
.rto-hero-action-soft:hover,
.rto-hero-action-download:hover,
#btnShowPresentation:hover,
.rto-return-action:hover {
  color: #fff !important;
  background: #0d6efd !important;
  border-color: #0d6efd !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  color: #fff !important;
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  color: #fff !important;
  background-color: #475569 !important;
  border-color: #475569 !important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
  color: #fff !important;
  background-color: #b02a37 !important;
  border-color: #b02a37 !important;
}
.tools-card .btn:hover,
.storage-tools .btn:hover,
.storage-modal-actions .btn:hover,
.demo-action-row .btn:hover {
  text-decoration: none !important;
}


/* RTO promotional footer */
.rto-sdk-footer {
  margin-top: 1rem;
  padding: 1.25rem 0 1.5rem;
  color: #475569;
}
.rto-sdk-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .92));
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.rto-sdk-footer strong {
  color: #0f172a;
}
.rto-sdk-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .45rem .8rem;
  border: 1px solid #0d6efd;
  border-radius: .7rem;
  color: #0d6efd;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.rto-sdk-footer a:hover,
.rto-sdk-footer a:focus-visible {
  color: #fff;
  background: #0d6efd;
  border-color: #0d6efd;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .rto-sdk-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .rto-sdk-footer a {
    width: 100%;
  }
}

/* v70 selector diagnostics */
.selector-diagnostic-line {
  margin-top: .75rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
}
.selector-diagnostic-run {
  border-color: rgba(13, 110, 253, .25);
  background: rgba(13, 110, 253, .08);
  color: #0d47a1;
}
.selector-diagnostic-ok {
  border-color: rgba(25, 135, 84, .25);
  background: rgba(25, 135, 84, .08);
  color: #146c43;
}
.selector-diagnostic-warn {
  border-color: rgba(255, 193, 7, .38);
  background: rgba(255, 193, 7, .13);
  color: #8a6d00;
}
.selector-diagnostic-bad {
  border-color: rgba(220, 53, 69, .25);
  background: rgba(220, 53, 69, .08);
  color: #b02a37;
}

/* v72: active Gemini row and local group marker in flat mode */
.conversation-row.has-local-group {
  box-shadow: inset 6px 0 0 var(--local-group-color, #0d6efd);
}
.conversation-row.has-local-group:hover {
  box-shadow: inset 6px 0 0 var(--local-group-color, #0d6efd), 0 10px 26px rgba(15, 23, 42, .07);
}
.conversation-row.has-local-group.is-selected,
.conversation-row.has-local-group.is-selected:hover {
  box-shadow: inset 6px 0 0 var(--local-group-color, #0d6efd);
}
.conversation-row.is-gemini-active {
  box-shadow: inset -6px 0 0 var(--gemini-active-color, #198754);
}
.conversation-row.is-gemini-active:hover {
  box-shadow: inset -6px 0 0 var(--gemini-active-color, #198754), 0 10px 26px rgba(15, 23, 42, .07);
}
.conversation-row.has-local-group.is-gemini-active,
.conversation-row.has-local-group.is-gemini-active:hover,
.conversation-row.has-local-group.is-selected.is-gemini-active,
.conversation-row.has-local-group.is-selected.is-gemini-active:hover {
  box-shadow: inset 6px 0 0 var(--local-group-color, #0d6efd), inset -6px 0 0 var(--gemini-active-color, #198754);
}
