.create-desktop-sidebar-root,
.create-desktop-sidebar {
  display: grid;
  min-height: 0;
}

.create-desktop-sidebar-root {
  overflow: hidden;
}

.create-desktop-sidebar {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
}

.create-desktop-sidebar.is-context-mode {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.create-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #ece4e9;
  border-radius: 9px;
  background: #f7f3f6;
  padding: 3px;
}

.create-sidebar-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b6268;
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.create-sidebar-tab:hover,
.create-sidebar-tab:focus-visible {
  background: #fff;
  color: #9f315b;
  outline: none;
}

.create-sidebar-tab.is-active {
  background: #fff;
  color: #bd4a78;
  box-shadow: 0 1px 5px rgba(48, 42, 46, .08);
}

.create-sidebar-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.create-sidebar-context-head p {
  margin: 4px 0 0;
  color: #7a7075;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.create-sidebar-back,
.create-sidebar-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid #e0cbd5;
  border-radius: 7px;
  background: #fff;
  color: #9f315b;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.create-sidebar-back:hover,
.create-sidebar-back:focus-visible,
.create-sidebar-history-link:hover,
.create-sidebar-history-link:focus-visible {
  border-color: #bd4a78;
  background: #fff6fa;
  color: #8f2e56;
  outline: none;
  text-decoration: none;
}

.create-sidebar-history-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.create-sidebar-history-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.create-sidebar-history-head p {
  margin: 0;
  color: #7a7075;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.create-sidebar-history-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #e0e5ea;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  padding: 6px;
  text-decoration: none;
}

.create-sidebar-history-item:hover,
.create-sidebar-history-item:focus-visible {
  border-color: #bd4a78;
  background: #fff6fa;
  outline: none;
  text-decoration: none;
}

.create-sidebar-history-thumb {
  display: grid;
  width: 48px;
  height: 44px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f5;
  color: #65727f;
  font-size: 10px;
  font-weight: 900;
  place-items: center;
}

.create-sidebar-history-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-sidebar-history-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.create-sidebar-history-main strong,
.create-sidebar-history-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-sidebar-history-main strong {
  color: #1f2933;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.create-sidebar-history-main small {
  color: #7a7075;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.create-sidebar-empty {
  border: 1px dashed #ddd3d9;
  border-radius: 9px;
  background: #fff;
  color: #756a70;
  padding: 14px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.create-desktop-sidebar .td-stamp-picker {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  min-height: 0;
  height: 100%;
  max-height: none;
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.create-desktop-sidebar .td-stamp-picker-header {
  display: none;
}

.create-desktop-sidebar .td-stamp-search-wrap {
  margin-bottom: 8px;
}

.create-desktop-sidebar .td-stamp-search-wrap .td-stamp-search {
  min-height: 40px;
}

.create-desktop-sidebar .td-stamp-categories {
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 3px;
}

.create-desktop-sidebar .td-stamp-categories .td-emoji-category {
  min-width: 64px;
  min-height: 62px;
  padding: 7px 6px;
}

.create-desktop-sidebar .td-stamp-categories .td-emoji-category-label {
  font-size: 11px;
}

.create-desktop-sidebar .td-stamp-categories .td-emoji-category-count {
  display: none;
}

.create-desktop-sidebar .td-stamp-grid {
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.create-desktop-sidebar .td-stamp-option {
  min-height: 88px;
  padding: 7px 6px;
}

.create-desktop-sidebar .td-stamp-option img,
.create-desktop-sidebar .td-stamp-option svg {
  width: 44px;
  height: 44px;
}

@media (max-width: 1180px) {
  .create-desktop-sidebar-root {
    display: none;
  }
}
