/* Exclusive shared-component styles. Global and layout rules stay shared. */

.ce-inspector {
background: white;
  border-top: 1px solid var(--chrome-border);
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(4, 48px) minmax(0, 1fr);
  grid-template-rows: 48px auto;
  min-width: 0;
  position: relative;
}

.ce-inspector > details,
.ce-inspector > details::details-content {
display: contents;
}

.ce-inspector > details > summary {
align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--chrome-muted);
  cursor: pointer;
  display: flex;
  grid-column: var(--tab-column);
  grid-row: 1;
  height: 40px;
  justify-content: center;
  list-style: none;
  margin: 4px;
  width: 40px;
}

.ce-inspector > details > summary::-webkit-details-marker {
display: none;
}

.ce-sheet-expand {
display: none;
}

.ce-inspector > details > summary:hover {
background: #f4f6f3;
  color: var(--chrome-ink);
}

.ce-inspector > details[open] > summary {
background: #edf3ef;
  border-color: #b9cfc2;
  color: var(--mbk-sage-deep);
}

.ce-inspector-close {
align-items: center;
  border-radius: 5px;
  color: var(--chrome-muted);
  display: none;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 8px;
  width: 32px;
}

.ce-inspector-close:hover {
background: var(--chrome-bg);
  color: var(--chrome-ink);
}

.ce-inspector > details[open] .ce-inspector-close {
display: flex;
}

.ce-inspector-panel {
border-top: 1px solid var(--chrome-border);
  grid-column: 1 / -1;
  grid-row: 2;
  max-height: 340px;
  min-width: 0;
  overflow: auto;
  padding: 20px 24px;
}

.ce-inspector > details:not([open]) > .ce-inspector-panel {
display: none;
}

.ce-design .mbk-shell--mobile .ce-inspector-panel {
max-height: none;
  overflow: visible;
  padding: 18px 16px;
}

.ce-design .mbk-shell--mobile .ce-inspector:has(> details[open]) {
  border: 1px solid var(--chrome-border);
  border-radius: 20px;
  box-shadow: 0 6px 28px #24372b26;
  grid-template-rows: 28px 48px minmax(0, 1fr);
  overflow: hidden;
}

.mbk-shell--mobile .ce-inspector:has(> details[open]) > details > summary {
grid-row: 2;
}

.mbk-shell--mobile .ce-inspector:has(> details[open]) .ce-inspector-panel {
grid-row: 3;
}

.mbk-shell--mobile .ce-inspector-close {
top: 36px;
}

.mbk-shell--mobile .ce-inspector:has(> details[open]) > .ce-sheet-expand {
appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  height: 28px;
  justify-self: center;
  margin: 0;
  position: relative;
  width: 64px;
}

.ce-sheet-expand::before {
background: #bdc5bf;
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 14px;
  position: absolute;
  top: 11px;
  width: 36px;
}

.ce-sheet-expand:focus-visible {
outline: 2px solid var(--mbk-sage-deep);
  outline-offset: -2px;
}

.ce-inspector-link {
  align-items: center;
  color: inherit;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}
