.office-share-panel {
  position: fixed;
  z-index: 25;
  inset: var(--office-share-top, 52px) 0 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(385px, 100vw);
  max-height: 100dvh;
  border-inline-start: 1px solid var(--line, #d2d8e1);
  background: var(--panel, Canvas);
  color: var(--ink, CanvasText);
  box-shadow: -4px 1px 15px #17243818;
  box-sizing: border-box;
}
.office-share-panel[hidden] {
  display: none;
}
.office-share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-block-end: 1px solid var(--line, #d2d8e1);
}
.office-share-panel h2,
.office-share-panel h3,
.office-share-panel p {
  margin: 0;
}
.office-share-panel h2 {
  font-size: 1.04rem;
  font-weight: 650;
}
.office-share-panel h3 {
  margin-bottom: 2px;
  font-size: .92rem;
  font-weight: 650;
}
.office-share-panel p {
  font-size: .82rem;
  line-height: 1.45;
}
.office-share-content {
  display: grid;
  align-content: start;
  gap: 15px;
  overflow: auto;
  padding: 16px 18px;
}
.office-share-content > section + section {
  padding-top: 13px;
  border-top: 1px solid var(--line, #d2d8e1);
}
.office-share-document {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.office-share-document strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: .91rem;
}
.office-share-document p,
.office-share-caption,
.office-share-person-info span {
  color: var(--muted, #516072);
}
.office-share-document-icon {
  position: relative;
  width: 22px;
  height: 26px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--brand-blue, var(--blue, #175ab6));
}
.office-share-document-icon::after {
  position: absolute;
  inset: 7px 4px auto;
  height: 9px;
  border-block: 1px solid currentColor;
  content: "";
}
.office-share-grant,
.office-share-links,
.office-share-local-save,
.office-share-access {
  display: grid;
  gap: 9px;
}
.office-share-grant {
  grid-template-columns: minmax(0, 1fr);
}
.office-share-field {
  display: grid;
  gap: 4px;
  font-size: .78rem;
  font-weight: 550;
}
.office-share-panel :is(input, select) {
  min-height: 34px;
  width: 100%;
  color: var(--ink, CanvasText);
  border: 1px solid var(--line, #d2d8e1);
  border-radius: 5px;
  padding: 5px 7px;
  background: var(--background, var(--panel, Canvas));
  box-sizing: border-box;
}
.office-share-panel :is(input, select, button, summary):focus-visible {
  outline: 2px solid var(--brand-blue, var(--blue, #175ab6));
  outline-offset: 2px;
}
.office-share-panel button {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--line, #d2d8e1);
  border-radius: 5px;
  background: var(--panel, Canvas);
  color: var(--ink, CanvasText);
  font-size: .77rem;
  line-height: 1.2;
}
.office-share-panel button:not(:disabled):hover,
.office-share-access-edit summary:hover {
  background: var(--hover, color-mix(in srgb, var(--blue, #175ab6) 10%, var(--panel, Canvas)));
}
.office-share-panel .office-share-primary {
  color: #fff;
  border-color: transparent;
  background: var(--office-app-accent, var(--brand-blue, var(--blue, #175ab6)));
}
.office-share-panel .office-share-primary:not(:disabled):hover {
  background: color-mix(in srgb, var(--office-app-accent, var(--brand-blue, var(--blue, #175ab6))) 88%, #000);
}
.office-share-panel :is(button, input, select):disabled {
  opacity: .56;
}
.office-share-people {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.office-share-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line, #d2d8e1);
}
.office-share-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-blue, var(--blue, #175ab6)) 14%, var(--panel, Canvas));
  color: var(--brand-blue, var(--blue, #175ab6));
  font-size: 11px;
  font-weight: 650;
}
.office-share-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.office-share-person-info {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.office-share-person-info strong {
  font-size: .8rem;
}
.office-share-person-info span {
  font-size: .72rem;
}
.office-share-access-edit {
  max-width: 155px;
}
.office-share-access-edit summary {
  width: max-content;
  border-radius: 4px;
  padding: 4px 5px;
  cursor: pointer;
  font-size: .74rem;
}
.office-share-access-edit[open] {
  display: grid;
  gap: 5px;
}
.office-share-access-edit :is(select, button) {
  font-size: .71rem;
}
.office-share-folder {
  display: grid;
  gap: 5px;
  font-size: .78rem;
}
.office-share-status {
  padding: 10px 16px;
  border-top: 1px solid var(--line, #d2d8e1);
  min-height: 1rem;
}
.office-share-status[data-kind="error"] {
  color: var(--danger, #ae2939);
}
.office-share-status[data-kind="success"] {
  color: var(--office-app-accent, var(--brand-blue, var(--blue, #175ab6)));
}
@media print {
  .office-share-panel {
    display: none !important;
  }
}
